html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k β | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2746 | Cannot load `few-nerd` dataset | Hi @chen-yuxuan, thanks for your answer.
Just a few comments:
- Please, note that as we use `datasets.load_dataset` implementation, we can pass the configuration name as the second positional argument (no need to pass explicitly `name=`) and it downloads the 3 splits:
```python
In [4]: ds = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 11.5k/11.5k [00:00<00:00, 2.85MB/s]
Downloading and preparing dataset few_nerd/supervised to .cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e40882b71f037a4a1f232025899170fbe8113cd2f4a26dddd2add7222a077255...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 14.6M/14.6M [01:16<00:00, 190kB/s]
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 11.9M/11.9M [01:14<00:00, 160kB/s]
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 12.0M/12.0M [01:04<00:00, 186kB/s]
100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [03:58<00:00, 79.45s/it]
100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 3.11it/s]
```
- On the other hand, please note that your script does not work on Windows machines, because you call `open()` without passing the encoding parameter:
```
~\.cache\huggingface\modules\datasets_modules\datasets\dfki-nlp___few-nerd\e40882b71f037a4a1f232025899170fbe8113cd2f4a26dddd2add7222a077255\few-nerd.py in <genexpr>(.0)
276 assert filepath[-4:] == ".txt"
277
--> 278 num_lines = sum(1 for _ in open(filepath))
279 id = 0
280
.venv\lib\encodings\cp1252.py in decode(self, input, final)
21 class IncrementalDecoder(codecs.IncrementalDecoder):
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
25 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 5238: character maps to <undefined>
```
If you would like your script to be usable on Windows machines, you should pass `encoding="utf-8"` to every `open()` function:
- line 278: `num_lines = sum(1 for _ in open(filepath, encoding="utf-8"))`
- line 281: `with open(filepath, "r", encoding="utf-8")` | ## Describe the bug
Cannot load `few-nerd` dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset('few-nerd', 'supervised')
```
## Actual results
Executing above code will give the following error:
```
Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError).
Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53...
Traceback (most recent call last):
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split
disable=bool(logging.get_verbosity() == logging.NOTSET),
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples
with open(filepath, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json'
```
The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Python version: 3.8
- PyArrow version: 1.0.1
| 208 | Cannot load `few-nerd` dataset
## Describe the bug
Cannot load `few-nerd` dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset('few-nerd', 'supervised')
```
## Actual results
Executing above code will give the following error:
```
Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError).
Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53...
Traceback (most recent call last):
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split
disable=bool(logging.get_verbosity() == logging.NOTSET),
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples
with open(filepath, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json'
```
The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Python version: 3.8
- PyArrow version: 1.0.1
Hi @chen-yuxuan, thanks for your answer.
Just a few comments:
- Please, note that as we use `datasets.load_dataset` implementation, we can pass the configuration name as the second positional argument (no need to pass explicitly `name=`) and it downloads the 3 splits:
```python
In [4]: ds = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 11.5k/11.5k [00:00<00:00, 2.85MB/s]
Downloading and preparing dataset few_nerd/supervised to .cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e40882b71f037a4a1f232025899170fbe8113cd2f4a26dddd2add7222a077255...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 14.6M/14.6M [01:16<00:00, 190kB/s]
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 11.9M/11.9M [01:14<00:00, 160kB/s]
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 12.0M/12.0M [01:04<00:00, 186kB/s]
100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [03:58<00:00, 79.45s/it]
100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 3.11it/s]
```
- On the other hand, please note that your script does not work on Windows machines, because you call `open()` without passing the encoding parameter:
```
~\.cache\huggingface\modules\datasets_modules\datasets\dfki-nlp___few-nerd\e40882b71f037a4a1f232025899170fbe8113cd2f4a26dddd2add7222a077255\few-nerd.py in <genexpr>(.0)
276 assert filepath[-4:] == ".txt"
277
--> 278 num_lines = sum(1 for _ in open(filepath))
279 id = 0
280
.venv\lib\encodings\cp1252.py in decode(self, input, final)
21 class IncrementalDecoder(codecs.IncrementalDecoder):
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
25 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 5238: character maps to <undefined>
```
If you would like your script to be usable on Windows machines, you should pass `encoding="utf-8"` to every `open()` function:
- line 278: `num_lines = sum(1 for _ in open(filepath, encoding="utf-8"))`
- line 281: `with open(filepath, "r", encoding="utf-8")` | [
-0.3042268753051758,
-0.0985620766878128,
0.007841698825359344,
0.5131357908248901,
0.32854580879211426,
-0.05764244124293327,
0.5201519131660461,
0.25530123710632324,
0.19915753602981567,
0.16810859739780426,
-0.46047765016555786,
-0.09104873239994049,
-0.2877759635448456,
-0.29707515239715576,
0.4347800314426422,
0.032002195715904236,
-0.025188200175762177,
-0.03495541214942932,
0.11196117103099823,
0.008438542485237122,
-0.22572878003120422,
0.23624102771282196,
-0.24531437456607819,
0.07277631759643555,
-0.4190008044242859,
-0.05495668202638626,
0.08892059326171875,
0.4892739951610565,
-0.07197584211826324,
-0.62960284948349,
0.46047306060791016,
0.01438959687948227,
0.21815147995948792,
0.42350149154663086,
-0.00010919940541498363,
0.14418469369411469,
0.418992817401886,
-0.01926589012145996,
-0.2884248197078705,
-0.3601105809211731,
0.09408397227525711,
-0.5144336223602295,
0.12333309650421143,
-0.26080238819122314,
-0.4063475430011749,
0.023619351908564568,
0.12173684686422348,
-0.2709340453147888,
0.4901699423789978,
0.4886866509914398,
0.28849053382873535,
0.13091348111629486,
-0.016008947044610977,
-0.3164564371109009,
0.4296737015247345,
0.06754808872938156,
-0.16129539906978607,
0.2777443826198578,
0.34329754114151,
-0.004307579714804888,
-0.03633622080087662,
0.030621234327554703,
-0.04575895518064499,
-0.12311683595180511,
0.3901320993900299,
0.0024618301540613174,
-0.1256731152534485,
-0.21260026097297668,
0.12963241338729858,
0.4381469190120697,
0.20645134150981903,
-0.2134825587272644,
-0.23281846940517426,
-0.19297972321510315,
0.0738779678940773,
-0.18197862803936005,
0.16543430089950562,
0.03191940486431122,
-0.19126270711421967,
0.07417873293161392,
-0.026206716895103455,
-0.06306792050600052,
-0.17226162552833557,
0.14239762723445892,
-0.11044079810380936,
0.1547156572341919,
-0.1506495624780655,
0.031456414610147476,
-0.1483335793018341,
-0.09897683560848236,
-0.22030220925807953,
0.15393251180648804,
-0.033129993826150894,
0.28425711393356323,
-0.35298043489456177,
0.16926421225070953,
0.09687565267086029,
0.3016737699508667,
0.2464154064655304,
0.3468019366264343,
-0.0859934613108635,
-0.011231016367673874,
-0.03136638551950455,
0.1054864451289177,
0.053956471383571625,
0.15501359105110168,
0.3106101453304291,
0.17096886038780212,
0.28037479519844055,
0.4544358551502228,
-0.09400677680969238,
0.024950578808784485,
-0.2067873775959015,
-0.16535523533821106,
0.04439761862158775,
0.035936009138822556,
0.32793039083480835,
-0.23393996059894562,
-0.4098479747772217,
0.15341466665267944,
0.22092145681381226,
0.0887862965464592,
0.2583984136581421,
0.48303258419036865,
-0.23615147173404694,
-0.001351088285446167,
-0.006440456956624985,
0.025530245155096054,
-0.15113568305969238,
-0.17565694451332092,
-0.3392072319984436,
0.1940043419599533,
-0.0808146595954895,
0.012704158201813698,
0.32547467947006226,
-0.12321868538856506,
0.3092907667160034,
-0.15285257995128632,
-0.0015990212559700012,
-0.12322021275758743,
-0.11052707582712173,
-0.18697455525398254,
-0.09991427510976791,
0.20512665808200836,
-0.07003489881753922,
0.08784279972314835,
0.11722789704799652,
-0.31992948055267334,
-0.2411324679851532,
-0.1124534085392952,
-0.12702807784080505,
-0.3474442660808563,
-0.09379015862941742,
0.22819755971431732,
-0.2979831099510193,
0.132142573595047,
-0.06710580736398697,
0.043678510934114456,
0.07646840065717697,
-0.2537541687488556,
-0.12407698482275009,
-0.14020894467830658,
-0.4273742139339447,
-0.37671732902526855,
0.6006534099578857,
0.6969176530838013,
-0.2007523775100708,
-0.15088945627212524,
-0.5498253703117371,
-0.3447904884815216,
0.10598721355199814,
0.3750482499599457,
-0.2740000784397125,
0.15059557557106018,
-0.28501105308532715,
0.31596601009368896,
0.31387096643447876,
-0.43218302726745605,
-0.4340069890022278,
0.26315757632255554,
-0.22920945286750793,
0.4060317277908325,
-0.08423332124948502,
0.08582841604948044,
0.12121883034706116,
-0.10925247520208359,
0.3998248279094696,
0.4777017831802368,
0.02038121223449707,
-0.1821039915084839,
-0.258134126663208,
-0.1423347145318985,
0.10623663663864136,
0.1785903126001358,
0.263388067483902,
0.07876648008823395,
0.15481895208358765,
0.0659920945763588,
0.23266685009002686,
0.20802529156208038,
0.06240074336528778,
0.1595209836959839,
0.27241644263267517,
0.2057398408651352,
0.03339940682053566,
-0.48205435276031494,
-0.6707286834716797,
0.4395003914833069,
-0.16123253107070923,
-0.04765603691339493,
-0.16906602680683136,
-0.15814204514026642,
-0.41998034715652466,
0.02988371066749096,
-0.09874089062213898,
-0.25918370485305786,
0.17976409196853638,
0.21512705087661743,
0.21173924207687378,
0.07787682116031647,
-0.2501819133758545,
0.514994740486145,
0.05651349574327469,
0.06299735605716705,
-0.38229280710220337,
0.13057133555412292,
-0.12412825971841812,
-0.11037485301494598,
-0.11856509745121002,
0.35055485367774963,
0.23129692673683167,
-0.1851249635219574,
0.0676199197769165,
0.5000385642051697,
0.004435783252120018,
-0.17402876913547516,
-0.09065040200948715,
-0.43096911907196045,
0.039616286754608154,
-0.10435614734888077,
0.13482576608657837,
0.21534030139446259,
0.1075613871216774,
-0.051124557852745056,
0.10821916162967682,
0.3727991580963135,
0.035498131066560745,
0.22966235876083374,
0.028825461864471436,
-0.0013956278562545776,
0.18316015601158142,
0.07648511230945587,
0.15747450292110443,
-0.2301814705133438,
0.4892827272415161,
0.2627515196800232,
0.1726311892271042,
0.20779095590114594,
-0.20140117406845093,
-0.011708490550518036,
0.0858461931347847,
-0.04872936010360718,
0.05443672090768814,
0.29456648230552673,
-0.15104824304580688,
-0.04727262258529663,
0.05687855929136276,
0.369747132062912,
0.3691948652267456,
0.17099320888519287,
-0.026174601167440414,
0.09651397168636322,
-0.031438134610652924,
-0.06916867196559906,
0.12804147601127625,
0.051660217344760895,
0.08107034116983414,
0.2116551697254181,
0.06955748051404953,
0.19703124463558197,
-0.267009437084198,
-0.25613608956336975,
-0.051768891513347626,
0.3250853717327118,
-0.3932228088378906,
0.17412234842777252,
-0.20714277029037476,
-0.12513864040374756,
-0.04952651262283325,
0.0053801159374415874,
-0.46053510904312134,
-0.07695730775594711,
0.05033772811293602,
0.11067913472652435,
0.2267705202102661,
0.18335038423538208,
-0.12672017514705658,
0.18520592153072357,
-0.3189341723918915,
0.05701998621225357,
-0.2792578339576721,
0.00033419858664274216,
-0.3292349874973297,
0.07639415562152863,
0.3980509638786316,
-0.03899135813117027,
0.3228530287742615,
-0.21945607662200928,
-0.2569386065006256,
-0.19214124977588654,
-0.046326324343681335,
-0.18390652537345886,
0.08179284632205963,
0.657914400100708,
0.18810981512069702,
0.24808025360107422,
-0.05740751326084137,
-0.12801393866539001,
0.3673250377178192,
-0.3022804260253906,
-0.1845695525407791,
0.02973330393433571,
-0.10683830827474594,
0.08714993298053741,
-0.1282040923833847,
-0.3432546555995941,
-0.6057454943656921,
-0.4530195891857147,
0.30964142084121704,
0.14875027537345886,
0.18592923879623413,
0.3676002621650696,
-0.11636427789926529,
0.09203880280256271,
-0.04855632036924362,
0.20060934126377106,
-0.14842946827411652,
-0.274638831615448,
0.28294482827186584,
-0.4200582206249237,
-0.3737151026725769,
-0.11029688268899918,
0.05876322090625763,
0.03547855466604233,
0.08255086839199066,
-0.4535485506057739,
0.3604625165462494,
-0.13241109251976013,
0.0797710120677948,
-0.13276247680187225,
-0.06034039705991745,
0.06864597648382187,
-0.12212488800287247,
-0.0532962828874588,
0.04173858463764191,
-0.11695705354213715,
0.01338496059179306,
-0.2853541672229767,
0.05616448447108269,
-0.06364835798740387,
0.3072238862514496,
-0.0019498877227306366,
0.49644923210144043,
0.05808272585272789,
-0.10582089424133301,
0.28917327523231506,
-0.08743148297071457,
0.46046486496925354,
-0.18769484758377075,
-0.43734580278396606,
0.22594359517097473,
0.0792093276977539,
0.10210025310516357,
0.17295247316360474,
0.03608857840299606,
-0.047460876405239105,
-0.19868463277816772,
-0.13814447820186615,
-0.17180916666984558,
-0.1961095631122589,
0.14201340079307556,
-0.14239488542079926,
-0.0142822265625,
0.08183993399143219,
0.07586238533258438,
-0.14042015373706818,
-0.2760430574417114,
-0.13736076653003693,
0.27245622873306274,
0.11311358958482742,
0.15117429196834564,
-0.3932623267173767,
0.10200231522321701,
-0.3729318380355835,
0.31290173530578613,
0.04801354557275772,
0.24153965711593628,
-0.16636541485786438,
-0.011400623247027397,
0.14935636520385742,
-0.06880327314138412,
0.5504927039146423,
-0.15153154730796814,
0.2541806101799011,
0.33670151233673096,
0.12862315773963928,
-0.7504606246948242,
-0.06628070771694183,
0.02336806431412697,
0.32949668169021606,
0.2464180290699005,
0.4543986916542053,
-0.25052610039711,
-0.1369055062532425,
0.2337838113307953,
0.295923113822937,
-0.14329375326633453,
-0.22812014818191528,
-0.21883870661258698,
-0.1805827021598816,
-0.22029021382331848,
-0.18291977047920227,
-0.01829291507601738,
0.2696569561958313,
-0.06754409521818161,
-0.029205868020653725,
-0.15274108946323395,
0.1380235254764557,
0.17423829436302185,
-0.10388757288455963,
0.3798682391643524,
-0.06276705861091614,
0.3176010549068451,
0.16411957144737244,
0.1555960774421692,
0.08964499831199646,
0.37139037251472473,
-0.13479025661945343,
-0.18647387623786926,
-0.043362200260162354,
0.30789870023727417,
-0.018206574022769928,
0.2944710850715637,
-0.18343816697597504,
0.0559392012655735,
0.23392048478126526,
0.08784124255180359,
-0.008850676007568836,
0.14891889691352844,
0.19920440018177032,
-0.16555781662464142,
-0.1703936904668808,
-0.35705411434173584,
0.4624355435371399,
0.18360143899917603,
0.16305314004421234,
0.08637720346450806,
0.1469561755657196,
-0.14348092675209045,
0.060928478837013245,
-0.0672203078866005,
0.8010350465774536,
-0.19228030741214752,
0.21928907930850983,
0.0859910324215889,
-0.017742004245519638,
0.7876720428466797,
-0.29831063747406006,
0.03267522156238556,
-0.4788472652435303,
-0.1975041925907135,
0.0700770914554596,
-0.05454828590154648,
0.03878841549158096,
0.14489591121673584,
-0.09474640339612961,
0.19317950308322906,
-0.22540804743766785,
-0.15336717665195465,
-0.004276633262634277,
0.11447842419147491,
0.0007141754031181335,
-0.197351336479187,
-0.15701109170913696,
0.13645532727241516,
-0.19904093444347382,
0.2564725875854492,
-0.053149618208408356,
0.1679505854845047,
-0.17424657940864563,
-0.15749655663967133,
-0.35622936487197876,
0.0992632582783699,
-0.26881474256515503,
0.42655515670776367,
0.3584543764591217,
-0.4234374165534973,
0.07140983641147614,
0.26430803537368774,
0.08982023596763611,
0.15718792378902435,
-0.12246504426002502,
0.23398734629154205,
-0.03810439258813858,
-0.13986709713935852,
0.15868037939071655,
0.08001185208559036,
0.44580745697021484,
-0.04808197170495987,
-0.25897017121315,
-0.0948806181550026,
-0.1892417073249817,
-0.1625116765499115,
0.04113885760307312,
0.12506890296936035,
-0.0068883150815963745,
-0.1418985277414322,
-0.22206920385360718,
-0.19774582982063293,
0.24855205416679382,
-0.27181529998779297,
0.16379986703395844,
0.32826608419418335,
-0.29380789399147034,
-0.0524127259850502,
-0.03415850177407265,
-0.19177699089050293,
0.0028741173446178436,
0.49088042974472046,
0.011454999446868896,
-0.06321325153112411,
0.2723681330680847,
0.2820207476615906,
-0.1826476752758026,
-0.19065839052200317,
-0.040247343480587006,
0.3351084887981415,
-0.4386787414550781,
0.06292536109685898,
0.001751862931996584,
0.10898485779762268,
-0.08319626748561859,
0.08663810789585114,
0.18548932671546936,
-0.3316167891025543,
-0.049714602530002594,
-0.5123910307884216,
-0.4241810739040375,
0.06170620024204254,
-0.18542689085006714,
0.09276652336120605,
0.18523985147476196,
-0.09049089252948761,
-0.07506167888641357,
0.14243586361408234,
-0.32714104652404785,
0.16791468858718872,
-0.4357072114944458,
0.09707071632146835,
0.0867011621594429,
-0.09133102744817734,
0.026114340871572495,
0.005610539577901363,
0.21337789297103882,
0.15860755741596222,
-0.171659454703331,
-0.2343904674053192,
-0.20156769454479218,
0.12740997970104218,
-0.16386008262634277,
0.002335618482902646,
0.015065173618495464,
0.03916184604167938,
-0.15149836242198944,
-0.20102229714393616,
0.10950589179992676,
0.15156787633895874,
0.02977711707353592,
-0.08934350311756134,
-0.12836644053459167,
0.07940542697906494,
-0.23030324280261993,
0.2807930111885071,
-0.029716335237026215,
0.08507509529590607,
0.07383839786052704,
0.18052035570144653,
-0.08656124770641327,
-0.07372744381427765,
-0.29524603486061096,
-0.031328193843364716,
-0.0808861255645752,
0.12756875157356262,
0.2736901342868805,
-0.290722131729126,
-0.17488326132297516,
0.2719106078147888,
0.24622386693954468,
0.3950810730457306,
-0.12022412568330765,
0.12723703682422638,
0.2753770649433136,
0.19722811877727509,
-0.3205418586730957,
-0.15851172804832458,
0.24820531904697418,
-0.1605398803949356,
0.07037577033042908,
0.2588651478290558,
-0.00535380095243454,
-0.1616201102733612,
0.041674625128507614,
0.10956152528524399,
0.3554963767528534,
-0.12862764298915863,
0.1150352954864502,
-0.10558187961578369,
-0.003898017108440399,
-0.15380993485450745,
0.06623392552137375,
0.041853561997413635,
0.23283150792121887,
0.7362141609191895,
-0.1257958710193634,
0.10409823060035706,
-0.4056333899497986,
0.16324380040168762,
-0.04871252924203873,
-0.6907134652137756,
0.16365425288677216,
0.3751075565814972,
-0.20041847229003906,
0.0376649871468544,
-0.20025157928466797,
0.4359367787837982,
-0.45883700251579285,
-0.030442390590906143,
-0.18290744721889496,
0.12195241451263428,
-0.20527267456054688,
-0.01443957444280386,
0.14588238298892975,
-0.12422703206539154,
-0.27284854650497437,
-0.04812086746096611,
-0.028760861605405807,
-0.19886349141597748,
0.3789031505584717,
0.10701113939285278,
-0.2630305290222168,
-0.2015574872493744,
0.13570654392242432,
0.16990956664085388,
0.2180938720703125,
-0.35746753215789795,
0.24788717925548553,
-0.07798747718334198,
-0.08207859098911285,
0.12990303337574005,
0.17357076704502106,
0.5013978481292725,
0.2809218168258667,
0.07079752534627914,
0.21742330491542816,
0.02298208326101303,
-0.12850436568260193,
-0.22208315134048462,
0.25000524520874023,
0.015539377927780151,
0.3395392596721649,
0.20718416571617126,
0.16226379573345184,
-0.14378510415554047,
-0.08357375860214233,
0.16110625863075256,
0.23019792139530182,
-0.22403717041015625,
0.5022643804550171,
-0.38987115025520325,
-0.28497999906539917,
-0.2181779146194458,
0.13649503886699677,
-0.5349041223526001,
0.06492600589990616,
0.08667957782745361,
0.19922974705696106,
0.2909304201602936,
-0.2516125738620758,
0.11084899306297302,
-0.04592977091670036,
0.35625317692756653,
0.1658024787902832,
0.06480507552623749,
-0.24559423327445984,
-0.24771833419799805,
-0.7577747106552124,
0.2465134859085083,
-0.07879966497421265,
-0.08164077252149582,
0.1872541904449463,
0.1978062391281128,
-0.2379465401172638,
-0.05198267847299576,
-0.0008519887924194336,
0.0256337933242321,
0.3602199852466583,
0.11298628151416779,
-0.3824445903301239,
-0.1387328952550888,
0.07827437669038773,
-0.04929596185684204,
0.054491154849529266,
-0.3725680410861969,
0.12635847926139832,
-0.5079923272132874,
0.03510073572397232,
0.09880748391151428,
-0.164186030626297,
0.19691379368305206,
0.07053319364786148,
0.4982854723930359,
-0.03769230842590332,
0.30457356572151184,
0.017374899238348007,
-0.15676163136959076,
-0.6732810735702515,
-0.06736397743225098,
-0.13940605521202087,
0.3545389473438263,
0.1344243735074997,
0.3404390215873718,
-0.2917603552341461,
-0.059491995722055435,
-0.2812422215938568,
0.255452424287796,
0.14459984004497528,
0.0735233947634697,
-0.007847674190998077,
0.012681622058153152,
-0.1204613745212555,
0.16743727028369904,
0.21540948748588562,
0.08348153531551361,
-0.012749910354614258,
-0.043704673647880554,
-0.3620734214782715,
-0.480934202671051,
0.7215983271598816,
-0.04050960764288902,
-0.16851365566253662,
-0.21625550091266632,
0.41002848744392395,
0.16133946180343628,
-0.21206530928611755,
-0.3983768820762634,
0.16473457217216492,
0.5024669170379639,
0.1383819580078125,
-0.22453011572360992,
0.09063197672367096,
-0.2353195697069168,
-0.008367501199245453,
-0.09517897665500641,
0.039505213499069214,
-0.02666202187538147,
-0.11842931807041168,
0.3332894742488861,
-0.15598000586032867
] |
https://github.com/huggingface/datasets/issues/2746 | Cannot load `few-nerd` dataset | Thank you @albertvillanova for your detailed feedback!
> no need to pass explicitly `name=`
Good catch! I thought `split` stands before `name` in the argument list... but now it is all clear to me, sounds cool! Thanks for the explanation.
Anyways in our old code it still looks bit confusing if we only want one split but the function downloads all, so to allow efficient downloading, I optimized the code a bit so that only the specified split data is downloaded. now we get
```
>>> x = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading and preparing dataset few_nerd/supervised to /home/user/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/8e7ab598946cd5b395dcec6ea239123c8dff5b58b8e1c03b0c595b540248a885...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 14.6M/14.6M [01:01<00:00, 238kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3359329/3359329 [00:12<00:00, 275462.84it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 482037/482037 [00:01<00:00, 278633.64it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 958765/958765 [00:03<00:00, 267472.83it/s]
Dataset few_nerd downloaded and prepared to /home/user/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/8e7ab598946cd5b395dcec6ea239123c8dff5b58b8e1c03b0c595b540248a885. Subsequent calls will reuse this data.
```
where only one progress bar indicates downloading, and the three others just indicate pre-processing for the train, dev, test set.
For the encoding issue, I have made corresponding changes for the two lines you pointed out. However, I have no windows machine at hand, I would really appreciate it if you could help test on your end.
All the updates are uploaded to HF under `dfki-nlp` account where I am working for.
Thank you again for your kind help!
| ## Describe the bug
Cannot load `few-nerd` dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset('few-nerd', 'supervised')
```
## Actual results
Executing above code will give the following error:
```
Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError).
Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53...
Traceback (most recent call last):
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split
disable=bool(logging.get_verbosity() == logging.NOTSET),
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples
with open(filepath, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json'
```
The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Python version: 3.8
- PyArrow version: 1.0.1
| 207 | Cannot load `few-nerd` dataset
## Describe the bug
Cannot load `few-nerd` dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset('few-nerd', 'supervised')
```
## Actual results
Executing above code will give the following error:
```
Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError).
Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53...
Traceback (most recent call last):
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split
disable=bool(logging.get_verbosity() == logging.NOTSET),
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples
with open(filepath, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json'
```
The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Python version: 3.8
- PyArrow version: 1.0.1
Thank you @albertvillanova for your detailed feedback!
> no need to pass explicitly `name=`
Good catch! I thought `split` stands before `name` in the argument list... but now it is all clear to me, sounds cool! Thanks for the explanation.
Anyways in our old code it still looks bit confusing if we only want one split but the function downloads all, so to allow efficient downloading, I optimized the code a bit so that only the specified split data is downloaded. now we get
```
>>> x = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading and preparing dataset few_nerd/supervised to /home/user/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/8e7ab598946cd5b395dcec6ea239123c8dff5b58b8e1c03b0c595b540248a885...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 14.6M/14.6M [01:01<00:00, 238kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3359329/3359329 [00:12<00:00, 275462.84it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 482037/482037 [00:01<00:00, 278633.64it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 958765/958765 [00:03<00:00, 267472.83it/s]
Dataset few_nerd downloaded and prepared to /home/user/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/8e7ab598946cd5b395dcec6ea239123c8dff5b58b8e1c03b0c595b540248a885. Subsequent calls will reuse this data.
```
where only one progress bar indicates downloading, and the three others just indicate pre-processing for the train, dev, test set.
For the encoding issue, I have made corresponding changes for the two lines you pointed out. However, I have no windows machine at hand, I would really appreciate it if you could help test on your end.
All the updates are uploaded to HF under `dfki-nlp` account where I am working for.
Thank you again for your kind help!
| [
-0.3042268753051758,
-0.0985620766878128,
0.007841698825359344,
0.5131357908248901,
0.32854580879211426,
-0.05764244124293327,
0.5201519131660461,
0.25530123710632324,
0.19915753602981567,
0.16810859739780426,
-0.46047765016555786,
-0.09104873239994049,
-0.2877759635448456,
-0.29707515239715576,
0.4347800314426422,
0.032002195715904236,
-0.025188200175762177,
-0.03495541214942932,
0.11196117103099823,
0.008438542485237122,
-0.22572878003120422,
0.23624102771282196,
-0.24531437456607819,
0.07277631759643555,
-0.4190008044242859,
-0.05495668202638626,
0.08892059326171875,
0.4892739951610565,
-0.07197584211826324,
-0.62960284948349,
0.46047306060791016,
0.01438959687948227,
0.21815147995948792,
0.42350149154663086,
-0.00010919940541498363,
0.14418469369411469,
0.418992817401886,
-0.01926589012145996,
-0.2884248197078705,
-0.3601105809211731,
0.09408397227525711,
-0.5144336223602295,
0.12333309650421143,
-0.26080238819122314,
-0.4063475430011749,
0.023619351908564568,
0.12173684686422348,
-0.2709340453147888,
0.4901699423789978,
0.4886866509914398,
0.28849053382873535,
0.13091348111629486,
-0.016008947044610977,
-0.3164564371109009,
0.4296737015247345,
0.06754808872938156,
-0.16129539906978607,
0.2777443826198578,
0.34329754114151,
-0.004307579714804888,
-0.03633622080087662,
0.030621234327554703,
-0.04575895518064499,
-0.12311683595180511,
0.3901320993900299,
0.0024618301540613174,
-0.1256731152534485,
-0.21260026097297668,
0.12963241338729858,
0.4381469190120697,
0.20645134150981903,
-0.2134825587272644,
-0.23281846940517426,
-0.19297972321510315,
0.0738779678940773,
-0.18197862803936005,
0.16543430089950562,
0.03191940486431122,
-0.19126270711421967,
0.07417873293161392,
-0.026206716895103455,
-0.06306792050600052,
-0.17226162552833557,
0.14239762723445892,
-0.11044079810380936,
0.1547156572341919,
-0.1506495624780655,
0.031456414610147476,
-0.1483335793018341,
-0.09897683560848236,
-0.22030220925807953,
0.15393251180648804,
-0.033129993826150894,
0.28425711393356323,
-0.35298043489456177,
0.16926421225070953,
0.09687565267086029,
0.3016737699508667,
0.2464154064655304,
0.3468019366264343,
-0.0859934613108635,
-0.011231016367673874,
-0.03136638551950455,
0.1054864451289177,
0.053956471383571625,
0.15501359105110168,
0.3106101453304291,
0.17096886038780212,
0.28037479519844055,
0.4544358551502228,
-0.09400677680969238,
0.024950578808784485,
-0.2067873775959015,
-0.16535523533821106,
0.04439761862158775,
0.035936009138822556,
0.32793039083480835,
-0.23393996059894562,
-0.4098479747772217,
0.15341466665267944,
0.22092145681381226,
0.0887862965464592,
0.2583984136581421,
0.48303258419036865,
-0.23615147173404694,
-0.001351088285446167,
-0.006440456956624985,
0.025530245155096054,
-0.15113568305969238,
-0.17565694451332092,
-0.3392072319984436,
0.1940043419599533,
-0.0808146595954895,
0.012704158201813698,
0.32547467947006226,
-0.12321868538856506,
0.3092907667160034,
-0.15285257995128632,
-0.0015990212559700012,
-0.12322021275758743,
-0.11052707582712173,
-0.18697455525398254,
-0.09991427510976791,
0.20512665808200836,
-0.07003489881753922,
0.08784279972314835,
0.11722789704799652,
-0.31992948055267334,
-0.2411324679851532,
-0.1124534085392952,
-0.12702807784080505,
-0.3474442660808563,
-0.09379015862941742,
0.22819755971431732,
-0.2979831099510193,
0.132142573595047,
-0.06710580736398697,
0.043678510934114456,
0.07646840065717697,
-0.2537541687488556,
-0.12407698482275009,
-0.14020894467830658,
-0.4273742139339447,
-0.37671732902526855,
0.6006534099578857,
0.6969176530838013,
-0.2007523775100708,
-0.15088945627212524,
-0.5498253703117371,
-0.3447904884815216,
0.10598721355199814,
0.3750482499599457,
-0.2740000784397125,
0.15059557557106018,
-0.28501105308532715,
0.31596601009368896,
0.31387096643447876,
-0.43218302726745605,
-0.4340069890022278,
0.26315757632255554,
-0.22920945286750793,
0.4060317277908325,
-0.08423332124948502,
0.08582841604948044,
0.12121883034706116,
-0.10925247520208359,
0.3998248279094696,
0.4777017831802368,
0.02038121223449707,
-0.1821039915084839,
-0.258134126663208,
-0.1423347145318985,
0.10623663663864136,
0.1785903126001358,
0.263388067483902,
0.07876648008823395,
0.15481895208358765,
0.0659920945763588,
0.23266685009002686,
0.20802529156208038,
0.06240074336528778,
0.1595209836959839,
0.27241644263267517,
0.2057398408651352,
0.03339940682053566,
-0.48205435276031494,
-0.6707286834716797,
0.4395003914833069,
-0.16123253107070923,
-0.04765603691339493,
-0.16906602680683136,
-0.15814204514026642,
-0.41998034715652466,
0.02988371066749096,
-0.09874089062213898,
-0.25918370485305786,
0.17976409196853638,
0.21512705087661743,
0.21173924207687378,
0.07787682116031647,
-0.2501819133758545,
0.514994740486145,
0.05651349574327469,
0.06299735605716705,
-0.38229280710220337,
0.13057133555412292,
-0.12412825971841812,
-0.11037485301494598,
-0.11856509745121002,
0.35055485367774963,
0.23129692673683167,
-0.1851249635219574,
0.0676199197769165,
0.5000385642051697,
0.004435783252120018,
-0.17402876913547516,
-0.09065040200948715,
-0.43096911907196045,
0.039616286754608154,
-0.10435614734888077,
0.13482576608657837,
0.21534030139446259,
0.1075613871216774,
-0.051124557852745056,
0.10821916162967682,
0.3727991580963135,
0.035498131066560745,
0.22966235876083374,
0.028825461864471436,
-0.0013956278562545776,
0.18316015601158142,
0.07648511230945587,
0.15747450292110443,
-0.2301814705133438,
0.4892827272415161,
0.2627515196800232,
0.1726311892271042,
0.20779095590114594,
-0.20140117406845093,
-0.011708490550518036,
0.0858461931347847,
-0.04872936010360718,
0.05443672090768814,
0.29456648230552673,
-0.15104824304580688,
-0.04727262258529663,
0.05687855929136276,
0.369747132062912,
0.3691948652267456,
0.17099320888519287,
-0.026174601167440414,
0.09651397168636322,
-0.031438134610652924,
-0.06916867196559906,
0.12804147601127625,
0.051660217344760895,
0.08107034116983414,
0.2116551697254181,
0.06955748051404953,
0.19703124463558197,
-0.267009437084198,
-0.25613608956336975,
-0.051768891513347626,
0.3250853717327118,
-0.3932228088378906,
0.17412234842777252,
-0.20714277029037476,
-0.12513864040374756,
-0.04952651262283325,
0.0053801159374415874,
-0.46053510904312134,
-0.07695730775594711,
0.05033772811293602,
0.11067913472652435,
0.2267705202102661,
0.18335038423538208,
-0.12672017514705658,
0.18520592153072357,
-0.3189341723918915,
0.05701998621225357,
-0.2792578339576721,
0.00033419858664274216,
-0.3292349874973297,
0.07639415562152863,
0.3980509638786316,
-0.03899135813117027,
0.3228530287742615,
-0.21945607662200928,
-0.2569386065006256,
-0.19214124977588654,
-0.046326324343681335,
-0.18390652537345886,
0.08179284632205963,
0.657914400100708,
0.18810981512069702,
0.24808025360107422,
-0.05740751326084137,
-0.12801393866539001,
0.3673250377178192,
-0.3022804260253906,
-0.1845695525407791,
0.02973330393433571,
-0.10683830827474594,
0.08714993298053741,
-0.1282040923833847,
-0.3432546555995941,
-0.6057454943656921,
-0.4530195891857147,
0.30964142084121704,
0.14875027537345886,
0.18592923879623413,
0.3676002621650696,
-0.11636427789926529,
0.09203880280256271,
-0.04855632036924362,
0.20060934126377106,
-0.14842946827411652,
-0.274638831615448,
0.28294482827186584,
-0.4200582206249237,
-0.3737151026725769,
-0.11029688268899918,
0.05876322090625763,
0.03547855466604233,
0.08255086839199066,
-0.4535485506057739,
0.3604625165462494,
-0.13241109251976013,
0.0797710120677948,
-0.13276247680187225,
-0.06034039705991745,
0.06864597648382187,
-0.12212488800287247,
-0.0532962828874588,
0.04173858463764191,
-0.11695705354213715,
0.01338496059179306,
-0.2853541672229767,
0.05616448447108269,
-0.06364835798740387,
0.3072238862514496,
-0.0019498877227306366,
0.49644923210144043,
0.05808272585272789,
-0.10582089424133301,
0.28917327523231506,
-0.08743148297071457,
0.46046486496925354,
-0.18769484758377075,
-0.43734580278396606,
0.22594359517097473,
0.0792093276977539,
0.10210025310516357,
0.17295247316360474,
0.03608857840299606,
-0.047460876405239105,
-0.19868463277816772,
-0.13814447820186615,
-0.17180916666984558,
-0.1961095631122589,
0.14201340079307556,
-0.14239488542079926,
-0.0142822265625,
0.08183993399143219,
0.07586238533258438,
-0.14042015373706818,
-0.2760430574417114,
-0.13736076653003693,
0.27245622873306274,
0.11311358958482742,
0.15117429196834564,
-0.3932623267173767,
0.10200231522321701,
-0.3729318380355835,
0.31290173530578613,
0.04801354557275772,
0.24153965711593628,
-0.16636541485786438,
-0.011400623247027397,
0.14935636520385742,
-0.06880327314138412,
0.5504927039146423,
-0.15153154730796814,
0.2541806101799011,
0.33670151233673096,
0.12862315773963928,
-0.7504606246948242,
-0.06628070771694183,
0.02336806431412697,
0.32949668169021606,
0.2464180290699005,
0.4543986916542053,
-0.25052610039711,
-0.1369055062532425,
0.2337838113307953,
0.295923113822937,
-0.14329375326633453,
-0.22812014818191528,
-0.21883870661258698,
-0.1805827021598816,
-0.22029021382331848,
-0.18291977047920227,
-0.01829291507601738,
0.2696569561958313,
-0.06754409521818161,
-0.029205868020653725,
-0.15274108946323395,
0.1380235254764557,
0.17423829436302185,
-0.10388757288455963,
0.3798682391643524,
-0.06276705861091614,
0.3176010549068451,
0.16411957144737244,
0.1555960774421692,
0.08964499831199646,
0.37139037251472473,
-0.13479025661945343,
-0.18647387623786926,
-0.043362200260162354,
0.30789870023727417,
-0.018206574022769928,
0.2944710850715637,
-0.18343816697597504,
0.0559392012655735,
0.23392048478126526,
0.08784124255180359,
-0.008850676007568836,
0.14891889691352844,
0.19920440018177032,
-0.16555781662464142,
-0.1703936904668808,
-0.35705411434173584,
0.4624355435371399,
0.18360143899917603,
0.16305314004421234,
0.08637720346450806,
0.1469561755657196,
-0.14348092675209045,
0.060928478837013245,
-0.0672203078866005,
0.8010350465774536,
-0.19228030741214752,
0.21928907930850983,
0.0859910324215889,
-0.017742004245519638,
0.7876720428466797,
-0.29831063747406006,
0.03267522156238556,
-0.4788472652435303,
-0.1975041925907135,
0.0700770914554596,
-0.05454828590154648,
0.03878841549158096,
0.14489591121673584,
-0.09474640339612961,
0.19317950308322906,
-0.22540804743766785,
-0.15336717665195465,
-0.004276633262634277,
0.11447842419147491,
0.0007141754031181335,
-0.197351336479187,
-0.15701109170913696,
0.13645532727241516,
-0.19904093444347382,
0.2564725875854492,
-0.053149618208408356,
0.1679505854845047,
-0.17424657940864563,
-0.15749655663967133,
-0.35622936487197876,
0.0992632582783699,
-0.26881474256515503,
0.42655515670776367,
0.3584543764591217,
-0.4234374165534973,
0.07140983641147614,
0.26430803537368774,
0.08982023596763611,
0.15718792378902435,
-0.12246504426002502,
0.23398734629154205,
-0.03810439258813858,
-0.13986709713935852,
0.15868037939071655,
0.08001185208559036,
0.44580745697021484,
-0.04808197170495987,
-0.25897017121315,
-0.0948806181550026,
-0.1892417073249817,
-0.1625116765499115,
0.04113885760307312,
0.12506890296936035,
-0.0068883150815963745,
-0.1418985277414322,
-0.22206920385360718,
-0.19774582982063293,
0.24855205416679382,
-0.27181529998779297,
0.16379986703395844,
0.32826608419418335,
-0.29380789399147034,
-0.0524127259850502,
-0.03415850177407265,
-0.19177699089050293,
0.0028741173446178436,
0.49088042974472046,
0.011454999446868896,
-0.06321325153112411,
0.2723681330680847,
0.2820207476615906,
-0.1826476752758026,
-0.19065839052200317,
-0.040247343480587006,
0.3351084887981415,
-0.4386787414550781,
0.06292536109685898,
0.001751862931996584,
0.10898485779762268,
-0.08319626748561859,
0.08663810789585114,
0.18548932671546936,
-0.3316167891025543,
-0.049714602530002594,
-0.5123910307884216,
-0.4241810739040375,
0.06170620024204254,
-0.18542689085006714,
0.09276652336120605,
0.18523985147476196,
-0.09049089252948761,
-0.07506167888641357,
0.14243586361408234,
-0.32714104652404785,
0.16791468858718872,
-0.4357072114944458,
0.09707071632146835,
0.0867011621594429,
-0.09133102744817734,
0.026114340871572495,
0.005610539577901363,
0.21337789297103882,
0.15860755741596222,
-0.171659454703331,
-0.2343904674053192,
-0.20156769454479218,
0.12740997970104218,
-0.16386008262634277,
0.002335618482902646,
0.015065173618495464,
0.03916184604167938,
-0.15149836242198944,
-0.20102229714393616,
0.10950589179992676,
0.15156787633895874,
0.02977711707353592,
-0.08934350311756134,
-0.12836644053459167,
0.07940542697906494,
-0.23030324280261993,
0.2807930111885071,
-0.029716335237026215,
0.08507509529590607,
0.07383839786052704,
0.18052035570144653,
-0.08656124770641327,
-0.07372744381427765,
-0.29524603486061096,
-0.031328193843364716,
-0.0808861255645752,
0.12756875157356262,
0.2736901342868805,
-0.290722131729126,
-0.17488326132297516,
0.2719106078147888,
0.24622386693954468,
0.3950810730457306,
-0.12022412568330765,
0.12723703682422638,
0.2753770649433136,
0.19722811877727509,
-0.3205418586730957,
-0.15851172804832458,
0.24820531904697418,
-0.1605398803949356,
0.07037577033042908,
0.2588651478290558,
-0.00535380095243454,
-0.1616201102733612,
0.041674625128507614,
0.10956152528524399,
0.3554963767528534,
-0.12862764298915863,
0.1150352954864502,
-0.10558187961578369,
-0.003898017108440399,
-0.15380993485450745,
0.06623392552137375,
0.041853561997413635,
0.23283150792121887,
0.7362141609191895,
-0.1257958710193634,
0.10409823060035706,
-0.4056333899497986,
0.16324380040168762,
-0.04871252924203873,
-0.6907134652137756,
0.16365425288677216,
0.3751075565814972,
-0.20041847229003906,
0.0376649871468544,
-0.20025157928466797,
0.4359367787837982,
-0.45883700251579285,
-0.030442390590906143,
-0.18290744721889496,
0.12195241451263428,
-0.20527267456054688,
-0.01443957444280386,
0.14588238298892975,
-0.12422703206539154,
-0.27284854650497437,
-0.04812086746096611,
-0.028760861605405807,
-0.19886349141597748,
0.3789031505584717,
0.10701113939285278,
-0.2630305290222168,
-0.2015574872493744,
0.13570654392242432,
0.16990956664085388,
0.2180938720703125,
-0.35746753215789795,
0.24788717925548553,
-0.07798747718334198,
-0.08207859098911285,
0.12990303337574005,
0.17357076704502106,
0.5013978481292725,
0.2809218168258667,
0.07079752534627914,
0.21742330491542816,
0.02298208326101303,
-0.12850436568260193,
-0.22208315134048462,
0.25000524520874023,
0.015539377927780151,
0.3395392596721649,
0.20718416571617126,
0.16226379573345184,
-0.14378510415554047,
-0.08357375860214233,
0.16110625863075256,
0.23019792139530182,
-0.22403717041015625,
0.5022643804550171,
-0.38987115025520325,
-0.28497999906539917,
-0.2181779146194458,
0.13649503886699677,
-0.5349041223526001,
0.06492600589990616,
0.08667957782745361,
0.19922974705696106,
0.2909304201602936,
-0.2516125738620758,
0.11084899306297302,
-0.04592977091670036,
0.35625317692756653,
0.1658024787902832,
0.06480507552623749,
-0.24559423327445984,
-0.24771833419799805,
-0.7577747106552124,
0.2465134859085083,
-0.07879966497421265,
-0.08164077252149582,
0.1872541904449463,
0.1978062391281128,
-0.2379465401172638,
-0.05198267847299576,
-0.0008519887924194336,
0.0256337933242321,
0.3602199852466583,
0.11298628151416779,
-0.3824445903301239,
-0.1387328952550888,
0.07827437669038773,
-0.04929596185684204,
0.054491154849529266,
-0.3725680410861969,
0.12635847926139832,
-0.5079923272132874,
0.03510073572397232,
0.09880748391151428,
-0.164186030626297,
0.19691379368305206,
0.07053319364786148,
0.4982854723930359,
-0.03769230842590332,
0.30457356572151184,
0.017374899238348007,
-0.15676163136959076,
-0.6732810735702515,
-0.06736397743225098,
-0.13940605521202087,
0.3545389473438263,
0.1344243735074997,
0.3404390215873718,
-0.2917603552341461,
-0.059491995722055435,
-0.2812422215938568,
0.255452424287796,
0.14459984004497528,
0.0735233947634697,
-0.007847674190998077,
0.012681622058153152,
-0.1204613745212555,
0.16743727028369904,
0.21540948748588562,
0.08348153531551361,
-0.012749910354614258,
-0.043704673647880554,
-0.3620734214782715,
-0.480934202671051,
0.7215983271598816,
-0.04050960764288902,
-0.16851365566253662,
-0.21625550091266632,
0.41002848744392395,
0.16133946180343628,
-0.21206530928611755,
-0.3983768820762634,
0.16473457217216492,
0.5024669170379639,
0.1383819580078125,
-0.22453011572360992,
0.09063197672367096,
-0.2353195697069168,
-0.008367501199245453,
-0.09517897665500641,
0.039505213499069214,
-0.02666202187538147,
-0.11842931807041168,
0.3332894742488861,
-0.15598000586032867
] |
https://github.com/huggingface/datasets/issues/2746 | Cannot load `few-nerd` dataset | Hi @chen-yuxuan,
I have tested on Windows and now it works perfectly, after the fixing of the encoding issue:
```python
In [1]: from datasets import load_dataset
In [2]: ds = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 11.5k/11.5k [00:00<?, ?B/s]
Downloading and preparing dataset few_nerd/supervised to C:\Users\username\.cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e1ceeaee82073fea12206e4461c7cfcd67e68c8f3ebeca179bddcacee00c4511...
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3359329/3359329 [00:25<00:00, 129427.23it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 482037/482037 [00:03<00:00, 134513.66it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 958765/958765 [00:06<00:00, 143152.35it/s]
Dataset few_nerd downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e1ceeaee82073fea12206e4461c7cfcd67e68c8f3ebeca179bddcacee00c4511. Subsequent calls will reuse this data.765 [00:06<00:00, 139045.03it/s]
100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 174.71it/s]
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 131767
})
validation: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 18824
})
test: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 37648
})
})
``` | ## Describe the bug
Cannot load `few-nerd` dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset('few-nerd', 'supervised')
```
## Actual results
Executing above code will give the following error:
```
Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError).
Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53...
Traceback (most recent call last):
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split
disable=bool(logging.get_verbosity() == logging.NOTSET),
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples
with open(filepath, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json'
```
The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Python version: 3.8
- PyArrow version: 1.0.1
| 112 | Cannot load `few-nerd` dataset
## Describe the bug
Cannot load `few-nerd` dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset('few-nerd', 'supervised')
```
## Actual results
Executing above code will give the following error:
```
Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError).
Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53...
Traceback (most recent call last):
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split
disable=bool(logging.get_verbosity() == logging.NOTSET),
File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples
with open(filepath, encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json'
```
The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Python version: 3.8
- PyArrow version: 1.0.1
Hi @chen-yuxuan,
I have tested on Windows and now it works perfectly, after the fixing of the encoding issue:
```python
In [1]: from datasets import load_dataset
In [2]: ds = load_dataset("dfki-nlp/few-nerd", "supervised")
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 11.5k/11.5k [00:00<?, ?B/s]
Downloading and preparing dataset few_nerd/supervised to C:\Users\username\.cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e1ceeaee82073fea12206e4461c7cfcd67e68c8f3ebeca179bddcacee00c4511...
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3359329/3359329 [00:25<00:00, 129427.23it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 482037/482037 [00:03<00:00, 134513.66it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 958765/958765 [00:06<00:00, 143152.35it/s]
Dataset few_nerd downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\dfki-nlp___few_nerd\supervised\0.0.0\e1ceeaee82073fea12206e4461c7cfcd67e68c8f3ebeca179bddcacee00c4511. Subsequent calls will reuse this data.765 [00:06<00:00, 139045.03it/s]
100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 174.71it/s]
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 131767
})
validation: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 18824
})
test: Dataset({
features: ['id', 'tokens', 'ner_tags', 'fine_ner_tags'],
num_rows: 37648
})
})
``` | [
-0.3042268753051758,
-0.0985620766878128,
0.007841698825359344,
0.5131357908248901,
0.32854580879211426,
-0.05764244124293327,
0.5201519131660461,
0.25530123710632324,
0.19915753602981567,
0.16810859739780426,
-0.46047765016555786,
-0.09104873239994049,
-0.2877759635448456,
-0.29707515239715576,
0.4347800314426422,
0.032002195715904236,
-0.025188200175762177,
-0.03495541214942932,
0.11196117103099823,
0.008438542485237122,
-0.22572878003120422,
0.23624102771282196,
-0.24531437456607819,
0.07277631759643555,
-0.4190008044242859,
-0.05495668202638626,
0.08892059326171875,
0.4892739951610565,
-0.07197584211826324,
-0.62960284948349,
0.46047306060791016,
0.01438959687948227,
0.21815147995948792,
0.42350149154663086,
-0.00010919940541498363,
0.14418469369411469,
0.418992817401886,
-0.01926589012145996,
-0.2884248197078705,
-0.3601105809211731,
0.09408397227525711,
-0.5144336223602295,
0.12333309650421143,
-0.26080238819122314,
-0.4063475430011749,
0.023619351908564568,
0.12173684686422348,
-0.2709340453147888,
0.4901699423789978,
0.4886866509914398,
0.28849053382873535,
0.13091348111629486,
-0.016008947044610977,
-0.3164564371109009,
0.4296737015247345,
0.06754808872938156,
-0.16129539906978607,
0.2777443826198578,
0.34329754114151,
-0.004307579714804888,
-0.03633622080087662,
0.030621234327554703,
-0.04575895518064499,
-0.12311683595180511,
0.3901320993900299,
0.0024618301540613174,
-0.1256731152534485,
-0.21260026097297668,
0.12963241338729858,
0.4381469190120697,
0.20645134150981903,
-0.2134825587272644,
-0.23281846940517426,
-0.19297972321510315,
0.0738779678940773,
-0.18197862803936005,
0.16543430089950562,
0.03191940486431122,
-0.19126270711421967,
0.07417873293161392,
-0.026206716895103455,
-0.06306792050600052,
-0.17226162552833557,
0.14239762723445892,
-0.11044079810380936,
0.1547156572341919,
-0.1506495624780655,
0.031456414610147476,
-0.1483335793018341,
-0.09897683560848236,
-0.22030220925807953,
0.15393251180648804,
-0.033129993826150894,
0.28425711393356323,
-0.35298043489456177,
0.16926421225070953,
0.09687565267086029,
0.3016737699508667,
0.2464154064655304,
0.3468019366264343,
-0.0859934613108635,
-0.011231016367673874,
-0.03136638551950455,
0.1054864451289177,
0.053956471383571625,
0.15501359105110168,
0.3106101453304291,
0.17096886038780212,
0.28037479519844055,
0.4544358551502228,
-0.09400677680969238,
0.024950578808784485,
-0.2067873775959015,
-0.16535523533821106,
0.04439761862158775,
0.035936009138822556,
0.32793039083480835,
-0.23393996059894562,
-0.4098479747772217,
0.15341466665267944,
0.22092145681381226,
0.0887862965464592,
0.2583984136581421,
0.48303258419036865,
-0.23615147173404694,
-0.001351088285446167,
-0.006440456956624985,
0.025530245155096054,
-0.15113568305969238,
-0.17565694451332092,
-0.3392072319984436,
0.1940043419599533,
-0.0808146595954895,
0.012704158201813698,
0.32547467947006226,
-0.12321868538856506,
0.3092907667160034,
-0.15285257995128632,
-0.0015990212559700012,
-0.12322021275758743,
-0.11052707582712173,
-0.18697455525398254,
-0.09991427510976791,
0.20512665808200836,
-0.07003489881753922,
0.08784279972314835,
0.11722789704799652,
-0.31992948055267334,
-0.2411324679851532,
-0.1124534085392952,
-0.12702807784080505,
-0.3474442660808563,
-0.09379015862941742,
0.22819755971431732,
-0.2979831099510193,
0.132142573595047,
-0.06710580736398697,
0.043678510934114456,
0.07646840065717697,
-0.2537541687488556,
-0.12407698482275009,
-0.14020894467830658,
-0.4273742139339447,
-0.37671732902526855,
0.6006534099578857,
0.6969176530838013,
-0.2007523775100708,
-0.15088945627212524,
-0.5498253703117371,
-0.3447904884815216,
0.10598721355199814,
0.3750482499599457,
-0.2740000784397125,
0.15059557557106018,
-0.28501105308532715,
0.31596601009368896,
0.31387096643447876,
-0.43218302726745605,
-0.4340069890022278,
0.26315757632255554,
-0.22920945286750793,
0.4060317277908325,
-0.08423332124948502,
0.08582841604948044,
0.12121883034706116,
-0.10925247520208359,
0.3998248279094696,
0.4777017831802368,
0.02038121223449707,
-0.1821039915084839,
-0.258134126663208,
-0.1423347145318985,
0.10623663663864136,
0.1785903126001358,
0.263388067483902,
0.07876648008823395,
0.15481895208358765,
0.0659920945763588,
0.23266685009002686,
0.20802529156208038,
0.06240074336528778,
0.1595209836959839,
0.27241644263267517,
0.2057398408651352,
0.03339940682053566,
-0.48205435276031494,
-0.6707286834716797,
0.4395003914833069,
-0.16123253107070923,
-0.04765603691339493,
-0.16906602680683136,
-0.15814204514026642,
-0.41998034715652466,
0.02988371066749096,
-0.09874089062213898,
-0.25918370485305786,
0.17976409196853638,
0.21512705087661743,
0.21173924207687378,
0.07787682116031647,
-0.2501819133758545,
0.514994740486145,
0.05651349574327469,
0.06299735605716705,
-0.38229280710220337,
0.13057133555412292,
-0.12412825971841812,
-0.11037485301494598,
-0.11856509745121002,
0.35055485367774963,
0.23129692673683167,
-0.1851249635219574,
0.0676199197769165,
0.5000385642051697,
0.004435783252120018,
-0.17402876913547516,
-0.09065040200948715,
-0.43096911907196045,
0.039616286754608154,
-0.10435614734888077,
0.13482576608657837,
0.21534030139446259,
0.1075613871216774,
-0.051124557852745056,
0.10821916162967682,
0.3727991580963135,
0.035498131066560745,
0.22966235876083374,
0.028825461864471436,
-0.0013956278562545776,
0.18316015601158142,
0.07648511230945587,
0.15747450292110443,
-0.2301814705133438,
0.4892827272415161,
0.2627515196800232,
0.1726311892271042,
0.20779095590114594,
-0.20140117406845093,
-0.011708490550518036,
0.0858461931347847,
-0.04872936010360718,
0.05443672090768814,
0.29456648230552673,
-0.15104824304580688,
-0.04727262258529663,
0.05687855929136276,
0.369747132062912,
0.3691948652267456,
0.17099320888519287,
-0.026174601167440414,
0.09651397168636322,
-0.031438134610652924,
-0.06916867196559906,
0.12804147601127625,
0.051660217344760895,
0.08107034116983414,
0.2116551697254181,
0.06955748051404953,
0.19703124463558197,
-0.267009437084198,
-0.25613608956336975,
-0.051768891513347626,
0.3250853717327118,
-0.3932228088378906,
0.17412234842777252,
-0.20714277029037476,
-0.12513864040374756,
-0.04952651262283325,
0.0053801159374415874,
-0.46053510904312134,
-0.07695730775594711,
0.05033772811293602,
0.11067913472652435,
0.2267705202102661,
0.18335038423538208,
-0.12672017514705658,
0.18520592153072357,
-0.3189341723918915,
0.05701998621225357,
-0.2792578339576721,
0.00033419858664274216,
-0.3292349874973297,
0.07639415562152863,
0.3980509638786316,
-0.03899135813117027,
0.3228530287742615,
-0.21945607662200928,
-0.2569386065006256,
-0.19214124977588654,
-0.046326324343681335,
-0.18390652537345886,
0.08179284632205963,
0.657914400100708,
0.18810981512069702,
0.24808025360107422,
-0.05740751326084137,
-0.12801393866539001,
0.3673250377178192,
-0.3022804260253906,
-0.1845695525407791,
0.02973330393433571,
-0.10683830827474594,
0.08714993298053741,
-0.1282040923833847,
-0.3432546555995941,
-0.6057454943656921,
-0.4530195891857147,
0.30964142084121704,
0.14875027537345886,
0.18592923879623413,
0.3676002621650696,
-0.11636427789926529,
0.09203880280256271,
-0.04855632036924362,
0.20060934126377106,
-0.14842946827411652,
-0.274638831615448,
0.28294482827186584,
-0.4200582206249237,
-0.3737151026725769,
-0.11029688268899918,
0.05876322090625763,
0.03547855466604233,
0.08255086839199066,
-0.4535485506057739,
0.3604625165462494,
-0.13241109251976013,
0.0797710120677948,
-0.13276247680187225,
-0.06034039705991745,
0.06864597648382187,
-0.12212488800287247,
-0.0532962828874588,
0.04173858463764191,
-0.11695705354213715,
0.01338496059179306,
-0.2853541672229767,
0.05616448447108269,
-0.06364835798740387,
0.3072238862514496,
-0.0019498877227306366,
0.49644923210144043,
0.05808272585272789,
-0.10582089424133301,
0.28917327523231506,
-0.08743148297071457,
0.46046486496925354,
-0.18769484758377075,
-0.43734580278396606,
0.22594359517097473,
0.0792093276977539,
0.10210025310516357,
0.17295247316360474,
0.03608857840299606,
-0.047460876405239105,
-0.19868463277816772,
-0.13814447820186615,
-0.17180916666984558,
-0.1961095631122589,
0.14201340079307556,
-0.14239488542079926,
-0.0142822265625,
0.08183993399143219,
0.07586238533258438,
-0.14042015373706818,
-0.2760430574417114,
-0.13736076653003693,
0.27245622873306274,
0.11311358958482742,
0.15117429196834564,
-0.3932623267173767,
0.10200231522321701,
-0.3729318380355835,
0.31290173530578613,
0.04801354557275772,
0.24153965711593628,
-0.16636541485786438,
-0.011400623247027397,
0.14935636520385742,
-0.06880327314138412,
0.5504927039146423,
-0.15153154730796814,
0.2541806101799011,
0.33670151233673096,
0.12862315773963928,
-0.7504606246948242,
-0.06628070771694183,
0.02336806431412697,
0.32949668169021606,
0.2464180290699005,
0.4543986916542053,
-0.25052610039711,
-0.1369055062532425,
0.2337838113307953,
0.295923113822937,
-0.14329375326633453,
-0.22812014818191528,
-0.21883870661258698,
-0.1805827021598816,
-0.22029021382331848,
-0.18291977047920227,
-0.01829291507601738,
0.2696569561958313,
-0.06754409521818161,
-0.029205868020653725,
-0.15274108946323395,
0.1380235254764557,
0.17423829436302185,
-0.10388757288455963,
0.3798682391643524,
-0.06276705861091614,
0.3176010549068451,
0.16411957144737244,
0.1555960774421692,
0.08964499831199646,
0.37139037251472473,
-0.13479025661945343,
-0.18647387623786926,
-0.043362200260162354,
0.30789870023727417,
-0.018206574022769928,
0.2944710850715637,
-0.18343816697597504,
0.0559392012655735,
0.23392048478126526,
0.08784124255180359,
-0.008850676007568836,
0.14891889691352844,
0.19920440018177032,
-0.16555781662464142,
-0.1703936904668808,
-0.35705411434173584,
0.4624355435371399,
0.18360143899917603,
0.16305314004421234,
0.08637720346450806,
0.1469561755657196,
-0.14348092675209045,
0.060928478837013245,
-0.0672203078866005,
0.8010350465774536,
-0.19228030741214752,
0.21928907930850983,
0.0859910324215889,
-0.017742004245519638,
0.7876720428466797,
-0.29831063747406006,
0.03267522156238556,
-0.4788472652435303,
-0.1975041925907135,
0.0700770914554596,
-0.05454828590154648,
0.03878841549158096,
0.14489591121673584,
-0.09474640339612961,
0.19317950308322906,
-0.22540804743766785,
-0.15336717665195465,
-0.004276633262634277,
0.11447842419147491,
0.0007141754031181335,
-0.197351336479187,
-0.15701109170913696,
0.13645532727241516,
-0.19904093444347382,
0.2564725875854492,
-0.053149618208408356,
0.1679505854845047,
-0.17424657940864563,
-0.15749655663967133,
-0.35622936487197876,
0.0992632582783699,
-0.26881474256515503,
0.42655515670776367,
0.3584543764591217,
-0.4234374165534973,
0.07140983641147614,
0.26430803537368774,
0.08982023596763611,
0.15718792378902435,
-0.12246504426002502,
0.23398734629154205,
-0.03810439258813858,
-0.13986709713935852,
0.15868037939071655,
0.08001185208559036,
0.44580745697021484,
-0.04808197170495987,
-0.25897017121315,
-0.0948806181550026,
-0.1892417073249817,
-0.1625116765499115,
0.04113885760307312,
0.12506890296936035,
-0.0068883150815963745,
-0.1418985277414322,
-0.22206920385360718,
-0.19774582982063293,
0.24855205416679382,
-0.27181529998779297,
0.16379986703395844,
0.32826608419418335,
-0.29380789399147034,
-0.0524127259850502,
-0.03415850177407265,
-0.19177699089050293,
0.0028741173446178436,
0.49088042974472046,
0.011454999446868896,
-0.06321325153112411,
0.2723681330680847,
0.2820207476615906,
-0.1826476752758026,
-0.19065839052200317,
-0.040247343480587006,
0.3351084887981415,
-0.4386787414550781,
0.06292536109685898,
0.001751862931996584,
0.10898485779762268,
-0.08319626748561859,
0.08663810789585114,
0.18548932671546936,
-0.3316167891025543,
-0.049714602530002594,
-0.5123910307884216,
-0.4241810739040375,
0.06170620024204254,
-0.18542689085006714,
0.09276652336120605,
0.18523985147476196,
-0.09049089252948761,
-0.07506167888641357,
0.14243586361408234,
-0.32714104652404785,
0.16791468858718872,
-0.4357072114944458,
0.09707071632146835,
0.0867011621594429,
-0.09133102744817734,
0.026114340871572495,
0.005610539577901363,
0.21337789297103882,
0.15860755741596222,
-0.171659454703331,
-0.2343904674053192,
-0.20156769454479218,
0.12740997970104218,
-0.16386008262634277,
0.002335618482902646,
0.015065173618495464,
0.03916184604167938,
-0.15149836242198944,
-0.20102229714393616,
0.10950589179992676,
0.15156787633895874,
0.02977711707353592,
-0.08934350311756134,
-0.12836644053459167,
0.07940542697906494,
-0.23030324280261993,
0.2807930111885071,
-0.029716335237026215,
0.08507509529590607,
0.07383839786052704,
0.18052035570144653,
-0.08656124770641327,
-0.07372744381427765,
-0.29524603486061096,
-0.031328193843364716,
-0.0808861255645752,
0.12756875157356262,
0.2736901342868805,
-0.290722131729126,
-0.17488326132297516,
0.2719106078147888,
0.24622386693954468,
0.3950810730457306,
-0.12022412568330765,
0.12723703682422638,
0.2753770649433136,
0.19722811877727509,
-0.3205418586730957,
-0.15851172804832458,
0.24820531904697418,
-0.1605398803949356,
0.07037577033042908,
0.2588651478290558,
-0.00535380095243454,
-0.1616201102733612,
0.041674625128507614,
0.10956152528524399,
0.3554963767528534,
-0.12862764298915863,
0.1150352954864502,
-0.10558187961578369,
-0.003898017108440399,
-0.15380993485450745,
0.06623392552137375,
0.041853561997413635,
0.23283150792121887,
0.7362141609191895,
-0.1257958710193634,
0.10409823060035706,
-0.4056333899497986,
0.16324380040168762,
-0.04871252924203873,
-0.6907134652137756,
0.16365425288677216,
0.3751075565814972,
-0.20041847229003906,
0.0376649871468544,
-0.20025157928466797,
0.4359367787837982,
-0.45883700251579285,
-0.030442390590906143,
-0.18290744721889496,
0.12195241451263428,
-0.20527267456054688,
-0.01443957444280386,
0.14588238298892975,
-0.12422703206539154,
-0.27284854650497437,
-0.04812086746096611,
-0.028760861605405807,
-0.19886349141597748,
0.3789031505584717,
0.10701113939285278,
-0.2630305290222168,
-0.2015574872493744,
0.13570654392242432,
0.16990956664085388,
0.2180938720703125,
-0.35746753215789795,
0.24788717925548553,
-0.07798747718334198,
-0.08207859098911285,
0.12990303337574005,
0.17357076704502106,
0.5013978481292725,
0.2809218168258667,
0.07079752534627914,
0.21742330491542816,
0.02298208326101303,
-0.12850436568260193,
-0.22208315134048462,
0.25000524520874023,
0.015539377927780151,
0.3395392596721649,
0.20718416571617126,
0.16226379573345184,
-0.14378510415554047,
-0.08357375860214233,
0.16110625863075256,
0.23019792139530182,
-0.22403717041015625,
0.5022643804550171,
-0.38987115025520325,
-0.28497999906539917,
-0.2181779146194458,
0.13649503886699677,
-0.5349041223526001,
0.06492600589990616,
0.08667957782745361,
0.19922974705696106,
0.2909304201602936,
-0.2516125738620758,
0.11084899306297302,
-0.04592977091670036,
0.35625317692756653,
0.1658024787902832,
0.06480507552623749,
-0.24559423327445984,
-0.24771833419799805,
-0.7577747106552124,
0.2465134859085083,
-0.07879966497421265,
-0.08164077252149582,
0.1872541904449463,
0.1978062391281128,
-0.2379465401172638,
-0.05198267847299576,
-0.0008519887924194336,
0.0256337933242321,
0.3602199852466583,
0.11298628151416779,
-0.3824445903301239,
-0.1387328952550888,
0.07827437669038773,
-0.04929596185684204,
0.054491154849529266,
-0.3725680410861969,
0.12635847926139832,
-0.5079923272132874,
0.03510073572397232,
0.09880748391151428,
-0.164186030626297,
0.19691379368305206,
0.07053319364786148,
0.4982854723930359,
-0.03769230842590332,
0.30457356572151184,
0.017374899238348007,
-0.15676163136959076,
-0.6732810735702515,
-0.06736397743225098,
-0.13940605521202087,
0.3545389473438263,
0.1344243735074997,
0.3404390215873718,
-0.2917603552341461,
-0.059491995722055435,
-0.2812422215938568,
0.255452424287796,
0.14459984004497528,
0.0735233947634697,
-0.007847674190998077,
0.012681622058153152,
-0.1204613745212555,
0.16743727028369904,
0.21540948748588562,
0.08348153531551361,
-0.012749910354614258,
-0.043704673647880554,
-0.3620734214782715,
-0.480934202671051,
0.7215983271598816,
-0.04050960764288902,
-0.16851365566253662,
-0.21625550091266632,
0.41002848744392395,
0.16133946180343628,
-0.21206530928611755,
-0.3983768820762634,
0.16473457217216492,
0.5024669170379639,
0.1383819580078125,
-0.22453011572360992,
0.09063197672367096,
-0.2353195697069168,
-0.008367501199245453,
-0.09517897665500641,
0.039505213499069214,
-0.02666202187538147,
-0.11842931807041168,
0.3332894742488861,
-0.15598000586032867
] |
https://github.com/huggingface/datasets/issues/2743 | Dataset JSON is incorrect | As discussed, the metadata JSON files must be regenerated because the keys were nor properly generated and they will not be read by the builder:
> Indeed there is some problem/bug while reading the datasets_info.json file: there is a mismatch with the config.name keys in the file...
In the meanwhile, in order to be able to use the datasets_info.json file content, you can create the builder without passing the name :
```
In [25]: builder = datasets.load_dataset_builder("journalists_questions")
In [26]: builder.info.splits
Out[26]: {'train': SplitInfo(name='train', num_bytes=342296, num_examples=10077, dataset_name='journalists_questions')}
```
After regenerating the metadata JSON file for this dataset, I get the right key:
```
{"plain_text": {"description": "The journalists_questions corpus (
``` | ## Describe the bug
The JSON file generated for https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/journalists_questions.py is https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/dataset_infos.json.
The only config should be `plain_text`, but the first key in the JSON is `journalists_questions` (the dataset id) instead.
```json
{
"journalists_questions": {
"description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n",
...
```
## Steps to reproduce the bug
Look at the files.
## Expected results
The first key should be `plain_text`:
```json
{
"plain_text": {
"description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n",
...
```
## Actual results
```json
{
"journalists_questions": {
"description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n",
...
```
| 109 | Dataset JSON is incorrect
## Describe the bug
The JSON file generated for https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/journalists_questions.py is https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/dataset_infos.json.
The only config should be `plain_text`, but the first key in the JSON is `journalists_questions` (the dataset id) instead.
```json
{
"journalists_questions": {
"description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n",
...
```
## Steps to reproduce the bug
Look at the files.
## Expected results
The first key should be `plain_text`:
```json
{
"plain_text": {
"description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n",
...
```
## Actual results
```json
{
"journalists_questions": {
"description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n",
...
```
As discussed, the metadata JSON files must be regenerated because the keys were nor properly generated and they will not be read by the builder:
> Indeed there is some problem/bug while reading the datasets_info.json file: there is a mismatch with the config.name keys in the file...
In the meanwhile, in order to be able to use the datasets_info.json file content, you can create the builder without passing the name :
```
In [25]: builder = datasets.load_dataset_builder("journalists_questions")
In [26]: builder.info.splits
Out[26]: {'train': SplitInfo(name='train', num_bytes=342296, num_examples=10077, dataset_name='journalists_questions')}
```
After regenerating the metadata JSON file for this dataset, I get the right key:
```
{"plain_text": {"description": "The journalists_questions corpus (
``` | [
0.14578783512115479,
0.040142446756362915,
-0.05298928543925285,
0.47682249546051025,
0.1063421294093132,
0.22297215461730957,
0.15502513945102692,
0.3400086760520935,
-0.23909415304660797,
0.008226998150348663,
0.03579387068748474,
0.432131290435791,
0.09956885874271393,
0.13827404379844666,
-0.0019156141206622124,
-0.19086448848247528,
0.058264169842004776,
-0.040095239877700806,
0.05146792531013489,
0.013578556478023529,
-0.226053386926651,
0.4534672796726227,
-0.008611507713794708,
-0.003544449806213379,
-0.2412649542093277,
-0.08201388269662857,
-0.06301339715719223,
0.19751295447349548,
-0.19477930665016174,
-0.2986234128475189,
0.22381845116615295,
-0.0007778927683830261,
-0.2992434799671173,
0.4079238474369049,
-0.00010577696957625449,
0.11152443289756775,
0.31771719455718994,
-0.0546916164457798,
-0.27635273337364197,
-0.31266695261001587,
-0.11799808591604233,
-0.19957906007766724,
-0.18012313544750214,
-0.31080907583236694,
-0.2244890034198761,
-0.40728387236595154,
-0.035919398069381714,
-0.1976814568042755,
0.43391382694244385,
0.22547145187854767,
0.2889290153980255,
0.09397736191749573,
0.3655744791030884,
0.01386349555104971,
0.12348310649394989,
0.3481936454772949,
-0.09908632189035416,
0.1498706191778183,
-0.02610670030117035,
0.2428702712059021,
0.06186259537935257,
0.5340315103530884,
0.012138785794377327,
-0.1359422653913498,
0.3161492645740509,
-0.08813375979661942,
-0.1343109905719757,
-0.2345811128616333,
0.3665960133075714,
0.20393991470336914,
0.5051333904266357,
-0.3382622003555298,
-0.2950499355792999,
-0.35822832584381104,
-0.05403642728924751,
0.0441969558596611,
0.31745779514312744,
0.15737879276275635,
-0.08500291407108307,
0.22461894154548645,
-0.15652282536029816,
-0.12831878662109375,
-0.05858578160405159,
0.11865687370300293,
0.0848703682422638,
0.17726638913154602,
-0.16701696813106537,
0.1165412962436676,
-0.18105702102184296,
-0.2725033164024353,
-0.07296711951494217,
-0.30313077569007874,
-0.24345135688781738,
0.10572909563779831,
-0.14988470077514648,
-0.17405128479003906,
0.18403682112693787,
-0.12262337654829025,
0.35612058639526367,
0.019934814423322678,
-0.0834137499332428,
0.030259540304541588,
-0.1282668262720108,
0.07840899378061295,
0.2941548526287079,
0.06646697223186493,
0.28652891516685486,
0.10059107840061188,
0.0432855598628521,
0.30543655157089233,
-0.09574703872203827,
-0.015302285552024841,
0.2361127734184265,
-0.20297135412693024,
-0.01588815450668335,
-0.04552517086267471,
0.3907976746559143,
-0.10991030186414719,
-0.13034039735794067,
0.3161219656467438,
-0.3122199475765228,
-0.1377912163734436,
-0.08873818814754486,
0.3365532159805298,
-0.10416388511657715,
-0.1737518608570099,
0.05795569717884064,
0.15008772909641266,
-0.07597921788692474,
-0.10403703898191452,
-0.2383497655391693,
-0.06558182835578918,
-0.010633192956447601,
0.07400047034025192,
0.04879740998148918,
-0.31565600633621216,
0.5672345757484436,
0.10937382280826569,
-0.05475125461816788,
-0.40715083479881287,
0.08904712647199631,
0.07033748924732208,
0.018115073442459106,
0.20341338217258453,
-0.19533613324165344,
0.21216636896133423,
0.002976059913635254,
-0.25470709800720215,
-0.13805727660655975,
0.022487938404083252,
-0.35469964146614075,
-0.2375633865594864,
-0.1867230385541916,
0.2677465081214905,
-0.08651266992092133,
0.10172512382268906,
-0.18890726566314697,
0.28652632236480713,
0.2674296498298645,
-0.026643680408596992,
0.011200830340385437,
0.132513627409935,
0.030641984194517136,
-0.24729213118553162,
0.11749843508005142,
0.3622016906738281,
-0.20752201974391937,
-0.1408253014087677,
0.10551854223012924,
0.1386900097131729,
-0.021891869604587555,
0.016602663323283195,
-0.13780270516872406,
0.26209601759910583,
-0.20631049573421478,
0.15659496188163757,
-0.0173676535487175,
-0.35058799386024475,
-0.24325603246688843,
0.23920656740665436,
0.004756271839141846,
0.27487099170684814,
0.1912209689617157,
-0.05179906636476517,
-0.09623587876558304,
0.11350132524967194,
0.30981874465942383,
0.07920020073652267,
0.16094599664211273,
0.22215721011161804,
-0.2047823667526245,
-0.4019452929496765,
-0.08861871063709259,
0.0951184630393982,
-0.14133121073246002,
0.051355719566345215,
0.1474856734275818,
-0.043372299522161484,
0.3624110519886017,
-0.034561049193143845,
0.062100961804389954,
0.3707374930381775,
-0.04925129935145378,
-0.08979114890098572,
0.274554580450058,
-0.024421311914920807,
-0.5704759359359741,
0.118876613676548,
0.012450803071260452,
0.24953192472457886,
-0.25986796617507935,
-0.20709970593452454,
-0.3331194818019867,
-0.11661653220653534,
-0.31705889105796814,
-0.27109289169311523,
0.24384930729866028,
0.19824928045272827,
0.05826893076300621,
-0.0029128137975931168,
-0.11190403997898102,
-0.06828609108924866,
0.13458456099033356,
0.14858123660087585,
-0.8418688178062439,
0.04983968287706375,
-0.2129892110824585,
0.08041803538799286,
0.23501434922218323,
0.13209375739097595,
0.17853420972824097,
-0.15460637211799622,
-0.09376238286495209,
0.3380414843559265,
0.043023280799388885,
0.2134326994419098,
-0.027698926627635956,
0.2834201455116272,
0.1190686747431755,
-0.12721656262874603,
0.002694554626941681,
0.328243225812912,
0.006198829039931297,
-0.07700406014919281,
-0.1966426968574524,
0.5660508275032043,
0.15562617778778076,
0.14877992868423462,
-0.11135540902614594,
-0.08272340148687363,
0.329103022813797,
0.019689809530973434,
-0.1956840604543686,
-0.3322222828865051,
0.10079218447208405,
-0.02875419333577156,
0.045618634670972824,
0.04676567763090134,
-0.3251137137413025,
0.1408967524766922,
0.6347131729125977,
0.02613963559269905,
0.007385384291410446,
0.0732499361038208,
-0.20734745264053345,
-0.08693285286426544,
0.08151558041572571,
0.20345084369182587,
0.30299532413482666,
0.20477339625358582,
-0.2401098608970642,
0.16507042944431305,
0.1505334973335266,
-0.27913376688957214,
0.26350539922714233,
-0.03941939026117325,
0.16400229930877686,
0.2611381411552429,
0.2849474549293518,
-0.06388755142688751,
-0.304108202457428,
0.11524194478988647,
-0.0372745655477047,
0.18267957866191864,
-0.3774653375148773,
0.2238546907901764,
-0.14758624136447906,
-0.1229846179485321,
-0.2147873193025589,
-0.2431914359331131,
-0.32697051763534546,
-0.2343282550573349,
0.11493749171495438,
-0.033459875732660294,
-0.20416894555091858,
0.1390652060508728,
0.28105130791664124,
0.029862061142921448,
-0.027999207377433777,
-0.019329963251948357,
-0.4172321557998657,
-0.20086358487606049,
-0.11766678839921951,
0.05097435042262077,
0.1550172120332718,
-0.10960671305656433,
0.21302686631679535,
-0.3792502284049988,
-0.14588192105293274,
-0.31543654203414917,
-0.4999275803565979,
0.2528184652328491,
-0.1550460308790207,
0.5203309059143066,
0.208125501871109,
0.25126373767852783,
-0.017575502395629883,
-0.2799642086029053,
0.3669065535068512,
0.25143516063690186,
-0.34876736998558044,
0.12758076190948486,
-0.13831722736358643,
-0.06407292187213898,
-0.06297609210014343,
-0.47350969910621643,
-0.10072463005781174,
-0.23388606309890747,
0.36567187309265137,
0.1424441635608673,
0.2632218599319458,
0.6181698441505432,
0.028619375079870224,
-0.132642462849617,
-0.30637988448143005,
0.43782562017440796,
-0.32245397567749023,
-0.6928200721740723,
0.1458534300327301,
-0.2717384099960327,
-0.30992209911346436,
-0.08696242421865463,
0.1160564124584198,
0.20112240314483643,
-0.3413426876068115,
-0.5350945591926575,
-0.22004595398902893,
-0.006097281351685524,
0.1768636405467987,
0.0011522434651851654,
0.21913497149944305,
0.11078879982233047,
0.1014791801571846,
-0.08683708310127258,
-0.25851020216941833,
-0.3038442134857178,
0.030726470053195953,
-0.04614872485399246,
0.41301795840263367,
-0.0031143631786108017,
0.23602324724197388,
-0.06754249334335327,
0.28079795837402344,
0.4191526174545288,
-0.10383157432079315,
0.10032851248979568,
-0.14495965838432312,
0.1923123002052307,
-0.20883920788764954,
-0.30925270915031433,
0.12375224381685257,
0.004616186022758484,
0.06784745305776596,
0.38735783100128174,
0.1494341492652893,
0.09625548869371414,
-0.1694510579109192,
-0.09930914640426636,
-0.6170861721038818,
-0.3313485085964203,
-0.010550500825047493,
0.02820994146168232,
0.015698138624429703,
0.22968387603759766,
0.18604809045791626,
-0.19812585413455963,
-0.0875743106007576,
0.1677750200033188,
0.35744959115982056,
0.011514030396938324,
0.05065932497382164,
-0.3571624457836151,
-0.2085372805595398,
-0.349634051322937,
0.25004178285598755,
-0.12601490318775177,
0.07388423383235931,
-0.005829423666000366,
0.14906471967697144,
0.05860580503940582,
-0.15957583487033844,
0.6097592711448669,
-0.15285366773605347,
0.15682107210159302,
0.010171353816986084,
0.2056981325149536,
-0.027919035404920578,
-0.046084970235824585,
0.03884923830628395,
0.41277748346328735,
0.16798178851604462,
0.736384391784668,
-0.4434211552143097,
-0.14991779625415802,
0.10743542015552521,
0.039934974163770676,
-0.2290532886981964,
-0.3228270411491394,
-0.25623005628585815,
-0.43850329518318176,
-0.37849029898643494,
-0.2462124228477478,
-0.15043185651302338,
0.32390493154525757,
0.1287071853876114,
-0.13801883161067963,
0.20281143486499786,
0.14790520071983337,
-0.02790217101573944,
0.3254079818725586,
0.24951079487800598,
0.15077635645866394,
0.2005641758441925,
0.0883946567773819,
0.33980968594551086,
0.4530971050262451,
0.6804469227790833,
0.1602417677640915,
-0.30588680505752563,
-0.18542471528053284,
-0.17784473299980164,
-0.000792182981967926,
0.19760802388191223,
-0.1164814680814743,
0.1874600350856781,
0.24005714058876038,
0.13721273839473724,
-0.10135544091463089,
-0.274700790643692,
0.39780643582344055,
0.08946503698825836,
-0.30390721559524536,
-0.33796289563179016,
0.4962552487850189,
-0.16280996799468994,
-0.09845347702503204,
-0.05439973622560501,
0.18101197481155396,
-0.3893883526325226,
0.4970279335975647,
-0.019678369164466858,
0.9072645902633667,
0.17171922326087952,
-0.03631119057536125,
0.16720762848854065,
-0.23767849802970886,
0.6262363195419312,
-0.24352870881557465,
0.02770635113120079,
-0.43593207001686096,
-0.015937454998493195,
0.09638890624046326,
0.0022771768271923065,
0.12779587507247925,
0.27500104904174805,
-0.19942282140254974,
0.10440006107091904,
-0.15375302731990814,
0.07442612200975418,
-0.21344904601573944,
0.1527741700410843,
-0.13390988111495972,
-0.10015061497688293,
-0.648554801940918,
0.21626706421375275,
-0.13407739996910095,
0.2843228876590729,
-0.03374571353197098,
-0.16597063839435577,
-0.15970328450202942,
-0.3566296100616455,
-0.21647752821445465,
0.027552969753742218,
-0.20827212929725647,
-0.114460289478302,
0.40939226746559143,
-0.12631000578403473,
0.08956721425056458,
-0.002325497567653656,
0.40252238512039185,
0.20119431614875793,
-0.23761028051376343,
0.19589896500110626,
0.02601895108819008,
-0.061431363224983215,
0.10793571174144745,
0.039165787398815155,
0.30966803431510925,
-0.07691021263599396,
-0.18658685684204102,
-0.04488169401884079,
-0.14776474237442017,
-0.14056707918643951,
-0.1647743135690689,
-0.18908722698688507,
-0.33453822135925293,
-0.2339899092912674,
-0.13777071237564087,
-0.09669113159179688,
0.021870207041502,
-0.3250768184661865,
0.20275504887104034,
0.00514502078294754,
-0.25411874055862427,
0.09213557094335556,
-0.04585609212517738,
-0.1987370401620865,
-0.07214292883872986,
0.3532041311264038,
0.20084965229034424,
0.02163831517100334,
0.3913566768169403,
0.30411210656166077,
-0.11934760212898254,
-0.21218931674957275,
0.1043156161904335,
0.3070048987865448,
-0.3281633257865906,
0.010546761564910412,
0.0983090028166771,
0.02140757441520691,
-0.07976355403661728,
0.39659184217453003,
0.22848479449748993,
0.0951254591345787,
0.11382544040679932,
-0.5196161270141602,
-0.187286376953125,
0.2986900806427002,
0.11297793686389923,
-0.01711190864443779,
0.14568227529525757,
0.07901260256767273,
-0.13569365441799164,
0.20354892313480377,
-0.40751349925994873,
-0.06666626781225204,
-0.1816493570804596,
0.1701081544160843,
0.16037419438362122,
0.0799800455570221,
0.13206930458545685,
-0.06013666093349457,
0.18699133396148682,
-0.08302535116672516,
-0.239455908536911,
-0.27347517013549805,
-0.14846965670585632,
0.10395155847072601,
0.07082563638687134,
-0.03485921025276184,
-0.07378339767456055,
-0.20200006663799286,
-0.12099601328372955,
-0.050470802932977676,
0.19538234174251556,
0.057523079216480255,
0.17822682857513428,
0.22182710468769073,
-0.1442469209432602,
0.041896674782037735,
0.0315934494137764,
-0.13388630747795105,
0.10663392394781113,
0.24107199907302856,
-0.07158473134040833,
0.10545174777507782,
-0.42673054337501526,
0.050070762634277344,
-0.07839853316545486,
0.20253175497055054,
-0.17330573499202728,
0.42814093828201294,
0.3976958096027374,
-0.35671156644821167,
0.05612413212656975,
0.38933736085891724,
0.337665319442749,
0.3005210757255554,
-0.2515511214733124,
0.15344032645225525,
-0.023508921265602112,
0.2705778181552887,
-0.3498670756816864,
-0.2758151590824127,
0.20641449093818665,
-0.11859964579343796,
0.042419154196977615,
0.02326614409685135,
0.09840121865272522,
0.10951550304889679,
-0.2196795493364334,
0.022361185401678085,
0.48109155893325806,
-0.12231424450874329,
0.04502415657043457,
0.3552241027355194,
-0.09367212653160095,
0.04413951188325882,
0.44392070174217224,
0.2615417540073395,
0.12195004522800446,
0.3352993130683899,
-0.0303632915019989,
0.23820093274116516,
0.24251490831375122,
0.1473100185394287,
-0.003946907818317413,
-0.10244756937026978,
0.4072238802909851,
0.3074490427970886,
0.06947251409292221,
0.08729011565446854,
0.10845649987459183,
0.29120194911956787,
-0.01501054409891367,
-0.06786821782588959,
-0.2059289515018463,
0.15137642621994019,
-0.03578301519155502,
-0.20453472435474396,
-0.4539462924003601,
-0.2694566547870636,
-0.07611173391342163,
-0.15810441970825195,
-0.31158968806266785,
-0.20528678596019745,
0.08533387631177902,
-0.12237825989723206,
-0.22429318726062775,
-0.375925749540329,
-0.028493687510490417,
-0.03377582132816315,
0.30455446243286133,
-0.2974299192428589,
0.4509523808956146,
0.23339475691318512,
-0.15008972585201263,
0.17365434765815735,
0.4973619282245636,
0.46915820240974426,
0.13942211866378784,
0.1619141697883606,
0.04255784675478935,
-0.1611885130405426,
-0.1774739772081375,
-0.08312588185071945,
0.31510335206985474,
0.20662325620651245,
-0.3417830169200897,
0.23895354568958282,
0.1919293850660324,
-0.22525611519813538,
-0.06308171153068542,
0.3651888072490692,
0.21243879199028015,
-0.010210027918219566,
-0.13329747319221497,
-0.5007302761077881,
-0.19733428955078125,
-0.09784549474716187,
-0.15437361598014832,
-0.4194018840789795,
-0.26219844818115234,
0.3703804910182953,
0.1630396693944931,
0.2637902796268463,
-0.11002155393362045,
0.16054876148700714,
-0.08229072391986847,
0.45843103528022766,
0.2943877577781677,
-0.1319657862186432,
-0.11455561965703964,
-0.1008969098329544,
-0.3746996223926544,
0.15587608516216278,
0.1484064906835556,
-0.03090137615799904,
0.06633587181568146,
0.17822472751140594,
0.19880133867263794,
0.004579853266477585,
-0.0795113742351532,
0.005981940310448408,
0.0064125629141926765,
0.2736482620239258,
-0.29594582319259644,
-0.11680224537849426,
0.017642762511968613,
0.035133037716150284,
0.09993837773799896,
-0.024299100041389465,
0.27868813276290894,
-0.07032287120819092,
0.02383992075920105,
-0.2231590896844864,
0.16995058953762054,
0.15135253965854645,
-0.14645583927631378,
0.19235563278198242,
0.09872502833604813,
0.16064763069152832,
-0.29932910203933716,
-0.38213714957237244,
-0.17727521061897278,
-0.29466408491134644,
-0.24356096982955933,
0.4900182783603668,
0.012585233896970749,
0.5237448215484619,
0.145443856716156,
-0.08204483985900879,
-0.19658489525318146,
0.018769418820738792,
-0.07811960577964783,
-0.3165510296821594,
-0.451306015253067,
0.21731828153133392,
-0.11053037643432617,
0.02507692389190197,
0.02822088450193405,
0.3956521153450012,
-0.007539138197898865,
0.20201152563095093,
-0.25459983944892883,
-0.4512338638305664,
0.5660296678543091,
-0.30797263979911804,
-0.1830761879682541,
0.1965760737657547,
0.1448824107646942,
-0.17551138997077942,
-0.3089011013507843,
-0.4869859218597412,
0.20629426836967468,
0.3145409822463989,
-0.1656981110572815,
-0.07975835353136063,
0.0009093740954995155,
-0.21061274409294128,
0.0502120666205883,
0.0037503838539123535,
0.03100719302892685,
0.26943492889404297,
-0.2553669810295105,
0.05712464824318886,
-0.09748579561710358
] |
https://github.com/huggingface/datasets/issues/2742 | Improve detection of streamable file types | maybe we should rather attempt to download a `Range` from the server and see if it works? | **Is your feature request related to a problem? Please describe.**
```python
from datasets import load_dataset_builder
from datasets.utils.streaming_download_manager import StreamingDownloadManager
builder = load_dataset_builder("journalists_questions", name="plain_text")
builder._split_generators(StreamingDownloadManager(base_path=builder.base_path))
```
raises
```
NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet
```
But the file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is a text file and it can be streamed:
```bash
curl --header "Range: bytes=0-100" -L https://drive.google.com/uc\?export\=download\&id\=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U
506938088174940160 yes 1
302221719412830209 yes 1
289761704907268096 yes 1
513820885032378369 yes %
```
Yet, it's wrongly categorized as a file type that cannot be streamed because the test is currently based on 1. the presence of a file extension at the end of the URL (here: no extension), and 2. the inclusion of this extension in a list of supported formats.
**Describe the solution you'd like**
In the case of an URL (instead of a local path), ask for the MIME type, and decide on that value? Note that it would not work in that case, because the value of `content_type` is `text/html; charset=UTF-8`.
**Describe alternatives you've considered**
Add a variable in the dataset script to set the data format by hand.
| 17 | Improve detection of streamable file types
**Is your feature request related to a problem? Please describe.**
```python
from datasets import load_dataset_builder
from datasets.utils.streaming_download_manager import StreamingDownloadManager
builder = load_dataset_builder("journalists_questions", name="plain_text")
builder._split_generators(StreamingDownloadManager(base_path=builder.base_path))
```
raises
```
NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet
```
But the file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is a text file and it can be streamed:
```bash
curl --header "Range: bytes=0-100" -L https://drive.google.com/uc\?export\=download\&id\=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U
506938088174940160 yes 1
302221719412830209 yes 1
289761704907268096 yes 1
513820885032378369 yes %
```
Yet, it's wrongly categorized as a file type that cannot be streamed because the test is currently based on 1. the presence of a file extension at the end of the URL (here: no extension), and 2. the inclusion of this extension in a list of supported formats.
**Describe the solution you'd like**
In the case of an URL (instead of a local path), ask for the MIME type, and decide on that value? Note that it would not work in that case, because the value of `content_type` is `text/html; charset=UTF-8`.
**Describe alternatives you've considered**
Add a variable in the dataset script to set the data format by hand.
maybe we should rather attempt to download a `Range` from the server and see if it works? | [
-0.4683200418949127,
-0.0467546284198761,
-0.09795741736888885,
0.13755300641059875,
0.1663963943719864,
-0.22397533059120178,
0.19266138970851898,
0.4674960970878601,
0.06285335123538971,
0.2362469732761383,
-0.006769224070012569,
-0.04707856476306915,
-0.41499269008636475,
0.25549304485321045,
0.06666167080402374,
-0.15031521022319794,
0.0009767860174179077,
0.05380530655384064,
0.20091032981872559,
0.05400268733501434,
-0.20414769649505615,
-0.060409530997276306,
-0.032279931008815765,
-0.3867238759994507,
0.13726550340652466,
0.12128520756959915,
0.12373639643192291,
-0.10052140802145004,
-0.5439121723175049,
-0.4741573631763458,
-0.09979428350925446,
0.3655939996242523,
0.3324325382709503,
0.4450816214084625,
-0.00010906666284427047,
-0.18671861290931702,
0.3261324167251587,
-0.2225363701581955,
-0.3541296720504761,
-0.3582726716995239,
-0.3125941753387451,
-0.08202451467514038,
0.11807923763990402,
-0.058648258447647095,
-0.08329755067825317,
-0.05291622877120972,
0.005199683830142021,
-0.432071715593338,
0.25913530588150024,
0.48350557684898376,
0.14804308116436005,
0.22587284445762634,
-0.06290040165185928,
0.34679311513900757,
0.31243178248405457,
0.3924541473388672,
-0.16395579278469086,
0.0028926655650138855,
0.2594113051891327,
0.19117596745491028,
-0.05812583118677139,
0.1383458822965622,
-0.16981883347034454,
0.10331039130687714,
-0.05663302540779114,
0.027962543070316315,
-0.22060677409172058,
-0.5073230266571045,
-0.016174647957086563,
0.506369948387146,
0.41997137665748596,
0.06519261747598648,
-0.47605839371681213,
-0.2841738760471344,
0.15233391523361206,
0.0003062635660171509,
0.2511099576950073,
0.11820702254772186,
-0.3653724193572998,
0.1618279069662094,
-0.3606187403202057,
-0.08200736343860626,
-0.22269438207149506,
0.12486372888088226,
-0.12033116817474365,
0.24596329033374786,
-0.0434022918343544,
-0.0680060163140297,
0.06553008407354355,
0.14976510405540466,
0.4056750535964966,
-0.24798661470413208,
0.3087383508682251,
0.034831076860427856,
-0.039329152554273605,
-0.2037239670753479,
-0.16065260767936707,
0.023213673382997513,
0.1399276852607727,
0.25667718052864075,
0.3086075782775879,
0.2102729082107544,
-0.14919838309288025,
0.21350133419036865,
0.03055455908179283,
-0.03837469965219498,
-0.07461514323949814,
-0.06970105320215225,
0.21746744215488434,
0.5407658815383911,
-0.0032599754631519318,
-0.0687255784869194,
-0.07206413149833679,
-0.06311190128326416,
0.18538926541805267,
0.12237716466188431,
0.40666890144348145,
-0.09158790111541748,
-0.34267523884773254,
-0.1505706012248993,
-0.3363800644874573,
-0.2536006271839142,
0.16487641632556915,
0.25616881251335144,
-0.17198501527309418,
0.4266878664493561,
-0.03194676712155342,
0.31370484828948975,
0.038104861974716187,
-0.22306959331035614,
0.1180703416466713,
0.06570346653461456,
0.20289704203605652,
-0.011482270434498787,
0.39261817932128906,
-0.281787633895874,
-0.23869363963603973,
-0.08951596915721893,
-0.020391196012496948,
0.07041743397712708,
0.1470765918493271,
-0.07293355464935303,
0.44205784797668457,
-0.025323253124952316,
-0.13596411049365997,
-0.006347658112645149,
0.028474729508161545,
-0.19366586208343506,
-0.2635308504104614,
0.02230250835418701,
-0.2017054557800293,
-0.03643995523452759,
0.07982870191335678,
0.2122865468263626,
-0.1962711215019226,
-0.11372107267379761,
-0.2630351781845093,
0.3361707627773285,
-0.32214826345443726,
0.01249123364686966,
0.033613286912441254,
-0.06832895427942276,
-0.041918184608221054,
-0.08470160514116287,
0.2602460980415344,
0.5462823510169983,
-0.09806095063686371,
-0.04334966838359833,
-0.2405218780040741,
-0.17073474824428558,
0.5798384547233582,
-0.043796975165605545,
-0.008325624279677868,
-0.06595597416162491,
-0.18388424813747406,
0.13957379758358002,
0.4809136688709259,
-0.14807717502117157,
-0.12791945040225983,
0.42954808473587036,
-0.021710190922021866,
0.4528401792049408,
0.6081661581993103,
-0.16760559380054474,
0.2023664265871048,
-0.12795674800872803,
-0.017040453851222992,
0.5179782509803772,
-0.16118332743644714,
-0.010726016014814377,
-0.30758535861968994,
-0.3225666582584381,
0.23326025903224945,
0.10892884433269501,
0.20636533200740814,
0.11645051836967468,
0.30672046542167664,
-0.1911918967962265,
0.17451941967010498,
-0.1807512491941452,
0.09478295594453812,
-0.2880555987358093,
0.5135549902915955,
-0.14544925093650818,
-0.15163512527942657,
-0.2969728708267212,
-0.22352543473243713,
-0.03453095629811287,
-0.005360767245292664,
0.10678736865520477,
-0.5588929653167725,
-0.34482598304748535,
-0.12066544592380524,
-0.10462239384651184,
-0.12494124472141266,
0.05938798189163208,
0.1944292187690735,
0.22142210602760315,
-0.23660781979560852,
0.08914048969745636,
-0.20996668934822083,
-0.000019883736968040466,
-0.1156357079744339,
0.17926451563835144,
0.10915809869766235,
0.2531508803367615,
0.15886132419109344,
0.06511592119932175,
0.4046083986759186,
-0.08791152387857437,
0.22084513306617737,
-0.04903152957558632,
-0.22884052991867065,
0.1611866056919098,
0.149902805685997,
0.4502609968185425,
0.13429540395736694,
0.19676202535629272,
0.3344070017337799,
-0.21080529689788818,
-0.1991124302148819,
0.5702890753746033,
0.183845654129982,
0.13858076930046082,
-0.133856862783432,
0.2535959482192993,
0.07267393171787262,
0.009919166564941406,
0.2294878214597702,
-0.07211228460073471,
0.16888123750686646,
0.009914543479681015,
-0.1288590133190155,
-0.28197765350341797,
0.10586124658584595,
-0.012520622462034225,
-0.153864324092865,
0.031393855810165405,
-0.1393783986568451,
0.055455565452575684,
0.3448432683944702,
-0.19562067091464996,
0.07267700135707855,
0.37134119868278503,
-0.02367405593395233,
-0.23755991458892822,
0.059879370033741,
0.48110702633857727,
0.2880634069442749,
0.059503745287656784,
0.3818356394767761,
-0.12750442326068878,
0.14427891373634338,
-0.2373068779706955,
0.292340487241745,
0.0002401992678642273,
-0.2734447419643402,
0.1132260113954544,
0.08854290097951889,
-0.0658789724111557,
-0.37680813670158386,
0.01780504733324051,
-0.003829464316368103,
-0.036552175879478455,
-0.4186423122882843,
0.02906777150928974,
-0.5251238346099854,
-0.03602862358093262,
-0.2480194866657257,
-0.13895387947559357,
-0.05894022062420845,
-0.1279437392950058,
0.2919638156890869,
0.28402042388916016,
-0.16981597244739532,
-0.017666667699813843,
-0.27729326486587524,
0.43880176544189453,
0.041490502655506134,
-0.20655053853988647,
-0.09672650694847107,
0.128821462392807,
0.0043228305876255035,
0.18609796464443207,
0.6305447816848755,
0.1073828935623169,
0.44840922951698303,
-0.30816394090652466,
0.09628242999315262,
-0.6249533295631409,
-0.21721169352531433,
0.0335562601685524,
0.05870584398508072,
0.4059969484806061,
0.08108151704072952,
0.23089860379695892,
0.12879598140716553,
-0.3905833065509796,
-0.06687499582767487,
-0.15409953892230988,
-0.0005735401064157486,
0.25304245948791504,
-0.01821228861808777,
0.0828404352068901,
-0.10116207599639893,
-0.6140940189361572,
-0.19345195591449738,
-0.3065447509288788,
0.16771279275417328,
0.08520843088626862,
0.14086422324180603,
0.0646379142999649,
-0.06525839120149612,
-0.11104192584753036,
0.07270349562168121,
0.29450833797454834,
-0.012677470222115517,
-0.33760154247283936,
0.4186656177043915,
-0.14117418229579926,
-0.22590361535549164,
0.08139543235301971,
-0.07941766828298569,
-0.15516036748886108,
0.710783064365387,
-0.059388983994722366,
-0.12762418389320374,
-0.017989931628108025,
-0.04295307770371437,
0.16283568739891052,
-0.22916515171527863,
0.15788409113883972,
0.040051329880952835,
-0.09616263210773468,
-0.1579546332359314,
0.4025488793849945,
-0.18996793031692505,
0.15455953776836395,
0.3249194025993347,
0.18471184372901917,
0.06636374443769455,
0.1059693843126297,
0.22196440398693085,
-0.03383322432637215,
-0.06873473525047302,
0.6299153566360474,
0.10366401821374893,
-0.05454103276133537,
0.10487625747919083,
0.015189679339528084,
0.3104056417942047,
-0.2058424949645996,
-0.1948581337928772,
0.3442343473434448,
0.1803888976573944,
-0.15391534566879272,
-0.30769869685173035,
0.2331075370311737,
-0.47657403349876404,
-0.13738465309143066,
0.36300843954086304,
0.10205937922000885,
0.3724048137664795,
0.0023025739938020706,
0.0761035606265068,
0.11071693897247314,
-0.22612720727920532,
0.17465724050998688,
0.5635550022125244,
0.44195663928985596,
-0.08297927677631378,
-0.12352050840854645,
0.09879765659570694,
-0.37184175848960876,
0.36341017484664917,
0.3945049047470093,
0.18955393135547638,
-0.10862976312637329,
-0.17347919940948486,
0.11403215676546097,
0.042081259191036224,
-0.07269024848937988,
-0.6443424820899963,
-0.20662440359592438,
-0.11552876234054565,
0.20947939157485962,
0.1931021809577942,
-0.030515044927597046,
-0.32842904329299927,
-0.12265637516975403,
-0.024967104196548462,
0.13001582026481628,
-0.28441122174263,
-0.03222338482737541,
-0.030634578317403793,
0.23181115090847015,
0.14233215153217316,
-0.050939030945301056,
-0.11797919869422913,
-0.11147481948137283,
-0.2214978039264679,
-0.08739792555570602,
0.1017468050122261,
-0.0670052096247673,
-0.5361401438713074,
-0.2599616050720215,
-0.024662109091877937,
0.2275417149066925,
0.43807411193847656,
0.23458218574523926,
0.17425131797790527,
-0.10074391216039658,
0.036285389214754105,
-0.012256458401679993,
0.19753652811050415,
0.43647414445877075,
0.36142370104789734,
0.05743394419550896,
-0.46785229444503784,
0.014850104227662086,
-0.0764240100979805,
-0.03805931657552719,
0.23953773081302643,
-0.20618727803230286,
0.34834641218185425,
0.4832247495651245,
0.3337838649749756,
-0.493982195854187,
0.13970796763896942,
0.4016364812850952,
-0.24342210590839386,
-0.40772923827171326,
-0.7770465612411499,
0.35615816712379456,
-0.05971817299723625,
-0.046862103044986725,
0.2563320994377136,
-0.017340369522571564,
-0.22182294726371765,
0.08598644286394119,
0.16448518633842468,
0.945691704750061,
0.009185418486595154,
-0.2788420021533966,
0.1633627712726593,
-0.4143884778022766,
0.03452005237340927,
-0.3965311646461487,
-0.020967431366443634,
0.08108212053775787,
-0.12247654795646667,
-0.3990931510925293,
-0.06085973232984543,
0.457885205745697,
0.06640693545341492,
-0.5342293381690979,
0.052847497165203094,
-0.013135790824890137,
0.2774661183357239,
0.16872064769268036,
0.4378339648246765,
-0.6074439287185669,
-0.0628860741853714,
-0.3596731126308441,
0.14766448736190796,
-0.14313939213752747,
0.12276826798915863,
0.09364306926727295,
-0.10857976227998734,
0.08979132771492004,
-0.08388350158929825,
-0.2090052366256714,
-0.19652068614959717,
-0.44270703196525574,
-0.032544855028390884,
-0.2860930263996124,
-0.5322921276092529,
0.2656709849834442,
0.08087240159511566,
0.06138799712061882,
-0.14520400762557983,
-0.2330867350101471,
0.22941601276397705,
-0.030978292226791382,
0.23845942318439484,
0.04208377003669739,
-0.34522563219070435,
0.46732479333877563,
-0.10696247220039368,
-0.02343745529651642,
0.020479846745729446,
0.09646707773208618,
-0.2299923598766327,
0.2641572952270508,
-0.21565665304660797,
0.2669362425804138,
-0.1431201994419098,
-0.13734818994998932,
-0.40701115131378174,
-0.24201372265815735,
-0.18716882169246674,
0.12473414838314056,
-0.07110294699668884,
-0.0758291482925415,
-0.09599415212869644,
0.23701588809490204,
-0.13773031532764435,
-0.2342478185892105,
0.1525319665670395,
-0.016238462179899216,
-0.010840047150850296,
0.1060640886425972,
-0.10141139477491379,
-0.37786340713500977,
-0.3085157871246338,
0.02133066952228546,
-0.02956303581595421,
-0.045351821929216385,
-0.08755487203598022,
0.1561724841594696,
0.02672727406024933,
-0.12572486698627472,
0.24063020944595337,
-0.1747756004333496,
0.10039199143648148,
-0.20130863785743713,
-0.3780125081539154,
0.05621258169412613,
0.043847061693668365,
-0.301131010055542,
0.14589300751686096,
-0.19549879431724548,
-0.09696511924266815,
0.22905132174491882,
-0.13365671038627625,
-0.306667685508728,
-0.045963265001773834,
0.02958720363676548,
-0.0294145829975605,
-0.1491420716047287,
0.2581753432750702,
0.28739017248153687,
-0.13125327229499817,
0.11695200204849243,
0.03741764649748802,
-0.16227567195892334,
-0.14008402824401855,
-0.13392002880573273,
0.19990599155426025,
0.13382762670516968,
-0.12158995121717453,
-0.015066372230648994,
0.04496460407972336,
-0.11106136441230774,
-0.15424413979053497,
-0.04895547777414322,
0.022085752338171005,
-0.058514997363090515,
-0.04923165962100029,
-0.016511332243680954,
-0.2595725655555725,
-0.3069770336151123,
-0.010421499609947205,
-0.28389620780944824,
0.42727673053741455,
0.1495513916015625,
0.011561326682567596,
-0.021305490285158157,
0.018067434430122375,
-0.04279389604926109,
0.20234718918800354,
0.28986018896102905,
0.209670752286911,
0.36975008249282837,
0.0967874526977539,
-0.03526223450899124,
0.0552358403801918,
0.18893848359584808,
0.46063509583473206,
-0.09551934152841568,
-0.02385229617357254,
0.25678181648254395,
0.20216622948646545,
-0.09940248727798462,
0.2095019519329071,
-0.1095353364944458,
-0.3000880479812622,
0.18355968594551086,
0.18349593877792358,
0.20725056529045105,
-0.11954200267791748,
-0.010423868894577026,
0.022442221641540527,
0.03731970489025116,
-0.028917506337165833,
0.4075636863708496,
0.34153661131858826,
0.17754293978214264,
0.27783527970314026,
-0.15125122666358948,
-0.35810956358909607,
-0.037135131657123566,
-0.2271774858236313,
-0.23440629243850708,
0.4020756781101227,
-0.06025194376707077,
0.20891034603118896,
0.04753463342785835,
-0.10201755166053772,
-0.030852671712636948,
0.01452462375164032,
-0.2661493122577667,
0.5484508275985718,
0.45458391308784485,
0.5620855093002319,
-0.2000775933265686,
0.005618132650852203,
-0.24800801277160645,
-0.024438131600618362,
0.1375589668750763,
0.004595405422151089,
-0.1206163614988327,
-0.23807522654533386,
-0.4402797222137451,
0.010013759136199951,
0.12847626209259033,
0.07747702300548553,
-0.1824941337108612,
0.44700491428375244,
0.11953303217887878,
-0.12718747556209564,
-0.09818340092897415,
-0.21568503975868225,
0.5371816754341125,
-0.4945752024650574,
-0.00899176113307476,
0.29848146438598633,
0.15188226103782654,
0.46400147676467896,
0.06312903761863708,
0.27026301622390747,
0.22010120749473572,
-0.11324666440486908,
-0.06478027254343033,
-0.08530840277671814,
-0.10176622867584229,
0.0401633195579052,
0.14599594473838806,
0.15374252200126648,
0.1427917182445526,
0.3194054961204529,
0.2111826241016388,
-0.07777640223503113,
0.22141502797603607,
-0.09335967898368835,
-0.2038184106349945,
-0.3882763087749481,
0.10063744336366653,
0.1147579699754715,
0.21985626220703125,
-0.3925491273403168,
-0.4492163360118866,
-0.28251734375953674,
0.12758123874664307,
0.04020865634083748,
-0.09205002337694168,
0.11962375789880753,
0.0007098421920090914,
0.06610556691884995,
0.24049711227416992,
-0.012843351811170578,
0.06006322801113129,
0.06896865367889404,
-0.09994698315858841,
-0.2770580053329468,
-0.7179275155067444,
-0.2123475968837738,
0.095301553606987,
-0.052178360521793365,
-0.07232964038848877,
-0.095976822078228,
-0.0011961162090301514,
0.39928102493286133,
-0.0945914089679718,
-0.04384472593665123,
0.2593012750148773,
0.2674331068992615,
-0.2682594954967499,
-0.301750123500824,
0.28725922107696533,
0.1833755373954773,
-0.4226427674293518,
-0.3086619973182678,
0.29927003383636475,
-0.19953154027462006,
0.07484996318817139,
0.029830321669578552,
0.006179250776767731,
-0.027344807982444763,
-0.06713972240686417,
0.41756129264831543,
0.28140154480934143,
0.526029646396637,
-0.3578932285308838,
-0.07841303944587708,
-0.08580292761325836,
0.18324622511863708,
-0.04900674894452095,
0.049879252910614014,
-0.07774895429611206,
0.6659364700317383,
0.24268952012062073,
-0.022900160402059555,
-0.2919483184814453,
0.5941693782806396,
-0.04655914381146431,
-0.1776711642742157,
-0.4388509690761566,
-0.09210904687643051,
-0.11072330921888351,
0.09229043126106262,
0.17541152238845825,
-0.013387419283390045,
-0.06669163703918457,
-0.20003080368041992,
-0.13378798961639404,
-0.4501073956489563,
0.24989601969718933,
-0.3008940517902374,
-0.2121913731098175,
-0.028235293924808502,
0.14920002222061157,
0.13421820104122162,
0.4660346806049347,
-0.5997123718261719,
0.04614422470331192,
0.20941099524497986,
-0.20472651720046997,
0.30590999126434326,
0.16974927484989166,
0.25190865993499756,
0.07302837073802948,
-0.13790586590766907,
0.09848329424858093,
0.09265226125717163,
0.008411722257733345,
-0.02979087084531784,
-0.21048778295516968
] |
https://github.com/huggingface/datasets/issues/2737 | SacreBLEU update | Hi @devrimcavusoglu,
I tried your code with latest version of `datasets`and `sacrebleu==1.5.1` and it's running fine after changing one small thing:
```
sacrebleu = datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = [["It is a guide to action that ensures that the military will forever heed Party commands"]] # double brackets here should do the work
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
output: {'score': 41.180376356915765, 'counts': [11, 8, 6, 4], 'totals': [18, 17, 16, 15], 'precisions': [61.111111111111114, 47.05882352941177, 37.5, 26.666666666666668], 'bp': 1.0, 'sys_len': 18, 'ref_len': 16}
``` | With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
| 101 | SacreBLEU update
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
Hi @devrimcavusoglu,
I tried your code with latest version of `datasets`and `sacrebleu==1.5.1` and it's running fine after changing one small thing:
```
sacrebleu = datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = [["It is a guide to action that ensures that the military will forever heed Party commands"]] # double brackets here should do the work
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
output: {'score': 41.180376356915765, 'counts': [11, 8, 6, 4], 'totals': [18, 17, 16, 15], 'precisions': [61.111111111111114, 47.05882352941177, 37.5, 26.666666666666668], 'bp': 1.0, 'sys_len': 18, 'ref_len': 16}
``` | [
-0.3851112723350525,
0.1802143156528473,
-0.0012570880353450775,
-0.06791013479232788,
0.5497627258300781,
-0.21898457407951355,
0.0627022311091423,
0.34801074862480164,
-0.21019473671913147,
0.12432295083999634,
0.008656712248921394,
0.333883672952652,
-0.044022005051374435,
-0.02463964745402336,
-0.11520126461982727,
-0.00898173451423645,
0.10464664548635483,
0.05985365808010101,
0.3436260521411896,
0.00758766382932663,
-0.3184528350830078,
0.11741386353969574,
-0.18068543076515198,
-0.002726733684539795,
-0.27345144748687744,
0.0927981436252594,
-0.05754396319389343,
-0.06643258780241013,
-0.4653164744377136,
-0.7149298191070557,
0.17311044037342072,
0.07096252590417862,
-0.06049346923828125,
0.44333145022392273,
-0.00010906598618021235,
-0.12883605062961578,
0.26362764835357666,
-0.2208128273487091,
-0.43327298760414124,
-0.45292121171951294,
-0.1555379033088684,
-0.2812544107437134,
0.010191092267632484,
-0.10268453508615494,
-0.09187101572751999,
-0.3785417377948761,
-0.04298359155654907,
-0.0021674707531929016,
0.24215172231197357,
0.39166775345802307,
0.25630325078964233,
0.2788759469985962,
0.08785811066627502,
-0.3278108239173889,
-0.04747966676950455,
0.07175411283969879,
-0.041663236916065216,
0.20626509189605713,
-0.15644770860671997,
0.09191862493753433,
0.06975407153367996,
0.1396525651216507,
-0.21968035399913788,
0.11909973621368408,
0.02515629678964615,
-0.07757975161075592,
-0.11149280518293381,
-0.06017613410949707,
0.11229638010263443,
-0.04778796434402466,
0.3497330844402313,
-0.4587009847164154,
-0.38272824883461,
0.1970100998878479,
0.017357556149363518,
-0.45420709252357483,
-0.02549857646226883,
-0.1006394773721695,
0.016783978790044785,
-0.16700144112110138,
0.034416891634464264,
0.006294876337051392,
-0.04459572583436966,
0.11557169258594513,
-0.1596204936504364,
0.3486792743206024,
-0.2516734302043915,
0.07961086928844452,
0.03948477655649185,
-0.05425672233104706,
-0.49697136878967285,
0.10736813396215439,
-0.2383056879043579,
0.023043697699904442,
-0.3772973120212555,
-0.06501645594835281,
-0.08285354822874069,
-0.3516818881034851,
0.09699627012014389,
0.37391984462738037,
0.02106902375817299,
0.2644362151622772,
0.1377246081829071,
0.11893416941165924,
-0.06223226711153984,
0.5510030388832092,
0.3230522572994232,
0.19678868353366852,
0.07076895236968994,
0.2654048502445221,
-0.041296958923339844,
-0.045392222702503204,
0.0042825136333703995,
-0.2698686420917511,
0.24632738530635834,
0.10671059042215347,
0.2557297945022583,
-0.13536201417446136,
-0.39718344807624817,
0.14744311571121216,
0.23782029747962952,
-0.044764239341020584,
-0.1319337785243988,
0.4307972192764282,
-0.23772041499614716,
0.1725681722164154,
-0.0958559587597847,
0.2664758563041687,
-0.2389555275440216,
-0.34243467450141907,
-0.24157889187335968,
0.03908805549144745,
-0.30463284254074097,
-0.10791629552841187,
0.18163266777992249,
0.24118559062480927,
0.13052543997764587,
-0.041406046599149704,
0.46605539321899414,
-0.2226981669664383,
0.28041139245033264,
-0.23020565509796143,
0.06032212823629379,
-0.01882682368159294,
-0.11991859972476959,
0.02383868210017681,
0.5161591172218323,
-0.610388457775116,
0.015125401318073273,
-0.11231855303049088,
-0.25617891550064087,
-0.2588265538215637,
0.3433966636657715,
0.2879842221736908,
-0.2528568506240845,
-0.3133334517478943,
-0.4201452434062958,
0.20511652529239655,
0.060308314859867096,
0.05215194448828697,
-0.0012073218822479248,
-0.04622653126716614,
-0.19703315198421478,
-0.26144880056381226,
0.3741239607334137,
0.32026344537734985,
-0.10777223110198975,
-0.10515956580638885,
0.13582868874073029,
-0.17130258679389954,
0.08587536215782166,
-0.2513415515422821,
0.08049046993255615,
0.28047266602516174,
0.10206033289432526,
-0.06132553517818451,
0.292712926864624,
-0.35796090960502625,
-0.5469436645507812,
-0.08625027537345886,
0.05794517695903778,
-0.25991401076316833,
0.006202198565006256,
-0.1106049120426178,
0.5220208168029785,
0.015824148431420326,
-0.015436939895153046,
-0.031289927661418915,
0.11832006275653839,
-0.1374591886997223,
-0.23333297669887543,
-0.4542901813983917,
-0.03327775001525879,
0.06859514117240906,
0.5740546584129333,
-0.018763937056064606,
0.23645955324172974,
0.3137113153934479,
0.2896053194999695,
0.00750504806637764,
0.03063388727605343,
0.1310759037733078,
0.5953797101974487,
-0.17881013453006744,
0.28881412744522095,
-0.438276469707489,
0.09409782290458679,
0.1595151424407959,
0.0832318514585495,
0.07360582798719406,
0.0023780688643455505,
-0.20658648014068604,
-0.5189365148544312,
0.012810559943318367,
-0.22699029743671417,
0.024094203487038612,
0.23674148321151733,
0.1432618796825409,
-0.07485941052436829,
0.170212060213089,
-0.2773279547691345,
-0.06760084629058838,
-0.19730855524539948,
0.2919333875179291,
0.11748285591602325,
0.24138598144054413,
-0.015709498897194862,
-0.34518828988075256,
0.2164440155029297,
0.31110265851020813,
0.29495760798454285,
-0.08796250075101852,
-0.15174898505210876,
0.4523434340953827,
0.30431580543518066,
0.11054474860429764,
-0.006670795381069183,
0.2907354235649109,
0.07792697846889496,
-0.2848576605319977,
-0.08227366954088211,
0.48279550671577454,
0.012369624339044094,
-0.07329945266246796,
0.07585307210683823,
0.3865852952003479,
0.03240705654025078,
0.160955548286438,
0.05662280321121216,
0.20907293260097504,
0.014533428475260735,
-0.04453432559967041,
-0.11158885806798935,
-0.28122490644454956,
-0.10297226905822754,
-0.2905324697494507,
-0.1413833647966385,
-0.2448553889989853,
0.08985227346420288,
0.07048530876636505,
0.22967639565467834,
0.19715121388435364,
0.10576635599136353,
0.008490946143865585,
-0.14689242839813232,
0.04890994727611542,
-0.18741008639335632,
0.2557060718536377,
0.2897588610649109,
0.13843205571174622,
0.04444054886698723,
0.07407759875059128,
0.0620141364634037,
0.0123116634786129,
0.1836148500442505,
0.14696455001831055,
-0.34067612886428833,
0.26356247067451477,
0.07565915584564209,
0.08846519142389297,
-0.19977277517318726,
0.027521643787622452,
-0.03636372089385986,
0.3163962960243225,
-0.0755239725112915,
0.12376991659402847,
-0.09361046552658081,
0.19459494948387146,
-0.07556582987308502,
-0.22896762192249298,
-0.03972071781754494,
-0.2019726037979126,
-0.009410291910171509,
-0.1007346361875534,
0.15016546845436096,
0.41060927510261536,
0.023231536149978638,
0.218675896525383,
0.023260129615664482,
-0.15184053778648376,
0.15621820092201233,
-0.13698533177375793,
0.029517479240894318,
0.06136120483279228,
-0.09982544183731079,
-0.23530560731887817,
0.3304959237575531,
-0.17207714915275574,
-0.0926690548658371,
-0.19073200225830078,
-0.34525424242019653,
0.0945272147655487,
0.05519521236419678,
0.30438482761383057,
0.17259597778320312,
-0.19307909905910492,
-0.050105758011341095,
-0.03403983265161514,
0.3287701904773712,
-0.2375619113445282,
0.06336469948291779,
0.3274705708026886,
-0.11115457862615585,
-0.15808020532131195,
-0.03837776184082031,
-0.5256821513175964,
-0.03424178063869476,
-0.3555928170681,
-0.04012267291545868,
0.3284462094306946,
-0.022083185613155365,
0.11650829762220383,
0.33604687452316284,
0.1921488642692566,
0.14376913011074066,
0.101905457675457,
-0.21567979454994202,
-0.0004951022565364838,
0.4178357720375061,
-0.23972955346107483,
-0.4076489210128784,
0.21283113956451416,
-0.08150811493396759,
0.26792415976524353,
-0.00919550471007824,
-0.3185969591140747,
-0.4406931698322296,
0.05322650820016861,
-0.09696751832962036,
-0.07054509967565536,
0.1420745998620987,
0.03844955191016197,
0.07098221778869629,
-0.24448280036449432,
-0.15771174430847168,
-0.19521279633045197,
0.023967862129211426,
-0.15255582332611084,
0.2881753444671631,
-0.2231138050556183,
-0.09322080761194229,
0.5048217177391052,
0.8064701557159424,
0.3794749081134796,
-0.19792988896369934,
-0.05222160369157791,
0.060256533324718475,
0.3590922951698303,
0.14883658289909363,
-0.3842598795890808,
0.15940915048122406,
-0.3968282639980316,
0.11375503242015839,
0.3308050036430359,
-0.04077493026852608,
0.08538524061441422,
-0.07701461762189865,
0.03309333696961403,
0.06468585878610611,
-0.20491033792495728,
-0.18932995200157166,
-0.006521444767713547,
0.1907668560743332,
-0.00578286312520504,
0.1585077941417694,
-0.26244375109672546,
-0.06777292490005493,
0.2687337100505829,
0.35832107067108154,
-0.3996656835079193,
0.09755109995603561,
-0.3530910611152649,
0.2276320606470108,
-0.2536466717720032,
0.3831911087036133,
-0.3001422584056854,
0.20829539000988007,
0.15801551938056946,
0.04682557284832001,
-0.08487746119499207,
-0.24293860793113708,
0.1623774915933609,
-0.09152832627296448,
0.018396267667412758,
0.18374304473400116,
0.04160865396261215,
-0.16949039697647095,
-0.008794035762548447,
-0.1914982944726944,
0.17589083313941956,
0.2852981388568878,
0.26495233178138733,
-0.3108693063259125,
0.07978304475545883,
0.1394040286540985,
0.2556307911872864,
-0.25820183753967285,
0.08319110423326492,
-0.4989476799964905,
-0.07269281893968582,
-0.21274997293949127,
0.14501261711120605,
-0.14983734488487244,
0.057531531900167465,
-0.041066788136959076,
0.1880609393119812,
-0.44986242055892944,
-0.22350284457206726,
0.34547391533851624,
-0.1285296380519867,
0.2572481036186218,
-0.1535084992647171,
0.12032529711723328,
-0.008211147040128708,
-0.014813028275966644,
0.42755886912345886,
0.28114449977874756,
-0.041013989597558975,
-0.4183295965194702,
-0.1800050437450409,
-0.06024373322725296,
0.3975871503353119,
0.20438823103904724,
-0.2897365093231201,
0.14139306545257568,
-0.0571308434009552,
0.2844462990760803,
-0.31184178590774536,
0.23581720888614655,
0.16976699233055115,
0.11533274501562119,
-0.04600127413868904,
-0.29655566811561584,
0.08507416397333145,
-0.14284828305244446,
-0.0698099285364151,
0.16901680827140808,
0.18388648331165314,
-0.024466058239340782,
0.4124060273170471,
0.12496262043714523,
1.0602537393569946,
0.24604110419750214,
-0.15159045159816742,
0.3019743859767914,
-0.128983736038208,
0.10238686203956604,
-0.38474059104919434,
0.17399121820926666,
-0.28576967120170593,
-0.29454344511032104,
0.06448038667440414,
-0.0543522872030735,
0.1569502353668213,
0.014512669295072556,
-0.4472411274909973,
0.12256037443876266,
-0.12595248222351074,
0.08083178102970123,
0.1830904185771942,
0.20075993239879608,
0.09731403738260269,
-0.05579385533928871,
0.12913189828395844,
0.25716355443000793,
-0.13270443677902222,
-0.09203174710273743,
-0.12395155429840088,
0.13301976025104523,
0.10290989279747009,
-0.12032811343669891,
-0.16044951975345612,
0.06953775882720947,
-0.24809670448303223,
0.1179204061627388,
0.19638606905937195,
-0.10513864457607269,
0.07731632888317108,
0.33698707818984985,
0.6103703379631042,
0.29233211278915405,
-0.11907388269901276,
0.11351168155670166,
-0.06680955737829208,
-0.04866413772106171,
-0.025817427784204483,
-0.08114463090896606,
0.3567351698875427,
-0.07245268672704697,
-0.17625057697296143,
0.1584065556526184,
0.13121697306632996,
0.0021970905363559723,
0.042018890380859375,
-0.059767335653305054,
0.32816851139068604,
-0.291907399892807,
0.13864953815937042,
0.014305032789707184,
-0.11366041004657745,
-0.34863781929016113,
0.1937878429889679,
0.02597883716225624,
-0.3033922016620636,
0.373467355966568,
0.008207287639379501,
-0.21211087703704834,
-0.044005315750837326,
0.5273144841194153,
0.04812740907073021,
-0.30483904480934143,
0.3915402889251709,
-0.26562875509262085,
-0.169308140873909,
-0.29856348037719727,
-0.17533248662948608,
-0.1514132022857666,
-0.22396638989448547,
0.15471650660037994,
-0.17209292948246002,
0.14069582521915436,
0.28330865502357483,
0.34599238634109497,
0.3237283229827881,
-0.061742283403873444,
-0.08364547789096832,
-0.19934867322444916,
-0.3199278712272644,
0.027767784893512726,
0.19790944457054138,
0.010566409677267075,
-0.270455926656723,
0.07055817544460297,
0.006448881700634956,
0.3164369463920593,
-0.39360907673835754,
0.20271499454975128,
-0.21213553845882416,
0.071759432554245,
0.052845992147922516,
-0.2563837766647339,
0.020310115069150925,
-0.043571360409259796,
0.07275561988353729,
0.01884753257036209,
-0.3767020106315613,
-0.19129401445388794,
-0.3634166717529297,
0.14283816516399384,
0.17306354641914368,
0.16460345685482025,
-0.08137193322181702,
0.13509781658649445,
-0.16786397993564606,
-0.1653146594762802,
0.06406253576278687,
0.38934242725372314,
-0.17282593250274658,
0.2832193672657013,
-0.06231952831149101,
0.34970393776893616,
0.05646851658821106,
-0.18076097965240479,
0.26969441771507263,
0.2693113684654236,
0.14632152020931244,
0.09004469215869904,
-0.12907375395298004,
-0.031612228602170944,
-0.06151078641414642,
0.14197707176208496,
0.2718566954135895,
0.05250146985054016,
0.3330373466014862,
-0.3786535859107971,
-0.02133585512638092,
-0.01954142563045025,
0.3227127492427826,
0.20839841663837433,
-0.1975056678056717,
-0.13913749158382416,
0.05947459489107132,
0.2730637490749359,
-0.37223508954048157,
-0.06298532336950302,
-0.17465795576572418,
0.17143069207668304,
0.11592575907707214,
0.23201867938041687,
0.3239709734916687,
-0.3307377099990845,
0.21261513233184814,
0.13820570707321167,
0.2896266281604767,
-0.27995675802230835,
0.5085769891738892,
-0.35566961765289307,
0.07549665868282318,
0.03311654180288315,
0.2941717207431793,
0.09561005234718323,
0.24050137400627136,
0.23980365693569183,
-0.16977226734161377,
0.6393954157829285,
0.18154779076576233,
0.03102794848382473,
-0.1532476842403412,
0.0329875610768795,
0.21802373230457306,
0.013199910521507263,
-0.06505770981311798,
-0.11886175721883774,
-0.08879058063030243,
0.4944625496864319,
-0.17014473676681519,
-0.02506914921104908,
-0.18977810442447662,
-0.33701181411743164,
0.0346338264644146,
-0.01285474095493555,
0.000682435929775238,
-0.2497462034225464,
-0.2808276116847992,
-0.21346595883369446,
0.2274005115032196,
-0.028343841433525085,
0.10515937209129333,
-0.04211317002773285,
-0.022169046103954315,
-0.1650315523147583,
-0.021646108478307724,
0.2968195974826813,
0.21251603960990906,
-0.35414832830429077,
-0.12426377087831497,
0.13710319995880127,
0.15133234858512878,
-0.017259813845157623,
0.36684319376945496,
0.42452874779701233,
0.3550611436367035,
-0.15838749706745148,
0.0007664714939892292,
-0.0975642204284668,
-0.006191214546561241,
0.017335541546344757,
0.2649989724159241,
0.0491376556456089,
-0.42257219552993774,
0.23882244527339935,
0.2324981391429901,
-0.23022304475307465,
-0.132046177983284,
0.10675378143787384,
-0.19569602608680725,
-0.36769619584083557,
0.6305985450744629,
0.19423936307430267,
-0.020506128668785095,
-0.16048195958137512,
-0.06362516433000565,
-0.5861017107963562,
-0.013174538500607014,
0.3944782316684723,
-0.034670621156692505,
0.15714392066001892,
-0.22075673937797546,
0.12605348229408264,
0.05168306082487106,
0.10067901015281677,
0.12102419137954712,
-0.03534020483493805,
-0.3321739137172699,
-0.0545525923371315,
-0.6144717931747437,
0.27790454030036926,
0.22578833997249603,
0.06755206733942032,
0.03972848132252693,
0.20720960199832916,
-0.17896229028701782,
0.1978861540555954,
0.0010376200079917908,
0.021848240867257118,
-0.09587454795837402,
-0.21366283297538757,
-0.6087862849235535,
0.08250267803668976,
-0.20396961271762848,
0.11713401228189468,
0.029540766030550003,
-0.26814258098602295,
-0.23842395842075348,
-0.38228702545166016,
0.11508312076330185,
0.010573461651802063,
-0.3834078311920166,
0.2427304983139038,
0.0775851234793663,
0.4692174196243286,
-0.043516434729099274,
0.18496829271316528,
0.060618773102760315,
-0.13339796662330627,
-0.10148373246192932,
-0.00004669139161705971,
-0.26211681962013245,
0.30208367109298706,
-0.090542733669281,
0.4197925627231598,
-0.21923916041851044,
0.04980572313070297,
-0.28767770528793335,
0.1709611713886261,
0.3208836317062378,
-0.5431164503097534,
-0.21158194541931152,
0.3529491722583771,
-0.013521239161491394,
0.19224563241004944,
0.01654011383652687,
0.3320552706718445,
-0.036146245896816254,
0.538460373878479,
-0.30940860509872437,
-0.3373981714248657,
0.5012766122817993,
-0.2783639132976532,
-0.3294883668422699,
-0.2559565305709839,
0.6030338406562805,
0.2151719331741333,
-0.07888557016849518,
-0.5270063281059265,
0.06312770396471024,
0.3534005582332611,
0.05241736024618149,
-0.23064105212688446,
0.1097533255815506,
-0.3694947063922882,
0.12115029990673065,
-0.09205476194620132,
0.33629530668258667,
-0.060911744832992554,
0.016572492197155952,
0.08527073264122009,
-0.13533654808998108
] |
https://github.com/huggingface/datasets/issues/2737 | SacreBLEU update | @bhavitvyamalik hmm. I forgot double brackets, but still didn't work when used it with double brackets. It may be an isseu with platform (using win-10 currently), or versions. What is your platform and your version info for datasets, python, and sacrebleu ? | With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
| 42 | SacreBLEU update
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
@bhavitvyamalik hmm. I forgot double brackets, but still didn't work when used it with double brackets. It may be an isseu with platform (using win-10 currently), or versions. What is your platform and your version info for datasets, python, and sacrebleu ? | [
-0.36109867691993713,
0.13120955228805542,
-0.005660189315676689,
-0.10268525779247284,
0.476141095161438,
-0.15574419498443604,
0.13352206349372864,
0.33508580923080444,
-0.06146713346242905,
0.11806997656822205,
0.06350436061620712,
0.41466808319091797,
-0.0860368013381958,
-0.11108026653528214,
-0.08109540492296219,
-0.062207333743572235,
0.1325370818376541,
0.06727684289216995,
0.3208293616771698,
-0.025173988193273544,
-0.29971247911453247,
0.10967651009559631,
-0.21053224802017212,
0.06954073160886765,
-0.24694879353046417,
0.02750864252448082,
-0.03394760563969612,
-0.04669501632452011,
-0.45272305607795715,
-0.6465780138969421,
0.24054266512393951,
0.1384066492319107,
-0.03766578435897827,
0.42375606298446655,
-0.00011065913713537157,
-0.1028936430811882,
0.30357298254966736,
-0.19604289531707764,
-0.435386061668396,
-0.42155003547668457,
-0.15199479460716248,
-0.3628089129924774,
0.017423199489712715,
-0.10628165304660797,
-0.036834049969911575,
-0.3589264154434204,
-0.021784117445349693,
-0.048008374869823456,
0.23299218714237213,
0.4084705412387848,
0.24754182994365692,
0.33811795711517334,
0.0511741079390049,
-0.34787821769714355,
-0.13334307074546814,
0.08548218011856079,
-0.04586556926369667,
0.20325271785259247,
-0.06251047551631927,
0.08330610394477844,
0.09176214039325714,
0.05760016292333603,
-0.27538934350013733,
0.11876104772090912,
0.13332608342170715,
-0.13122878968715668,
-0.13275018334388733,
-0.011834796518087387,
0.08341219276189804,
0.015152685344219208,
0.36504024267196655,
-0.3823321759700775,
-0.37355807423591614,
0.2127169370651245,
0.036606431007385254,
-0.382459431886673,
0.009144917130470276,
-0.11232274025678635,
-0.009332090616226196,
-0.17003262042999268,
0.06643553823232651,
-0.1201469898223877,
-0.02059822529554367,
0.07037416100502014,
-0.2472747415304184,
0.4081156253814697,
-0.250610888004303,
0.04697151109576225,
0.0798310860991478,
-0.08483045548200607,
-0.49818605184555054,
0.08689405769109726,
-0.19842465221881866,
0.033559344708919525,
-0.34009015560150146,
-0.02502397447824478,
-0.07630249112844467,
-0.3464219272136688,
0.08133728802204132,
0.3945920467376709,
0.04874378442764282,
0.25918638706207275,
0.16996896266937256,
0.20894229412078857,
-0.13018053770065308,
0.49598339200019836,
0.2420792579650879,
0.22003725171089172,
0.1657264232635498,
0.2019772082567215,
-0.06615415215492249,
-0.06878939270973206,
-0.1287659853696823,
-0.2297535538673401,
0.2602819800376892,
0.08043457567691803,
0.32827770709991455,
-0.07557211071252823,
-0.5133695006370544,
0.17524197697639465,
0.24009039998054504,
-0.06078797206282616,
-0.0440923310816288,
0.39270174503326416,
-0.23990656435489655,
0.15003201365470886,
-0.15352585911750793,
0.2635987401008606,
-0.23595277965068817,
-0.3667459189891815,
-0.24689868092536926,
0.017870092764496803,
-0.2878114879131317,
-0.1278098076581955,
0.1567809283733368,
0.1984206587076187,
0.13187259435653687,
-0.05939570814371109,
0.3452296257019043,
-0.17178142070770264,
0.2690590023994446,
-0.20849299430847168,
-0.03403607755899429,
-0.0009562261402606964,
-0.1924010068178177,
0.0749267041683197,
0.4489346444606781,
-0.7316140532493591,
-0.10491671413183212,
-0.12897434830665588,
-0.37921029329299927,
-0.2902466058731079,
0.26129835844039917,
0.2740132808685303,
-0.2312813550233841,
-0.3622233271598816,
-0.41790661215782166,
0.21161410212516785,
-0.012301333248615265,
0.054333578795194626,
-0.024652250111103058,
-0.03732719272375107,
-0.217805415391922,
-0.2653992772102356,
0.3607482314109802,
0.3120442032814026,
-0.15712107717990875,
-0.1470867395401001,
0.046998001635074615,
-0.1452469378709793,
0.04655589908361435,
-0.1418343186378479,
0.08976633846759796,
0.3025013208389282,
0.003986986353993416,
-0.037852101027965546,
0.37724998593330383,
-0.33983880281448364,
-0.479755163192749,
-0.07320939004421234,
0.015363737940788269,
-0.2394687533378601,
0.026477433741092682,
-0.09476643055677414,
0.5503352880477905,
-0.011440874077379704,
0.014831166714429855,
0.05216720700263977,
0.11854027956724167,
-0.24585430324077606,
-0.19199132919311523,
-0.3879252076148987,
0.0008229352533817291,
0.06642526388168335,
0.5991949439048767,
0.06908880919218063,
0.23367524147033691,
0.36487388610839844,
0.21550622582435608,
0.033559925854206085,
-0.03523094207048416,
0.20002402365207672,
0.6257204413414001,
-0.1667003482580185,
0.26249346137046814,
-0.5427997708320618,
0.08942478150129318,
0.13996493816375732,
0.1393520087003708,
0.001927100121974945,
0.003525756299495697,
-0.14695465564727783,
-0.5078863501548767,
0.06686681509017944,
-0.14580170810222626,
0.06264087557792664,
0.19518156349658966,
0.18135246634483337,
-0.10515058040618896,
0.23513467609882355,
-0.2970179617404938,
-0.026200449094176292,
-0.1130385771393776,
0.27307549118995667,
0.11143498122692108,
0.21010304987430573,
-0.015811728313565254,
-0.28501173853874207,
0.22381728887557983,
0.2779827117919922,
0.24042052030563354,
-0.09665689617395401,
-0.1334514617919922,
0.4079408645629883,
0.2851320207118988,
0.19623017311096191,
0.0060255154967308044,
0.3215177059173584,
0.0572759211063385,
-0.32302984595298767,
-0.13350273668766022,
0.49252092838287354,
0.02972685918211937,
-0.07443287968635559,
0.06897921115159988,
0.34355077147483826,
0.11005006730556488,
0.10874108225107193,
0.0434565469622612,
0.2713368535041809,
0.045142173767089844,
-0.05106194689869881,
-0.0742415338754654,
-0.253187358379364,
-0.08793298900127411,
-0.2256300151348114,
-0.08661413192749023,
-0.18094417452812195,
0.08711712062358856,
0.0022354349493980408,
0.30217444896698,
0.16484041512012482,
0.1735639125108719,
0.03657571226358414,
-0.24399840831756592,
0.04063638299703598,
-0.21936175227165222,
0.25144362449645996,
0.34480759501457214,
0.12039192765951157,
0.06287681311368942,
0.08483218401670456,
-0.040203314274549484,
-0.024376897141337395,
0.2261277437210083,
0.10479165613651276,
-0.47934597730636597,
0.22927117347717285,
0.035115666687488556,
0.125246062874794,
-0.1896263062953949,
0.021619480103254318,
0.002316247671842575,
0.30324679613113403,
-0.11193380504846573,
0.1487003117799759,
-0.18410716950893402,
0.2805728614330292,
-0.03528699278831482,
-0.16829869151115417,
-0.03673172369599342,
-0.17683145403862,
0.031673382967710495,
0.009489044547080994,
0.175676167011261,
0.40280914306640625,
-0.015124605968594551,
0.34653735160827637,
0.0519646555185318,
-0.2131378948688507,
0.1350438892841339,
-0.08750942349433899,
-0.03911405801773071,
0.021433845162391663,
0.009357255883514881,
-0.20576779544353485,
0.294646292924881,
-0.18136586248874664,
0.015384320169687271,
-0.32458701729774475,
-0.3740167021751404,
0.07284429669380188,
0.07975991070270538,
0.4360910654067993,
0.1809331476688385,
-0.16628848016262054,
-0.02490868791937828,
-0.05528314784169197,
0.3301907479763031,
-0.25991007685661316,
0.05957435071468353,
0.34262049198150635,
-0.08489944040775299,
-0.20888084173202515,
0.011193253099918365,
-0.4363757073879242,
-0.013547325506806374,
-0.3943408131599426,
-0.05776725709438324,
0.23025022447109222,
-0.11760945618152618,
0.06398814171552658,
0.22327487170696259,
0.1488092541694641,
0.16535364091396332,
0.14982597529888153,
-0.18319928646087646,
-0.10055527091026306,
0.5080995559692383,
-0.19295190274715424,
-0.40197834372520447,
0.16474266350269318,
-0.11327691376209259,
0.23341193795204163,
0.05976076424121857,
-0.28610074520111084,
-0.3820081353187561,
0.001004314050078392,
-0.0054817162454128265,
-0.05731596052646637,
0.1456349492073059,
0.0758751779794693,
0.029179517179727554,
-0.20263069868087769,
-0.1702333390712738,
-0.2736973166465759,
-0.004636920988559723,
-0.1380312740802765,
0.2538144290447235,
-0.17685243487358093,
-0.1441245675086975,
0.4649413526058197,
0.8005050420761108,
0.33428412675857544,
-0.28825145959854126,
0.0038182437419891357,
0.04076024889945984,
0.39071303606033325,
0.22858715057373047,
-0.42756977677345276,
0.09831001609563828,
-0.33242207765579224,
0.1017845869064331,
0.32152068614959717,
-0.013699313625693321,
0.04279124736785889,
-0.10926070809364319,
-0.03660465031862259,
0.07214885950088501,
-0.18942292034626007,
-0.18767759203910828,
-0.065953329205513,
0.19599586725234985,
0.020411033183336258,
0.13924899697303772,
-0.2542547583580017,
-0.10778353363275528,
0.3225864768028259,
0.439741313457489,
-0.3692907691001892,
0.1287803053855896,
-0.42562493681907654,
0.21703709661960602,
-0.13802319765090942,
0.3367147445678711,
-0.31822001934051514,
0.2477903515100479,
0.09714232385158539,
0.06066010147333145,
-0.10705272853374481,
-0.24161629378795624,
0.2020464986562729,
-0.12696097791194916,
-0.009118594229221344,
0.1536356657743454,
0.08839206397533417,
-0.19973519444465637,
0.01428230106830597,
-0.18396207690238953,
0.1971753090620041,
0.21832150220870972,
0.25642919540405273,
-0.20917408168315887,
0.049379732459783554,
0.050561949610710144,
0.23965437710285187,
-0.2843267321586609,
0.11723091453313828,
-0.4796839654445648,
-0.08155986666679382,
-0.09567629545927048,
0.17436930537223816,
-0.20408083498477936,
0.03130784258246422,
0.07082739472389221,
0.1279573142528534,
-0.5701894760131836,
-0.2751622796058655,
0.376076340675354,
-0.12288156151771545,
0.20803824067115784,
-0.2716873586177826,
0.1411862075328827,
0.025574900209903717,
0.02952047996222973,
0.490615576505661,
0.2761417031288147,
-0.06850254535675049,
-0.4534592628479004,
-0.14425459504127502,
-0.05795055255293846,
0.3826785087585449,
0.1869012713432312,
-0.31897038221359253,
0.14941735565662384,
-0.026345141232013702,
0.2732059955596924,
-0.4339579641819,
0.27602848410606384,
0.2799220681190491,
0.15385489165782928,
-0.0894288644194603,
-0.28630852699279785,
0.04048268869519234,
-0.04278377816081047,
-0.11774421483278275,
0.13305911421775818,
0.19540351629257202,
-0.04732365161180496,
0.32978224754333496,
0.12523165345191956,
1.0295541286468506,
0.24977661669254303,
-0.14507311582565308,
0.20489510893821716,
-0.12255552411079407,
0.17709141969680786,
-0.3889920115470886,
0.14919927716255188,
-0.21457570791244507,
-0.3497612178325653,
-0.0027977079153060913,
-0.07861467450857162,
0.24612557888031006,
-0.08120545744895935,
-0.5005115270614624,
0.14827828109264374,
-0.10568580031394958,
0.12299536168575287,
0.20176774263381958,
0.19522634148597717,
-0.019381539896130562,
-0.02141287550330162,
0.14405953884124756,
0.22382837533950806,
-0.08574314415454865,
-0.0018108561635017395,
-0.14568203687667847,
0.13496758043766022,
0.1607820689678192,
-0.12899091839790344,
-0.2532969117164612,
-0.020207315683364868,
-0.22260509431362152,
0.1560371220111847,
0.15565134584903717,
-0.05481113865971565,
0.053881172090768814,
0.3182266354560852,
0.6783839464187622,
0.2679535150527954,
-0.1529315859079361,
0.17432168126106262,
-0.16084277629852295,
-0.017735157161951065,
-0.05906759947538376,
-0.13272620737552643,
0.47236236929893494,
-0.04320261999964714,
-0.14075063169002533,
0.11975182592868805,
0.15257003903388977,
0.005870457738637924,
-0.060047172009944916,
-0.0463879331946373,
0.22359351813793182,
-0.20586034655570984,
0.12115748226642609,
-0.055893778800964355,
-0.040783584117889404,
-0.3475440442562103,
0.17860445380210876,
0.05888598412275314,
-0.2360813468694687,
0.411348432302475,
0.006655089557170868,
-0.2602077126502991,
-0.04359612241387367,
0.511790931224823,
-0.010094959288835526,
-0.37508586049079895,
0.36480486392974854,
-0.37494000792503357,
-0.17878130078315735,
-0.33534425497055054,
-0.12088313698768616,
-0.1823655068874359,
-0.1781056821346283,
0.20703396201133728,
-0.20563608407974243,
0.1281827837228775,
0.24620813131332397,
0.30606532096862793,
0.3564526438713074,
-0.18280848860740662,
-0.08652284741401672,
-0.2616470456123352,
-0.28051549196243286,
0.07183970510959625,
0.07431960105895996,
-0.03328735753893852,
-0.31515824794769287,
0.07527357339859009,
0.003148045390844345,
0.3176881670951843,
-0.36841556429862976,
0.3009013533592224,
-0.2032567709684372,
-0.004991762340068817,
0.04389350861310959,
-0.15413987636566162,
0.015481480397284031,
-0.0865897387266159,
0.0496668815612793,
-0.056904539465904236,
-0.40740934014320374,
-0.16010037064552307,
-0.37756863236427307,
0.15926147997379303,
0.1250624805688858,
0.1932140588760376,
0.026591677218675613,
0.06965014338493347,
-0.10822446644306183,
-0.1402437835931778,
0.05312420055270195,
0.4404635429382324,
-0.18073491752147675,
0.26376745104789734,
-0.07325056195259094,
0.32418352365493774,
0.007224656641483307,
-0.16006997227668762,
0.2754862308502197,
0.2447517067193985,
0.13876743614673615,
0.1572493016719818,
-0.14301924407482147,
-0.020298175513744354,
-0.08029166609048843,
0.20102445781230927,
0.30112314224243164,
-0.04880177974700928,
0.3822995126247406,
-0.3700404763221741,
-0.013949578627943993,
-0.07115291804075241,
0.2680603861808777,
0.3289753198623657,
-0.14078380167484283,
-0.0768895372748375,
0.20629504323005676,
0.2511439025402069,
-0.34843558073043823,
-0.08367722481489182,
-0.09777100384235382,
0.14526277780532837,
0.11646498739719391,
0.19484063982963562,
0.37753400206565857,
-0.26658540964126587,
0.18535609543323517,
0.05414334684610367,
0.3624937832355499,
-0.2315695732831955,
0.5102026462554932,
-0.29281824827194214,
0.11826319992542267,
0.062123853713274,
0.2977145314216614,
0.1461983472108841,
0.25707724690437317,
0.3735707402229309,
-0.11513210088014603,
0.7012065052986145,
0.23681142926216125,
0.04976106435060501,
-0.09399434179067612,
-0.02476368099451065,
0.305364191532135,
-0.033492088317871094,
-0.05133947730064392,
-0.10468190163373947,
-0.08023346960544586,
0.47660884261131287,
-0.19453974068164825,
-0.043630536645650864,
-0.19617891311645508,
-0.2771186828613281,
0.01009189523756504,
-0.10296870768070221,
-0.03239696845412254,
-0.26556530594825745,
-0.2995890974998474,
-0.20101182162761688,
0.25873854756355286,
-0.006711818277835846,
0.08454024791717529,
-0.05832093954086304,
0.04901677742600441,
-0.19658246636390686,
-0.01691248267889023,
0.29033350944519043,
0.1799902319908142,
-0.3022833466529846,
-0.12077786773443222,
0.06233192980289459,
0.06678733229637146,
0.049785416573286057,
0.4140070080757141,
0.4629569947719574,
0.3816128671169281,
-0.20345653593540192,
-0.004830553196370602,
-0.18431265652179718,
-0.03426714986562729,
-0.019111916422843933,
0.31449589133262634,
-0.0050157904624938965,
-0.4414653182029724,
0.20364053547382355,
0.20731620490550995,
-0.1920170783996582,
0.07665817439556122,
0.016565099358558655,
-0.21336966753005981,
-0.46648433804512024,
0.6189282536506653,
0.199056476354599,
-0.005928896367549896,
-0.16932037472724915,
-0.13641774654388428,
-0.550584077835083,
0.035836972296237946,
0.4961477816104889,
-0.041242435574531555,
0.19069701433181763,
-0.2188340276479721,
0.11292378604412079,
0.1664036065340042,
0.07370954006910324,
0.23213474452495575,
-0.00004201382398605347,
-0.18019479513168335,
-0.023599155247211456,
-0.6460703611373901,
0.3164496123790741,
0.1733722984790802,
0.09061960130929947,
0.07225742936134338,
0.10771964490413666,
-0.13061216473579407,
0.16960707306861877,
0.0667060911655426,
0.06262168288230896,
-0.0957418903708458,
-0.22456589341163635,
-0.6295440196990967,
0.042446069419384,
-0.22469617426395416,
0.08606304228305817,
-0.010043337941169739,
-0.3156253695487976,
-0.22485758364200592,
-0.473667174577713,
0.086795873939991,
0.03833361715078354,
-0.27523505687713623,
0.1972084492444992,
0.09625215828418732,
0.5623539090156555,
-0.013149594888091087,
0.25777947902679443,
0.10924249142408371,
-0.10065028071403503,
-0.1269233375787735,
0.008061518892645836,
-0.27692508697509766,
0.2525500953197479,
-0.047371286898851395,
0.38859662413597107,
-0.32379150390625,
-0.01903456076979637,
-0.2622705101966858,
0.21907687187194824,
0.3211135268211365,
-0.5104790925979614,
-0.2979588210582733,
0.3339653015136719,
-0.07160519808530807,
0.16417467594146729,
0.09362582117319107,
0.403453528881073,
-0.08306203782558441,
0.5707305073738098,
-0.3010043501853943,
-0.35837018489837646,
0.4811253845691681,
-0.23478399217128754,
-0.35359811782836914,
-0.2643519341945648,
0.6121697425842285,
0.21601495146751404,
-0.09469526261091232,
-0.5384445786476135,
0.0012244507670402527,
0.4085336923599243,
-0.01951296254992485,
-0.23717062175273895,
0.1611611545085907,
-0.287820428609848,
0.10454504191875458,
-0.10341574251651764,
0.3256402909755707,
-0.04826151579618454,
-0.0670941025018692,
0.1501838117837906,
-0.11957918107509613
] |
https://github.com/huggingface/datasets/issues/2737 | SacreBLEU update | You can check that here, I've reproduced your code in [Google colab](https://colab.research.google.com/drive/1X90fHRgMLKczOVgVk7NDEw_ciZFDjaCM?usp=sharing). Looks like there was some issue in `sacrebleu` which was fixed later from what I've found [here](https://github.com/pytorch/fairseq/issues/2049#issuecomment-622367967). Upgrading `sacrebleu` to latest version should work. | With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
| 36 | SacreBLEU update
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
You can check that here, I've reproduced your code in [Google colab](https://colab.research.google.com/drive/1X90fHRgMLKczOVgVk7NDEw_ciZFDjaCM?usp=sharing). Looks like there was some issue in `sacrebleu` which was fixed later from what I've found [here](https://github.com/pytorch/fairseq/issues/2049#issuecomment-622367967). Upgrading `sacrebleu` to latest version should work. | [
-0.35782065987586975,
0.19118225574493408,
-0.013056209310889244,
-0.12196709215641022,
0.4591221809387207,
-0.25873255729675293,
0.1023559719324112,
0.3462674021720886,
-0.10472659766674042,
0.17029157280921936,
0.02926858887076378,
0.3873143494129181,
-0.02860669046640396,
-0.12960317730903625,
-0.08967148512601852,
-0.08184094727039337,
0.022336646914482117,
0.11037168651819229,
0.2108439952135086,
-0.06507345288991928,
-0.2887302041053772,
0.08739150315523148,
-0.16319844126701355,
0.08526676148176193,
-0.24923788011074066,
-0.002316916361451149,
-0.07602629065513611,
-0.07797560840845108,
-0.4405119717121124,
-0.6061071753501892,
0.11860217154026031,
0.12102693319320679,
-0.04798728972673416,
0.37434518337249756,
-0.00010584545088931918,
-0.11074857413768768,
0.305143803358078,
-0.1988532990217209,
-0.40264663100242615,
-0.3009611964225769,
-0.12766999006271362,
-0.2364971935749054,
0.10637582838535309,
-0.14558076858520508,
-0.18184003233909607,
-0.30462533235549927,
0.02527480572462082,
0.0940321534872055,
0.2512165606021881,
0.45294371247291565,
0.3059908151626587,
0.40626218914985657,
0.023012522608041763,
-0.352465957403183,
-0.019998230040073395,
-0.024233415722846985,
-0.013146353885531425,
0.2505609095096588,
-0.06467287242412567,
-0.02021816372871399,
-0.052027247846126556,
0.0627773106098175,
-0.17069244384765625,
0.16239655017852783,
-0.02370874583721161,
-0.08738426864147186,
-0.11774391680955887,
-0.06951984018087387,
0.04949544742703438,
-0.08126389235258102,
0.2804450988769531,
-0.3829123377799988,
-0.4305170178413391,
0.20862334966659546,
0.0718516930937767,
-0.29175129532814026,
-0.008119732141494751,
-0.1182374507188797,
-0.011707045137882233,
-0.16717654466629028,
0.07973188161849976,
-0.030903467908501625,
-0.04696548357605934,
0.02184685319662094,
-0.2776469588279724,
0.39910879731178284,
-0.21678799390792847,
0.029543280601501465,
0.10194506496191025,
-0.07985866069793701,
-0.5395299792289734,
0.172598198056221,
-0.16304869949817657,
-0.04727761819958687,
-0.3372487723827362,
-0.05209677666425705,
-0.03522079437971115,
-0.3039967119693756,
0.07972479611635208,
0.2673197388648987,
0.07893412560224533,
0.32342204451560974,
0.1725977212190628,
0.20881137251853943,
-0.1074548214673996,
0.5174102783203125,
0.15698742866516113,
0.2109556794166565,
0.1481880396604538,
0.2084749937057495,
-0.15824422240257263,
0.013210520148277283,
-0.0868137776851654,
-0.2773759961128235,
0.18113790452480316,
0.05041085183620453,
0.2989053726196289,
-0.1296224147081375,
-0.5161453485488892,
0.12122653424739838,
0.3249458074569702,
0.007468353491276503,
-0.07844119518995285,
0.46000856161117554,
-0.2759072184562683,
0.08376305550336838,
-0.11504901200532913,
0.23349177837371826,
-0.3387950360774994,
-0.32300081849098206,
-0.27665218710899353,
0.04082244634628296,
-0.3742508888244629,
-0.08810174465179443,
0.20876730978488922,
0.26426154375076294,
0.18019640445709229,
-0.08654730767011642,
0.34935444593429565,
-0.13168418407440186,
0.25866127014160156,
-0.2561264634132385,
-0.05172518640756607,
-0.006976757198572159,
-0.14306911826133728,
-0.031516388058662415,
0.46880561113357544,
-0.6108632683753967,
-0.05669829994440079,
-0.12541517615318298,
-0.326138436794281,
-0.23629993200302124,
0.28846287727355957,
0.3258456289768219,
-0.23715518414974213,
-0.2956564724445343,
-0.3317900002002716,
0.23743373155593872,
0.07263392955064774,
0.02776481583714485,
-0.017604179680347443,
-0.12263689935207367,
-0.20254115760326385,
-0.24388304352760315,
0.3008957803249359,
0.3525291085243225,
-0.15875934064388275,
-0.16210871934890747,
0.15849319100379944,
-0.1695159673690796,
0.06248368322849274,
-0.07631485164165497,
0.011552643030881882,
0.3146710991859436,
0.038240671157836914,
-0.02378103882074356,
0.29550403356552124,
-0.285778284072876,
-0.5236397385597229,
-0.08199775964021683,
-0.015497539192438126,
-0.25002577900886536,
-0.053006403148174286,
-0.06276476383209229,
0.6092699766159058,
0.06004960834980011,
-0.003825828433036804,
-0.011536695063114166,
0.15576641261577606,
-0.042796969413757324,
-0.26753589510917664,
-0.3750510811805725,
-0.00795077160000801,
0.07907688617706299,
0.5792469382286072,
0.034650418907403946,
0.22446289658546448,
0.15795454382896423,
0.1856233775615692,
0.02338770031929016,
0.018966173753142357,
0.23089498281478882,
0.6588175892829895,
-0.16638600826263428,
0.24704411625862122,
-0.4124957323074341,
0.09872747957706451,
0.14146819710731506,
-0.0113151166588068,
0.09376894682645798,
0.051942337304353714,
-0.19477073848247528,
-0.469192236661911,
-0.01834176480770111,
-0.2268974334001541,
0.011952431872487068,
0.27151718735694885,
0.13782358169555664,
-0.07973754405975342,
0.203203484416008,
-0.2275077849626541,
0.031187521293759346,
-0.10758335143327713,
0.24390260875225067,
0.11141394078731537,
0.20189152657985687,
-0.10648959130048752,
-0.3009127676486969,
0.30255234241485596,
0.22519758343696594,
0.255226194858551,
-0.026972105726599693,
-0.1187356486916542,
0.404030978679657,
0.271854966878891,
0.12110669165849686,
0.11039674282073975,
0.23456870019435883,
0.047045111656188965,
-0.3110349178314209,
-0.14868953824043274,
0.4316519796848297,
0.04844847694039345,
-0.051489271223545074,
0.039766907691955566,
0.406299352645874,
0.14101560413837433,
0.04609578847885132,
0.06791145354509354,
0.1683560311794281,
0.03603792190551758,
-0.11957302689552307,
-0.08891291171312332,
-0.19636479020118713,
-0.07993680238723755,
-0.1591661274433136,
-0.062339603900909424,
-0.14174552261829376,
0.07800054550170898,
0.08795831352472305,
0.3270541727542877,
0.24866265058517456,
0.20668372511863708,
0.07692083716392517,
-0.17981809377670288,
-0.021241141483187675,
-0.177020862698555,
0.216144397854805,
0.36475953459739685,
0.1700562685728073,
0.04384533315896988,
0.07632911205291748,
-0.04632256552577019,
-0.0378088541328907,
0.17917601764202118,
0.06531381607055664,
-0.42009902000427246,
0.15370583534240723,
0.17660307884216309,
0.0890042781829834,
-0.19635990262031555,
0.058550138026475906,
0.062205009162425995,
0.2806887626647949,
-0.09121571481227875,
0.1762314736843109,
-0.1289592683315277,
0.3334776759147644,
0.015899507328867912,
-0.21815629303455353,
-0.046045150607824326,
-0.1709311604499817,
0.17343421280384064,
0.0025805942714214325,
0.07366187870502472,
0.3721659183502197,
0.010924097150564194,
0.3784332871437073,
0.20018024742603302,
-0.21120284497737885,
0.10666844248771667,
-0.21197353303432465,
-0.0180869922041893,
0.07605664432048798,
-0.1197410523891449,
-0.042126547545194626,
0.3133832812309265,
-0.15654073655605316,
-0.012821641750633717,
-0.32368043065071106,
-0.3269428312778473,
0.11137484014034271,
0.014259254559874535,
0.4556111693382263,
0.13972942531108856,
-0.1708730310201645,
-0.14370942115783691,
-0.05778276547789574,
0.3358260989189148,
-0.23410390317440033,
-0.0047561414539813995,
0.31236302852630615,
-0.12451867759227753,
-0.17324571311473846,
-0.1278390735387802,
-0.4561176002025604,
0.002666359767317772,
-0.38195186853408813,
-0.08506248891353607,
0.1646661013364792,
-0.03690718114376068,
0.048037122935056686,
0.24759024381637573,
0.11481716483831406,
0.09564528614282608,
0.05879860371351242,
-0.27146825194358826,
-0.13220034539699554,
0.5068071484565735,
-0.3097522258758545,
-0.475490003824234,
0.151846781373024,
-0.12263300269842148,
0.28454217314720154,
0.0372849777340889,
-0.28219297528266907,
-0.529949963092804,
0.019512450322508812,
0.028024423867464066,
-0.06095676124095917,
0.08012017607688904,
0.11693263053894043,
0.02318638190627098,
-0.28262415528297424,
-0.17941418290138245,
-0.20123477280139923,
0.13832053542137146,
-0.06383565813302994,
0.2962294816970825,
-0.288206547498703,
-0.14921563863754272,
0.3420608639717102,
0.8126739263534546,
0.2221948504447937,
-0.28426164388656616,
0.02870304509997368,
-0.004636848345398903,
0.36493369936943054,
0.1545114815235138,
-0.34456905722618103,
0.18045875430107117,
-0.2892850637435913,
0.14496111869812012,
0.36997032165527344,
-0.09956864267587662,
0.025793366134166718,
-0.07075335085391998,
0.09047114849090576,
0.01096300408244133,
-0.2755066156387329,
-0.18292930722236633,
0.07041069865226746,
0.17368173599243164,
0.02688915655016899,
0.1381927728652954,
-0.2520948052406311,
-0.016327913850545883,
0.2843599021434784,
0.39957481622695923,
-0.2782476246356964,
0.07102207839488983,
-0.27095016837120056,
0.18757903575897217,
-0.16720235347747803,
0.26550450921058655,
-0.30680638551712036,
0.20812572538852692,
0.1071387380361557,
0.06995518505573273,
-0.06485237181186676,
-0.23802714049816132,
0.23086190223693848,
0.01543684396892786,
0.045804452151060104,
0.129230335354805,
0.015941113233566284,
-0.13665571808815002,
0.004739262163639069,
-0.2175615131855011,
0.15861006081104279,
0.21813203394412994,
0.20169241726398468,
-0.3195238709449768,
0.09646017104387283,
0.061757855117321014,
0.15534934401512146,
-0.3420923352241516,
0.09231451898813248,
-0.5545896887779236,
-0.14465346932411194,
-0.14314788579940796,
0.27547919750213623,
-0.2147543877363205,
0.028750484809279442,
-0.07320591062307358,
0.14910556375980377,
-0.47613048553466797,
-0.2124084234237671,
0.2964620888233185,
-0.0050977496430277824,
0.23992550373077393,
-0.25610509514808655,
0.13372376561164856,
-0.034792497754096985,
0.031544171273708344,
0.4541696310043335,
0.31607872247695923,
0.03610089048743248,
-0.37910306453704834,
-0.05879610776901245,
-0.006606449838727713,
0.2954762876033783,
0.11326009780168533,
-0.21934352815151215,
0.12621456384658813,
-0.09737355262041092,
0.3588215708732605,
-0.288573682308197,
0.31995919346809387,
0.211746484041214,
0.0973445326089859,
-0.022351950407028198,
-0.14765669405460358,
0.05947762727737427,
-0.20941881835460663,
-0.09820377081632614,
0.027458440512418747,
0.18052293360233307,
-0.02673020027577877,
0.3437110185623169,
0.12847968935966492,
0.972865879535675,
0.15453490614891052,
-0.16980041563510895,
0.3814636766910553,
-0.029946673661470413,
0.15757524967193604,
-0.32144278287887573,
0.18221111595630646,
-0.28425082564353943,
-0.28303003311157227,
0.05903412401676178,
-0.046011362224817276,
0.18157225847244263,
-0.055311352014541626,
-0.5791156888008118,
0.17619246244430542,
-0.05466446280479431,
0.00020660832524299622,
0.21852384507656097,
0.1534944474697113,
0.054331742227077484,
-0.039847541600465775,
0.06791234016418457,
0.26231756806373596,
-0.188881516456604,
0.03542672470211983,
-0.1071687862277031,
0.051759518682956696,
0.08319029211997986,
-0.12944385409355164,
-0.07457941770553589,
0.0736994817852974,
-0.2968596816062927,
0.13417094945907593,
0.09890957921743393,
-0.05114573612809181,
0.014361109584569931,
0.2612829804420471,
0.5497258901596069,
0.30409926176071167,
-0.127584770321846,
0.20803169906139374,
-0.10199318081140518,
-0.09718471020460129,
-0.07605919986963272,
-0.10310675948858261,
0.4004954993724823,
-0.05564311146736145,
-0.2246282398700714,
0.13415664434432983,
0.10706906020641327,
-0.0316573828458786,
-0.0437452495098114,
-0.010952740907669067,
0.2206585705280304,
-0.2373541295528412,
0.0671289712190628,
-0.09112747013568878,
-0.16623756289482117,
-0.3255869746208191,
0.20398110151290894,
0.07990541309118271,
-0.23088783025741577,
0.4265980124473572,
0.12054106593132019,
-0.2824658155441284,
-0.05496830865740776,
0.4708358645439148,
-0.022267531603574753,
-0.2782505452632904,
0.35411888360977173,
-0.30691033601760864,
-0.18814444541931152,
-0.37047135829925537,
-0.3024504780769348,
-0.15844404697418213,
-0.2403985559940338,
0.129445880651474,
-0.1099831759929657,
0.07563769817352295,
0.3476690948009491,
0.29726898670196533,
0.2949800491333008,
-0.20069509744644165,
-0.07644279301166534,
-0.1964138001203537,
-0.3316255509853363,
0.0594496950507164,
0.1357143670320511,
-0.017300505191087723,
-0.1900382936000824,
0.15277409553527832,
0.027692297473549843,
0.3771694600582123,
-0.43105843663215637,
0.23933982849121094,
-0.3082426190376282,
0.13501477241516113,
0.05077800899744034,
-0.2673182189464569,
0.016403671354055405,
0.0019291238859295845,
0.08461464941501617,
0.06955564022064209,
-0.35976642370224,
-0.24047333002090454,
-0.31868845224380493,
0.11501213908195496,
0.11843977123498917,
0.2952626347541809,
-0.08025817573070526,
0.13467535376548767,
-0.1008254885673523,
-0.14178167283535004,
0.07329283654689789,
0.3997765779495239,
-0.18486599624156952,
0.26001235842704773,
-0.0433531291782856,
0.2943045198917389,
0.13778208196163177,
-0.0841609314084053,
0.22185629606246948,
0.19799837470054626,
0.13520702719688416,
0.13585031032562256,
-0.2521339952945709,
-0.0349322147667408,
0.00801893975585699,
0.16392359137535095,
0.29549217224121094,
0.045042119920253754,
0.32620882987976074,
-0.3317492604255676,
-0.04728301614522934,
-0.11570639163255692,
0.2377043068408966,
0.15944170951843262,
-0.1561025232076645,
-0.18541614711284637,
0.1604343056678772,
0.30805036425590515,
-0.37716636061668396,
-0.0732603520154953,
-0.169832244515419,
0.10696934163570404,
0.21182093024253845,
0.22121818363666534,
0.2498072385787964,
-0.2954525947570801,
0.23899762332439423,
0.1047462597489357,
0.35516178607940674,
-0.11473354697227478,
0.31962594389915466,
-0.4188705086708069,
0.048144180327653885,
0.03398656100034714,
0.3200392425060272,
0.1382943093776703,
0.24130931496620178,
0.2761480510234833,
-0.13085505366325378,
0.7322457432746887,
0.2012881338596344,
0.02838466316461563,
-0.10493125766515732,
-0.019227774813771248,
0.19283953309059143,
0.034016966819763184,
0.015568740665912628,
-0.10411957651376724,
-0.12502971291542053,
0.43882662057876587,
-0.20569460093975067,
-0.0482136532664299,
-0.21447432041168213,
-0.2102620154619217,
0.016707768663764,
-0.0024714902974665165,
-0.04328615218400955,
-0.2329719364643097,
-0.20160512626171112,
-0.18737375736236572,
0.26551640033721924,
-0.003235146403312683,
0.13056284189224243,
-0.06825429201126099,
0.029005885124206543,
-0.14517956972122192,
-0.09511186927556992,
0.27403929829597473,
0.10354432463645935,
-0.21659347414970398,
-0.01571541465818882,
0.05460559204220772,
0.10203801095485687,
0.02574971690773964,
0.350470632314682,
0.33990955352783203,
0.40870243310928345,
-0.20742647349834442,
0.03166775032877922,
-0.17504140734672546,
0.0038702748715877533,
-0.049992118030786514,
0.19952045381069183,
0.07984329015016556,
-0.48127877712249756,
0.29946261644363403,
0.2601359784603119,
-0.23846109211444855,
-0.0848107635974884,
0.021951761096715927,
-0.18372729420661926,
-0.32994791865348816,
0.43435055017471313,
0.2688828110694885,
0.00575236976146698,
-0.17434725165367126,
-0.11973852664232254,
-0.6330941915512085,
0.0110938074067235,
0.3685869574546814,
-0.07538842409849167,
0.1884404420852661,
-0.2897849678993225,
0.148545503616333,
0.05456196516752243,
0.14471596479415894,
0.19440259039402008,
0.059114739298820496,
-0.26368167996406555,
-0.026903435587882996,
-0.7193476557731628,
0.3840247392654419,
0.212540403008461,
0.0873720720410347,
0.03873411938548088,
0.2004413902759552,
-0.18063390254974365,
0.14413771033287048,
0.05892113596200943,
0.026014534756541252,
-0.05705117806792259,
-0.22952169179916382,
-0.6657165884971619,
0.11367106437683105,
-0.3540846109390259,
0.09681347012519836,
0.05873444676399231,
-0.3082035481929779,
-0.18850873410701752,
-0.3494606912136078,
0.1655975878238678,
0.041865214705467224,
-0.2623750567436218,
0.1670268028974533,
0.05142699554562569,
0.518099844455719,
-0.010691488161683083,
0.22910457849502563,
0.039909012615680695,
-0.08650963753461838,
-0.13308873772621155,
-0.0327969528734684,
-0.19950686395168304,
0.16765274107456207,
-0.021218284964561462,
0.3710516095161438,
-0.13064280152320862,
0.06372743844985962,
-0.26649603247642517,
0.22701962292194366,
0.3711470365524292,
-0.4613426923751831,
-0.16485321521759033,
0.3245266377925873,
0.0407230481505394,
0.14667978882789612,
0.05967354401946068,
0.37354257702827454,
-0.005375873297452927,
0.5238209366798401,
-0.3329612612724304,
-0.30239415168762207,
0.5458354949951172,
-0.319212943315506,
-0.32094061374664307,
-0.2270156294107437,
0.6169541478157043,
0.2041415572166443,
-0.1760111302137375,
-0.5343705415725708,
0.04165329784154892,
0.3197527825832367,
0.0008441954851150513,
-0.1647975742816925,
0.11021889746189117,
-0.3402336537837982,
0.09092661738395691,
-0.178998202085495,
0.40633681416511536,
-0.04388374835252762,
0.031647972762584686,
0.09027250111103058,
-0.1580963432788849
] |
https://github.com/huggingface/datasets/issues/2737 | SacreBLEU update | It seems that next release of `sacrebleu` (v2.0.0) will break our `datasets` implementation to compute it. See my Google Colab: https://colab.research.google.com/drive/1SKmvvjQi6k_3OHsX5NPkZdiaJIfXyv9X?usp=sharing
I'm reopening this Issue and making a Pull Request to fix it. | With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
| 33 | SacreBLEU update
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
It seems that next release of `sacrebleu` (v2.0.0) will break our `datasets` implementation to compute it. See my Google Colab: https://colab.research.google.com/drive/1SKmvvjQi6k_3OHsX5NPkZdiaJIfXyv9X?usp=sharing
I'm reopening this Issue and making a Pull Request to fix it. | [
-0.3739026188850403,
0.23291566967964172,
0.01667902246117592,
-0.15293720364570618,
0.3844797611236572,
-0.22800180315971375,
0.14111779630184174,
0.3971855640411377,
-0.14342179894447327,
0.11723586916923523,
0.06348121166229248,
0.3675317168235779,
-0.07474103569984436,
-0.04312989488244057,
-0.04008842259645462,
0.018208317458629608,
0.12867316603660583,
0.05681530013680458,
0.28995954990386963,
0.04796208441257477,
-0.3001469075679779,
0.12943118810653687,
-0.17817053198814392,
-0.01376885175704956,
-0.22988103330135345,
0.04282784461975098,
-0.04314712435007095,
-0.025548547506332397,
-0.43519797921180725,
-0.6946926712989807,
0.2592557966709137,
0.1504911631345749,
-0.13314296305179596,
0.4043775498867035,
-0.00011066938895964995,
-0.06492416560649872,
0.2988053560256958,
-0.1715770959854126,
-0.4254034161567688,
-0.40975797176361084,
-0.1907384991645813,
-0.3609960079193115,
0.01385223213583231,
-0.0621107742190361,
0.025858663022518158,
-0.38961565494537354,
-0.041379086673259735,
0.015013344585895538,
0.23582065105438232,
0.38323768973350525,
0.2394982874393463,
0.4302853047847748,
-0.001596454530954361,
-0.3362754285335541,
-0.11227218061685562,
0.06170302629470825,
-0.04736258462071419,
0.1549789160490036,
-0.09622414410114288,
0.06006714701652527,
-0.019402161240577698,
0.03923666849732399,
-0.18681347370147705,
0.11695075035095215,
0.08505027741193771,
-0.19440320134162903,
-0.21142345666885376,
-0.023932896554470062,
0.08878181129693985,
0.014287900179624557,
0.3667895197868347,
-0.33110857009887695,
-0.4713633954524994,
0.2233426570892334,
0.01248820312321186,
-0.3764417767524719,
0.07646729797124863,
-0.10403876006603241,
-0.042524825781583786,
-0.13208654522895813,
0.029937412589788437,
-0.09797792136669159,
-0.045469045639038086,
0.014378368854522705,
-0.2644270062446594,
0.30456316471099854,
-0.2460584044456482,
0.03189428150653839,
0.04659218341112137,
-0.046027109026908875,
-0.42972174286842346,
0.14793705940246582,
-0.26552337408065796,
-0.008169787935912609,
-0.4187922775745392,
-0.08020678162574768,
-0.02765122801065445,
-0.27852946519851685,
0.15152838826179504,
0.46404141187667847,
0.07942863553762436,
0.29269731044769287,
0.12315584719181061,
0.16039526462554932,
-0.09036922454833984,
0.5370451807975769,
0.17594215273857117,
0.19392597675323486,
0.20644743740558624,
0.20965950191020966,
-0.01024075597524643,
-0.02191612869501114,
0.005619932897388935,
-0.2501818835735321,
0.19660615921020508,
0.03811284154653549,
0.28665781021118164,
-0.1028287410736084,
-0.4676419496536255,
0.15778440237045288,
0.22956374287605286,
-0.038441285490989685,
-0.07252449542284012,
0.33647286891937256,
-0.24984605610370636,
0.21195846796035767,
-0.1920415759086609,
0.21455226838588715,
-0.20499977469444275,
-0.37659114599227905,
-0.25506702065467834,
-0.0666445940732956,
-0.3085426092147827,
-0.040744200348854065,
0.17037786543369293,
0.19109971821308136,
0.17259420454502106,
-0.05404737591743469,
0.39291608333587646,
-0.1610342264175415,
0.2505152225494385,
-0.17407070100307465,
0.03728759288787842,
0.0719728022813797,
-0.14833147823810577,
-0.02470102161169052,
0.3736085593700409,
-0.625606894493103,
-0.040464259684085846,
-0.20145538449287415,
-0.3299653232097626,
-0.27987998723983765,
0.2722167670726776,
0.27419596910476685,
-0.27377647161483765,
-0.2794390320777893,
-0.4384191930294037,
0.2355145663022995,
-0.03627660125494003,
0.06338436901569366,
-0.05323494225740433,
-0.06616876274347305,
-0.22278016805648804,
-0.2717624008655548,
0.3008926808834076,
0.3167228102684021,
-0.16383522748947144,
-0.16712886095046997,
0.10636404156684875,
-0.11237604916095734,
0.08296967297792435,
-0.11654500663280487,
0.004692909307777882,
0.23914596438407898,
0.006091073155403137,
-0.020558174699544907,
0.2737216651439667,
-0.28851163387298584,
-0.5547575354576111,
-0.040884390473365784,
0.06887033581733704,
-0.24002209305763245,
-0.026847951114177704,
-0.1188976988196373,
0.6205390691757202,
-0.07055928558111191,
-0.020098909735679626,
0.019524024799466133,
0.06320565193891525,
-0.24615901708602905,
-0.17658111453056335,
-0.426858127117157,
0.014905106276273727,
0.007716219872236252,
0.6241719722747803,
0.0516897514462471,
0.28333503007888794,
0.38630497455596924,
0.158870667219162,
0.04762282595038414,
-0.005533907562494278,
0.23080573976039886,
0.5782596468925476,
-0.17438939213752747,
0.3671567142009735,
-0.5228919982910156,
0.07757134735584259,
0.21169263124465942,
0.12295593321323395,
0.005603678524494171,
0.031118951737880707,
-0.15647290647029877,
-0.4288707971572876,
0.059471920132637024,
-0.14728054404258728,
0.04221192002296448,
0.20352347195148468,
0.1826678216457367,
-0.11905790865421295,
0.2278321534395218,
-0.28306499123573303,
-0.0059437938034534454,
-0.18571613729000092,
0.2656479775905609,
0.1051391214132309,
0.2024468034505844,
0.0008289273828268051,
-0.23617960512638092,
0.2214999794960022,
0.2695161998271942,
0.20521700382232666,
-0.1491561084985733,
-0.14762094616889954,
0.42823511362075806,
0.3534134030342102,
0.16934113204479218,
0.014657571911811829,
0.31675463914871216,
0.09624265879392624,
-0.3463175296783447,
-0.15195894241333008,
0.48388543725013733,
-0.03579310327768326,
-0.08053834736347198,
0.08865227550268173,
0.3073079586029053,
0.11587660014629364,
0.06535657495260239,
0.09128372371196747,
0.2688133120536804,
0.06637993454933167,
-0.04551878944039345,
-0.19144576787948608,
-0.25905489921569824,
-0.13443201780319214,
-0.24357415735721588,
-0.02881721779704094,
-0.22159437835216522,
0.09342613816261292,
0.0021056681871414185,
0.2694290578365326,
0.14489814639091492,
0.12678374350070953,
0.05667591840028763,
-0.17790094017982483,
-0.06772392988204956,
-0.2078702598810196,
0.34148603677749634,
0.2781052887439728,
0.10377467423677444,
0.10547605156898499,
0.024011166766285896,
-0.04262404888868332,
-0.013424893841147423,
0.18055793642997742,
0.18035942316055298,
-0.3909814953804016,
0.2518910765647888,
0.13368648290634155,
0.13099676370620728,
-0.2239990532398224,
0.020626336336135864,
0.042993076145648956,
0.28130441904067993,
-0.050708457827568054,
0.18241077661514282,
-0.2047245055437088,
0.29968252778053284,
-0.046253323554992676,
-0.1584310531616211,
-0.04367979243397713,
-0.21146221458911896,
0.009243465960025787,
-0.07662506401538849,
0.14956185221672058,
0.4088260233402252,
-0.07326196134090424,
0.37692612409591675,
0.055397965013980865,
-0.06428590416908264,
0.18479685485363007,
-0.06771285086870193,
0.011782199144363403,
0.02651914581656456,
-0.02111288532614708,
-0.24004234373569489,
0.28692230582237244,
-0.19389446079730988,
-0.09860017895698547,
-0.341616690158844,
-0.43839892745018005,
0.16064630448818207,
0.06144791841506958,
0.4100448489189148,
0.2410639375448227,
-0.26036787033081055,
-0.022394808009266853,
0.04118622839450836,
0.18841002881526947,
-0.24122902750968933,
-0.03023402765393257,
0.3084079325199127,
-0.13504153490066528,
-0.18410207331180573,
-0.04380672797560692,
-0.4547431766986847,
0.021229175850749016,
-0.31500065326690674,
-0.03274955600500107,
0.24244742095470428,
-0.07398296892642975,
0.09717942029237747,
0.19060705602169037,
0.13459903001785278,
0.134157195687294,
0.04857875406742096,
-0.2081843614578247,
-0.10738521814346313,
0.41989025473594666,
-0.18745684623718262,
-0.4146062731742859,
0.16936829686164856,
-0.09417062997817993,
0.3023671507835388,
0.12078160792589188,
-0.2617170810699463,
-0.3486178517341614,
0.022356653586030006,
0.08418326079845428,
-0.11616204679012299,
0.000543501228094101,
0.051388710737228394,
0.06159825995564461,
-0.1983550786972046,
-0.22021818161010742,
-0.1936366856098175,
-0.011982671916484833,
-0.12114217132329941,
0.1930123269557953,
-0.16967296600341797,
-0.18349778652191162,
0.5552970767021179,
0.8563191890716553,
0.31076520681381226,
-0.2941722869873047,
-0.01980188488960266,
0.08782172948122025,
0.38713768124580383,
0.22705078125,
-0.3990767002105713,
0.16338467597961426,
-0.41350361704826355,
0.1365123987197876,
0.3416532278060913,
-0.006613792851567268,
-0.044204823672771454,
-0.0444781556725502,
0.05162191763520241,
0.09120183438062668,
-0.1697893738746643,
-0.2644239366054535,
-0.02834620326757431,
0.22784730792045593,
0.053350042551755905,
0.20369786024093628,
-0.24151578545570374,
-0.08095838129520416,
0.32379892468452454,
0.3613366484642029,
-0.3245866000652313,
0.11943169683218002,
-0.38513749837875366,
0.2987194359302521,
-0.2720150351524353,
0.2552254796028137,
-0.3151366114616394,
0.30914658308029175,
0.15744875371456146,
0.09313704818487167,
-0.17664818465709686,
-0.26360049843788147,
0.23349547386169434,
-0.09274614602327347,
0.046997979283332825,
0.16765102744102478,
0.07685975730419159,
-0.1789132058620453,
0.02940789982676506,
-0.20392650365829468,
0.18487626314163208,
0.3138544261455536,
0.32910647988319397,
-0.1619701385498047,
0.02845449000597,
0.09725520014762878,
0.28156810998916626,
-0.2345641404390335,
0.1191425547003746,
-0.42785587906837463,
-0.07475894689559937,
-0.01306779682636261,
0.07158505916595459,
-0.20456939935684204,
-0.022799789905548096,
-0.027771884575486183,
0.11811581254005432,
-0.5347543358802795,
-0.21618372201919556,
0.3146809935569763,
-0.1297745406627655,
0.17525547742843628,
-0.2964363992214203,
0.1668873131275177,
0.05450741946697235,
0.047773685306310654,
0.5340452790260315,
0.26149606704711914,
-0.01479552686214447,
-0.47401612997055054,
-0.0751679390668869,
0.010357589460909367,
0.289335697889328,
0.18118688464164734,
-0.35564953088760376,
0.15885582566261292,
-0.02566174790263176,
0.19118794798851013,
-0.382174551486969,
0.30401304364204407,
0.2679179906845093,
0.12594418227672577,
-0.07865689694881439,
-0.2530212104320526,
0.07033083587884903,
-0.07846347987651825,
-0.10017091035842896,
0.1268385648727417,
0.17226839065551758,
-0.053026922047138214,
0.37450528144836426,
0.18050828576087952,
0.9338231086730957,
0.3048349618911743,
-0.11764007806777954,
0.3112781047821045,
-0.0014500580728054047,
0.1493898332118988,
-0.338581383228302,
0.16848067939281464,
-0.1839233636856079,
-0.3425355553627014,
-0.015901047736406326,
-0.07496962696313858,
0.21207985281944275,
-0.14065226912498474,
-0.43201977014541626,
0.1974206268787384,
-0.0337061882019043,
0.14611496031284332,
0.21029609441757202,
0.1458110511302948,
-0.019056441262364388,
-0.06464776396751404,
0.2706269323825836,
0.2279321551322937,
-0.0937655121088028,
-0.0416853167116642,
-0.15038365125656128,
0.12883177399635315,
0.1888367235660553,
-0.04891510307788849,
-0.32873594760894775,
0.033273790031671524,
-0.21818231046199799,
0.14218653738498688,
0.17759661376476288,
-0.028591137379407883,
0.080339714884758,
0.29124027490615845,
0.6542518138885498,
0.2708209753036499,
-0.20001807808876038,
0.1803058534860611,
-0.15438830852508545,
-0.04237259924411774,
0.007091633975505829,
-0.09034847468137741,
0.4447785019874573,
-0.04963892698287964,
-0.10261130332946777,
0.038673266768455505,
0.105710469186306,
0.05189366638660431,
-0.0228482186794281,
-0.03385544568300247,
0.23439693450927734,
-0.2121325433254242,
0.1545853167772293,
-0.04286850988864899,
-0.033376384526491165,
-0.43093249201774597,
0.1695500761270523,
0.017226070165634155,
-0.20081140100955963,
0.36043643951416016,
-0.028338026255369186,
-0.2871696352958679,
-0.022894293069839478,
0.5290210843086243,
0.033132586628198624,
-0.33158645033836365,
0.3670951724052429,
-0.34629926085472107,
-0.17926914989948273,
-0.30738502740859985,
-0.12290015816688538,
-0.19243325293064117,
-0.2215665876865387,
0.19326861202716827,
-0.3249642550945282,
0.1601899117231369,
0.24085469543933868,
0.3278453052043915,
0.35616958141326904,
-0.20408952236175537,
-0.13938160240650177,
-0.23085428774356842,
-0.27930355072021484,
0.07688718289136887,
0.0703214555978775,
-0.039870958775281906,
-0.3134392201900482,
0.028352484107017517,
-0.09361699968576431,
0.3216765224933624,
-0.35669204592704773,
0.2944238483905792,
-0.2056773453950882,
0.005676189437508583,
-0.015022221952676773,
-0.18548810482025146,
0.07324890047311783,
-0.10464836657047272,
0.024396976456046104,
-0.04046802222728729,
-0.4105324149131775,
-0.1462353765964508,
-0.39953258633613586,
0.14057911932468414,
0.1378890872001648,
0.15816593170166016,
0.012812665663659573,
0.1462969183921814,
-0.14912736415863037,
-0.13676993548870087,
0.1455400288105011,
0.4514710307121277,
-0.13997773826122284,
0.24650950729846954,
-0.04638885334134102,
0.30479392409324646,
0.1006534993648529,
-0.1171557754278183,
0.33085060119628906,
0.251853346824646,
0.11039287596940994,
0.23837606608867645,
-0.1055431067943573,
-0.03541777282953262,
-0.12131524085998535,
0.21680134534835815,
0.23681221902370453,
-0.00504264235496521,
0.394117534160614,
-0.40781813859939575,
-0.016747696325182915,
-0.11769900470972061,
0.27646324038505554,
0.23746852576732635,
-0.10019070655107498,
-0.13474386930465698,
0.22281315922737122,
0.2545294761657715,
-0.3505978286266327,
-0.14776094257831573,
-0.1271718442440033,
0.23859909176826477,
0.15531578660011292,
0.1561446189880371,
0.42481982707977295,
-0.33918502926826477,
0.19033725559711456,
0.07159806042909622,
0.30792367458343506,
-0.21162180602550507,
0.5018625855445862,
-0.2749924063682556,
0.1414739191532135,
0.08512537181377411,
0.33916521072387695,
0.10292813181877136,
0.3265252113342285,
0.3486456871032715,
-0.08190035074949265,
0.7880041599273682,
0.24949342012405396,
0.04957926645874977,
-0.10536354035139084,
-0.1126098483800888,
0.29254385828971863,
-0.03455840051174164,
-0.0738910585641861,
-0.022114895284175873,
-0.07174444198608398,
0.48175737261772156,
-0.19897344708442688,
-0.09670697897672653,
-0.23077914118766785,
-0.28084617853164673,
-0.02411205694079399,
-0.12834486365318298,
-0.07722972333431244,
-0.28527289628982544,
-0.211991086602211,
-0.1345701813697815,
0.21325379610061646,
0.011575818061828613,
0.08263417333364487,
-0.08196024596691132,
-0.016616731882095337,
-0.13657599687576294,
-0.048681117594242096,
0.2407119870185852,
0.12570063769817352,
-0.284162312746048,
-0.13575977087020874,
0.03128550946712494,
0.034406401216983795,
-0.004451669752597809,
0.4487251043319702,
0.40193748474121094,
0.37729451060295105,
-0.14186891913414001,
-0.06860066950321198,
-0.08890968561172485,
-0.0059412140399217606,
-0.033723264932632446,
0.32271844148635864,
-0.029982998967170715,
-0.4964965581893921,
0.27227962017059326,
0.17689360678195953,
-0.17944152653217316,
-0.00788963958621025,
0.019650191068649292,
-0.20826923847198486,
-0.4713932275772095,
0.6122555136680603,
0.18008720874786377,
-0.010726511478424072,
-0.12044456601142883,
-0.034897126257419586,
-0.4972095489501953,
0.036716245114803314,
0.4607996642589569,
0.003861787961795926,
0.17770403623580933,
-0.19131767749786377,
0.11931510269641876,
0.10589620471000671,
0.13533391058444977,
0.26018792390823364,
-0.10213696211576462,
-0.14430901408195496,
-0.0543944425880909,
-0.5523701906204224,
0.3112112879753113,
0.14016692340373993,
0.14205852150917053,
0.11000612378120422,
0.2123401015996933,
-0.15312620997428894,
0.1321939378976822,
0.01414903998374939,
0.02322922646999359,
-0.03834736347198486,
-0.3030206561088562,
-0.6422165632247925,
0.1211932897567749,
-0.24295009672641754,
0.044162169098854065,
-0.05084589123725891,
-0.3419216573238373,
-0.21085993945598602,
-0.41800007224082947,
0.06304556876420975,
0.06828366219997406,
-0.28586363792419434,
0.20873108506202698,
-0.03728407621383667,
0.5281237363815308,
0.03776257112622261,
0.13170109689235687,
0.06726259738206863,
-0.19746090471744537,
-0.20576423406600952,
-0.09055601805448532,
-0.2562341094017029,
0.19572457671165466,
-0.17162980139255524,
0.35625776648521423,
-0.26182422041893005,
0.030298523604869843,
-0.25577878952026367,
0.24570856988430023,
0.35736405849456787,
-0.446964293718338,
-0.33577877283096313,
0.37200143933296204,
-0.08473989367485046,
0.13952063024044037,
0.11678613722324371,
0.3923133313655853,
-0.12374506890773773,
0.5088217854499817,
-0.2650337815284729,
-0.2870717942714691,
0.5064146518707275,
-0.3036539554595947,
-0.31157758831977844,
-0.3253054618835449,
0.6123330593109131,
0.2777472138404846,
-0.1361263245344162,
-0.5220627188682556,
-0.02174197882413864,
0.3835979104042053,
-0.012615066021680832,
-0.20130150020122528,
0.11898939311504364,
-0.348403662443161,
0.12072727084159851,
-0.08717819303274155,
0.3735613226890564,
-0.06161317974328995,
-0.10872943699359894,
0.18980538845062256,
-0.07804839313030243
] |
https://github.com/huggingface/datasets/issues/2737 | SacreBLEU update | > It seems that next release of `sacrebleu` (v2.0.0) will break our `datasets` implementation to compute it. See my Google Colab: https://colab.research.google.com/drive/1SKmvvjQi6k_3OHsX5NPkZdiaJIfXyv9X?usp=sharing
>
> I'm reopening this Issue and making a Pull Request to fix it.
How did you solve him | With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
| 41 | SacreBLEU update
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error.
AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER'
this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0`
## Steps to reproduce the bug
```python
sacrebleu= datasets.load_metric('sacrebleu')
predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"]
references = ["It is a guide to action that ensures that the military will forever heed Party commands"]
results = sacrebleu.compute(predictions=predictions, references=references)
print(results)
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: Python 3.8.0
- PyArrow version: 5.0.0
> It seems that next release of `sacrebleu` (v2.0.0) will break our `datasets` implementation to compute it. See my Google Colab: https://colab.research.google.com/drive/1SKmvvjQi6k_3OHsX5NPkZdiaJIfXyv9X?usp=sharing
>
> I'm reopening this Issue and making a Pull Request to fix it.
How did you solve him | [
-0.36284545063972473,
0.21759915351867676,
0.004086684435606003,
-0.1242443323135376,
0.4111891984939575,
-0.22062981128692627,
0.14834296703338623,
0.39988383650779724,
-0.16543002426624298,
0.13522131741046906,
0.05526522547006607,
0.3734941780567169,
-0.07741481065750122,
-0.05806468427181244,
-0.060718245804309845,
0.0035375840961933136,
0.11761800944805145,
0.07791921496391296,
0.29154589772224426,
0.019162312150001526,
-0.27596020698547363,
0.10110367834568024,
-0.16406956315040588,
0.0015130192041397095,
-0.2383577823638916,
0.017530497163534164,
-0.048503607511520386,
-0.006292767822742462,
-0.4295664131641388,
-0.6999058723449707,
0.2532285451889038,
0.13619931042194366,
-0.1402982771396637,
0.39792343974113464,
-0.00010912476864177734,
-0.047789908945560455,
0.32379990816116333,
-0.16529709100723267,
-0.4128568470478058,
-0.4182382822036743,
-0.1641361117362976,
-0.339143306016922,
-0.000742086791433394,
-0.06663753092288971,
-0.007773078978061676,
-0.3945741355419159,
-0.031256698071956635,
0.04793626815080643,
0.24923911690711975,
0.3934241533279419,
0.26127567887306213,
0.41415318846702576,
0.0598827563226223,
-0.3366802930831909,
-0.08469448238611221,
0.048754289746284485,
-0.05306365340948105,
0.18653889000415802,
-0.09106233716011047,
0.08024982362985611,
-0.01528237760066986,
0.03611977770924568,
-0.18202635645866394,
0.13282650709152222,
0.08852524310350418,
-0.17828278243541718,
-0.1637522578239441,
-0.04355212301015854,
0.08925832808017731,
-0.014491945505142212,
0.37884360551834106,
-0.30909374356269836,
-0.4297057092189789,
0.23535698652267456,
0.03540569916367531,
-0.3800627589225769,
0.09035776555538177,
-0.09308996051549911,
-0.05740896239876747,
-0.14840152859687805,
0.04122236743569374,
-0.08883827179670334,
-0.062055572867393494,
0.025506924837827682,
-0.25239670276641846,
0.3010903000831604,
-0.26125359535217285,
0.02954292669892311,
0.05088017135858536,
-0.05247005820274353,
-0.4290781319141388,
0.15034016966819763,
-0.2684565782546997,
0.009641033597290516,
-0.41807135939598083,
-0.1008463054895401,
-0.0331796333193779,
-0.2912677526473999,
0.13404792547225952,
0.4417666792869568,
0.06484048068523407,
0.2957453429698944,
0.11380153894424438,
0.14074859023094177,
-0.101253941655159,
0.5619255304336548,
0.15750867128372192,
0.20160141587257385,
0.19466853141784668,
0.2054576575756073,
-0.03484031930565834,
-0.02809203416109085,
-0.01633361354470253,
-0.2552345395088196,
0.20342060923576355,
0.041541218757629395,
0.3035627007484436,
-0.12172537297010422,
-0.4554689824581146,
0.15784890949726105,
0.2282484471797943,
-0.03570681810379028,
-0.10205903649330139,
0.35107722878456116,
-0.29189398884773254,
0.17781442403793335,
-0.18008354306221008,
0.2075650840997696,
-0.22445084154605865,
-0.34727203845977783,
-0.26243358850479126,
-0.04570431634783745,
-0.3201684057712555,
-0.0532059371471405,
0.1509983241558075,
0.18558692932128906,
0.1739753931760788,
-0.04810871183872223,
0.3808066248893738,
-0.15905550122261047,
0.25450077652931213,
-0.18562181293964386,
0.0052508339285850525,
0.05992956459522247,
-0.1274777054786682,
-0.0022427570074796677,
0.373633474111557,
-0.6265414953231812,
-0.041717905551195145,
-0.17196160554885864,
-0.3389929234981537,
-0.28986966609954834,
0.2603772282600403,
0.29178687930107117,
-0.271373987197876,
-0.2895103394985199,
-0.4276375472545624,
0.21353094279766083,
-0.04682993143796921,
0.06059781089425087,
-0.058383576571941376,
-0.044635266065597534,
-0.20619019865989685,
-0.29387152194976807,
0.2755729556083679,
0.2930354177951813,
-0.1708284318447113,
-0.1627941131591797,
0.09770580381155014,
-0.1224902868270874,
0.0954296886920929,
-0.12660306692123413,
0.011030524037778378,
0.2641763985157013,
0.008083891123533249,
-0.04317281395196915,
0.2989521920681,
-0.2925363779067993,
-0.5710141658782959,
-0.04372985288500786,
0.05131823569536209,
-0.22569206357002258,
0.002433463931083679,
-0.13349539041519165,
0.6360131502151489,
-0.05202070251107216,
-0.017918720841407776,
0.01192247960716486,
0.06288684159517288,
-0.24009567499160767,
-0.19249950349330902,
-0.41014525294303894,
0.01211664266884327,
0.022078264504671097,
0.6297086477279663,
0.05232560262084007,
0.28714364767074585,
0.35983017086982727,
0.15478304028511047,
0.029588159173727036,
-0.007779350504279137,
0.23954783380031586,
0.5837538242340088,
-0.14942312240600586,
0.34923794865608215,
-0.49360325932502747,
0.0886988565325737,
0.20132729411125183,
0.0828695297241211,
0.036523789167404175,
0.020689107477664948,
-0.16452008485794067,
-0.4781963527202606,
0.012604260817170143,
-0.17033424973487854,
0.02824735827744007,
0.22136488556861877,
0.18121573328971863,
-0.09346441924571991,
0.21869294345378876,
-0.2754315137863159,
-0.011173065751791,
-0.17605461180210114,
0.2706192135810852,
0.09186017513275146,
0.19659022986888885,
-0.025281725451350212,
-0.23009972274303436,
0.2074281871318817,
0.25113871693611145,
0.23117506504058838,
-0.17499426007270813,
-0.16804897785186768,
0.41672641038894653,
0.3145972490310669,
0.16794773936271667,
0.019230704754590988,
0.28783509135246277,
0.11029621958732605,
-0.36076560616493225,
-0.13242994248867035,
0.46033698320388794,
-0.0213066004216671,
-0.11180804669857025,
0.12020673602819443,
0.2850669026374817,
0.11719386279582977,
0.06490104645490646,
0.07934591174125671,
0.24400648474693298,
0.08132096379995346,
-0.05724981427192688,
-0.15616193413734436,
-0.2192443162202835,
-0.1082305759191513,
-0.236370250582695,
-0.029712051153182983,
-0.1994154304265976,
0.09335073828697205,
0.0130753293633461,
0.2695563733577728,
0.15227140486240387,
0.1060369610786438,
0.052756424993276596,
-0.17498314380645752,
-0.04931824281811714,
-0.2231973260641098,
0.32094600796699524,
0.29885607957839966,
0.11744476109743118,
0.07254508882761002,
0.05613098293542862,
-0.022526148706674576,
-0.004495985805988312,
0.20747271180152893,
0.1797422170639038,
-0.35906746983528137,
0.2685360312461853,
0.1167498305439949,
0.14224278926849365,
-0.19097572565078735,
0.02217559888958931,
0.0750567615032196,
0.30566301941871643,
-0.047405827790498734,
0.14866743981838226,
-0.20363453030586243,
0.2859736680984497,
-0.050030454993247986,
-0.19269581139087677,
-0.058660704642534256,
-0.1730155199766159,
0.025551553815603256,
-0.08700968325138092,
0.18081025779247284,
0.4239197373390198,
-0.045412205159664154,
0.3644549250602722,
0.058284394443035126,
-0.03750508278608322,
0.18385735154151917,
-0.08688045293092728,
-0.009947668761014938,
0.04426198825240135,
0.014176134951412678,
-0.22387900948524475,
0.3022327721118927,
-0.2006903439760208,
-0.1141047328710556,
-0.33373066782951355,
-0.4218047559261322,
0.15117603540420532,
0.04321341589093208,
0.39957791566848755,
0.2472611367702484,
-0.2453445941209793,
-0.023429861292243004,
0.031160522252321243,
0.21666119992733002,
-0.23340483009815216,
-0.03468236327171326,
0.3050890266895294,
-0.15376003086566925,
-0.16306772828102112,
-0.033305831253528595,
-0.4809805452823639,
-0.005483673885464668,
-0.33144667744636536,
-0.030304856598377228,
0.2654608488082886,
-0.06996810436248779,
0.11315793544054031,
0.19996969401836395,
0.14142297208309174,
0.16601718962192535,
0.08459460735321045,
-0.20709815621376038,
-0.11174550652503967,
0.4133189618587494,
-0.2170684039592743,
-0.41272854804992676,
0.1629556119441986,
-0.0948743000626564,
0.30392199754714966,
0.0820324569940567,
-0.2719515562057495,
-0.37533581256866455,
-0.0013629645109176636,
0.06995859742164612,
-0.15774832665920258,
0.015376381576061249,
0.04687333106994629,
0.049193743616342545,
-0.21902650594711304,
-0.219044029712677,
-0.19670286774635315,
-0.004487127065658569,
-0.12276533991098404,
0.22210563719272614,
-0.1427266001701355,
-0.1629657745361328,
0.5203961730003357,
0.8731859922409058,
0.30527928471565247,
-0.2945714592933655,
-0.02281227707862854,
0.09168615937232971,
0.3633909225463867,
0.22803422808647156,
-0.42403772473335266,
0.167985200881958,
-0.3923615515232086,
0.12631450593471527,
0.3196282386779785,
-0.020375199615955353,
-0.021193528547883034,
-0.043662674725055695,
-0.016593318432569504,
0.07906816899776459,
-0.16739878058433533,
-0.2379278987646103,
-0.02554050087928772,
0.20810672640800476,
0.024474237114191055,
0.1585223376750946,
-0.23440100252628326,
-0.06460829079151154,
0.3240378797054291,
0.3789312243461609,
-0.3157765865325928,
0.11492688953876495,
-0.39261338114738464,
0.26733675599098206,
-0.2729623019695282,
0.26941603422164917,
-0.3234645128250122,
0.2681845426559448,
0.16686369478702545,
0.10996263474225998,
-0.13312658667564392,
-0.2562182545661926,
0.2539716958999634,
-0.07732724398374557,
0.036847539246082306,
0.19026783108711243,
0.05669732391834259,
-0.1603432297706604,
0.016044829040765762,
-0.20905669033527374,
0.19808126986026764,
0.3127453029155731,
0.32378673553466797,
-0.1894318163394928,
0.013570545241236687,
0.10825623571872711,
0.2471235692501068,
-0.26027360558509827,
0.1211041584610939,
-0.4186783730983734,
-0.09951246529817581,
-0.04810042679309845,
0.09386106580495834,
-0.2076183408498764,
0.010385798290371895,
-0.026729045435786247,
0.1028752326965332,
-0.5048635601997375,
-0.18239057064056396,
0.28789275884628296,
-0.16403312981128693,
0.16284871101379395,
-0.29118624329566956,
0.15643051266670227,
0.03574361652135849,
0.08617481589317322,
0.5309241414070129,
0.29047733545303345,
-0.008691523224115372,
-0.4511305093765259,
-0.0938737764954567,
-0.0016703605651855469,
0.3063035309314728,
0.17582255601882935,
-0.31129980087280273,
0.17354297637939453,
-0.05356861650943756,
0.22925430536270142,
-0.3633078932762146,
0.28888460993766785,
0.25694507360458374,
0.10368819534778595,
-0.06967772543430328,
-0.26611557602882385,
0.05976981669664383,
-0.11274418234825134,
-0.10152455419301987,
0.13126012682914734,
0.18368616700172424,
-0.05572018027305603,
0.3641654849052429,
0.16062888503074646,
0.9781298041343689,
0.31845206022262573,
-0.1483023315668106,
0.28494924306869507,
-0.027746303007006645,
0.15778088569641113,
-0.3592866063117981,
0.15276850759983063,
-0.1892240345478058,
-0.3357234597206116,
-0.006754282861948013,
-0.07212328910827637,
0.22919002175331116,
-0.14557652175426483,
-0.4608125686645508,
0.20484980940818787,
-0.0422121025621891,
0.10737051069736481,
0.21110939979553223,
0.14937672019004822,
-0.010432068258523941,
-0.05722003057599068,
0.23394359648227692,
0.24043232202529907,
-0.09670457243919373,
-0.023954182863235474,
-0.13885822892189026,
0.10364197194576263,
0.1858084797859192,
-0.06645103543996811,
-0.2842295467853546,
0.015558689832687378,
-0.2561720907688141,
0.1560414731502533,
0.15981382131576538,
-0.03543178364634514,
0.08960217237472534,
0.27105090022087097,
0.6368798017501831,
0.2769603431224823,
-0.1735890507698059,
0.18938800692558289,
-0.13197541236877441,
-0.05587925761938095,
0.0007017210591584444,
-0.09189604967832565,
0.4469550848007202,
-0.05830202251672745,
-0.13530105352401733,
0.053481150418519974,
0.09713853150606155,
0.0377163365483284,
-0.048649124801158905,
-0.060159146785736084,
0.2516675591468811,
-0.21784383058547974,
0.12483257055282593,
-0.07500985264778137,
-0.0776861310005188,
-0.4024259150028229,
0.18696874380111694,
0.014222413301467896,
-0.23052585124969482,
0.36732426285743713,
0.00175466388463974,
-0.29477638006210327,
-0.03767063096165657,
0.512643575668335,
0.03910522535443306,
-0.32164058089256287,
0.3731634318828583,
-0.36840200424194336,
-0.18510191142559052,
-0.31352484226226807,
-0.153917133808136,
-0.17740286886692047,
-0.24527236819267273,
0.1998893767595291,
-0.29075703024864197,
0.1810068041086197,
0.24251697957515717,
0.33034971356391907,
0.3653779625892639,
-0.1636277437210083,
-0.12622924149036407,
-0.2348988652229309,
-0.28704509139060974,
0.06792645901441574,
0.09024973213672638,
-0.022061217576265335,
-0.2941119968891144,
0.030132167041301727,
-0.0791098028421402,
0.35148268938064575,
-0.37794435024261475,
0.2930690348148346,
-0.23171931505203247,
0.028254231438040733,
0.0163478571921587,
-0.19239351153373718,
0.061280641704797745,
-0.08638554811477661,
0.042765818536281586,
-0.004526134580373764,
-0.40471577644348145,
-0.16944092512130737,
-0.37695738673210144,
0.13570892810821533,
0.143807053565979,
0.15200328826904297,
-0.015666961669921875,
0.12642480432987213,
-0.13169845938682556,
-0.0985310822725296,
0.15135204792022705,
0.43812236189842224,
-0.16150400042533875,
0.24288181960582733,
-0.05605451390147209,
0.2902361750602722,
0.05761922150850296,
-0.09929180145263672,
0.331742525100708,
0.23218515515327454,
0.10683653503656387,
0.19839248061180115,
-0.12284885346889496,
-0.042988575994968414,
-0.11176691949367523,
0.19530653953552246,
0.22329962253570557,
-0.010173622518777847,
0.39746105670928955,
-0.3881911039352417,
-0.021458175033330917,
-0.10610827058553696,
0.2731953263282776,
0.21448896825313568,
-0.1178697794675827,
-0.12147506326436996,
0.23890024423599243,
0.26949453353881836,
-0.34581059217453003,
-0.1565725952386856,
-0.12209837138652802,
0.20999003946781158,
0.13071759045124054,
0.1549530327320099,
0.40746569633483887,
-0.348003625869751,
0.19608373939990997,
0.06917592883110046,
0.3113258481025696,
-0.20751045644283295,
0.48425328731536865,
-0.28184789419174194,
0.10355687141418457,
0.0677635595202446,
0.36101284623146057,
0.08670206367969513,
0.2833179235458374,
0.35430872440338135,
-0.10183761268854141,
0.782201886177063,
0.24225515127182007,
0.02446676790714264,
-0.09761608392000198,
-0.11323924362659454,
0.3043536841869354,
-0.021549716591835022,
-0.0956457108259201,
-0.045977115631103516,
-0.05931165814399719,
0.4808604419231415,
-0.17952243983745575,
-0.1083073765039444,
-0.1933693289756775,
-0.2719435393810272,
-0.01187288761138916,
-0.0888967514038086,
-0.07858560234308243,
-0.2907750606536865,
-0.22524268925189972,
-0.12865620851516724,
0.20435892045497894,
0.006477866321802139,
0.0842389389872551,
-0.07321372628211975,
-0.042009755969047546,
-0.1324607878923416,
-0.05244971811771393,
0.23625448346138,
0.1284717619419098,
-0.2751268446445465,
-0.10868997126817703,
0.04777608811855316,
0.053082600235939026,
0.0033308081328868866,
0.464788556098938,
0.41621169447898865,
0.39793160557746887,
-0.13367967307567596,
-0.04202170670032501,
-0.06527990102767944,
-0.017518196254968643,
-0.009915737435221672,
0.32171618938446045,
-0.024500489234924316,
-0.5021946430206299,
0.24501730501651764,
0.19192570447921753,
-0.2042110413312912,
-0.0013172253966331482,
0.014344081282615662,
-0.20848801732063293,
-0.4785095453262329,
0.5972687602043152,
0.22173039615154266,
-0.017007730901241302,
-0.15404729545116425,
-0.028369911015033722,
-0.5284960865974426,
0.04765195772051811,
0.4556218087673187,
0.008736949414014816,
0.17630314826965332,
-0.23905058205127716,
0.1270015388727188,
0.08219197392463684,
0.14166995882987976,
0.2353721261024475,
-0.10997799783945084,
-0.1704772412776947,
-0.04809655621647835,
-0.5807268619537354,
0.3241775333881378,
0.159654438495636,
0.13006268441677094,
0.1351843625307083,
0.19259288907051086,
-0.16106760501861572,
0.11876729875802994,
0.05694834142923355,
-0.0073351552709937096,
-0.03419644385576248,
-0.2608327567577362,
-0.6395233273506165,
0.14118635654449463,
-0.21497516334056854,
0.04721897840499878,
-0.06449764966964722,
-0.33664005994796753,
-0.18346484005451202,
-0.38767144083976746,
0.08748336881399155,
0.06437627971172333,
-0.2838183641433716,
0.2171638011932373,
-0.03540348261594772,
0.5208811163902283,
0.015302134677767754,
0.19309872388839722,
0.05386175215244293,
-0.14533108472824097,
-0.1789999157190323,
-0.06234459951519966,
-0.2589675784111023,
0.20462369918823242,
-0.13396809995174408,
0.3476669192314148,
-0.24641381204128265,
0.022982796654105186,
-0.2652243971824646,
0.25271105766296387,
0.3426259160041809,
-0.4291702210903168,
-0.30143535137176514,
0.37621864676475525,
-0.0846521407365799,
0.11765225976705551,
0.1365606039762497,
0.4052397608757019,
-0.10698452591896057,
0.47459346055984497,
-0.3068547248840332,
-0.2965240478515625,
0.5060901641845703,
-0.2775689363479614,
-0.33044734597206116,
-0.32738545536994934,
0.609987735748291,
0.2633412182331085,
-0.12583819031715393,
-0.5347604155540466,
-0.014711171388626099,
0.3951181173324585,
-0.013645432889461517,
-0.17842431366443634,
0.14905370771884918,
-0.33073458075523376,
0.12648488581180573,
-0.08873485028743744,
0.36002546548843384,
-0.07503080368041992,
-0.09259635955095291,
0.18238148093223572,
-0.09753452986478806
] |
https://github.com/huggingface/datasets/issues/2736 | Add Microsoft Building Footprints dataset | Motivation: this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. I'll see if I can figure out how to add it! | ## Adding a Dataset
- **Name:** Microsoft Building Footprints
- **Description:** With the goal to increase the coverage of building footprint data available as open data for OpenStreetMap and humanitarian efforts, we have released millions of building footprints as open data available to download free of charge.
- **Paper:** *link to the dataset paper if available*
- **Data:** https://www.microsoft.com/en-us/maps/building-footprints
- **Motivation:** this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Reported by: @sashavor | 29 | Add Microsoft Building Footprints dataset
## Adding a Dataset
- **Name:** Microsoft Building Footprints
- **Description:** With the goal to increase the coverage of building footprint data available as open data for OpenStreetMap and humanitarian efforts, we have released millions of building footprints as open data available to download free of charge.
- **Paper:** *link to the dataset paper if available*
- **Data:** https://www.microsoft.com/en-us/maps/building-footprints
- **Motivation:** this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Reported by: @sashavor
Motivation: this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. I'll see if I can figure out how to add it! | [
-0.6230248212814331,
0.06842021644115448,
-0.22410732507705688,
-0.0011126473546028137,
-0.06539188325405121,
-0.06257577240467072,
0.10251758992671967,
0.2215956151485443,
0.1189827173948288,
0.32362866401672363,
0.22696033120155334,
0.21790219843387604,
-0.23825140297412872,
0.40095990896224976,
0.08673671633005142,
-0.08553794026374817,
-0.003910906612873077,
0.0257599875330925,
-0.3132503032684326,
-0.059319328516721725,
-0.2509872317314148,
-0.006576415151357651,
0.050993695855140686,
-0.10665275156497955,
-0.17335644364356995,
-0.21244464814662933,
-0.2157185673713684,
0.049520403146743774,
-0.19376219809055328,
-0.11330698430538177,
-0.14847484230995178,
0.09854751825332642,
-0.031033482402563095,
0.1762390434741974,
-0.00009505889465799555,
0.030341744422912598,
0.0873691588640213,
-0.017328500747680664,
-0.1495586782693863,
0.03229369968175888,
-0.1998690366744995,
-0.23572677373886108,
-0.19138361513614655,
-0.09952247887849808,
-0.24828800559043884,
-0.3055030405521393,
0.17539437115192413,
-0.16043007373809814,
0.16012722253799438,
0.17161114513874054,
0.4217906594276428,
0.0971788614988327,
-0.0057391151785850525,
-0.08854150772094727,
0.1435336023569107,
0.3612351417541504,
-0.17926092445850372,
-0.11173231899738312,
0.22142481803894043,
0.056765176355838776,
-0.11900825053453445,
0.3845181465148926,
-0.13061757385730743,
-0.06696394085884094,
0.15378370881080627,
-0.003690246492624283,
0.4531482458114624,
-0.06923718005418777,
0.05023473501205444,
0.29140806198120117,
0.36967459321022034,
-0.029720962047576904,
0.04310302436351776,
-0.24197959899902344,
-0.05693730339407921,
-0.16335824131965637,
0.0782722681760788,
0.30491209030151367,
0.019214995205402374,
0.06707028299570084,
-0.354078471660614,
-0.25230011343955994,
-0.1428036242723465,
0.2731841206550598,
0.009957127273082733,
0.10908298939466476,
-0.26368606090545654,
-0.13679859042167664,
-0.05724139139056206,
-0.011547919362783432,
-0.0016433317214250565,
-0.04196801036596298,
-0.0403616763651371,
-0.10713835060596466,
0.15893515944480896,
-0.28460875153541565,
0.26757925748825073,
0.3740527927875519,
0.2439795434474945,
0.0790722593665123,
0.2171364575624466,
-0.015631891787052155,
0.14606671035289764,
0.0936230719089508,
0.030222006142139435,
-0.0052095684222877026,
-0.25413233041763306,
-0.06912389397621155,
0.08506523072719574,
0.010792043060064316,
-0.036097168922424316,
-0.015664223581552505,
0.08075790852308273,
-0.06133555620908737,
-0.38944968581199646,
0.03956657648086548,
0.1997939646244049,
-0.14499980211257935,
-0.23508810997009277,
-0.16581174731254578,
-0.09544406831264496,
0.06733303517103195,
0.21278119087219238,
0.19052457809448242,
0.15026463568210602,
-0.2285725474357605,
-0.06287679076194763,
0.13285815715789795,
0.08770826458930969,
0.007804839871823788,
-0.17721982300281525,
-0.022457938641309738,
-0.19228926301002502,
0.27822408080101013,
0.17238566279411316,
0.10652720928192139,
0.34624984860420227,
-0.2274959832429886,
0.12220172584056854,
0.10394854843616486,
0.22246351838111877,
0.26912733912467957,
0.39366990327835083,
0.00281636044383049,
-0.1251039057970047,
-0.30853819847106934,
-0.005026556551456451,
0.07256390154361725,
-0.30817514657974243,
-0.16036272048950195,
-0.10340934246778488,
-0.1174105852842331,
-0.6414906978607178,
0.32580700516700745,
0.016704346984624863,
-0.13063305616378784,
0.34556177258491516,
0.4194297194480896,
-0.08072396367788315,
0.10153640806674957,
0.10991480201482773,
0.5468338131904602,
-0.28054630756378174,
-0.18694458901882172,
0.07105450332164764,
0.3174801766872406,
0.21712949872016907,
-0.17847765982151031,
-0.09483013302087784,
0.05875721946358681,
-0.13998231291770935,
-0.21577319502830505,
-0.02450537495315075,
0.3536580801010132,
-0.21405166387557983,
-0.1769830733537674,
0.025171928107738495,
-0.09918548166751862,
-0.19772014021873474,
0.024937229230999947,
-0.4823991656303406,
-0.3185201585292816,
0.14511626958847046,
0.04481637850403786,
0.21960437297821045,
-0.02345472201704979,
-0.1469694823026657,
0.2988390326499939,
-0.17106083035469055,
0.09042776376008987,
-0.26353707909584045,
-0.38525310158729553,
-0.07476770132780075,
0.23444439470767975,
-0.011259574443101883,
0.06741411238908768,
0.220769464969635,
0.1787237673997879,
0.023980136960744858,
-0.1878059059381485,
0.22587954998016357,
0.27105996012687683,
0.19628176093101501,
-0.0687551349401474,
-0.35884734988212585,
-0.18369317054748535,
-0.21544161438941956,
-0.2696719765663147,
-0.3207301199436188,
-0.14585886895656586,
0.0978270098567009,
-0.1733013391494751,
0.011949894949793816,
-0.14368325471878052,
-0.1488265097141266,
-0.03434291109442711,
0.4483797550201416,
0.12323524057865143,
0.12593969702720642,
0.012179385870695114,
0.19935546815395355,
-0.1470787078142166,
-0.00026732124388217926,
-0.07556793838739395,
0.11664901673793793,
0.2808680832386017,
-0.1394071727991104,
-0.02295471727848053,
0.12396667897701263,
0.30527329444885254,
0.0543750561773777,
-0.07557602226734161,
0.25109896063804626,
0.24712195992469788,
-0.44974660873413086,
0.13956595957279205,
0.2692777216434479,
0.6203439235687256,
0.06878913938999176,
-0.27161672711372375,
0.28169572353363037,
0.08529321849346161,
-0.17504994571208954,
0.03610910475254059,
-0.33762356638908386,
0.1835889220237732,
0.22950929403305054,
0.02097010612487793,
-0.17513351142406464,
0.3101273477077484,
-0.07075387239456177,
-0.24360314011573792,
-0.12676866352558136,
-0.38938629627227783,
0.08520417660474777,
0.11602118611335754,
0.024043798446655273,
-0.09409970790147781,
0.06169356405735016,
0.20429359376430511,
0.1607658863067627,
0.041861530393362045,
0.3469272553920746,
0.07884233444929123,
-0.30819424986839294,
0.03826463967561722,
0.14875240623950958,
-0.09597111493349075,
0.08080287277698517,
0.34390226006507874,
0.22792553901672363,
0.009722774848341942,
0.09241552650928497,
-0.07741659134626389,
0.16145074367523193,
0.17025057971477509,
-0.08187934756278992,
0.12551620602607727,
0.09866902977228165,
0.07064804434776306,
-0.663793683052063,
0.03666048124432564,
0.09854011237621307,
-0.05118187516927719,
0.08997581899166107,
-0.1714109629392624,
-0.03475329279899597,
-0.4059106111526489,
-0.09672120213508606,
-0.08047208935022354,
-0.017809122800827026,
-0.237398162484169,
0.2716464400291443,
0.02160404808819294,
-0.2388008087873459,
0.22448872029781342,
0.1554945856332779,
0.31487733125686646,
-0.1643853783607483,
0.02315382845699787,
-0.06392897665500641,
-0.30155667662620544,
0.03909517452120781,
0.37224146723747253,
0.15927954018115997,
0.07966561615467072,
0.5405752062797546,
-0.22456248104572296,
0.5198442339897156,
-0.5102852582931519,
-0.611265242099762,
0.09571148455142975,
0.15149182081222534,
-0.2901204526424408,
0.22866778075695038,
0.14497920870780945,
0.11102472245693207,
-0.19334153831005096,
0.03160275146365166,
-0.03013055957853794,
-0.04878566414117813,
-0.24932141602039337,
-0.22771479189395905,
-0.18052439391613007,
-0.2456381767988205,
0.11132029443979263,
-0.012078508734703064,
-0.5066965818405151,
0.26481741666793823,
0.24031631648540497,
0.0354921892285347,
0.10746823251247406,
0.11581800878047943,
0.20381160080432892,
-0.6048652529716492,
0.22347015142440796,
-0.11039558053016663,
-0.373014897108078,
0.04821602627635002,
-0.3968026340007782,
-0.09386539459228516,
-0.15087372064590454,
-0.15971650183200836,
-0.02154691144824028,
-0.06437647342681885,
-0.3661302328109741,
-0.25793182849884033,
-0.1849815547466278,
0.25952884554862976,
0.3191812038421631,
0.06714794784784317,
0.45111846923828125,
0.31241941452026367,
-0.25812867283821106,
-0.03135256469249725,
-0.015290905721485615,
-0.015202395617961884,
0.3127681016921997,
0.32181602716445923,
-0.1103195771574974,
-0.10758974403142929,
-0.03127942234277725,
0.24476836621761322,
0.2708534896373749,
-0.2615628242492676,
0.3958714008331299,
-0.09305937588214874,
0.5226426720619202,
-0.008900590240955353,
-0.1838507354259491,
0.39408037066459656,
0.030067332088947296,
0.09975706040859222,
0.46938759088516235,
0.28890231251716614,
-0.05971894413232803,
-0.06236135959625244,
0.025097277015447617,
-0.32605859637260437,
-0.20323075354099274,
-0.05652591586112976,
0.0013797543942928314,
0.19068503379821777,
-0.07347976416349411,
-0.1845310926437378,
-0.3187708854675293,
-0.12138134986162186,
0.48136383295059204,
0.14176633954048157,
0.1107131838798523,
-0.19067831337451935,
0.033068519085645676,
0.2859848141670227,
-0.47780531644821167,
0.1688167154788971,
-0.0384080596268177,
-0.6828498244285583,
-0.5322357416152954,
-0.023267963901162148,
-0.14453186094760895,
0.045076049864292145,
0.1862584352493286,
-0.15287438035011292,
-0.08856803178787231,
-0.14381501078605652,
0.16355843842029572,
0.08436903357505798,
0.15853621065616608,
-0.0749703049659729,
0.08546397089958191,
0.21126599609851837,
0.473550021648407,
-0.2738242745399475,
0.005297554656863213,
0.2657739818096161,
0.21488510072231293,
-0.07576625049114227,
0.28711360692977905,
0.164885476231575,
-0.3182855248451233,
-0.209526926279068,
0.22214028239250183,
-0.015563758090138435,
0.12231864780187607,
0.45292139053344727,
-0.18209417164325714,
0.11764127016067505,
0.0006024260073900223,
-0.07115933299064636,
-0.07669684290885925,
0.3309119939804077,
0.2759957015514374,
0.06826962530612946,
0.14076660573482513,
0.34952589869499207,
0.124649278819561,
0.41008031368255615,
-0.3319399356842041,
0.08672774583101273,
0.15389707684516907,
-0.3069647252559662,
0.22428292036056519,
0.29571831226348877,
0.1607390195131302,
0.00751408189535141,
-0.04885967820882797,
0.07380802184343338,
-0.5192339420318604,
0.13205838203430176,
0.06013660877943039,
0.22935986518859863,
0.08017786592245102,
0.15532620251178741,
0.3070637881755829,
0.058386240154504776,
-0.22211965918540955,
0.2683371901512146,
-0.027530118823051453,
-0.21475698053836823,
0.20575524866580963,
0.21472832560539246,
0.794381320476532,
-0.027902156114578247,
0.05859897658228874,
0.35630035400390625,
-0.18251818418502808,
-0.12781919538974762,
0.0548623725771904,
-0.14305676519870758,
0.02842676267027855,
-0.2834556996822357,
-0.025511816143989563,
0.01090523973107338,
-0.015911482274532318,
0.2491573989391327,
-0.3056858479976654,
-0.19125014543533325,
-0.02281692996621132,
0.16673852503299713,
-0.08222634345293045,
0.11994142830371857,
0.17800287902355194,
-0.2580583393573761,
0.0419800728559494,
0.31083789467811584,
0.13872994482517242,
0.26889023184776306,
-0.031055353581905365,
-0.19040513038635254,
0.31268519163131714,
-0.14185914397239685,
-0.2654374837875366,
-0.08259151875972748,
-0.029753893613815308,
-0.2243078351020813,
-0.11229740083217621,
0.014910444617271423,
-0.07593223452568054,
0.0886700302362442,
0.36247068643569946,
-0.08031806349754333,
-0.31573522090911865,
0.20204727351665497,
0.10630291700363159,
0.005108260083943605,
-0.13764438033103943,
0.09834099560976028,
-0.13805152475833893,
-0.12625578045845032,
0.16308432817459106,
0.00746786966919899,
-0.04620477184653282,
-0.12495157867670059,
-0.41659411787986755,
-0.11330655217170715,
0.22883732616901398,
-0.005353983491659164,
0.5253329873085022,
0.05321989208459854,
-0.06984198093414307,
-0.27072712779045105,
0.2843100428581238,
0.16143935918807983,
0.1358451247215271,
0.04913690686225891,
0.28378039598464966,
-0.12204502522945404,
-0.16720765829086304,
0.1038563922047615,
0.02598106488585472,
0.1419002264738083,
-0.18991564214229584,
-0.0006592795252799988,
-0.21388858556747437,
-0.4174347519874573,
0.03323916345834732,
-0.06085178256034851,
-0.045750051736831665,
0.1162157878279686,
0.11645974963903427,
-0.22965745627880096,
0.15698732435703278,
0.39266958832740784,
0.1478807032108307,
-0.029228471219539642,
-0.08632904291152954,
-0.18770831823349,
-0.3688642084598541,
0.21214355528354645,
-0.12604184448719025,
0.4057595133781433,
0.006009772419929504,
0.018742945045232773,
0.13539382815361023,
0.03412695974111557,
-0.5436127185821533,
-0.025735460221767426,
-0.22125546634197235,
0.09510506689548492,
0.13140800595283508,
-0.2149348258972168,
0.23415789008140564,
0.030850667506456375,
0.2014455497264862,
-0.28280341625213623,
-0.27027177810668945,
-0.3398701846599579,
-0.15975883603096008,
0.06962162256240845,
-0.10337335616350174,
0.17810794711112976,
0.32612746953964233,
0.06301289796829224,
-0.1480593979358673,
-0.12497089803218842,
0.012969296425580978,
-0.1350703239440918,
0.008386358618736267,
-0.19608579576015472,
0.03502342104911804,
-0.02642519772052765,
-0.06119069829583168,
-0.017374515533447266,
-0.023532211780548096,
0.04242183640599251,
-0.11376447975635529,
0.17665021121501923,
-0.13867779076099396,
-0.12076210230588913,
0.1893794685602188,
0.21292567253112793,
0.35057950019836426,
-0.2509460747241974,
0.2759133577346802,
0.27760618925094604,
-0.13960781693458557,
0.3650396168231964,
0.007303707301616669,
-0.4045533537864685,
-0.07957721501588821,
0.17724016308784485,
0.03237389028072357,
0.427722692489624,
-0.40866538882255554,
0.011717519722878933,
0.12825711071491241,
-0.13191406428813934,
0.4178151786327362,
0.1623307168483734,
0.26327764987945557,
-0.19113010168075562,
0.08693751692771912,
-0.010888408869504929,
-0.0888860896229744,
0.03022666461765766,
-0.0044236695393919945,
0.2714773118495941,
-0.007616225630044937,
-0.1423957347869873,
0.3776354193687439,
0.18214775621891022,
0.12866482138633728,
0.08054710924625397,
0.06780622899532318,
0.3705388903617859,
-0.13802707195281982,
0.027595803141593933,
0.1527682989835739,
0.09774845838546753,
0.5251343250274658,
0.05188541114330292,
0.21397843956947327,
0.06605839729309082,
0.08544408529996872,
0.2081620991230011,
-0.08041953295469284,
-0.052851758897304535,
-0.33781635761260986,
0.4252864420413971,
-0.00806242972612381,
-0.12043015658855438,
-0.17327144742012024,
-0.12806779146194458,
-0.015262171626091003,
-0.12007652223110199,
0.24464432895183563,
-0.2435305267572403,
0.19860753417015076,
-0.23776356875896454,
0.23745401203632355,
-0.023641416803002357,
-0.04735890030860901,
0.01582963578402996,
0.23979738354682922,
-0.19805222749710083,
0.221066415309906,
-0.25602221488952637,
-0.13757434487342834,
0.060570377856492996,
0.4935971200466156,
0.13893583416938782,
-0.11531606316566467,
-0.14233717322349548,
0.026999305933713913,
-0.10330948233604431,
-0.12550583481788635,
-0.3297213017940521,
0.02404186502099037,
0.021496601402759552,
-0.13259638845920563,
0.42726677656173706,
0.26876741647720337,
-0.3066290020942688,
-0.03208296373486519,
-0.15068522095680237,
-0.024407554417848587,
0.2835615873336792,
-0.2537994384765625,
-0.0056195855140686035,
-0.0525398924946785,
-0.21529529988765717,
-0.0921744778752327,
-0.21545064449310303,
-0.2862648665904999,
-0.04554908350110054,
-0.20453187823295593,
0.06575911492109299,
-0.03758122771978378,
0.1787768006324768,
-0.009369391947984695,
0.29796022176742554,
0.24899892508983612,
-0.02596365660429001,
0.07792218774557114,
-0.4312407970428467,
-0.24811501801013947,
0.20716869831085205,
-0.25020915269851685,
0.03657937049865723,
0.0501909963786602,
-0.054002366960048676,
0.2050941288471222,
0.1456219106912613,
-0.07173696160316467,
0.04596047103404999,
0.03195198252797127,
-0.11868926882743835,
-0.40503284335136414,
0.0898733139038086,
0.15612703561782837,
0.13250426948070526,
0.19255493581295013,
-0.15781374275684357,
0.015129506587982178,
0.049785807728767395,
0.28832361102104187,
-0.3631315231323242,
0.04060816764831543,
-0.5141168832778931,
-0.1600819081068039,
0.166154146194458,
-0.22040192782878876,
-0.045540764927864075,
-0.3230527937412262,
-0.32448992133140564,
-0.04225319251418114,
-0.07649802416563034,
-0.0923653319478035,
-0.027759291231632233,
0.28010377287864685,
-0.03296930715441704,
-0.11899372190237045,
0.06499955803155899,
0.07127188891172409,
0.13534925878047943,
0.24214066565036774,
0.11405612528324127,
-0.05657373368740082,
0.28571653366088867,
-0.10978490114212036,
0.18792109191417694,
0.08291392773389816,
0.08980101346969604,
-0.03435613214969635,
-0.2090676873922348,
0.1867343932390213,
-0.29172036051750183,
0.3974737524986267,
-0.32621780037879944,
0.00626533105969429,
0.07561501115560532,
0.0850985050201416,
-0.13855308294296265,
-0.06762856990098953,
-0.12202368676662445,
0.02275077998638153,
0.182536318898201,
-0.010760195553302765,
0.08173482120037079,
0.138360857963562,
-0.14363107085227966,
-0.12322458624839783,
0.0074327848851680756,
0.2546879053115845,
0.04749114811420441,
-0.15643824636936188,
-0.14127635955810547,
-0.300254762172699
] |
https://github.com/huggingface/datasets/issues/2730 | Update CommonVoice with new release | Does anybody know if there is a bundled link, which would allow direct data download instead of manual?
Something similar to: `https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/ab.tar.gz` ? cc @patil-suraj
| ## Adding a Dataset
- **Name:** CommonVoice mid-2021 release
- **Description:** more data in CommonVoice: Languages that have increased the most by percentage are Thai (almost 20x growth, from 12 hours to 250 hours), Luganda (almost 9x growth, from 8 to 80), Esperanto (7x growth, from 100 to 840), and Tamil (almost 8x, from 24 to 220).
- **Paper:** https://discourse.mozilla.org/t/common-voice-2021-mid-year-dataset-release/83812
- **Data:** https://commonvoice.mozilla.org/en/datasets
- **Motivation:** More data and more varied. I think we just need to add configs in the existing dataset script.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 25 | Update CommonVoice with new release
## Adding a Dataset
- **Name:** CommonVoice mid-2021 release
- **Description:** more data in CommonVoice: Languages that have increased the most by percentage are Thai (almost 20x growth, from 12 hours to 250 hours), Luganda (almost 9x growth, from 8 to 80), Esperanto (7x growth, from 100 to 840), and Tamil (almost 8x, from 24 to 220).
- **Paper:** https://discourse.mozilla.org/t/common-voice-2021-mid-year-dataset-release/83812
- **Data:** https://commonvoice.mozilla.org/en/datasets
- **Motivation:** More data and more varied. I think we just need to add configs in the existing dataset script.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Does anybody know if there is a bundled link, which would allow direct data download instead of manual?
Something similar to: `https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/ab.tar.gz` ? cc @patil-suraj
| [
-0.38971182703971863,
0.06890064477920532,
-0.043625328689813614,
-0.1407741904258728,
-0.007544919848442078,
0.23610395193099976,
-0.08662782609462738,
0.4099913239479065,
-0.0332527682185173,
0.055265747010707855,
-0.22682088613510132,
0.12674422562122345,
-0.1374960094690323,
0.3757566511631012,
0.31536558270454407,
-0.10255138576030731,
-0.022179655730724335,
0.011623598635196686,
0.35413044691085815,
-0.20094981789588928,
-0.15251287817955017,
0.15630806982517242,
0.03489236533641815,
-0.07085132598876953,
-0.06756231188774109,
0.08458442986011505,
-0.10822968930006027,
0.0525994747877121,
-0.1277039647102356,
-0.3679582476615906,
0.1854725480079651,
0.318708211183548,
0.25171351432800293,
0.24694371223449707,
-0.0001240131095983088,
-0.4164188504219055,
0.13701418042182922,
-0.19466428458690643,
-0.583683431148529,
-0.11078305542469025,
-0.25065961480140686,
0.03729771077632904,
-0.11774587631225586,
0.1902162730693817,
0.1305430829524994,
-0.019920166581869125,
0.04736460745334625,
-0.38058048486709595,
0.039689987897872925,
0.1962825506925583,
0.06040439009666443,
-0.1646219938993454,
0.10004191100597382,
-0.23729729652404785,
0.035267315804958344,
0.16346344351768494,
-0.09345274418592453,
0.3102356791496277,
0.6635544300079346,
0.22577479481697083,
0.2486782670021057,
0.0445476658642292,
0.15101224184036255,
-0.3072902262210846,
-0.0004818253219127655,
0.13403178751468658,
-0.250144362449646,
-0.45308175683021545,
0.15247157216072083,
0.5523590445518494,
0.6914017200469971,
-0.18171477317810059,
-0.38512134552001953,
-0.11646340787410736,
0.13343769311904907,
-0.5129930973052979,
-0.1119493916630745,
0.06477709114551544,
-0.0460776723921299,
0.16960762441158295,
0.22098325192928314,
-0.45643797516822815,
-0.00832054391503334,
0.4535561800003052,
0.20181921124458313,
0.18715715408325195,
0.0545918308198452,
-0.13760459423065186,
0.3618973195552826,
-0.09422969818115234,
-0.07137766480445862,
0.05588873475790024,
0.025627819821238518,
0.4348697364330292,
0.07622557133436203,
-0.3975176513195038,
-0.011452779173851013,
-0.516059160232544,
0.4938576817512512,
-0.2566068768501282,
0.08373408764600754,
0.15182653069496155,
-0.627665102481842,
-0.12404028326272964,
0.37960970401763916,
-0.2602553963661194,
-0.14621102809906006,
0.07010434567928314,
0.37975531816482544,
0.17783544957637787,
0.8164598941802979,
0.14960207045078278,
-0.2681250274181366,
0.0660158097743988,
-0.20713233947753906,
0.1514522135257721,
-0.015298433601856232,
-0.3966106176376343,
-0.11770794540643692,
-0.07707610726356506,
0.0033965744078159332,
0.0795910656452179,
-0.31442809104919434,
0.044423189014196396,
0.09496375918388367,
0.12160484492778778,
-0.02402532286942005,
0.1572536677122116,
0.11449547857046127,
-0.26412633061408997,
0.1021914854645729,
0.14616377651691437,
0.04444966837763786,
0.1630934178829193,
0.0774117261171341,
-0.6380672454833984,
0.054328545928001404,
0.07337511330842972,
0.30851954221725464,
-0.1125858798623085,
-0.30975887179374695,
0.2996525764465332,
-0.3038828372955322,
-0.1478012055158615,
0.03841434046626091,
0.15206041932106018,
-0.25444838404655457,
0.3241441249847412,
-0.3895076811313629,
0.12453623116016388,
-0.06252125650644302,
-0.48718464374542236,
-0.11749513447284698,
0.05316872149705887,
0.15202893316745758,
-0.3868251442909241,
0.3178747892379761,
0.26633554697036743,
-0.2161920666694641,
-0.30905240774154663,
-0.05806118994951248,
0.2228984385728836,
-0.395609050989151,
0.02908102050423622,
0.06880442798137665,
0.516753077507019,
-0.6113051176071167,
-0.09702327847480774,
-0.39221614599227905,
0.13420550525188446,
-0.20911771059036255,
0.12524984776973724,
-0.02850009873509407,
0.05807343125343323,
-0.43657875061035156,
0.05880393087863922,
0.581656813621521,
-0.5174855589866638,
-0.2799953520298004,
0.26490673422813416,
-0.2213200032711029,
-0.2088128626346588,
0.19403648376464844,
0.12734870612621307,
0.4670020341873169,
-0.012724404223263264,
0.1767004430294037,
0.1752271205186844,
-0.25566163659095764,
0.01750105433166027,
-0.09131503105163574,
-0.4835677742958069,
-0.26573777198791504,
0.16387932002544403,
0.1479584276676178,
-0.12753435969352722,
0.1275571882724762,
-0.020959975197911263,
0.4738980233669281,
-0.053926434367895126,
0.2950325012207031,
0.205882728099823,
0.3243652880191803,
0.03204367682337761,
-0.021714642643928528,
0.10407773405313492,
-0.35879385471343994,
0.08177367597818375,
0.03269694745540619,
0.16760116815567017,
0.07037660479545593,
-0.3706408739089966,
-0.26487433910369873,
-0.36484798789024353,
-0.045513276010751724,
-0.11067533493041992,
-0.07405818998813629,
0.23171822726726532,
0.23231780529022217,
-0.1991366297006607,
-0.21433646976947784,
0.20449379086494446,
0.2810823917388916,
0.11021540313959122,
0.05403929203748703,
0.01387094147503376,
-0.03842797875404358,
0.1122693195939064,
0.23210382461547852,
0.162662535905838,
0.22387465834617615,
-0.2100115418434143,
-0.10753956437110901,
0.2778189778327942,
-0.004099223297089338,
0.6636207103729248,
0.22375184297561646,
0.21092882752418518,
0.20584163069725037,
0.07632158696651459,
0.2137950360774994,
0.2449188083410263,
-0.15731899440288544,
0.003483787178993225,
-0.243618905544281,
0.28284597396850586,
0.3007522225379944,
0.003764532506465912,
0.15462225675582886,
0.2307993471622467,
0.13048839569091797,
0.07463157176971436,
0.03621385246515274,
-0.12235767394304276,
-0.1598811149597168,
0.058505572378635406,
0.3595196604728699,
-0.14867421984672546,
-0.580150306224823,
0.3750166594982147,
0.4067927896976471,
-0.13008813560009003,
0.15982171893119812,
0.24389532208442688,
-0.30695420503616333,
-0.15934696793556213,
-0.012757575139403343,
0.19846729934215546,
0.15147367119789124,
0.22997832298278809,
0.09104913473129272,
0.18470238149166107,
0.2917855381965637,
-0.04274969547986984,
0.23333798348903656,
-0.07797673344612122,
-0.09760630130767822,
0.42317432165145874,
-0.18699803948402405,
0.1300887167453766,
-0.3433694839477539,
-0.17469727993011475,
-0.015360319055616856,
-0.05492301285266876,
0.035147663205862045,
-0.4609863758087158,
0.020064571872353554,
0.1403171420097351,
-0.4364102780818939,
-0.04054735228419304,
-0.06315098702907562,
-0.32432395219802856,
0.2186036854982376,
0.302869588136673,
-0.0349641814827919,
0.058798156678676605,
-0.3607238233089447,
0.29805469512939453,
-0.3364134728908539,
-0.4129263162612915,
-0.09405096620321274,
-0.0122427549213171,
-0.2489035427570343,
0.02775241807103157,
0.044979218393564224,
-0.28592249751091003,
0.23504717648029327,
-0.22726278007030487,
0.1947668343782425,
-0.4353838860988617,
-0.42205139994621277,
0.16088297963142395,
0.016745029017329216,
-0.4277883470058441,
0.13131368160247803,
-0.2983759641647339,
0.2825031876564026,
0.015757404267787933,
-0.3078208267688751,
-0.12292880564928055,
-0.18847134709358215,
-0.4340616464614868,
-0.13743619620800018,
0.2221309244632721,
0.19265352189540863,
-0.7328442335128784,
-0.39534950256347656,
-0.4587976634502411,
0.11818154901266098,
-0.2502520978450775,
0.0705011785030365,
0.006602184846997261,
-0.07580315321683884,
-0.12328694015741348,
-0.21714426577091217,
0.24143023788928986,
-0.2790498733520508,
0.21036279201507568,
0.2944698929786682,
-0.1946476846933365,
-0.35882124304771423,
0.047715287655591965,
-0.2169559746980667,
0.2603701949119568,
0.0520537830889225,
-0.3211290240287781,
0.42903241515159607,
0.15371710062026978,
0.23121434450149536,
-0.041788749396800995,
-0.03624037653207779,
0.5302621126174927,
0.26075464487075806,
-0.10301174223423004,
0.03799758851528168,
-0.05042286589741707,
-0.23901355266571045,
0.2745096981525421,
0.2551523447036743,
0.04668106138706207,
0.2509112060070038,
0.1000867486000061,
0.7929115891456604,
0.06994174420833588,
0.09173282980918884,
0.011367760598659515,
-0.1323477178812027,
0.36991748213768005,
0.08806943893432617,
-0.1667705923318863,
-0.07132776826620102,
-0.1005617082118988,
0.17869935929775238,
0.33591902256011963,
0.2163039743900299,
-0.06240005046129227,
-0.19441495835781097,
-0.14858177304267883,
-0.12404543161392212,
-0.05079994350671768,
0.08704977482557297,
-0.1279827058315277,
0.3972434401512146,
0.2608758807182312,
-0.0262056402862072,
-0.11852248013019562,
-0.004402683116495609,
0.21558986604213715,
0.1549447923898697,
0.09861801564693451,
-0.010255382396280766,
0.31899771094322205,
0.45215824246406555,
-0.3467700183391571,
0.18790766596794128,
0.32920730113983154,
0.17281723022460938,
-0.39322957396507263,
0.01498473435640335,
-0.007026925683021545,
0.13476483523845673,
0.23187430202960968,
-0.21940474212169647,
-0.10797446966171265,
-0.05506228655576706,
-0.008058477193117142,
-0.07177066057920456,
0.17678704857826233,
-0.27481886744499207,
0.02794570103287697,
0.4873167872428894,
-0.10699315369129181,
-0.3011750876903534,
-0.0860535278916359,
0.5095316171646118,
0.1847730427980423,
-0.07679186016321182,
0.13221384584903717,
0.20801298320293427,
-0.1358366310596466,
-0.35488566756248474,
0.056572046130895615,
-0.1595715433359146,
0.05382262170314789,
-0.16402575373649597,
-0.10181182622909546,
0.40331795811653137,
-0.03671818599104881,
0.05232883617281914,
-0.31070709228515625,
0.17158034443855286,
0.358284056186676,
0.2556028366088867,
0.1865481734275818,
0.044589173048734665,
0.4322364330291748,
0.4311979413032532,
0.02203616313636303,
-0.2229163646697998,
0.03723490238189697,
-0.5398784875869751,
0.39115670323371887,
0.49404826760292053,
0.12063063681125641,
-0.12655600905418396,
-0.032885413616895676,
-0.29567021131515503,
0.10371088236570358,
-0.03654978424310684,
0.35443633794784546,
0.21914713084697723,
-0.5651630163192749,
-0.43532148003578186,
0.1628645956516266,
0.16657458245754242,
-0.2549288272857666,
0.2579558193683624,
-0.11418461799621582,
-0.1582360863685608,
-0.03158552944660187,
-0.2802397608757019,
1.1013662815093994,
0.27867263555526733,
0.3372337818145752,
-0.009383447468280792,
-0.3418521285057068,
0.1972944736480713,
-0.24263770878314972,
-0.09238576889038086,
-0.14861062169075012,
0.2155485451221466,
-0.20856137573719025,
0.06378038227558136,
-0.26205140352249146,
0.031401149928569794,
-0.2880207896232605,
0.46948930621147156,
0.06652013957500458,
-0.021671738475561142,
0.2636149823665619,
0.4605933427810669,
-0.22471310198307037,
-0.3435026705265045,
0.22733628749847412,
-0.008492739871144295,
0.12544837594032288,
0.6293456554412842,
0.04092419892549515,
-0.39165788888931274,
-0.29454633593559265,
-0.3658152222633362,
-0.4083194136619568,
0.22427886724472046,
0.03149424120783806,
-0.06023702770471573,
-0.13369767367839813,
-0.04980576038360596,
0.3182789385318756,
-0.18481793999671936,
0.309436559677124,
-0.006944824010133743,
-0.2686251401901245,
0.0355222187936306,
0.17789801955223083,
-0.1250361055135727,
0.3106164336204529,
0.03637133911252022,
0.0862063616514206,
-0.095475934445858,
-0.2484394907951355,
0.16627003252506256,
-0.05457305908203125,
-0.27928245067596436,
-0.11991417407989502,
-0.18250541388988495,
0.03520645573735237,
-0.23285789787769318,
-0.26512593030929565,
0.33592575788497925,
-0.2981410026550293,
-0.2906295359134674,
0.03176981210708618,
0.16753119230270386,
-0.17488490045070648,
-0.07929704338312149,
0.30439597368240356,
0.05758121609687805,
-0.16935718059539795,
0.6294354796409607,
0.07926339656114578,
-0.2609727680683136,
0.42556843161582947,
0.013098906725645065,
-0.09967861324548721,
-0.16571062803268433,
0.07356449216604233,
0.21481700241565704,
-0.507422685623169,
-0.08700231462717056,
-0.2099505364894867,
-0.024362601339817047,
-0.23539723455905914,
0.3598628044128418,
0.005256351083517075,
0.31694576144218445,
-0.32628679275512695,
-0.23828275501728058,
-0.39974483847618103,
0.13710477948188782,
0.013098767027258873,
0.3953421413898468,
-0.05263271927833557,
0.0024271924048662186,
0.21747532486915588,
-0.17494945228099823,
-0.19948771595954895,
0.12334878742694855,
0.3694257438182831,
-0.12737934291362762,
0.654180645942688,
0.296156108379364,
0.26108866930007935,
-0.008646753616631031,
-0.08151303976774216,
-0.13222213089466095,
-0.2986321449279785,
0.008753329515457153,
-0.0757567435503006,
0.18695874512195587,
0.039126452058553696,
-0.09721585363149643,
-0.0929514691233635,
-0.08464628458023071,
-0.24652913212776184,
0.29096415638923645,
0.021284841001033783,
0.0734151303768158,
0.12273502349853516,
0.03133407607674599,
-0.07140053808689117,
-0.07640285044908524,
0.03403621166944504,
0.28602445125579834,
0.058628931641578674,
0.4684445261955261,
0.13774098455905914,
0.4391712546348572,
-0.1340586543083191,
-0.267517626285553,
0.1980864405632019,
0.21032384037971497,
0.3753090500831604,
-0.21281859278678894,
0.3068583905696869,
-0.025409288704395294,
-0.06459245085716248,
0.18638421595096588,
0.24076563119888306,
0.30728286504745483,
-0.20762623846530914,
0.00925600714981556,
-0.03530454635620117,
0.06914985179901123,
-0.40545716881752014,
-0.08470582216978073,
-0.2982487082481384,
-0.003906983882188797,
0.025610189884901047,
0.11834196746349335,
0.35224980115890503,
-0.03506901487708092,
0.5823603272438049,
-0.032514456659555435,
0.07203706353902817,
-0.07604978233575821,
0.39500662684440613,
0.48809510469436646,
-0.004431847482919693,
0.2583198547363281,
0.08362418413162231,
0.06844895333051682,
-0.05895598977804184,
-0.044260114431381226,
-0.551355242729187,
-0.19056247174739838,
0.15943124890327454,
0.007904477417469025,
0.4129474461078644,
-0.35302266478538513,
0.2965226173400879,
0.46258699893951416,
0.10824835300445557,
-0.11316726356744766,
0.3864276707172394,
0.5600407123565674,
0.14854513108730316,
-0.03647514805197716,
0.1294243484735489,
0.1728716939687729,
0.11899065971374512,
-0.1233242005109787,
-0.06675437092781067,
-0.24813580513000488,
-0.5411580801010132,
0.21191079914569855,
0.0681438073515892,
-0.12623417377471924,
0.11505362391471863,
0.05772397667169571,
0.10664990544319153,
-0.29047664999961853,
-0.25274932384490967,
0.08125291764736176,
-0.018354862928390503,
-0.17428866028785706,
0.08598992973566055,
-0.11355583369731903,
-0.11345997452735901,
0.29427462816238403,
0.5817168354988098,
0.1421031355857849,
-0.13891638815402985,
0.29138055443763733,
0.35789361596107483,
-0.002755032852292061,
0.1183115541934967,
0.17874091863632202,
-0.18419553339481354,
0.18344640731811523,
0.18330644071102142,
0.12761355936527252,
0.009517479687929153,
0.033661551773548126,
0.09101762622594833,
0.1196569949388504,
-0.209866002202034,
-0.06270559132099152,
0.4658006429672241,
0.20665231347084045,
-0.025202378630638123,
-0.33660945296287537,
0.03856359049677849,
-0.26461291313171387,
-0.15214407444000244,
0.45776456594467163,
-0.02106228843331337,
0.011557899415493011,
-0.12628456950187683,
0.0023985542356967926,
0.2506900131702423,
0.029912050813436508,
0.3688192069530487,
-0.0540839284658432,
-0.07067505270242691,
-0.1639259159564972,
-0.3195558488368988,
0.07792086154222488,
0.07337787002325058,
-0.01437954232096672,
-0.36604294180870056,
-0.011691905558109283,
0.24685993790626526,
0.24826547503471375,
0.40474915504455566,
0.11052112281322479,
-0.27609410881996155,
-0.08180628716945648,
0.11564256250858307,
-0.12082968652248383,
0.22382718324661255,
0.47522005438804626,
-0.01724991574883461,
-0.1476757824420929,
0.006656840443611145,
-0.11455899477005005,
-0.15477515757083893,
-0.16024383902549744,
-0.15225902199745178,
-0.23326696455478668,
-0.2176440954208374,
0.3434557616710663,
-0.2784251868724823,
0.37966015934944153,
-0.2898496091365814,
-0.2737600803375244,
-0.15349139273166656,
0.03203790262341499,
-0.19749224185943604,
0.26005586981773376,
0.07005058228969574,
-0.04451541230082512,
-0.2142016738653183,
-0.26749059557914734,
-0.27698585391044617,
0.10539927333593369,
-0.06681816279888153,
-0.17464366555213928,
-0.12796710431575775,
0.0851646363735199,
-0.17413485050201416,
-0.0723671242594719,
0.18711666762828827,
0.2277424931526184,
-0.2829016149044037,
-0.103268101811409,
-0.4452143907546997,
-0.21985572576522827,
0.2667153775691986,
0.15839321911334991,
0.19451424479484558,
-0.29783540964126587,
0.280281662940979,
0.2864382863044739,
-0.11366555839776993,
-0.14497610926628113,
0.24759668111801147,
0.10350093245506287,
0.12117497622966766,
0.06648692488670349,
0.007276778109371662,
-0.10209310054779053,
0.04913519695401192,
-0.26744329929351807,
0.5598200559616089,
0.39309343695640564,
-0.180312842130661,
-0.22552789747714996,
-0.40638136863708496
] |
https://github.com/huggingface/datasets/issues/2728 | Concurrent use of same dataset (already downloaded) | Launching simultaneous job relying on the same datasets try some writing issue. I guess it is unexpected since I only need to load some already downloaded file. | ## Describe the bug
When launching several jobs at the same time loading the same dataset trigger some errors see (last comments).
## Steps to reproduce the bug
export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets
for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do
for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do
export OUTPUT_DIR=${MODEL}_${TASK_NAME}
sbatch --job-name=${OUTPUT_DIR} \
--gres=gpu:1 \
--no-requeue \
--cpus-per-task=10 \
--hint=nomultithread \
--time=1:00:00 \
--output=jobinfo/${OUTPUT_DIR}_%j.out \
--error=jobinfo/${OUTPUT_DIR}_%j.err \
--qos=qos_gpu-t4 \
--wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL"
done
done
```python
# Sample code to reproduce the bug
dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter)))
dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter, args.filter + 5000)))
dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists")
dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True)
```
## Expected results
I believe I am doing something wrong with the objects.
## Actual results
Traceback (most recent call last):
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split
check_duplicates=True,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets==1.8.0
- Platform: linux (jeanzay)
- Python version: pyarrow==2.0.0
- PyArrow version: 3.7.8
| 27 | Concurrent use of same dataset (already downloaded)
## Describe the bug
When launching several jobs at the same time loading the same dataset trigger some errors see (last comments).
## Steps to reproduce the bug
export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets
for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do
for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do
export OUTPUT_DIR=${MODEL}_${TASK_NAME}
sbatch --job-name=${OUTPUT_DIR} \
--gres=gpu:1 \
--no-requeue \
--cpus-per-task=10 \
--hint=nomultithread \
--time=1:00:00 \
--output=jobinfo/${OUTPUT_DIR}_%j.out \
--error=jobinfo/${OUTPUT_DIR}_%j.err \
--qos=qos_gpu-t4 \
--wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL"
done
done
```python
# Sample code to reproduce the bug
dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter)))
dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter, args.filter + 5000)))
dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists")
dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True)
```
## Expected results
I believe I am doing something wrong with the objects.
## Actual results
Traceback (most recent call last):
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split
check_duplicates=True,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets==1.8.0
- Platform: linux (jeanzay)
- Python version: pyarrow==2.0.0
- PyArrow version: 3.7.8
Launching simultaneous job relying on the same datasets try some writing issue. I guess it is unexpected since I only need to load some already downloaded file. | [
-0.5779122710227966,
-0.08099966496229172,
-0.04536418616771698,
0.4501565098762512,
0.2459626942873001,
0.013974927365779877,
0.5565328001976013,
0.27238136529922485,
0.18437135219573975,
0.19074305891990662,
-0.031177887693047523,
0.1464349627494812,
0.02124243788421154,
0.14418846368789673,
-0.08855102956295013,
0.023560350760817528,
0.13091646134853363,
-0.2257412075996399,
-0.3968795835971832,
-0.02036304399371147,
-0.24068191647529602,
0.1446244865655899,
0.08555096387863159,
0.193270742893219,
-0.5113251805305481,
-0.3433859050273895,
-0.054176025092601776,
0.05579334497451782,
0.25900372862815857,
-0.06713268905878067,
0.16646349430084229,
0.28593868017196655,
-0.0116242915391922,
0.867881178855896,
-0.00010900417692027986,
0.13913527131080627,
0.12896770238876343,
0.11097274720668793,
-0.06344674527645111,
-0.22727195918560028,
0.03308182209730148,
-0.10797512531280518,
0.11869525164365768,
-0.3137778341770172,
0.11895105987787247,
0.058499470353126526,
-0.03005555458366871,
-0.20935365557670593,
0.5382679104804993,
0.0736101046204567,
0.23840287327766418,
0.3819691240787506,
-0.30659744143486023,
-0.22970812022686005,
0.18424536287784576,
0.056979529559612274,
0.0860360711812973,
0.0703069269657135,
0.1006154865026474,
-0.1604282408952713,
-0.02435433119535446,
0.4298267662525177,
-0.12887437641620636,
0.2059701383113861,
-0.02313435822725296,
0.08696010708808899,
0.1051391139626503,
-0.5513936281204224,
0.0767243281006813,
0.0688895583152771,
-0.011532582342624664,
-0.3123028576374054,
-0.35421955585479736,
-0.3473508656024933,
-0.0639268010854721,
-0.2551651895046234,
0.0928216204047203,
0.34526610374450684,
-0.20339594781398773,
-0.19230780005455017,
-0.09205148369073868,
0.18674956262111664,
-0.07550406455993652,
-0.13499592244625092,
0.24153655767440796,
0.33065253496170044,
0.08305159211158752,
0.23875251412391663,
0.0692322626709938,
0.09273342043161392,
0.32804903388023376,
-0.16129492223262787,
-0.10143581032752991,
-0.0775533989071846,
-0.6200725436210632,
0.04574618488550186,
-0.016056746244430542,
-0.46522316336631775,
0.18437403440475464,
-0.18587307631969452,
-0.1885087937116623,
0.04998638480901718,
0.17170891165733337,
0.10315109044313431,
0.2989789545536041,
0.09600147604942322,
-0.3177449405193329,
0.2705483138561249,
0.34386247396469116,
0.1331981122493744,
-0.5029964447021484,
0.06527421623468399,
-0.015614159405231476,
-0.2567528784275055,
0.21760956943035126,
0.1873345673084259,
0.2414577454328537,
-0.08298912644386292,
-0.35721921920776367,
-0.05231384187936783,
-0.0511176660656929,
-0.05585227906703949,
-0.10141486674547195,
0.4524846076965332,
0.17779061198234558,
0.15677377581596375,
0.09131330251693726,
0.19694404304027557,
-0.18229246139526367,
0.06248730048537254,
-0.30123013257980347,
-0.029075659811496735,
-0.014692217111587524,
0.21433335542678833,
0.11573907732963562,
-0.06431354582309723,
0.22488544881343842,
0.33794453740119934,
0.049889225512742996,
-0.46853771805763245,
0.26246801018714905,
-0.3657260239124298,
-0.24716612696647644,
0.19613449275493622,
0.18517866730690002,
0.13720686733722687,
-0.10516081750392914,
0.3842991590499878,
0.013487234711647034,
0.25873297452926636,
-0.32880493998527527,
-0.13939443230628967,
0.08096756041049957,
0.2727390229701996,
0.013745222240686417,
0.11527740955352783,
-0.3554977774620056,
0.11369152367115021,
0.3186284005641937,
-0.041669487953186035,
0.10863855481147766,
-0.37206506729125977,
-0.3164128363132477,
-0.1393730342388153,
-0.020544463768601418,
0.5279048681259155,
0.07681269943714142,
0.026820741593837738,
0.1770920306444168,
-0.10901093482971191,
0.09156638383865356,
0.3510977327823639,
-0.34232428669929504,
0.4966168999671936,
-0.34933146834373474,
0.1288178563117981,
0.24405020475387573,
-0.3719637989997864,
-0.15167224407196045,
0.3383849859237671,
-0.16466623544692993,
0.12522096931934357,
0.2112877070903778,
-0.05685513839125633,
0.21223381161689758,
-0.13592194020748138,
-0.008483357727527618,
0.1491883099079132,
-0.10798585414886475,
0.4015437364578247,
-0.19186097383499146,
-0.28391534090042114,
0.04894961789250374,
0.1688932180404663,
0.3223809003829956,
-0.0939972773194313,
0.026982024312019348,
-0.28747817873954773,
0.38758111000061035,
-0.33043360710144043,
-0.07319308817386627,
0.21585291624069214,
-0.010300446301698685,
0.079535573720932,
0.08106500655412674,
-0.10964686423540115,
-0.5169215202331543,
0.1978815495967865,
-0.362486332654953,
0.04324962571263313,
0.034230127930641174,
-0.19916123151779175,
0.10673736035823822,
-0.04177073389291763,
-0.2488534301519394,
-0.18883022665977478,
0.17062731087207794,
0.23171375691890717,
-0.15026798844337463,
-0.11813752353191376,
-0.14736032485961914,
0.3599052131175995,
-0.15828099846839905,
0.023461537435650826,
-0.0023934170603752136,
0.17053639888763428,
-0.1951894313097,
-0.2185278683900833,
0.11621001362800598,
-0.06034832447767258,
0.4591344892978668,
-0.18166077136993408,
-0.16463807225227356,
0.23448124527931213,
0.19793574512004852,
0.315144419670105,
-0.06083010137081146,
0.016890868544578552,
0.1874212920665741,
0.15569090843200684,
-0.0017902720719575882,
0.14251703023910522,
0.2640642523765564,
-0.14529022574424744,
0.09745551645755768,
0.317867249250412,
0.003361053764820099,
0.13837017118930817,
0.05906027555465698,
-0.2233062982559204,
0.1934235394001007,
-0.1233384907245636,
0.1891792267560959,
0.1224580854177475,
0.22531083226203918,
0.1255558431148529,
0.016756534576416016,
-0.08165795356035233,
-0.5741456747055054,
0.08364430069923401,
0.3775579035282135,
0.16694140434265137,
0.07349458336830139,
0.0733090341091156,
-0.04749016463756561,
0.022788885980844498,
-0.1682935506105423,
0.2998524010181427,
0.5353221893310547,
0.13491123914718628,
0.045724496245384216,
0.08820871263742447,
-0.1451273113489151,
-0.08921922743320465,
0.06667635589838028,
0.1546054482460022,
0.19488351047039032,
0.5548339486122131,
0.19949261844158173,
-0.06998064368963242,
-0.280362069606781,
-0.11192667484283447,
0.26719310879707336,
0.09417518973350525,
-0.3748238980770111,
0.1850152611732483,
0.1274144947528839,
-0.17477914690971375,
-0.42136308550834656,
0.0054042283445596695,
-0.03352361544966698,
-0.1470949351787567,
-0.039852745831012726,
0.4568408131599426,
-0.19973602890968323,
0.36714503169059753,
-0.029929297044873238,
0.1571480631828308,
-0.18679846823215485,
0.23610104620456696,
-0.1471162587404251,
-0.07119886577129364,
-0.11414884775876999,
-0.011395305395126343,
0.28495660424232483,
0.06693995743989944,
0.31875014305114746,
0.07194429636001587,
-0.3169524073600769,
-0.3599550426006317,
-0.0033946260809898376,
0.07837015390396118,
0.0017775893211364746,
0.42318981885910034,
-0.08440519869327545,
-0.1965942233800888,
0.0808480978012085,
-0.44700002670288086,
0.2024545669555664,
-0.35917654633522034,
-0.07020319998264313,
-0.1327766627073288,
-0.2264377921819687,
-0.06717538088560104,
-0.17661449313163757,
-0.3789282441139221,
-0.2513653337955475,
-0.26769036054611206,
-0.0906180888414383,
-0.17275187373161316,
0.21168872714042664,
0.07636552304029465,
-0.14113712310791016,
-0.0400550439953804,
0.15371279418468475,
-0.004670234397053719,
-0.3079814612865448,
-0.3230583965778351,
0.06932702660560608,
-0.1893557906150818,
-0.32066038250923157,
-0.08726824074983597,
-0.14780904352664948,
0.06826913356781006,
0.22674454748630524,
-0.4916568994522095,
-0.3557172119617462,
-0.1071278303861618,
0.0577949620783329,
-0.14612306654453278,
-0.03710499405860901,
0.050697341561317444,
0.06102220341563225,
-0.13800612092018127,
-0.1171882227063179,
-0.17283916473388672,
0.20160575211048126,
-0.03128291666507721,
0.005255661904811859,
-0.16598057746887207,
0.26715201139450073,
-0.15802651643753052,
0.6628256440162659,
0.24492615461349487,
-0.061102841049432755,
0.3297880291938782,
-0.141971156001091,
0.07865651696920395,
-0.018280580639839172,
-0.44076427817344666,
-0.06863149255514145,
-0.4300895631313324,
-0.23295389115810394,
0.14238113164901733,
-0.3390008807182312,
-0.1655285805463791,
-0.08836278319358826,
0.020786818116903305,
-0.34833863377571106,
-0.31115660071372986,
0.10517922788858414,
-0.15689608454704285,
0.3320011496543884,
0.04731891676783562,
0.1608242690563202,
0.003293396905064583,
0.07313033938407898,
0.2852948009967804,
0.03721889108419418,
0.20852915942668915,
-0.18799665570259094,
-0.03207502141594887,
0.07562939822673798,
-0.19160181283950806,
0.3207661509513855,
0.09924563765525818,
0.18817658722400665,
-0.0998486801981926,
0.2111589014530182,
0.01739676296710968,
-0.11549416929483414,
0.8625532984733582,
-0.1944364607334137,
0.3259492516517639,
0.19437745213508606,
-0.35242265462875366,
-0.08486945927143097,
-0.19156894087791443,
-0.35499298572540283,
-0.211286261677742,
0.2583164870738983,
0.6643007397651672,
-0.3218051791191101,
-0.12378255277872086,
0.1433635652065277,
-0.020837385207414627,
-0.2824375033378601,
-0.3151056468486786,
-0.16054245829582214,
-0.30012407898902893,
-0.2805771231651306,
0.17587701976299286,
-0.09049993753433228,
0.12028730660676956,
-0.5292028188705444,
-0.08387143909931183,
-0.1814911663532257,
0.2068258821964264,
-0.010571904480457306,
0.05884362384676933,
0.28042083978652954,
-0.06041601672768593,
0.4039427936077118,
0.12626104056835175,
-0.03015817701816559,
0.27479761838912964,
0.4463314414024353,
0.02010902762413025,
-0.27702611684799194,
0.001954164355993271,
0.046341512352228165,
0.089772529900074,
0.4556979238986969,
0.02726166322827339,
0.1352088749408722,
0.06710036098957062,
0.26808497309684753,
-0.06722392141819,
0.178090438246727,
0.38363292813301086,
0.2199997454881668,
-0.19891121983528137,
-0.34773170948028564,
0.09311074018478394,
0.23563529551029205,
-0.13195569813251495,
0.2889435291290283,
-0.5127387046813965,
-0.20680703222751617,
0.302600622177124,
-0.004667498171329498,
0.6622440814971924,
0.014262709766626358,
0.09115396440029144,
0.30842313170433044,
-0.3028060793876648,
0.2865457534790039,
-0.21504786610603333,
0.322171151638031,
-0.5821487903594971,
-0.2683509886264801,
0.11587272584438324,
-0.12703244388103485,
-0.07524923235177994,
0.052676841616630554,
-0.1140700951218605,
0.3120545446872711,
-0.0008436292409896851,
0.03243688493967056,
-0.24797196686267853,
0.24466684460639954,
0.00656613614410162,
-0.3198535442352295,
0.053123123943805695,
0.11875639855861664,
-0.2992708683013916,
0.2569262385368347,
-0.14009630680084229,
-0.1082456037402153,
0.2545023560523987,
-0.23585990071296692,
-0.2938598692417145,
0.23255455493927002,
-0.348494291305542,
0.2806262969970703,
-0.143375426530838,
-0.19273094832897186,
0.046399254351854324,
-0.08668278157711029,
0.15603455901145935,
-0.22872324287891388,
0.07313445955514908,
0.09576302766799927,
0.05687575042247772,
0.13810379803180695,
-0.23188285529613495,
-0.15370088815689087,
0.4277767539024353,
0.02116316184401512,
-0.3620677888393402,
-0.08203310519456863,
-0.03733660653233528,
-0.014832619577646255,
-0.1281268298625946,
0.048115454614162445,
-0.19516326487064362,
-0.19833330810070038,
-0.11311005055904388,
0.22361527383327484,
-0.07423414289951324,
-0.3154715597629547,
0.15182623267173767,
-0.2507011890411377,
-0.27370497584342957,
0.39057135581970215,
-0.12386590242385864,
-0.37392663955688477,
-0.07747820019721985,
0.22042569518089294,
0.17551136016845703,
0.07899507135152817,
0.4106524586677551,
0.33670520782470703,
-0.06407308578491211,
-0.3133040964603424,
-0.23844751715660095,
0.15980543196201324,
-0.4164748787879944,
0.1772855967283249,
-0.14357784390449524,
0.15152190625667572,
-0.02734551392495632,
0.316476434469223,
0.06300099939107895,
0.12059405446052551,
0.020655792206525803,
-0.2940012216567993,
-0.21536652743816376,
-0.01778431236743927,
-0.06378479301929474,
0.21608155965805054,
0.20124703645706177,
0.26182782649993896,
0.02820439822971821,
0.3244500756263733,
-0.3282783031463623,
0.23353934288024902,
-0.2057461142539978,
0.13083896040916443,
0.05137203633785248,
-0.13134923577308655,
0.08273956179618835,
0.23978151381015778,
0.0975584164261818,
0.2197262942790985,
-0.16471825540065765,
-0.2612219750881195,
-0.2263840287923813,
0.09875470399856567,
-0.02084217220544815,
0.020225662738084793,
-0.14770343899726868,
-0.13346397876739502,
0.12802647054195404,
-0.018376793712377548,
0.4289839565753937,
0.22844892740249634,
-0.16439734399318695,
0.10616164654493332,
0.1367548108100891,
0.16482199728488922,
-0.08187934011220932,
0.17027069628238678,
0.0002726614475250244,
-0.0996420681476593,
0.18882614374160767,
0.18288202583789825,
-0.002651704242452979,
0.03965151309967041,
-0.2979305684566498,
-0.18287718296051025,
0.4134562015533447,
0.15602697432041168,
0.09294861555099487,
-0.385154128074646,
-0.22395482659339905,
0.03145109489560127,
0.450008749961853,
0.31337541341781616,
-0.3114970922470093,
-0.0574880912899971,
-0.03705018386244774,
0.28020817041397095,
-0.18614499270915985,
-0.025260640308260918,
-0.000444045290350914,
-0.19825367629528046,
0.017028238624334335,
0.3708454668521881,
0.3222138285636902,
0.049197614192962646,
-0.02571646124124527,
0.15775194764137268,
0.37087082862854004,
-0.3861026167869568,
0.24042998254299164,
-0.004391562193632126,
-0.12606950104236603,
0.12737387418746948,
0.40780559182167053,
0.22648708522319794,
0.07974515855312347,
0.17885321378707886,
0.0911039263010025,
0.1854630559682846,
-0.03016747534275055,
-0.14113037288188934,
0.11168447136878967,
-0.30865979194641113,
-0.038112495094537735,
0.20166829228401184,
-0.22635504603385925,
-0.12448663264513016,
-0.21199694275856018,
-0.06880111247301102,
-0.18714088201522827,
-0.22876489162445068,
-0.36810770630836487,
0.2676635980606079,
-0.39746934175491333,
-0.04810561612248421,
0.1096312403678894,
-0.14428089559078217,
0.1278005987405777,
0.20107105374336243,
0.11405616998672485,
0.13477292656898499,
0.44946444034576416,
0.13311389088630676,
-0.281757116317749,
-0.11044773459434509,
-0.31635645031929016,
0.27165722846984863,
0.15504136681556702,
-0.31638485193252563,
0.2832721173763275,
0.34186890721321106,
-0.050497546792030334,
-0.237074077129364,
0.5526758432388306,
0.6522243618965149,
0.35371866822242737,
-0.14521898329257965,
0.007220016792416573,
0.032873351126909256,
0.13185738027095795,
-0.08333040028810501,
0.09240232408046722,
0.132080078125,
0.27384182810783386,
0.37507379055023193,
0.16277635097503662,
-0.1621028184890747,
0.15090131759643555,
0.2157595157623291,
0.1737513542175293,
-0.26355352997779846,
0.29178738594055176,
-0.047565437853336334,
-0.07093396782875061,
-0.0687781497836113,
0.010969065129756927,
-0.33250871300697327,
0.11672362685203552,
0.47250887751579285,
-0.09931293874979019,
0.22564813494682312,
0.00025793607346713543,
0.12229229509830475,
0.011699899099767208,
0.3831607401371002,
0.12131239473819733,
0.1006874144077301,
-0.6743166446685791,
0.06177984178066254,
-0.4572269022464752,
0.29571059346199036,
-0.14188814163208008,
0.19633248448371887,
-0.04305542632937431,
0.10472287982702255,
-0.2969472408294678,
-0.06525233387947083,
0.2955665588378906,
-0.04077880084514618,
0.07654056698083878,
0.4635721445083618,
-0.596939742565155,
0.049504801630973816,
-0.335207462310791,
-0.12624163925647736,
0.3455520570278168,
-0.4687042236328125,
0.21943321824073792,
-0.15224884450435638,
0.09160996228456497,
0.11633941531181335,
-0.00363859161734581,
0.30936118960380554,
0.12445297092199326,
0.5834571719169617,
0.17503680288791656,
0.6061421632766724,
-0.12605097889900208,
0.1312718689441681,
-0.11316065490245819,
-0.4133683145046234,
-0.33009663224220276,
-0.00695105642080307,
0.14930018782615662,
0.10660973191261292,
-0.07569345086812973,
-0.09274779260158539,
-0.33851221203804016,
-0.15237344801425934,
0.026059530675411224,
-0.13960576057434082,
-0.04959636181592941,
0.040065258741378784,
0.001670844852924347,
0.04849952459335327,
0.1314331591129303,
0.2882748246192932,
0.2544398009777069,
0.23279573023319244,
-0.4348084330558777,
-0.3158875107765198,
0.5066917538642883,
-0.2032599151134491,
-0.5028805732727051,
-0.3684079647064209,
0.39029937982559204,
-0.026088692247867584,
0.08401502668857574,
-0.6257058382034302,
0.13618531823158264,
0.3196178674697876,
-0.07806531339883804,
-0.1940837800502777,
0.16662812232971191,
0.03400702401995659,
-0.15274298191070557,
0.10099770128726959,
-0.043953366577625275,
0.045394085347652435,
-0.36369431018829346,
0.027707915753126144,
-0.060680728405714035
] |
https://github.com/huggingface/datasets/issues/2728 | Concurrent use of same dataset (already downloaded) | If i have two jobs that use the same dataset. I got :
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 582, in download_and_prepare
self._save_info()
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 690, in _save_info
self.info.write_to_directory(self._cache_dir)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/info.py", line 195, in write_to_directory
with open(os.path.join(dataset_info_dir, config.LICENSE_FILENAME), "wb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/LICENSE' | ## Describe the bug
When launching several jobs at the same time loading the same dataset trigger some errors see (last comments).
## Steps to reproduce the bug
export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets
for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do
for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do
export OUTPUT_DIR=${MODEL}_${TASK_NAME}
sbatch --job-name=${OUTPUT_DIR} \
--gres=gpu:1 \
--no-requeue \
--cpus-per-task=10 \
--hint=nomultithread \
--time=1:00:00 \
--output=jobinfo/${OUTPUT_DIR}_%j.out \
--error=jobinfo/${OUTPUT_DIR}_%j.err \
--qos=qos_gpu-t4 \
--wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL"
done
done
```python
# Sample code to reproduce the bug
dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter)))
dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter, args.filter + 5000)))
dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists")
dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True)
```
## Expected results
I believe I am doing something wrong with the objects.
## Actual results
Traceback (most recent call last):
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split
check_duplicates=True,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets==1.8.0
- Platform: linux (jeanzay)
- Python version: pyarrow==2.0.0
- PyArrow version: 3.7.8
| 78 | Concurrent use of same dataset (already downloaded)
## Describe the bug
When launching several jobs at the same time loading the same dataset trigger some errors see (last comments).
## Steps to reproduce the bug
export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets
for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do
for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do
export OUTPUT_DIR=${MODEL}_${TASK_NAME}
sbatch --job-name=${OUTPUT_DIR} \
--gres=gpu:1 \
--no-requeue \
--cpus-per-task=10 \
--hint=nomultithread \
--time=1:00:00 \
--output=jobinfo/${OUTPUT_DIR}_%j.out \
--error=jobinfo/${OUTPUT_DIR}_%j.err \
--qos=qos_gpu-t4 \
--wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL"
done
done
```python
# Sample code to reproduce the bug
dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter)))
dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter, args.filter + 5000)))
dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists")
dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True)
```
## Expected results
I believe I am doing something wrong with the objects.
## Actual results
Traceback (most recent call last):
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split
check_duplicates=True,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets==1.8.0
- Platform: linux (jeanzay)
- Python version: pyarrow==2.0.0
- PyArrow version: 3.7.8
If i have two jobs that use the same dataset. I got :
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 582, in download_and_prepare
self._save_info()
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 690, in _save_info
self.info.write_to_directory(self._cache_dir)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/info.py", line 195, in write_to_directory
with open(os.path.join(dataset_info_dir, config.LICENSE_FILENAME), "wb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/LICENSE' | [
-0.5779122710227966,
-0.08099966496229172,
-0.04536418616771698,
0.4501565098762512,
0.2459626942873001,
0.013974927365779877,
0.5565328001976013,
0.27238136529922485,
0.18437135219573975,
0.19074305891990662,
-0.031177887693047523,
0.1464349627494812,
0.02124243788421154,
0.14418846368789673,
-0.08855102956295013,
0.023560350760817528,
0.13091646134853363,
-0.2257412075996399,
-0.3968795835971832,
-0.02036304399371147,
-0.24068191647529602,
0.1446244865655899,
0.08555096387863159,
0.193270742893219,
-0.5113251805305481,
-0.3433859050273895,
-0.054176025092601776,
0.05579334497451782,
0.25900372862815857,
-0.06713268905878067,
0.16646349430084229,
0.28593868017196655,
-0.0116242915391922,
0.867881178855896,
-0.00010900417692027986,
0.13913527131080627,
0.12896770238876343,
0.11097274720668793,
-0.06344674527645111,
-0.22727195918560028,
0.03308182209730148,
-0.10797512531280518,
0.11869525164365768,
-0.3137778341770172,
0.11895105987787247,
0.058499470353126526,
-0.03005555458366871,
-0.20935365557670593,
0.5382679104804993,
0.0736101046204567,
0.23840287327766418,
0.3819691240787506,
-0.30659744143486023,
-0.22970812022686005,
0.18424536287784576,
0.056979529559612274,
0.0860360711812973,
0.0703069269657135,
0.1006154865026474,
-0.1604282408952713,
-0.02435433119535446,
0.4298267662525177,
-0.12887437641620636,
0.2059701383113861,
-0.02313435822725296,
0.08696010708808899,
0.1051391139626503,
-0.5513936281204224,
0.0767243281006813,
0.0688895583152771,
-0.011532582342624664,
-0.3123028576374054,
-0.35421955585479736,
-0.3473508656024933,
-0.0639268010854721,
-0.2551651895046234,
0.0928216204047203,
0.34526610374450684,
-0.20339594781398773,
-0.19230780005455017,
-0.09205148369073868,
0.18674956262111664,
-0.07550406455993652,
-0.13499592244625092,
0.24153655767440796,
0.33065253496170044,
0.08305159211158752,
0.23875251412391663,
0.0692322626709938,
0.09273342043161392,
0.32804903388023376,
-0.16129492223262787,
-0.10143581032752991,
-0.0775533989071846,
-0.6200725436210632,
0.04574618488550186,
-0.016056746244430542,
-0.46522316336631775,
0.18437403440475464,
-0.18587307631969452,
-0.1885087937116623,
0.04998638480901718,
0.17170891165733337,
0.10315109044313431,
0.2989789545536041,
0.09600147604942322,
-0.3177449405193329,
0.2705483138561249,
0.34386247396469116,
0.1331981122493744,
-0.5029964447021484,
0.06527421623468399,
-0.015614159405231476,
-0.2567528784275055,
0.21760956943035126,
0.1873345673084259,
0.2414577454328537,
-0.08298912644386292,
-0.35721921920776367,
-0.05231384187936783,
-0.0511176660656929,
-0.05585227906703949,
-0.10141486674547195,
0.4524846076965332,
0.17779061198234558,
0.15677377581596375,
0.09131330251693726,
0.19694404304027557,
-0.18229246139526367,
0.06248730048537254,
-0.30123013257980347,
-0.029075659811496735,
-0.014692217111587524,
0.21433335542678833,
0.11573907732963562,
-0.06431354582309723,
0.22488544881343842,
0.33794453740119934,
0.049889225512742996,
-0.46853771805763245,
0.26246801018714905,
-0.3657260239124298,
-0.24716612696647644,
0.19613449275493622,
0.18517866730690002,
0.13720686733722687,
-0.10516081750392914,
0.3842991590499878,
0.013487234711647034,
0.25873297452926636,
-0.32880493998527527,
-0.13939443230628967,
0.08096756041049957,
0.2727390229701996,
0.013745222240686417,
0.11527740955352783,
-0.3554977774620056,
0.11369152367115021,
0.3186284005641937,
-0.041669487953186035,
0.10863855481147766,
-0.37206506729125977,
-0.3164128363132477,
-0.1393730342388153,
-0.020544463768601418,
0.5279048681259155,
0.07681269943714142,
0.026820741593837738,
0.1770920306444168,
-0.10901093482971191,
0.09156638383865356,
0.3510977327823639,
-0.34232428669929504,
0.4966168999671936,
-0.34933146834373474,
0.1288178563117981,
0.24405020475387573,
-0.3719637989997864,
-0.15167224407196045,
0.3383849859237671,
-0.16466623544692993,
0.12522096931934357,
0.2112877070903778,
-0.05685513839125633,
0.21223381161689758,
-0.13592194020748138,
-0.008483357727527618,
0.1491883099079132,
-0.10798585414886475,
0.4015437364578247,
-0.19186097383499146,
-0.28391534090042114,
0.04894961789250374,
0.1688932180404663,
0.3223809003829956,
-0.0939972773194313,
0.026982024312019348,
-0.28747817873954773,
0.38758111000061035,
-0.33043360710144043,
-0.07319308817386627,
0.21585291624069214,
-0.010300446301698685,
0.079535573720932,
0.08106500655412674,
-0.10964686423540115,
-0.5169215202331543,
0.1978815495967865,
-0.362486332654953,
0.04324962571263313,
0.034230127930641174,
-0.19916123151779175,
0.10673736035823822,
-0.04177073389291763,
-0.2488534301519394,
-0.18883022665977478,
0.17062731087207794,
0.23171375691890717,
-0.15026798844337463,
-0.11813752353191376,
-0.14736032485961914,
0.3599052131175995,
-0.15828099846839905,
0.023461537435650826,
-0.0023934170603752136,
0.17053639888763428,
-0.1951894313097,
-0.2185278683900833,
0.11621001362800598,
-0.06034832447767258,
0.4591344892978668,
-0.18166077136993408,
-0.16463807225227356,
0.23448124527931213,
0.19793574512004852,
0.315144419670105,
-0.06083010137081146,
0.016890868544578552,
0.1874212920665741,
0.15569090843200684,
-0.0017902720719575882,
0.14251703023910522,
0.2640642523765564,
-0.14529022574424744,
0.09745551645755768,
0.317867249250412,
0.003361053764820099,
0.13837017118930817,
0.05906027555465698,
-0.2233062982559204,
0.1934235394001007,
-0.1233384907245636,
0.1891792267560959,
0.1224580854177475,
0.22531083226203918,
0.1255558431148529,
0.016756534576416016,
-0.08165795356035233,
-0.5741456747055054,
0.08364430069923401,
0.3775579035282135,
0.16694140434265137,
0.07349458336830139,
0.0733090341091156,
-0.04749016463756561,
0.022788885980844498,
-0.1682935506105423,
0.2998524010181427,
0.5353221893310547,
0.13491123914718628,
0.045724496245384216,
0.08820871263742447,
-0.1451273113489151,
-0.08921922743320465,
0.06667635589838028,
0.1546054482460022,
0.19488351047039032,
0.5548339486122131,
0.19949261844158173,
-0.06998064368963242,
-0.280362069606781,
-0.11192667484283447,
0.26719310879707336,
0.09417518973350525,
-0.3748238980770111,
0.1850152611732483,
0.1274144947528839,
-0.17477914690971375,
-0.42136308550834656,
0.0054042283445596695,
-0.03352361544966698,
-0.1470949351787567,
-0.039852745831012726,
0.4568408131599426,
-0.19973602890968323,
0.36714503169059753,
-0.029929297044873238,
0.1571480631828308,
-0.18679846823215485,
0.23610104620456696,
-0.1471162587404251,
-0.07119886577129364,
-0.11414884775876999,
-0.011395305395126343,
0.28495660424232483,
0.06693995743989944,
0.31875014305114746,
0.07194429636001587,
-0.3169524073600769,
-0.3599550426006317,
-0.0033946260809898376,
0.07837015390396118,
0.0017775893211364746,
0.42318981885910034,
-0.08440519869327545,
-0.1965942233800888,
0.0808480978012085,
-0.44700002670288086,
0.2024545669555664,
-0.35917654633522034,
-0.07020319998264313,
-0.1327766627073288,
-0.2264377921819687,
-0.06717538088560104,
-0.17661449313163757,
-0.3789282441139221,
-0.2513653337955475,
-0.26769036054611206,
-0.0906180888414383,
-0.17275187373161316,
0.21168872714042664,
0.07636552304029465,
-0.14113712310791016,
-0.0400550439953804,
0.15371279418468475,
-0.004670234397053719,
-0.3079814612865448,
-0.3230583965778351,
0.06932702660560608,
-0.1893557906150818,
-0.32066038250923157,
-0.08726824074983597,
-0.14780904352664948,
0.06826913356781006,
0.22674454748630524,
-0.4916568994522095,
-0.3557172119617462,
-0.1071278303861618,
0.0577949620783329,
-0.14612306654453278,
-0.03710499405860901,
0.050697341561317444,
0.06102220341563225,
-0.13800612092018127,
-0.1171882227063179,
-0.17283916473388672,
0.20160575211048126,
-0.03128291666507721,
0.005255661904811859,
-0.16598057746887207,
0.26715201139450073,
-0.15802651643753052,
0.6628256440162659,
0.24492615461349487,
-0.061102841049432755,
0.3297880291938782,
-0.141971156001091,
0.07865651696920395,
-0.018280580639839172,
-0.44076427817344666,
-0.06863149255514145,
-0.4300895631313324,
-0.23295389115810394,
0.14238113164901733,
-0.3390008807182312,
-0.1655285805463791,
-0.08836278319358826,
0.020786818116903305,
-0.34833863377571106,
-0.31115660071372986,
0.10517922788858414,
-0.15689608454704285,
0.3320011496543884,
0.04731891676783562,
0.1608242690563202,
0.003293396905064583,
0.07313033938407898,
0.2852948009967804,
0.03721889108419418,
0.20852915942668915,
-0.18799665570259094,
-0.03207502141594887,
0.07562939822673798,
-0.19160181283950806,
0.3207661509513855,
0.09924563765525818,
0.18817658722400665,
-0.0998486801981926,
0.2111589014530182,
0.01739676296710968,
-0.11549416929483414,
0.8625532984733582,
-0.1944364607334137,
0.3259492516517639,
0.19437745213508606,
-0.35242265462875366,
-0.08486945927143097,
-0.19156894087791443,
-0.35499298572540283,
-0.211286261677742,
0.2583164870738983,
0.6643007397651672,
-0.3218051791191101,
-0.12378255277872086,
0.1433635652065277,
-0.020837385207414627,
-0.2824375033378601,
-0.3151056468486786,
-0.16054245829582214,
-0.30012407898902893,
-0.2805771231651306,
0.17587701976299286,
-0.09049993753433228,
0.12028730660676956,
-0.5292028188705444,
-0.08387143909931183,
-0.1814911663532257,
0.2068258821964264,
-0.010571904480457306,
0.05884362384676933,
0.28042083978652954,
-0.06041601672768593,
0.4039427936077118,
0.12626104056835175,
-0.03015817701816559,
0.27479761838912964,
0.4463314414024353,
0.02010902762413025,
-0.27702611684799194,
0.001954164355993271,
0.046341512352228165,
0.089772529900074,
0.4556979238986969,
0.02726166322827339,
0.1352088749408722,
0.06710036098957062,
0.26808497309684753,
-0.06722392141819,
0.178090438246727,
0.38363292813301086,
0.2199997454881668,
-0.19891121983528137,
-0.34773170948028564,
0.09311074018478394,
0.23563529551029205,
-0.13195569813251495,
0.2889435291290283,
-0.5127387046813965,
-0.20680703222751617,
0.302600622177124,
-0.004667498171329498,
0.6622440814971924,
0.014262709766626358,
0.09115396440029144,
0.30842313170433044,
-0.3028060793876648,
0.2865457534790039,
-0.21504786610603333,
0.322171151638031,
-0.5821487903594971,
-0.2683509886264801,
0.11587272584438324,
-0.12703244388103485,
-0.07524923235177994,
0.052676841616630554,
-0.1140700951218605,
0.3120545446872711,
-0.0008436292409896851,
0.03243688493967056,
-0.24797196686267853,
0.24466684460639954,
0.00656613614410162,
-0.3198535442352295,
0.053123123943805695,
0.11875639855861664,
-0.2992708683013916,
0.2569262385368347,
-0.14009630680084229,
-0.1082456037402153,
0.2545023560523987,
-0.23585990071296692,
-0.2938598692417145,
0.23255455493927002,
-0.348494291305542,
0.2806262969970703,
-0.143375426530838,
-0.19273094832897186,
0.046399254351854324,
-0.08668278157711029,
0.15603455901145935,
-0.22872324287891388,
0.07313445955514908,
0.09576302766799927,
0.05687575042247772,
0.13810379803180695,
-0.23188285529613495,
-0.15370088815689087,
0.4277767539024353,
0.02116316184401512,
-0.3620677888393402,
-0.08203310519456863,
-0.03733660653233528,
-0.014832619577646255,
-0.1281268298625946,
0.048115454614162445,
-0.19516326487064362,
-0.19833330810070038,
-0.11311005055904388,
0.22361527383327484,
-0.07423414289951324,
-0.3154715597629547,
0.15182623267173767,
-0.2507011890411377,
-0.27370497584342957,
0.39057135581970215,
-0.12386590242385864,
-0.37392663955688477,
-0.07747820019721985,
0.22042569518089294,
0.17551136016845703,
0.07899507135152817,
0.4106524586677551,
0.33670520782470703,
-0.06407308578491211,
-0.3133040964603424,
-0.23844751715660095,
0.15980543196201324,
-0.4164748787879944,
0.1772855967283249,
-0.14357784390449524,
0.15152190625667572,
-0.02734551392495632,
0.316476434469223,
0.06300099939107895,
0.12059405446052551,
0.020655792206525803,
-0.2940012216567993,
-0.21536652743816376,
-0.01778431236743927,
-0.06378479301929474,
0.21608155965805054,
0.20124703645706177,
0.26182782649993896,
0.02820439822971821,
0.3244500756263733,
-0.3282783031463623,
0.23353934288024902,
-0.2057461142539978,
0.13083896040916443,
0.05137203633785248,
-0.13134923577308655,
0.08273956179618835,
0.23978151381015778,
0.0975584164261818,
0.2197262942790985,
-0.16471825540065765,
-0.2612219750881195,
-0.2263840287923813,
0.09875470399856567,
-0.02084217220544815,
0.020225662738084793,
-0.14770343899726868,
-0.13346397876739502,
0.12802647054195404,
-0.018376793712377548,
0.4289839565753937,
0.22844892740249634,
-0.16439734399318695,
0.10616164654493332,
0.1367548108100891,
0.16482199728488922,
-0.08187934011220932,
0.17027069628238678,
0.0002726614475250244,
-0.0996420681476593,
0.18882614374160767,
0.18288202583789825,
-0.002651704242452979,
0.03965151309967041,
-0.2979305684566498,
-0.18287718296051025,
0.4134562015533447,
0.15602697432041168,
0.09294861555099487,
-0.385154128074646,
-0.22395482659339905,
0.03145109489560127,
0.450008749961853,
0.31337541341781616,
-0.3114970922470093,
-0.0574880912899971,
-0.03705018386244774,
0.28020817041397095,
-0.18614499270915985,
-0.025260640308260918,
-0.000444045290350914,
-0.19825367629528046,
0.017028238624334335,
0.3708454668521881,
0.3222138285636902,
0.049197614192962646,
-0.02571646124124527,
0.15775194764137268,
0.37087082862854004,
-0.3861026167869568,
0.24042998254299164,
-0.004391562193632126,
-0.12606950104236603,
0.12737387418746948,
0.40780559182167053,
0.22648708522319794,
0.07974515855312347,
0.17885321378707886,
0.0911039263010025,
0.1854630559682846,
-0.03016747534275055,
-0.14113037288188934,
0.11168447136878967,
-0.30865979194641113,
-0.038112495094537735,
0.20166829228401184,
-0.22635504603385925,
-0.12448663264513016,
-0.21199694275856018,
-0.06880111247301102,
-0.18714088201522827,
-0.22876489162445068,
-0.36810770630836487,
0.2676635980606079,
-0.39746934175491333,
-0.04810561612248421,
0.1096312403678894,
-0.14428089559078217,
0.1278005987405777,
0.20107105374336243,
0.11405616998672485,
0.13477292656898499,
0.44946444034576416,
0.13311389088630676,
-0.281757116317749,
-0.11044773459434509,
-0.31635645031929016,
0.27165722846984863,
0.15504136681556702,
-0.31638485193252563,
0.2832721173763275,
0.34186890721321106,
-0.050497546792030334,
-0.237074077129364,
0.5526758432388306,
0.6522243618965149,
0.35371866822242737,
-0.14521898329257965,
0.007220016792416573,
0.032873351126909256,
0.13185738027095795,
-0.08333040028810501,
0.09240232408046722,
0.132080078125,
0.27384182810783386,
0.37507379055023193,
0.16277635097503662,
-0.1621028184890747,
0.15090131759643555,
0.2157595157623291,
0.1737513542175293,
-0.26355352997779846,
0.29178738594055176,
-0.047565437853336334,
-0.07093396782875061,
-0.0687781497836113,
0.010969065129756927,
-0.33250871300697327,
0.11672362685203552,
0.47250887751579285,
-0.09931293874979019,
0.22564813494682312,
0.00025793607346713543,
0.12229229509830475,
0.011699899099767208,
0.3831607401371002,
0.12131239473819733,
0.1006874144077301,
-0.6743166446685791,
0.06177984178066254,
-0.4572269022464752,
0.29571059346199036,
-0.14188814163208008,
0.19633248448371887,
-0.04305542632937431,
0.10472287982702255,
-0.2969472408294678,
-0.06525233387947083,
0.2955665588378906,
-0.04077880084514618,
0.07654056698083878,
0.4635721445083618,
-0.596939742565155,
0.049504801630973816,
-0.335207462310791,
-0.12624163925647736,
0.3455520570278168,
-0.4687042236328125,
0.21943321824073792,
-0.15224884450435638,
0.09160996228456497,
0.11633941531181335,
-0.00363859161734581,
0.30936118960380554,
0.12445297092199326,
0.5834571719169617,
0.17503680288791656,
0.6061421632766724,
-0.12605097889900208,
0.1312718689441681,
-0.11316065490245819,
-0.4133683145046234,
-0.33009663224220276,
-0.00695105642080307,
0.14930018782615662,
0.10660973191261292,
-0.07569345086812973,
-0.09274779260158539,
-0.33851221203804016,
-0.15237344801425934,
0.026059530675411224,
-0.13960576057434082,
-0.04959636181592941,
0.040065258741378784,
0.001670844852924347,
0.04849952459335327,
0.1314331591129303,
0.2882748246192932,
0.2544398009777069,
0.23279573023319244,
-0.4348084330558777,
-0.3158875107765198,
0.5066917538642883,
-0.2032599151134491,
-0.5028805732727051,
-0.3684079647064209,
0.39029937982559204,
-0.026088692247867584,
0.08401502668857574,
-0.6257058382034302,
0.13618531823158264,
0.3196178674697876,
-0.07806531339883804,
-0.1940837800502777,
0.16662812232971191,
0.03400702401995659,
-0.15274298191070557,
0.10099770128726959,
-0.043953366577625275,
0.045394085347652435,
-0.36369431018829346,
0.027707915753126144,
-0.060680728405714035
] |
https://github.com/huggingface/datasets/issues/2728 | Concurrent use of same dataset (already downloaded) | You can probably have a solution much faster than me (first time I use the library). But I suspect some write function are used when loading the dataset from cache. | ## Describe the bug
When launching several jobs at the same time loading the same dataset trigger some errors see (last comments).
## Steps to reproduce the bug
export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets
for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do
for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do
export OUTPUT_DIR=${MODEL}_${TASK_NAME}
sbatch --job-name=${OUTPUT_DIR} \
--gres=gpu:1 \
--no-requeue \
--cpus-per-task=10 \
--hint=nomultithread \
--time=1:00:00 \
--output=jobinfo/${OUTPUT_DIR}_%j.out \
--error=jobinfo/${OUTPUT_DIR}_%j.err \
--qos=qos_gpu-t4 \
--wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL"
done
done
```python
# Sample code to reproduce the bug
dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter)))
dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter, args.filter + 5000)))
dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists")
dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True)
```
## Expected results
I believe I am doing something wrong with the objects.
## Actual results
Traceback (most recent call last):
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split
check_duplicates=True,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets==1.8.0
- Platform: linux (jeanzay)
- Python version: pyarrow==2.0.0
- PyArrow version: 3.7.8
| 30 | Concurrent use of same dataset (already downloaded)
## Describe the bug
When launching several jobs at the same time loading the same dataset trigger some errors see (last comments).
## Steps to reproduce the bug
export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets
for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do
for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do
export OUTPUT_DIR=${MODEL}_${TASK_NAME}
sbatch --job-name=${OUTPUT_DIR} \
--gres=gpu:1 \
--no-requeue \
--cpus-per-task=10 \
--hint=nomultithread \
--time=1:00:00 \
--output=jobinfo/${OUTPUT_DIR}_%j.out \
--error=jobinfo/${OUTPUT_DIR}_%j.err \
--qos=qos_gpu-t4 \
--wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL"
done
done
```python
# Sample code to reproduce the bug
dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter)))
dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter, args.filter + 5000)))
dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists")
dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True)
```
## Expected results
I believe I am doing something wrong with the objects.
## Actual results
Traceback (most recent call last):
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split
check_duplicates=True,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets==1.8.0
- Platform: linux (jeanzay)
- Python version: pyarrow==2.0.0
- PyArrow version: 3.7.8
You can probably have a solution much faster than me (first time I use the library). But I suspect some write function are used when loading the dataset from cache. | [
-0.5779122710227966,
-0.08099966496229172,
-0.04536418616771698,
0.4501565098762512,
0.2459626942873001,
0.013974927365779877,
0.5565328001976013,
0.27238136529922485,
0.18437135219573975,
0.19074305891990662,
-0.031177887693047523,
0.1464349627494812,
0.02124243788421154,
0.14418846368789673,
-0.08855102956295013,
0.023560350760817528,
0.13091646134853363,
-0.2257412075996399,
-0.3968795835971832,
-0.02036304399371147,
-0.24068191647529602,
0.1446244865655899,
0.08555096387863159,
0.193270742893219,
-0.5113251805305481,
-0.3433859050273895,
-0.054176025092601776,
0.05579334497451782,
0.25900372862815857,
-0.06713268905878067,
0.16646349430084229,
0.28593868017196655,
-0.0116242915391922,
0.867881178855896,
-0.00010900417692027986,
0.13913527131080627,
0.12896770238876343,
0.11097274720668793,
-0.06344674527645111,
-0.22727195918560028,
0.03308182209730148,
-0.10797512531280518,
0.11869525164365768,
-0.3137778341770172,
0.11895105987787247,
0.058499470353126526,
-0.03005555458366871,
-0.20935365557670593,
0.5382679104804993,
0.0736101046204567,
0.23840287327766418,
0.3819691240787506,
-0.30659744143486023,
-0.22970812022686005,
0.18424536287784576,
0.056979529559612274,
0.0860360711812973,
0.0703069269657135,
0.1006154865026474,
-0.1604282408952713,
-0.02435433119535446,
0.4298267662525177,
-0.12887437641620636,
0.2059701383113861,
-0.02313435822725296,
0.08696010708808899,
0.1051391139626503,
-0.5513936281204224,
0.0767243281006813,
0.0688895583152771,
-0.011532582342624664,
-0.3123028576374054,
-0.35421955585479736,
-0.3473508656024933,
-0.0639268010854721,
-0.2551651895046234,
0.0928216204047203,
0.34526610374450684,
-0.20339594781398773,
-0.19230780005455017,
-0.09205148369073868,
0.18674956262111664,
-0.07550406455993652,
-0.13499592244625092,
0.24153655767440796,
0.33065253496170044,
0.08305159211158752,
0.23875251412391663,
0.0692322626709938,
0.09273342043161392,
0.32804903388023376,
-0.16129492223262787,
-0.10143581032752991,
-0.0775533989071846,
-0.6200725436210632,
0.04574618488550186,
-0.016056746244430542,
-0.46522316336631775,
0.18437403440475464,
-0.18587307631969452,
-0.1885087937116623,
0.04998638480901718,
0.17170891165733337,
0.10315109044313431,
0.2989789545536041,
0.09600147604942322,
-0.3177449405193329,
0.2705483138561249,
0.34386247396469116,
0.1331981122493744,
-0.5029964447021484,
0.06527421623468399,
-0.015614159405231476,
-0.2567528784275055,
0.21760956943035126,
0.1873345673084259,
0.2414577454328537,
-0.08298912644386292,
-0.35721921920776367,
-0.05231384187936783,
-0.0511176660656929,
-0.05585227906703949,
-0.10141486674547195,
0.4524846076965332,
0.17779061198234558,
0.15677377581596375,
0.09131330251693726,
0.19694404304027557,
-0.18229246139526367,
0.06248730048537254,
-0.30123013257980347,
-0.029075659811496735,
-0.014692217111587524,
0.21433335542678833,
0.11573907732963562,
-0.06431354582309723,
0.22488544881343842,
0.33794453740119934,
0.049889225512742996,
-0.46853771805763245,
0.26246801018714905,
-0.3657260239124298,
-0.24716612696647644,
0.19613449275493622,
0.18517866730690002,
0.13720686733722687,
-0.10516081750392914,
0.3842991590499878,
0.013487234711647034,
0.25873297452926636,
-0.32880493998527527,
-0.13939443230628967,
0.08096756041049957,
0.2727390229701996,
0.013745222240686417,
0.11527740955352783,
-0.3554977774620056,
0.11369152367115021,
0.3186284005641937,
-0.041669487953186035,
0.10863855481147766,
-0.37206506729125977,
-0.3164128363132477,
-0.1393730342388153,
-0.020544463768601418,
0.5279048681259155,
0.07681269943714142,
0.026820741593837738,
0.1770920306444168,
-0.10901093482971191,
0.09156638383865356,
0.3510977327823639,
-0.34232428669929504,
0.4966168999671936,
-0.34933146834373474,
0.1288178563117981,
0.24405020475387573,
-0.3719637989997864,
-0.15167224407196045,
0.3383849859237671,
-0.16466623544692993,
0.12522096931934357,
0.2112877070903778,
-0.05685513839125633,
0.21223381161689758,
-0.13592194020748138,
-0.008483357727527618,
0.1491883099079132,
-0.10798585414886475,
0.4015437364578247,
-0.19186097383499146,
-0.28391534090042114,
0.04894961789250374,
0.1688932180404663,
0.3223809003829956,
-0.0939972773194313,
0.026982024312019348,
-0.28747817873954773,
0.38758111000061035,
-0.33043360710144043,
-0.07319308817386627,
0.21585291624069214,
-0.010300446301698685,
0.079535573720932,
0.08106500655412674,
-0.10964686423540115,
-0.5169215202331543,
0.1978815495967865,
-0.362486332654953,
0.04324962571263313,
0.034230127930641174,
-0.19916123151779175,
0.10673736035823822,
-0.04177073389291763,
-0.2488534301519394,
-0.18883022665977478,
0.17062731087207794,
0.23171375691890717,
-0.15026798844337463,
-0.11813752353191376,
-0.14736032485961914,
0.3599052131175995,
-0.15828099846839905,
0.023461537435650826,
-0.0023934170603752136,
0.17053639888763428,
-0.1951894313097,
-0.2185278683900833,
0.11621001362800598,
-0.06034832447767258,
0.4591344892978668,
-0.18166077136993408,
-0.16463807225227356,
0.23448124527931213,
0.19793574512004852,
0.315144419670105,
-0.06083010137081146,
0.016890868544578552,
0.1874212920665741,
0.15569090843200684,
-0.0017902720719575882,
0.14251703023910522,
0.2640642523765564,
-0.14529022574424744,
0.09745551645755768,
0.317867249250412,
0.003361053764820099,
0.13837017118930817,
0.05906027555465698,
-0.2233062982559204,
0.1934235394001007,
-0.1233384907245636,
0.1891792267560959,
0.1224580854177475,
0.22531083226203918,
0.1255558431148529,
0.016756534576416016,
-0.08165795356035233,
-0.5741456747055054,
0.08364430069923401,
0.3775579035282135,
0.16694140434265137,
0.07349458336830139,
0.0733090341091156,
-0.04749016463756561,
0.022788885980844498,
-0.1682935506105423,
0.2998524010181427,
0.5353221893310547,
0.13491123914718628,
0.045724496245384216,
0.08820871263742447,
-0.1451273113489151,
-0.08921922743320465,
0.06667635589838028,
0.1546054482460022,
0.19488351047039032,
0.5548339486122131,
0.19949261844158173,
-0.06998064368963242,
-0.280362069606781,
-0.11192667484283447,
0.26719310879707336,
0.09417518973350525,
-0.3748238980770111,
0.1850152611732483,
0.1274144947528839,
-0.17477914690971375,
-0.42136308550834656,
0.0054042283445596695,
-0.03352361544966698,
-0.1470949351787567,
-0.039852745831012726,
0.4568408131599426,
-0.19973602890968323,
0.36714503169059753,
-0.029929297044873238,
0.1571480631828308,
-0.18679846823215485,
0.23610104620456696,
-0.1471162587404251,
-0.07119886577129364,
-0.11414884775876999,
-0.011395305395126343,
0.28495660424232483,
0.06693995743989944,
0.31875014305114746,
0.07194429636001587,
-0.3169524073600769,
-0.3599550426006317,
-0.0033946260809898376,
0.07837015390396118,
0.0017775893211364746,
0.42318981885910034,
-0.08440519869327545,
-0.1965942233800888,
0.0808480978012085,
-0.44700002670288086,
0.2024545669555664,
-0.35917654633522034,
-0.07020319998264313,
-0.1327766627073288,
-0.2264377921819687,
-0.06717538088560104,
-0.17661449313163757,
-0.3789282441139221,
-0.2513653337955475,
-0.26769036054611206,
-0.0906180888414383,
-0.17275187373161316,
0.21168872714042664,
0.07636552304029465,
-0.14113712310791016,
-0.0400550439953804,
0.15371279418468475,
-0.004670234397053719,
-0.3079814612865448,
-0.3230583965778351,
0.06932702660560608,
-0.1893557906150818,
-0.32066038250923157,
-0.08726824074983597,
-0.14780904352664948,
0.06826913356781006,
0.22674454748630524,
-0.4916568994522095,
-0.3557172119617462,
-0.1071278303861618,
0.0577949620783329,
-0.14612306654453278,
-0.03710499405860901,
0.050697341561317444,
0.06102220341563225,
-0.13800612092018127,
-0.1171882227063179,
-0.17283916473388672,
0.20160575211048126,
-0.03128291666507721,
0.005255661904811859,
-0.16598057746887207,
0.26715201139450073,
-0.15802651643753052,
0.6628256440162659,
0.24492615461349487,
-0.061102841049432755,
0.3297880291938782,
-0.141971156001091,
0.07865651696920395,
-0.018280580639839172,
-0.44076427817344666,
-0.06863149255514145,
-0.4300895631313324,
-0.23295389115810394,
0.14238113164901733,
-0.3390008807182312,
-0.1655285805463791,
-0.08836278319358826,
0.020786818116903305,
-0.34833863377571106,
-0.31115660071372986,
0.10517922788858414,
-0.15689608454704285,
0.3320011496543884,
0.04731891676783562,
0.1608242690563202,
0.003293396905064583,
0.07313033938407898,
0.2852948009967804,
0.03721889108419418,
0.20852915942668915,
-0.18799665570259094,
-0.03207502141594887,
0.07562939822673798,
-0.19160181283950806,
0.3207661509513855,
0.09924563765525818,
0.18817658722400665,
-0.0998486801981926,
0.2111589014530182,
0.01739676296710968,
-0.11549416929483414,
0.8625532984733582,
-0.1944364607334137,
0.3259492516517639,
0.19437745213508606,
-0.35242265462875366,
-0.08486945927143097,
-0.19156894087791443,
-0.35499298572540283,
-0.211286261677742,
0.2583164870738983,
0.6643007397651672,
-0.3218051791191101,
-0.12378255277872086,
0.1433635652065277,
-0.020837385207414627,
-0.2824375033378601,
-0.3151056468486786,
-0.16054245829582214,
-0.30012407898902893,
-0.2805771231651306,
0.17587701976299286,
-0.09049993753433228,
0.12028730660676956,
-0.5292028188705444,
-0.08387143909931183,
-0.1814911663532257,
0.2068258821964264,
-0.010571904480457306,
0.05884362384676933,
0.28042083978652954,
-0.06041601672768593,
0.4039427936077118,
0.12626104056835175,
-0.03015817701816559,
0.27479761838912964,
0.4463314414024353,
0.02010902762413025,
-0.27702611684799194,
0.001954164355993271,
0.046341512352228165,
0.089772529900074,
0.4556979238986969,
0.02726166322827339,
0.1352088749408722,
0.06710036098957062,
0.26808497309684753,
-0.06722392141819,
0.178090438246727,
0.38363292813301086,
0.2199997454881668,
-0.19891121983528137,
-0.34773170948028564,
0.09311074018478394,
0.23563529551029205,
-0.13195569813251495,
0.2889435291290283,
-0.5127387046813965,
-0.20680703222751617,
0.302600622177124,
-0.004667498171329498,
0.6622440814971924,
0.014262709766626358,
0.09115396440029144,
0.30842313170433044,
-0.3028060793876648,
0.2865457534790039,
-0.21504786610603333,
0.322171151638031,
-0.5821487903594971,
-0.2683509886264801,
0.11587272584438324,
-0.12703244388103485,
-0.07524923235177994,
0.052676841616630554,
-0.1140700951218605,
0.3120545446872711,
-0.0008436292409896851,
0.03243688493967056,
-0.24797196686267853,
0.24466684460639954,
0.00656613614410162,
-0.3198535442352295,
0.053123123943805695,
0.11875639855861664,
-0.2992708683013916,
0.2569262385368347,
-0.14009630680084229,
-0.1082456037402153,
0.2545023560523987,
-0.23585990071296692,
-0.2938598692417145,
0.23255455493927002,
-0.348494291305542,
0.2806262969970703,
-0.143375426530838,
-0.19273094832897186,
0.046399254351854324,
-0.08668278157711029,
0.15603455901145935,
-0.22872324287891388,
0.07313445955514908,
0.09576302766799927,
0.05687575042247772,
0.13810379803180695,
-0.23188285529613495,
-0.15370088815689087,
0.4277767539024353,
0.02116316184401512,
-0.3620677888393402,
-0.08203310519456863,
-0.03733660653233528,
-0.014832619577646255,
-0.1281268298625946,
0.048115454614162445,
-0.19516326487064362,
-0.19833330810070038,
-0.11311005055904388,
0.22361527383327484,
-0.07423414289951324,
-0.3154715597629547,
0.15182623267173767,
-0.2507011890411377,
-0.27370497584342957,
0.39057135581970215,
-0.12386590242385864,
-0.37392663955688477,
-0.07747820019721985,
0.22042569518089294,
0.17551136016845703,
0.07899507135152817,
0.4106524586677551,
0.33670520782470703,
-0.06407308578491211,
-0.3133040964603424,
-0.23844751715660095,
0.15980543196201324,
-0.4164748787879944,
0.1772855967283249,
-0.14357784390449524,
0.15152190625667572,
-0.02734551392495632,
0.316476434469223,
0.06300099939107895,
0.12059405446052551,
0.020655792206525803,
-0.2940012216567993,
-0.21536652743816376,
-0.01778431236743927,
-0.06378479301929474,
0.21608155965805054,
0.20124703645706177,
0.26182782649993896,
0.02820439822971821,
0.3244500756263733,
-0.3282783031463623,
0.23353934288024902,
-0.2057461142539978,
0.13083896040916443,
0.05137203633785248,
-0.13134923577308655,
0.08273956179618835,
0.23978151381015778,
0.0975584164261818,
0.2197262942790985,
-0.16471825540065765,
-0.2612219750881195,
-0.2263840287923813,
0.09875470399856567,
-0.02084217220544815,
0.020225662738084793,
-0.14770343899726868,
-0.13346397876739502,
0.12802647054195404,
-0.018376793712377548,
0.4289839565753937,
0.22844892740249634,
-0.16439734399318695,
0.10616164654493332,
0.1367548108100891,
0.16482199728488922,
-0.08187934011220932,
0.17027069628238678,
0.0002726614475250244,
-0.0996420681476593,
0.18882614374160767,
0.18288202583789825,
-0.002651704242452979,
0.03965151309967041,
-0.2979305684566498,
-0.18287718296051025,
0.4134562015533447,
0.15602697432041168,
0.09294861555099487,
-0.385154128074646,
-0.22395482659339905,
0.03145109489560127,
0.450008749961853,
0.31337541341781616,
-0.3114970922470093,
-0.0574880912899971,
-0.03705018386244774,
0.28020817041397095,
-0.18614499270915985,
-0.025260640308260918,
-0.000444045290350914,
-0.19825367629528046,
0.017028238624334335,
0.3708454668521881,
0.3222138285636902,
0.049197614192962646,
-0.02571646124124527,
0.15775194764137268,
0.37087082862854004,
-0.3861026167869568,
0.24042998254299164,
-0.004391562193632126,
-0.12606950104236603,
0.12737387418746948,
0.40780559182167053,
0.22648708522319794,
0.07974515855312347,
0.17885321378707886,
0.0911039263010025,
0.1854630559682846,
-0.03016747534275055,
-0.14113037288188934,
0.11168447136878967,
-0.30865979194641113,
-0.038112495094537735,
0.20166829228401184,
-0.22635504603385925,
-0.12448663264513016,
-0.21199694275856018,
-0.06880111247301102,
-0.18714088201522827,
-0.22876489162445068,
-0.36810770630836487,
0.2676635980606079,
-0.39746934175491333,
-0.04810561612248421,
0.1096312403678894,
-0.14428089559078217,
0.1278005987405777,
0.20107105374336243,
0.11405616998672485,
0.13477292656898499,
0.44946444034576416,
0.13311389088630676,
-0.281757116317749,
-0.11044773459434509,
-0.31635645031929016,
0.27165722846984863,
0.15504136681556702,
-0.31638485193252563,
0.2832721173763275,
0.34186890721321106,
-0.050497546792030334,
-0.237074077129364,
0.5526758432388306,
0.6522243618965149,
0.35371866822242737,
-0.14521898329257965,
0.007220016792416573,
0.032873351126909256,
0.13185738027095795,
-0.08333040028810501,
0.09240232408046722,
0.132080078125,
0.27384182810783386,
0.37507379055023193,
0.16277635097503662,
-0.1621028184890747,
0.15090131759643555,
0.2157595157623291,
0.1737513542175293,
-0.26355352997779846,
0.29178738594055176,
-0.047565437853336334,
-0.07093396782875061,
-0.0687781497836113,
0.010969065129756927,
-0.33250871300697327,
0.11672362685203552,
0.47250887751579285,
-0.09931293874979019,
0.22564813494682312,
0.00025793607346713543,
0.12229229509830475,
0.011699899099767208,
0.3831607401371002,
0.12131239473819733,
0.1006874144077301,
-0.6743166446685791,
0.06177984178066254,
-0.4572269022464752,
0.29571059346199036,
-0.14188814163208008,
0.19633248448371887,
-0.04305542632937431,
0.10472287982702255,
-0.2969472408294678,
-0.06525233387947083,
0.2955665588378906,
-0.04077880084514618,
0.07654056698083878,
0.4635721445083618,
-0.596939742565155,
0.049504801630973816,
-0.335207462310791,
-0.12624163925647736,
0.3455520570278168,
-0.4687042236328125,
0.21943321824073792,
-0.15224884450435638,
0.09160996228456497,
0.11633941531181335,
-0.00363859161734581,
0.30936118960380554,
0.12445297092199326,
0.5834571719169617,
0.17503680288791656,
0.6061421632766724,
-0.12605097889900208,
0.1312718689441681,
-0.11316065490245819,
-0.4133683145046234,
-0.33009663224220276,
-0.00695105642080307,
0.14930018782615662,
0.10660973191261292,
-0.07569345086812973,
-0.09274779260158539,
-0.33851221203804016,
-0.15237344801425934,
0.026059530675411224,
-0.13960576057434082,
-0.04959636181592941,
0.040065258741378784,
0.001670844852924347,
0.04849952459335327,
0.1314331591129303,
0.2882748246192932,
0.2544398009777069,
0.23279573023319244,
-0.4348084330558777,
-0.3158875107765198,
0.5066917538642883,
-0.2032599151134491,
-0.5028805732727051,
-0.3684079647064209,
0.39029937982559204,
-0.026088692247867584,
0.08401502668857574,
-0.6257058382034302,
0.13618531823158264,
0.3196178674697876,
-0.07806531339883804,
-0.1940837800502777,
0.16662812232971191,
0.03400702401995659,
-0.15274298191070557,
0.10099770128726959,
-0.043953366577625275,
0.045394085347652435,
-0.36369431018829346,
0.027707915753126144,
-0.060680728405714035
] |
https://github.com/huggingface/datasets/issues/2728 | Concurrent use of same dataset (already downloaded) | I have the same issue:
```
Traceback (most recent call last):
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 1040, in _prepare_split
with ArrowWriter(features=self.info.features, path=fpath) as writer:
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/dccstor/tslm/elron/tslm-gen/train.py", line 510, in <module>
main()
File "/dccstor/tslm/elron/tslm-gen/train.py", line 246, in main
datasets = prepare_dataset(dataset_args, logger)
File "/dccstor/tslm/elron/tslm-gen/data.py", line 157, in prepare_dataset
datasets = load_dataset(extension, data_files=data_files, split=dataset_split, cache_dir=dataset_args.dataset_cache_dir, na_filter=False, download_mode=dataset_args.dataset_generate_mode)
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/load.py", line 742, in load_dataset
builder_instance.download_and_prepare(
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 574, in download_and_prepare
self._download_and_prepare(
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 654, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory
``` | ## Describe the bug
When launching several jobs at the same time loading the same dataset trigger some errors see (last comments).
## Steps to reproduce the bug
export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets
for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do
for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do
export OUTPUT_DIR=${MODEL}_${TASK_NAME}
sbatch --job-name=${OUTPUT_DIR} \
--gres=gpu:1 \
--no-requeue \
--cpus-per-task=10 \
--hint=nomultithread \
--time=1:00:00 \
--output=jobinfo/${OUTPUT_DIR}_%j.out \
--error=jobinfo/${OUTPUT_DIR}_%j.err \
--qos=qos_gpu-t4 \
--wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL"
done
done
```python
# Sample code to reproduce the bug
dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter)))
dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter, args.filter + 5000)))
dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists")
dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True)
```
## Expected results
I believe I am doing something wrong with the objects.
## Actual results
Traceback (most recent call last):
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split
check_duplicates=True,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets==1.8.0
- Platform: linux (jeanzay)
- Python version: pyarrow==2.0.0
- PyArrow version: 3.7.8
| 172 | Concurrent use of same dataset (already downloaded)
## Describe the bug
When launching several jobs at the same time loading the same dataset trigger some errors see (last comments).
## Steps to reproduce the bug
export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets
for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do
for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do
export OUTPUT_DIR=${MODEL}_${TASK_NAME}
sbatch --job-name=${OUTPUT_DIR} \
--gres=gpu:1 \
--no-requeue \
--cpus-per-task=10 \
--hint=nomultithread \
--time=1:00:00 \
--output=jobinfo/${OUTPUT_DIR}_%j.out \
--error=jobinfo/${OUTPUT_DIR}_%j.err \
--qos=qos_gpu-t4 \
--wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL"
done
done
```python
# Sample code to reproduce the bug
dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter)))
dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists")
dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True).select(list(range(args.filter, args.filter + 5000)))
dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists")
dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'),
batched=True)
```
## Expected results
I believe I am doing something wrong with the objects.
## Actual results
Traceback (most recent call last):
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split
check_duplicates=True,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "compute_measures.py", line 181, in <module>
train_loader, val_loader, test_loader = get_dataloader(args)
File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader
dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists")
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets==1.8.0
- Platform: linux (jeanzay)
- Python version: pyarrow==2.0.0
- PyArrow version: 3.7.8
I have the same issue:
```
Traceback (most recent call last):
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 1040, in _prepare_split
with ArrowWriter(features=self.info.features, path=fpath) as writer:
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/arrow_writer.py", line 192, in __init__
self.stream = pa.OSFile(self._path, "wb")
File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__
File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable
File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
FileNotFoundError: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/dccstor/tslm/elron/tslm-gen/train.py", line 510, in <module>
main()
File "/dccstor/tslm/elron/tslm-gen/train.py", line 246, in main
datasets = prepare_dataset(dataset_args, logger)
File "/dccstor/tslm/elron/tslm-gen/data.py", line 157, in prepare_dataset
datasets = load_dataset(extension, data_files=data_files, split=dataset_split, cache_dir=dataset_args.dataset_cache_dir, na_filter=False, download_mode=dataset_args.dataset_generate_mode)
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/load.py", line 742, in load_dataset
builder_instance.download_and_prepare(
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 574, in download_and_prepare
self._download_and_prepare(
File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 654, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory
``` | [
-0.5779122710227966,
-0.08099966496229172,
-0.04536418616771698,
0.4501565098762512,
0.2459626942873001,
0.013974927365779877,
0.5565328001976013,
0.27238136529922485,
0.18437135219573975,
0.19074305891990662,
-0.031177887693047523,
0.1464349627494812,
0.02124243788421154,
0.14418846368789673,
-0.08855102956295013,
0.023560350760817528,
0.13091646134853363,
-0.2257412075996399,
-0.3968795835971832,
-0.02036304399371147,
-0.24068191647529602,
0.1446244865655899,
0.08555096387863159,
0.193270742893219,
-0.5113251805305481,
-0.3433859050273895,
-0.054176025092601776,
0.05579334497451782,
0.25900372862815857,
-0.06713268905878067,
0.16646349430084229,
0.28593868017196655,
-0.0116242915391922,
0.867881178855896,
-0.00010900417692027986,
0.13913527131080627,
0.12896770238876343,
0.11097274720668793,
-0.06344674527645111,
-0.22727195918560028,
0.03308182209730148,
-0.10797512531280518,
0.11869525164365768,
-0.3137778341770172,
0.11895105987787247,
0.058499470353126526,
-0.03005555458366871,
-0.20935365557670593,
0.5382679104804993,
0.0736101046204567,
0.23840287327766418,
0.3819691240787506,
-0.30659744143486023,
-0.22970812022686005,
0.18424536287784576,
0.056979529559612274,
0.0860360711812973,
0.0703069269657135,
0.1006154865026474,
-0.1604282408952713,
-0.02435433119535446,
0.4298267662525177,
-0.12887437641620636,
0.2059701383113861,
-0.02313435822725296,
0.08696010708808899,
0.1051391139626503,
-0.5513936281204224,
0.0767243281006813,
0.0688895583152771,
-0.011532582342624664,
-0.3123028576374054,
-0.35421955585479736,
-0.3473508656024933,
-0.0639268010854721,
-0.2551651895046234,
0.0928216204047203,
0.34526610374450684,
-0.20339594781398773,
-0.19230780005455017,
-0.09205148369073868,
0.18674956262111664,
-0.07550406455993652,
-0.13499592244625092,
0.24153655767440796,
0.33065253496170044,
0.08305159211158752,
0.23875251412391663,
0.0692322626709938,
0.09273342043161392,
0.32804903388023376,
-0.16129492223262787,
-0.10143581032752991,
-0.0775533989071846,
-0.6200725436210632,
0.04574618488550186,
-0.016056746244430542,
-0.46522316336631775,
0.18437403440475464,
-0.18587307631969452,
-0.1885087937116623,
0.04998638480901718,
0.17170891165733337,
0.10315109044313431,
0.2989789545536041,
0.09600147604942322,
-0.3177449405193329,
0.2705483138561249,
0.34386247396469116,
0.1331981122493744,
-0.5029964447021484,
0.06527421623468399,
-0.015614159405231476,
-0.2567528784275055,
0.21760956943035126,
0.1873345673084259,
0.2414577454328537,
-0.08298912644386292,
-0.35721921920776367,
-0.05231384187936783,
-0.0511176660656929,
-0.05585227906703949,
-0.10141486674547195,
0.4524846076965332,
0.17779061198234558,
0.15677377581596375,
0.09131330251693726,
0.19694404304027557,
-0.18229246139526367,
0.06248730048537254,
-0.30123013257980347,
-0.029075659811496735,
-0.014692217111587524,
0.21433335542678833,
0.11573907732963562,
-0.06431354582309723,
0.22488544881343842,
0.33794453740119934,
0.049889225512742996,
-0.46853771805763245,
0.26246801018714905,
-0.3657260239124298,
-0.24716612696647644,
0.19613449275493622,
0.18517866730690002,
0.13720686733722687,
-0.10516081750392914,
0.3842991590499878,
0.013487234711647034,
0.25873297452926636,
-0.32880493998527527,
-0.13939443230628967,
0.08096756041049957,
0.2727390229701996,
0.013745222240686417,
0.11527740955352783,
-0.3554977774620056,
0.11369152367115021,
0.3186284005641937,
-0.041669487953186035,
0.10863855481147766,
-0.37206506729125977,
-0.3164128363132477,
-0.1393730342388153,
-0.020544463768601418,
0.5279048681259155,
0.07681269943714142,
0.026820741593837738,
0.1770920306444168,
-0.10901093482971191,
0.09156638383865356,
0.3510977327823639,
-0.34232428669929504,
0.4966168999671936,
-0.34933146834373474,
0.1288178563117981,
0.24405020475387573,
-0.3719637989997864,
-0.15167224407196045,
0.3383849859237671,
-0.16466623544692993,
0.12522096931934357,
0.2112877070903778,
-0.05685513839125633,
0.21223381161689758,
-0.13592194020748138,
-0.008483357727527618,
0.1491883099079132,
-0.10798585414886475,
0.4015437364578247,
-0.19186097383499146,
-0.28391534090042114,
0.04894961789250374,
0.1688932180404663,
0.3223809003829956,
-0.0939972773194313,
0.026982024312019348,
-0.28747817873954773,
0.38758111000061035,
-0.33043360710144043,
-0.07319308817386627,
0.21585291624069214,
-0.010300446301698685,
0.079535573720932,
0.08106500655412674,
-0.10964686423540115,
-0.5169215202331543,
0.1978815495967865,
-0.362486332654953,
0.04324962571263313,
0.034230127930641174,
-0.19916123151779175,
0.10673736035823822,
-0.04177073389291763,
-0.2488534301519394,
-0.18883022665977478,
0.17062731087207794,
0.23171375691890717,
-0.15026798844337463,
-0.11813752353191376,
-0.14736032485961914,
0.3599052131175995,
-0.15828099846839905,
0.023461537435650826,
-0.0023934170603752136,
0.17053639888763428,
-0.1951894313097,
-0.2185278683900833,
0.11621001362800598,
-0.06034832447767258,
0.4591344892978668,
-0.18166077136993408,
-0.16463807225227356,
0.23448124527931213,
0.19793574512004852,
0.315144419670105,
-0.06083010137081146,
0.016890868544578552,
0.1874212920665741,
0.15569090843200684,
-0.0017902720719575882,
0.14251703023910522,
0.2640642523765564,
-0.14529022574424744,
0.09745551645755768,
0.317867249250412,
0.003361053764820099,
0.13837017118930817,
0.05906027555465698,
-0.2233062982559204,
0.1934235394001007,
-0.1233384907245636,
0.1891792267560959,
0.1224580854177475,
0.22531083226203918,
0.1255558431148529,
0.016756534576416016,
-0.08165795356035233,
-0.5741456747055054,
0.08364430069923401,
0.3775579035282135,
0.16694140434265137,
0.07349458336830139,
0.0733090341091156,
-0.04749016463756561,
0.022788885980844498,
-0.1682935506105423,
0.2998524010181427,
0.5353221893310547,
0.13491123914718628,
0.045724496245384216,
0.08820871263742447,
-0.1451273113489151,
-0.08921922743320465,
0.06667635589838028,
0.1546054482460022,
0.19488351047039032,
0.5548339486122131,
0.19949261844158173,
-0.06998064368963242,
-0.280362069606781,
-0.11192667484283447,
0.26719310879707336,
0.09417518973350525,
-0.3748238980770111,
0.1850152611732483,
0.1274144947528839,
-0.17477914690971375,
-0.42136308550834656,
0.0054042283445596695,
-0.03352361544966698,
-0.1470949351787567,
-0.039852745831012726,
0.4568408131599426,
-0.19973602890968323,
0.36714503169059753,
-0.029929297044873238,
0.1571480631828308,
-0.18679846823215485,
0.23610104620456696,
-0.1471162587404251,
-0.07119886577129364,
-0.11414884775876999,
-0.011395305395126343,
0.28495660424232483,
0.06693995743989944,
0.31875014305114746,
0.07194429636001587,
-0.3169524073600769,
-0.3599550426006317,
-0.0033946260809898376,
0.07837015390396118,
0.0017775893211364746,
0.42318981885910034,
-0.08440519869327545,
-0.1965942233800888,
0.0808480978012085,
-0.44700002670288086,
0.2024545669555664,
-0.35917654633522034,
-0.07020319998264313,
-0.1327766627073288,
-0.2264377921819687,
-0.06717538088560104,
-0.17661449313163757,
-0.3789282441139221,
-0.2513653337955475,
-0.26769036054611206,
-0.0906180888414383,
-0.17275187373161316,
0.21168872714042664,
0.07636552304029465,
-0.14113712310791016,
-0.0400550439953804,
0.15371279418468475,
-0.004670234397053719,
-0.3079814612865448,
-0.3230583965778351,
0.06932702660560608,
-0.1893557906150818,
-0.32066038250923157,
-0.08726824074983597,
-0.14780904352664948,
0.06826913356781006,
0.22674454748630524,
-0.4916568994522095,
-0.3557172119617462,
-0.1071278303861618,
0.0577949620783329,
-0.14612306654453278,
-0.03710499405860901,
0.050697341561317444,
0.06102220341563225,
-0.13800612092018127,
-0.1171882227063179,
-0.17283916473388672,
0.20160575211048126,
-0.03128291666507721,
0.005255661904811859,
-0.16598057746887207,
0.26715201139450073,
-0.15802651643753052,
0.6628256440162659,
0.24492615461349487,
-0.061102841049432755,
0.3297880291938782,
-0.141971156001091,
0.07865651696920395,
-0.018280580639839172,
-0.44076427817344666,
-0.06863149255514145,
-0.4300895631313324,
-0.23295389115810394,
0.14238113164901733,
-0.3390008807182312,
-0.1655285805463791,
-0.08836278319358826,
0.020786818116903305,
-0.34833863377571106,
-0.31115660071372986,
0.10517922788858414,
-0.15689608454704285,
0.3320011496543884,
0.04731891676783562,
0.1608242690563202,
0.003293396905064583,
0.07313033938407898,
0.2852948009967804,
0.03721889108419418,
0.20852915942668915,
-0.18799665570259094,
-0.03207502141594887,
0.07562939822673798,
-0.19160181283950806,
0.3207661509513855,
0.09924563765525818,
0.18817658722400665,
-0.0998486801981926,
0.2111589014530182,
0.01739676296710968,
-0.11549416929483414,
0.8625532984733582,
-0.1944364607334137,
0.3259492516517639,
0.19437745213508606,
-0.35242265462875366,
-0.08486945927143097,
-0.19156894087791443,
-0.35499298572540283,
-0.211286261677742,
0.2583164870738983,
0.6643007397651672,
-0.3218051791191101,
-0.12378255277872086,
0.1433635652065277,
-0.020837385207414627,
-0.2824375033378601,
-0.3151056468486786,
-0.16054245829582214,
-0.30012407898902893,
-0.2805771231651306,
0.17587701976299286,
-0.09049993753433228,
0.12028730660676956,
-0.5292028188705444,
-0.08387143909931183,
-0.1814911663532257,
0.2068258821964264,
-0.010571904480457306,
0.05884362384676933,
0.28042083978652954,
-0.06041601672768593,
0.4039427936077118,
0.12626104056835175,
-0.03015817701816559,
0.27479761838912964,
0.4463314414024353,
0.02010902762413025,
-0.27702611684799194,
0.001954164355993271,
0.046341512352228165,
0.089772529900074,
0.4556979238986969,
0.02726166322827339,
0.1352088749408722,
0.06710036098957062,
0.26808497309684753,
-0.06722392141819,
0.178090438246727,
0.38363292813301086,
0.2199997454881668,
-0.19891121983528137,
-0.34773170948028564,
0.09311074018478394,
0.23563529551029205,
-0.13195569813251495,
0.2889435291290283,
-0.5127387046813965,
-0.20680703222751617,
0.302600622177124,
-0.004667498171329498,
0.6622440814971924,
0.014262709766626358,
0.09115396440029144,
0.30842313170433044,
-0.3028060793876648,
0.2865457534790039,
-0.21504786610603333,
0.322171151638031,
-0.5821487903594971,
-0.2683509886264801,
0.11587272584438324,
-0.12703244388103485,
-0.07524923235177994,
0.052676841616630554,
-0.1140700951218605,
0.3120545446872711,
-0.0008436292409896851,
0.03243688493967056,
-0.24797196686267853,
0.24466684460639954,
0.00656613614410162,
-0.3198535442352295,
0.053123123943805695,
0.11875639855861664,
-0.2992708683013916,
0.2569262385368347,
-0.14009630680084229,
-0.1082456037402153,
0.2545023560523987,
-0.23585990071296692,
-0.2938598692417145,
0.23255455493927002,
-0.348494291305542,
0.2806262969970703,
-0.143375426530838,
-0.19273094832897186,
0.046399254351854324,
-0.08668278157711029,
0.15603455901145935,
-0.22872324287891388,
0.07313445955514908,
0.09576302766799927,
0.05687575042247772,
0.13810379803180695,
-0.23188285529613495,
-0.15370088815689087,
0.4277767539024353,
0.02116316184401512,
-0.3620677888393402,
-0.08203310519456863,
-0.03733660653233528,
-0.014832619577646255,
-0.1281268298625946,
0.048115454614162445,
-0.19516326487064362,
-0.19833330810070038,
-0.11311005055904388,
0.22361527383327484,
-0.07423414289951324,
-0.3154715597629547,
0.15182623267173767,
-0.2507011890411377,
-0.27370497584342957,
0.39057135581970215,
-0.12386590242385864,
-0.37392663955688477,
-0.07747820019721985,
0.22042569518089294,
0.17551136016845703,
0.07899507135152817,
0.4106524586677551,
0.33670520782470703,
-0.06407308578491211,
-0.3133040964603424,
-0.23844751715660095,
0.15980543196201324,
-0.4164748787879944,
0.1772855967283249,
-0.14357784390449524,
0.15152190625667572,
-0.02734551392495632,
0.316476434469223,
0.06300099939107895,
0.12059405446052551,
0.020655792206525803,
-0.2940012216567993,
-0.21536652743816376,
-0.01778431236743927,
-0.06378479301929474,
0.21608155965805054,
0.20124703645706177,
0.26182782649993896,
0.02820439822971821,
0.3244500756263733,
-0.3282783031463623,
0.23353934288024902,
-0.2057461142539978,
0.13083896040916443,
0.05137203633785248,
-0.13134923577308655,
0.08273956179618835,
0.23978151381015778,
0.0975584164261818,
0.2197262942790985,
-0.16471825540065765,
-0.2612219750881195,
-0.2263840287923813,
0.09875470399856567,
-0.02084217220544815,
0.020225662738084793,
-0.14770343899726868,
-0.13346397876739502,
0.12802647054195404,
-0.018376793712377548,
0.4289839565753937,
0.22844892740249634,
-0.16439734399318695,
0.10616164654493332,
0.1367548108100891,
0.16482199728488922,
-0.08187934011220932,
0.17027069628238678,
0.0002726614475250244,
-0.0996420681476593,
0.18882614374160767,
0.18288202583789825,
-0.002651704242452979,
0.03965151309967041,
-0.2979305684566498,
-0.18287718296051025,
0.4134562015533447,
0.15602697432041168,
0.09294861555099487,
-0.385154128074646,
-0.22395482659339905,
0.03145109489560127,
0.450008749961853,
0.31337541341781616,
-0.3114970922470093,
-0.0574880912899971,
-0.03705018386244774,
0.28020817041397095,
-0.18614499270915985,
-0.025260640308260918,
-0.000444045290350914,
-0.19825367629528046,
0.017028238624334335,
0.3708454668521881,
0.3222138285636902,
0.049197614192962646,
-0.02571646124124527,
0.15775194764137268,
0.37087082862854004,
-0.3861026167869568,
0.24042998254299164,
-0.004391562193632126,
-0.12606950104236603,
0.12737387418746948,
0.40780559182167053,
0.22648708522319794,
0.07974515855312347,
0.17885321378707886,
0.0911039263010025,
0.1854630559682846,
-0.03016747534275055,
-0.14113037288188934,
0.11168447136878967,
-0.30865979194641113,
-0.038112495094537735,
0.20166829228401184,
-0.22635504603385925,
-0.12448663264513016,
-0.21199694275856018,
-0.06880111247301102,
-0.18714088201522827,
-0.22876489162445068,
-0.36810770630836487,
0.2676635980606079,
-0.39746934175491333,
-0.04810561612248421,
0.1096312403678894,
-0.14428089559078217,
0.1278005987405777,
0.20107105374336243,
0.11405616998672485,
0.13477292656898499,
0.44946444034576416,
0.13311389088630676,
-0.281757116317749,
-0.11044773459434509,
-0.31635645031929016,
0.27165722846984863,
0.15504136681556702,
-0.31638485193252563,
0.2832721173763275,
0.34186890721321106,
-0.050497546792030334,
-0.237074077129364,
0.5526758432388306,
0.6522243618965149,
0.35371866822242737,
-0.14521898329257965,
0.007220016792416573,
0.032873351126909256,
0.13185738027095795,
-0.08333040028810501,
0.09240232408046722,
0.132080078125,
0.27384182810783386,
0.37507379055023193,
0.16277635097503662,
-0.1621028184890747,
0.15090131759643555,
0.2157595157623291,
0.1737513542175293,
-0.26355352997779846,
0.29178738594055176,
-0.047565437853336334,
-0.07093396782875061,
-0.0687781497836113,
0.010969065129756927,
-0.33250871300697327,
0.11672362685203552,
0.47250887751579285,
-0.09931293874979019,
0.22564813494682312,
0.00025793607346713543,
0.12229229509830475,
0.011699899099767208,
0.3831607401371002,
0.12131239473819733,
0.1006874144077301,
-0.6743166446685791,
0.06177984178066254,
-0.4572269022464752,
0.29571059346199036,
-0.14188814163208008,
0.19633248448371887,
-0.04305542632937431,
0.10472287982702255,
-0.2969472408294678,
-0.06525233387947083,
0.2955665588378906,
-0.04077880084514618,
0.07654056698083878,
0.4635721445083618,
-0.596939742565155,
0.049504801630973816,
-0.335207462310791,
-0.12624163925647736,
0.3455520570278168,
-0.4687042236328125,
0.21943321824073792,
-0.15224884450435638,
0.09160996228456497,
0.11633941531181335,
-0.00363859161734581,
0.30936118960380554,
0.12445297092199326,
0.5834571719169617,
0.17503680288791656,
0.6061421632766724,
-0.12605097889900208,
0.1312718689441681,
-0.11316065490245819,
-0.4133683145046234,
-0.33009663224220276,
-0.00695105642080307,
0.14930018782615662,
0.10660973191261292,
-0.07569345086812973,
-0.09274779260158539,
-0.33851221203804016,
-0.15237344801425934,
0.026059530675411224,
-0.13960576057434082,
-0.04959636181592941,
0.040065258741378784,
0.001670844852924347,
0.04849952459335327,
0.1314331591129303,
0.2882748246192932,
0.2544398009777069,
0.23279573023319244,
-0.4348084330558777,
-0.3158875107765198,
0.5066917538642883,
-0.2032599151134491,
-0.5028805732727051,
-0.3684079647064209,
0.39029937982559204,
-0.026088692247867584,
0.08401502668857574,
-0.6257058382034302,
0.13618531823158264,
0.3196178674697876,
-0.07806531339883804,
-0.1940837800502777,
0.16662812232971191,
0.03400702401995659,
-0.15274298191070557,
0.10099770128726959,
-0.043953366577625275,
0.045394085347652435,
-0.36369431018829346,
0.027707915753126144,
-0.060680728405714035
] |
https://github.com/huggingface/datasets/issues/2727 | Error in loading the Arabic Billion Words Corpus | I modified the dataset loading script to catch the `IndexError` and inspect the records at which the error is happening, and I found this:
For the `Techreen` config, the error happens in 36 records when trying to find the `Text` or `Dateline` tags. All these 36 records look something like:
```
<Techreen>
<ID>TRN_ARB_0248167</ID>
<URL>http://tishreen.news.sy/tishreen/public/read/248240</URL>
<Headline>Removed, because the original articles was in English</Headline>
</Techreen>
```
and all the 288 faulty records in the `Almustaqbal` config look like:
```
<Almustaqbal>
<ID>MTL_ARB_0028398</ID>
<URL>http://www.almustaqbal.com/v4/article.aspx?type=NP&ArticleID=179015</URL>
<Headline> Removed because it is not available in the original site</Headline>
</Almustaqbal>
```
so the error is happening because the articles were removed and so the associated records lack the `Text` tag.
In this case, I think we just need to catch the `IndexError` and ignore (pass) it.
| ## Describe the bug
I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset.
## Steps to reproduce the bug
```python
load_dataset("arabic_billion_words", "Techreen")
load_dataset("arabic_billion_words", "Almustaqbal")
```
## Expected results
The datasets load succefully.
## Actual results
```python
_extract_tags(self, sample, tag)
139 if len(out) > 0:
140 break
--> 141 return out[0]
142
143 def _clean_text(self, text):
IndexError: list index out of range
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: Ubuntu 18.04.5 LTS
- Python version: 3.7.11
- PyArrow version: 3.0.0
| 128 | Error in loading the Arabic Billion Words Corpus
## Describe the bug
I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset.
## Steps to reproduce the bug
```python
load_dataset("arabic_billion_words", "Techreen")
load_dataset("arabic_billion_words", "Almustaqbal")
```
## Expected results
The datasets load succefully.
## Actual results
```python
_extract_tags(self, sample, tag)
139 if len(out) > 0:
140 break
--> 141 return out[0]
142
143 def _clean_text(self, text):
IndexError: list index out of range
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: Ubuntu 18.04.5 LTS
- Python version: 3.7.11
- PyArrow version: 3.0.0
I modified the dataset loading script to catch the `IndexError` and inspect the records at which the error is happening, and I found this:
For the `Techreen` config, the error happens in 36 records when trying to find the `Text` or `Dateline` tags. All these 36 records look something like:
```
<Techreen>
<ID>TRN_ARB_0248167</ID>
<URL>http://tishreen.news.sy/tishreen/public/read/248240</URL>
<Headline>Removed, because the original articles was in English</Headline>
</Techreen>
```
and all the 288 faulty records in the `Almustaqbal` config look like:
```
<Almustaqbal>
<ID>MTL_ARB_0028398</ID>
<URL>http://www.almustaqbal.com/v4/article.aspx?type=NP&ArticleID=179015</URL>
<Headline> Removed because it is not available in the original site</Headline>
</Almustaqbal>
```
so the error is happening because the articles were removed and so the associated records lack the `Text` tag.
In this case, I think we just need to catch the `IndexError` and ignore (pass) it.
| [
-0.17554040253162384,
0.10674978792667389,
-0.11839994788169861,
0.42312872409820557,
-0.14884282648563385,
0.26181888580322266,
0.23233544826507568,
0.39046812057495117,
0.3619006872177124,
-0.0010760873556137085,
-0.23314595222473145,
-0.011689807288348675,
0.058974090963602066,
0.01110604964196682,
-0.004620441235601902,
-0.2025989592075348,
-0.030890099704265594,
-0.10218694806098938,
0.2275923788547516,
0.14214856922626495,
-0.17253799736499786,
0.08829805999994278,
-0.23013070225715637,
-0.08973348140716553,
0.1276373714208603,
-0.05968756973743439,
0.07231051474809647,
0.044310592114925385,
0.20431473851203918,
-0.5446291565895081,
-0.004886440932750702,
-0.4125085771083832,
0.43554359674453735,
0.4883056581020355,
-0.00011382164666429162,
0.05468246340751648,
0.3437691330909729,
-0.027287662029266357,
-0.3930966556072235,
-0.4340238571166992,
-0.3352653682231903,
-0.20027154684066772,
0.05979803949594498,
-0.22323530912399292,
-0.08489923179149628,
-0.25533023476600647,
-0.14472167193889618,
-0.33478084206581116,
0.16642655432224274,
0.5260614156723022,
0.15908575057983398,
0.17151732742786407,
0.13335953652858734,
0.10606030374765396,
0.38382136821746826,
-0.22924382984638214,
-0.09833262860774994,
0.2020827680826187,
0.5291868448257446,
0.18760356307029724,
-0.08444390445947647,
0.29456743597984314,
-0.10385500639677048,
-0.016901716589927673,
0.11823496222496033,
-0.04952643811702728,
0.16961424052715302,
-0.48212793469429016,
0.0659710168838501,
0.21157976984977722,
0.3448193073272705,
-0.3105713725090027,
-0.45238950848579407,
-0.23777014017105103,
-0.1179611086845398,
-0.36982426047325134,
0.25657233595848083,
0.21975113451480865,
-0.19592365622520447,
0.12954343855381012,
0.1145651787519455,
-0.0898962914943695,
-0.034888338297605515,
0.3676133155822754,
-0.3026769161224365,
0.3926451802253723,
-0.0772491991519928,
-0.029896527528762817,
0.1111188679933548,
-0.14668676257133484,
0.08160272985696793,
0.0027609560638666153,
0.05974632129073143,
0.2146911770105362,
-0.344415545463562,
0.20842766761779785,
0.07368073612451553,
-0.14332857728004456,
0.01446172222495079,
0.08270697295665741,
0.2570386826992035,
-0.03410683572292328,
-0.058558106422424316,
0.0653536468744278,
0.350527822971344,
0.18147170543670654,
-0.10952667146921158,
0.0925203338265419,
-0.010668888688087463,
0.3030141294002533,
0.09325870871543884,
0.07785256952047348,
0.16830764710903168,
-0.2432313859462738,
0.053086843341588974,
-0.03705761581659317,
0.2929573655128479,
-0.35235297679901123,
-0.2658051550388336,
0.22610127925872803,
-0.3138169050216675,
-0.18328386545181274,
0.06555842608213425,
0.18177011609077454,
-0.23921850323677063,
-0.10058657079935074,
0.2253466099500656,
0.06798306852579117,
-0.27737218141555786,
-0.06339821964502335,
-0.15481063723564148,
0.09354326128959656,
-0.04211333021521568,
0.17697617411613464,
0.4418582320213318,
-0.574471116065979,
0.19781804084777832,
0.04378167539834976,
0.26527246832847595,
-0.0362151600420475,
0.018835382536053658,
-0.42489731311798096,
0.2651001811027527,
0.43772485852241516,
0.009678501635789871,
0.07185272127389908,
0.04581068828701973,
0.03133025020360947,
-0.12997201085090637,
0.309679239988327,
-0.2886219620704651,
-0.19688847661018372,
-0.0432501956820488,
0.12648263573646545,
0.03784267604351044,
0.13400337100028992,
-0.16358906030654907,
0.37658804655075073,
0.5087182521820068,
-0.11007025837898254,
0.0502905398607254,
-0.1411721110343933,
-0.27989181876182556,
-0.003594889072701335,
0.17364534735679626,
0.40149998664855957,
-0.3967861235141754,
-0.10555996000766754,
0.018491556867957115,
0.5653263926506042,
-0.056043051183223724,
0.198533296585083,
-0.23158951103687286,
0.4627304971218109,
-0.17153161764144897,
0.2583892345428467,
0.203045055270195,
-0.1243123710155487,
-0.19497336447238922,
0.11526629328727722,
0.23892711102962494,
-0.014375305734574795,
-0.05788152664899826,
-0.17600710690021515,
0.46888256072998047,
-0.13682137429714203,
0.613595724105835,
0.3449409604072571,
-0.042439043521881104,
-0.09666166454553604,
-0.3477311432361603,
-0.11415084451436996,
0.1973974108695984,
0.1627768725156784,
0.031383976340293884,
-0.04848583787679672,
-0.009703055024147034,
-0.2665245234966278,
0.07886813580989838,
0.1392221748828888,
0.02312600612640381,
0.3674275279045105,
-0.6418524980545044,
0.09165731072425842,
0.2857527732849121,
-0.2323862612247467,
-0.13393279910087585,
0.12718072533607483,
-0.12873846292495728,
0.2774350047111511,
-0.31004470586776733,
0.18690302968025208,
-0.4867817163467407,
0.015705930069088936,
-0.135955348610878,
0.14843745529651642,
0.06373371928930283,
0.010574236512184143,
-0.13964585959911346,
0.22809739410877228,
-0.25544530153274536,
-0.14383652806282043,
0.06838439404964447,
-0.033454619348049164,
-0.6968353390693665,
0.2373877614736557,
-0.22813259065151215,
-0.13617733120918274,
0.15777158737182617,
0.10200811177492142,
0.14043009281158447,
-0.11010435223579407,
-0.18078464269638062,
-0.02039206027984619,
-0.12284079194068909,
-0.170803502202034,
-0.3455618619918823,
0.3240130543708801,
0.31317275762557983,
-0.31272226572036743,
0.2518371343612671,
0.4056279957294464,
0.2708936929702759,
-0.08362376689910889,
0.3261784315109253,
0.21316654980182648,
-0.16096463799476624,
0.3445233106613159,
-0.021799229085445404,
-0.2369900345802307,
0.2463635504245758,
0.021087851375341415,
-0.009829155169427395,
-0.2796856760978699,
0.2190893292427063,
-0.10459750890731812,
0.3646545112133026,
0.061671264469623566,
-0.047709837555885315,
-0.058134131133556366,
0.1234448254108429,
-0.01614798977971077,
0.16917625069618225,
0.2042669951915741,
-0.07382716983556747,
-0.1680465042591095,
-0.17174860835075378,
-0.3292054831981659,
0.1732797622680664,
0.10771792382001877,
-0.008945826441049576,
-0.08340191096067429,
0.11579734832048416,
-0.10582911968231201,
0.3423880934715271,
0.2552763521671295,
0.273613303899765,
0.27628087997436523,
0.07832056283950806,
0.13158836960792542,
-0.30824005603790283,
-0.42256155610084534,
0.014245215803384781,
0.21528826653957367,
-0.44957399368286133,
0.41537243127822876,
0.17649072408676147,
-0.3796939253807068,
0.039382077753543854,
-0.6723870038986206,
-0.20697572827339172,
-0.23373398184776306,
0.020667556673288345,
-0.14684829115867615,
-0.24737276136875153,
0.07214627414941788,
-0.11904072761535645,
0.09507228434085846,
0.21568703651428223,
0.0018519796431064606,
-0.014782890677452087,
0.09734323620796204,
-0.38299867510795593,
-0.03833208233118057,
0.25766241550445557,
-0.03273956477642059,
0.09543928503990173,
-0.09600519388914108,
-0.1535271555185318,
-0.18555422127246857,
-0.0036094486713409424,
0.19153748452663422,
0.0029502063989639282,
0.4744870066642761,
0.0214511901140213,
0.354819118976593,
-0.06784436106681824,
-0.31089508533477783,
0.14281024038791656,
0.2841089963912964,
-0.002710942178964615,
0.08354117721319199,
0.0051923105493187904,
0.3517223596572876,
0.08209306001663208,
-0.6314833760261536,
-0.27655643224716187,
-0.3663816452026367,
-0.2867330312728882,
-0.05458764731884003,
0.28387999534606934,
0.3187382221221924,
-0.07340390235185623,
-0.1046389564871788,
0.22472277283668518,
0.31558874249458313,
-0.21777865290641785,
-0.07066942006349564,
0.2444877177476883,
-0.07770397514104843,
-0.27150169014930725,
-0.10348621010780334,
-0.008861081674695015,
0.022986475378274918,
0.02250628173351288,
-0.41858071088790894,
0.3741728365421295,
-0.21163330972194672,
-0.10998369753360748,
-0.2799403667449951,
0.14279764890670776,
0.11958233267068863,
-0.10572855919599533,
-0.08640102297067642,
0.21751350164413452,
-0.1457338035106659,
-0.008348457515239716,
-0.0701674073934555,
0.1588689088821411,
0.24553561210632324,
0.3019486665725708,
-0.15066839754581451,
0.29199060797691345,
-0.058692917227745056,
-0.0400836355984211,
0.64398193359375,
0.21758830547332764,
0.15140403807163239,
-0.25578275322914124,
-0.3873145282268524,
-0.18647590279579163,
0.04466060549020767,
-0.32282859086990356,
0.36793655157089233,
0.0021884115412831306,
-0.48975512385368347,
-0.20308272540569305,
-0.33997291326522827,
-0.42671290040016174,
-0.19138188660144806,
0.20302610099315643,
-0.15935873985290527,
0.21088305115699768,
0.02375144511461258,
0.04210837930440903,
-0.06332432478666306,
-0.13291817903518677,
0.10052946209907532,
0.031108826398849487,
-0.07263944298028946,
-0.002150085987523198,
0.2656380534172058,
-0.20398260653018951,
-0.34775596857070923,
0.1620820164680481,
0.29846757650375366,
0.48728176951408386,
-0.055518489331007004,
-0.062275808304548264,
0.004818156361579895,
0.1248936653137207,
0.6233367919921875,
0.011479655280709267,
0.21889862418174744,
0.3644363582134247,
0.1261976659297943,
-0.12526921927928925,
-0.24629203975200653,
-0.16772370040416718,
0.29554054141044617,
0.12968339025974274,
0.04694020748138428,
-0.2580864429473877,
0.033439453691244125,
0.03490830585360527,
0.518311083316803,
-0.15026022493839264,
-0.15030896663665771,
-0.21349291503429413,
-0.2702844738960266,
-0.15763281285762787,
0.04899062216281891,
0.27623453736305237,
0.27900734543800354,
0.11639045178890228,
0.05655683949589729,
0.14498376846313477,
-0.00826764665544033,
0.11823522299528122,
0.030253175646066666,
0.2791367471218109,
-0.03541292995214462,
0.2316613495349884,
-0.05052393674850464,
0.1022324413061142,
0.16998569667339325,
0.4633559286594391,
-0.05410235747694969,
-0.204970121383667,
0.06265777349472046,
0.04391167312860489,
-0.0007971674203872681,
0.2750033736228943,
0.023081514984369278,
-0.07598938792943954,
0.10498069226741791,
0.07030870765447617,
0.05603981763124466,
-0.2724578380584717,
-0.09220659732818604,
-0.022583991289138794,
-0.5431325435638428,
-0.4410666525363922,
0.4706723690032959,
-0.007925092242658138,
-0.1015084907412529,
0.39081892371177673,
-0.06704328954219818,
-0.3913846015930176,
0.8489487171173096,
-0.08483576029539108,
0.9151949882507324,
-0.10683637857437134,
0.0912296324968338,
-0.07293064892292023,
0.38463324308395386,
0.20642179250717163,
0.011527977883815765,
0.1456756591796875,
-0.25253623723983765,
-0.29845336079597473,
-0.14544659852981567,
-0.012256182730197906,
-0.023270204663276672,
0.03287726640701294,
-0.1993301957845688,
0.3208725154399872,
-0.20072126388549805,
-0.14268282055854797,
0.087376669049263,
-0.006709631532430649,
-0.14240090548992157,
-0.3256976306438446,
-0.7548498511314392,
0.0061007775366306305,
-0.09250311553478241,
0.017758531495928764,
-0.12836697697639465,
-0.06477866321802139,
-0.05227798596024513,
0.07199376076459885,
-0.323353111743927,
0.08261965960264206,
-0.2926446795463562,
0.19160671532154083,
-0.03831435367465019,
0.07863777875900269,
0.1929415464401245,
-0.14051954448223114,
0.24496319890022278,
0.03902073949575424,
-0.1484767198562622,
-0.11007021367549896,
0.030247129499912262,
-0.1444111466407776,
0.1483398824930191,
-0.18722666800022125,
0.5013313889503479,
-0.04426655173301697,
-0.2843294143676758,
0.1605217009782791,
-0.007737055420875549,
-0.1709924042224884,
-0.11635471880435944,
0.3395330309867859,
0.1112179309129715,
-0.37391799688339233,
-0.24301278591156006,
-0.16582539677619934,
0.12002933025360107,
-0.11545100808143616,
0.11928249895572662,
0.19346417486667633,
-0.18436133861541748,
0.11242128908634186,
0.19269192218780518,
-0.41892439126968384,
-0.12232427299022675,
0.47174233198165894,
0.24635463953018188,
0.11721131205558777,
0.39034876227378845,
0.6143894195556641,
-0.16375280916690826,
-0.06989938020706177,
-0.18131709098815918,
0.10797233879566193,
-0.42792659997940063,
0.16732817888259888,
-0.05950077250599861,
0.02566947042942047,
0.005266834981739521,
0.5612254738807678,
0.23779040575027466,
-0.022938795387744904,
-0.1789640635251999,
-0.6683350205421448,
0.17778004705905914,
0.3081204295158386,
0.0797467827796936,
-0.030909139662981033,
0.19086390733718872,
-0.19668014347553253,
-0.05987131595611572,
-0.1727074384689331,
-0.27279195189476013,
0.135239839553833,
-0.3521440923213959,
0.38079825043678284,
-0.5048598051071167,
-0.021078884601593018,
0.16425947844982147,
-0.07960827648639679,
0.05167911946773529,
-0.049838483333587646,
-0.1113031879067421,
-0.23041397333145142,
0.05149171128869057,
0.11930032819509506,
-0.13289055228233337,
-0.21331357955932617,
-0.3685188591480255,
-0.24799206852912903,
0.055916037410497665,
-0.16631829738616943,
0.09652656316757202,
0.2537265121936798,
0.0825100988149643,
-0.06665562838315964,
0.17533178627490997,
-0.20938262343406677,
-0.06409595906734467,
0.2392825037240982,
-0.10720619559288025,
0.26932448148727417,
0.1828240156173706,
0.2660244405269623,
-0.14830218255519867,
-0.0021981075406074524,
-0.3165096640586853,
0.16724853217601776,
-0.19713948667049408,
0.11553660780191422,
0.2080383002758026,
-0.3303750157356262,
-0.05882437527179718,
0.4746854305267334,
0.2639429569244385,
0.28562742471694946,
-0.33585137128829956,
-0.24723435938358307,
-0.2202569842338562,
0.15641771256923676,
-0.22762365639209747,
-0.2707374095916748,
-0.08069361746311188,
-0.2140190750360489,
0.022240471094846725,
0.3439472019672394,
0.3728131651878357,
-0.317720502614975,
-0.26515549421310425,
0.03042091801762581,
0.34699398279190063,
0.02933678589761257,
-0.05819840356707573,
0.3112131357192993,
0.193930521607399,
0.07351857423782349,
0.05546567589044571,
-0.05813414976000786,
0.25170883536338806,
0.35873526334762573,
-0.042722322046756744,
0.42403143644332886,
0.5910560488700867,
0.23925380408763885,
-0.20862558484077454,
-0.5564653277397156,
0.45467549562454224,
0.36783367395401,
0.143753781914711,
0.024315107613801956,
0.1914883255958557,
-0.3231007754802704,
0.1907576024532318,
-0.0923772007226944,
-0.023157943040132523,
-0.030262719839811325,
-0.018319930881261826,
0.03499222174286842,
0.09322294592857361,
-0.20885926485061646,
0.14147987961769104,
-0.28006473183631897,
-0.020846497267484665,
-0.07355774939060211,
0.025378786027431488,
0.13347293436527252,
-0.25143206119537354,
-0.040588781237602234,
0.03363466635346413,
0.07039304822683334,
0.12455295771360397,
-0.15987250208854675,
0.31400391459465027,
0.2583773732185364,
-0.17218738794326782,
0.030278023332357407,
0.4492286741733551,
0.4798879027366638,
0.4027010202407837,
-0.08909708261489868,
0.16456229984760284,
-0.09222143888473511,
-0.17258957028388977,
-0.17573760449886322,
0.09878869354724884,
0.02998020499944687,
0.1102684736251831,
0.2625526487827301,
0.08695241063833237,
-0.07296626269817352,
0.15259172022342682,
0.3058074116706848,
0.11938752233982086,
0.04083134979009628,
-0.03414276987314224,
-0.10130621492862701,
-0.06674601882696152,
-0.2574474513530731,
0.04091210663318634,
-0.44049695134162903,
-0.06170091778039932,
0.5526072382926941,
-0.4645681083202362,
0.1704435646533966,
0.18231593072414398,
0.062218599021434784,
-0.04599219188094139,
0.4709723889827728,
0.5967455506324768,
0.18783801794052124,
-0.4081811308860779,
0.16420026123523712,
-0.3384470045566559,
0.1257898211479187,
-0.1452896147966385,
0.15234650671482086,
0.5619263648986816,
0.28913652896881104,
0.02988516539335251,
0.21999673545360565,
0.15243762731552124,
0.3632756173610687,
-0.007069310173392296,
0.08905524015426636,
-0.5017117857933044,
-0.33258336782455444,
-0.05259731411933899,
0.339387983083725,
-0.3351188600063324,
-0.17678365111351013,
0.19476428627967834,
-0.5119802951812744,
0.02724059671163559,
-0.23435543477535248,
-0.3554564118385315,
0.13961009681224823,
0.48287200927734375,
0.2694966793060303,
0.09992232173681259,
-0.049824655055999756,
-0.12823140621185303,
-0.05308407545089722,
-0.16933704912662506,
-0.04671701788902283,
0.04696120694279671,
0.5258585810661316,
0.09276367723941803,
0.1517026126384735,
-0.13403917849063873,
-0.1395256668329239,
-0.10574549436569214,
0.3818730115890503,
-0.14352265000343323,
-0.01046712975949049,
-0.2730926275253296,
0.026190103963017464,
-0.17862573266029358,
0.11725986748933792,
-0.1119973286986351,
0.20921018719673157,
0.12639382481575012,
0.3173690736293793,
-0.00043192505836486816,
-0.4568522572517395,
0.5289961099624634,
-0.4251687228679657,
-0.2309635579586029,
-0.3599753677845001,
0.22264954447746277,
0.37068620324134827,
-0.008413886651396751,
-0.5656885504722595,
0.011493325233459473,
0.30546835064888,
0.07361823320388794,
-0.5129498243331909,
0.001223994418978691,
-0.18197019398212433,
0.21640793979167938,
-0.0813523381948471,
0.22381217777729034,
0.16767174005508423,
-0.29629969596862793,
-0.26434385776519775,
-0.10331757366657257
] |
https://github.com/huggingface/datasets/issues/2727 | Error in loading the Arabic Billion Words Corpus | Thanks @M-Salti for reporting this issue and for your investigation.
Indeed, those `IndexError` should be catched and the corresponding record should be ignored.
I'm opening a Pull Request to fix it. | ## Describe the bug
I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset.
## Steps to reproduce the bug
```python
load_dataset("arabic_billion_words", "Techreen")
load_dataset("arabic_billion_words", "Almustaqbal")
```
## Expected results
The datasets load succefully.
## Actual results
```python
_extract_tags(self, sample, tag)
139 if len(out) > 0:
140 break
--> 141 return out[0]
142
143 def _clean_text(self, text):
IndexError: list index out of range
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: Ubuntu 18.04.5 LTS
- Python version: 3.7.11
- PyArrow version: 3.0.0
| 31 | Error in loading the Arabic Billion Words Corpus
## Describe the bug
I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset.
## Steps to reproduce the bug
```python
load_dataset("arabic_billion_words", "Techreen")
load_dataset("arabic_billion_words", "Almustaqbal")
```
## Expected results
The datasets load succefully.
## Actual results
```python
_extract_tags(self, sample, tag)
139 if len(out) > 0:
140 break
--> 141 return out[0]
142
143 def _clean_text(self, text):
IndexError: list index out of range
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: Ubuntu 18.04.5 LTS
- Python version: 3.7.11
- PyArrow version: 3.0.0
Thanks @M-Salti for reporting this issue and for your investigation.
Indeed, those `IndexError` should be catched and the corresponding record should be ignored.
I'm opening a Pull Request to fix it. | [
-0.18777593970298767,
-0.046449899673461914,
-0.08867668360471725,
0.4570903182029724,
-0.13610105216503143,
0.2721575200557709,
0.22418762743473053,
0.3228877782821655,
0.42783865332603455,
-0.013255894184112549,
-0.2501673400402069,
-0.01381615735590458,
0.12148883938789368,
0.07008284330368042,
-0.040082503110170364,
-0.29800480604171753,
0.04832862690091133,
-0.09838797152042389,
0.25696858763694763,
0.09443169832229614,
-0.22353927791118622,
0.04937085881829262,
-0.3123707175254822,
-0.07714448869228363,
0.15261487662792206,
-0.07720515877008438,
0.015780756250023842,
-0.05895137041807175,
0.20904141664505005,
-0.4896106719970703,
0.08610066771507263,
-0.34837302565574646,
0.5297794342041016,
0.5618438124656677,
-0.00011741116031771526,
-0.013077225536108017,
0.4175145626068115,
0.0011643748730421066,
-0.24925512075424194,
-0.5517656803131104,
-0.19177842140197754,
-0.13885267078876495,
0.14267420768737793,
-0.1907672882080078,
-0.10936647653579712,
-0.2686254382133484,
-0.14553676545619965,
-0.24309669435024261,
0.16462844610214233,
0.3619326055049896,
0.1498287171125412,
0.15069128572940826,
0.17921322584152222,
0.07619426399469376,
0.2918258309364319,
-0.2640070915222168,
-0.03097708895802498,
0.16724732518196106,
0.5540942549705505,
0.08456505089998245,
0.020655497908592224,
0.17734214663505554,
-0.14206311106681824,
0.019519951194524765,
0.15092675387859344,
-0.02545105293393135,
0.18600817024707794,
-0.6007181406021118,
0.048173174262046814,
0.23756512999534607,
0.437904953956604,
-0.2943655252456665,
-0.48599398136138916,
-0.20323926210403442,
-0.03064066171646118,
-0.3684282600879669,
0.23409560322761536,
0.3169795870780945,
-0.18750979006290436,
0.12183958292007446,
0.1365371197462082,
-0.16376198828220367,
-0.11905032396316528,
0.39560002088546753,
-0.26226890087127686,
0.3255661427974701,
-0.03356654942035675,
0.009180925786495209,
0.14432135224342346,
-0.13565999269485474,
0.05914728343486786,
-0.06277670711278915,
0.008982114493846893,
0.22370944917201996,
-0.3714163601398468,
0.24262940883636475,
0.04627981781959534,
-0.15126267075538635,
0.04642346501350403,
0.12704940140247345,
0.17808625102043152,
-0.043169982731342316,
-0.08669981360435486,
0.18703725934028625,
0.37739378213882446,
0.14151747524738312,
-0.047485269606113434,
0.15779215097427368,
0.059043850749731064,
0.25843068957328796,
-0.036473944783210754,
0.06882119178771973,
0.12272053956985474,
-0.16323472559452057,
0.03824475035071373,
-0.16302475333213806,
0.22724996507167816,
-0.3855600655078888,
-0.21665234863758087,
0.2503848969936371,
-0.4001905918121338,
-0.21649326384067535,
0.01756928488612175,
0.19119182229042053,
-0.21759729087352753,
-0.11300220340490341,
0.1756855696439743,
0.237664133310318,
-0.1939762830734253,
-0.0253835991024971,
-0.1380523294210434,
0.0888226181268692,
-0.09094949066638947,
0.09135542064905167,
0.40324413776397705,
-0.604621410369873,
0.2357470542192459,
-0.0026581045240163803,
0.3509509563446045,
-0.01370837539434433,
0.11421550810337067,
-0.38255730271339417,
0.1943873167037964,
0.4071759283542633,
0.1387537270784378,
0.07991302013397217,
0.11628246307373047,
0.023389041423797607,
-0.1573423147201538,
0.401297003030777,
-0.39115557074546814,
-0.17101770639419556,
-0.06746940314769745,
0.10263844579458237,
0.0009663496166467667,
0.08785226196050644,
-0.22760117053985596,
0.3403204083442688,
0.5037465691566467,
-0.06292326748371124,
0.0032117143273353577,
-0.1481620818376541,
-0.32192984223365784,
-0.07330459356307983,
0.12355244904756546,
0.34311968088150024,
-0.35126277804374695,
-0.05840165540575981,
0.0450979582965374,
0.4893800616264343,
-0.0376649871468544,
0.21928024291992188,
-0.2559598386287689,
0.43041297793388367,
-0.177468940615654,
0.32406163215637207,
0.246771901845932,
-0.12771354615688324,
-0.2421397566795349,
0.197926864027977,
0.26574134826660156,
-0.07585518062114716,
-0.10307321697473526,
-0.20826531946659088,
0.45173731446266174,
-0.05463948845863342,
0.6274049282073975,
0.49391406774520874,
-0.05119694769382477,
-0.0900522917509079,
-0.31758683919906616,
-0.11952206492424011,
0.34966766834259033,
0.12580659985542297,
0.12935054302215576,
-0.016682498157024384,
0.003998234868049622,
-0.2633425295352936,
0.14194059371948242,
0.11738502979278564,
-0.01737123914062977,
0.38589322566986084,
-0.4759054183959961,
0.09652185440063477,
0.3008754253387451,
-0.22437989711761475,
0.042848095297813416,
0.1723199486732483,
-0.14134958386421204,
0.24800777435302734,
-0.22735266387462616,
0.2863009572029114,
-0.41680747270584106,
0.04020748287439346,
-0.20542077720165253,
0.09085360169410706,
0.014636769890785217,
-0.07751856744289398,
-0.08726377040147781,
0.2759566009044647,
-0.2865069806575775,
-0.16910308599472046,
0.06412964314222336,
0.015077427960932255,
-0.6049718856811523,
0.3342185616493225,
-0.176308274269104,
-0.23573794960975647,
0.09988345205783844,
-0.012394629418849945,
0.1410330832004547,
-0.16800710558891296,
-0.21327820420265198,
0.006099395453929901,
-0.12266050279140472,
-0.21668501198291779,
-0.3014374375343323,
0.28527504205703735,
0.2956888973712921,
-0.3731178343296051,
0.3329124450683594,
0.4022058844566345,
0.1639840453863144,
-0.08091311156749725,
0.3661567270755768,
0.20401239395141602,
-0.1086355596780777,
0.3784811496734619,
-0.10513170063495636,
-0.21542349457740784,
0.22661131620407104,
0.030754942446947098,
0.01709032990038395,
-0.10328305512666702,
0.2849918603897095,
-0.10509589314460754,
0.3402000069618225,
-0.02316865883767605,
-0.1313326507806778,
-0.11969704180955887,
0.009949851781129837,
0.005937647074460983,
0.2142353653907776,
0.27652308344841003,
-0.07543592900037766,
-0.12804323434829712,
-0.19629865884780884,
-0.45733076333999634,
0.23153428733348846,
0.1442405879497528,
-0.08548472821712494,
-0.08952376991510391,
0.1244903951883316,
-0.06306547671556473,
0.3120192289352417,
0.1077941432595253,
0.29439398646354675,
0.2502008080482483,
0.13478657603263855,
0.10140764713287354,
-0.31717178225517273,
-0.32491809129714966,
0.040547169744968414,
0.17298074066638947,
-0.3517560660839081,
0.43002650141716003,
0.2592787742614746,
-0.35553833842277527,
0.0915021225810051,
-0.6388460993766785,
-0.2775250971317291,
-0.130615234375,
-0.03602153807878494,
0.006387624889612198,
-0.11503586173057556,
0.16809239983558655,
-0.16827401518821716,
-0.08646272122859955,
0.2360258847475052,
-0.12640120089054108,
0.022393807768821716,
0.09201311320066452,
-0.3701220154762268,
-0.07700276374816895,
0.2550441324710846,
-0.07468017190694809,
0.15760324895381927,
0.07278057932853699,
-0.12140167504549026,
-0.10431523621082306,
-0.029214274138212204,
0.18536026775836945,
-0.01831876114010811,
0.4640194773674011,
-0.11496827006340027,
0.3587624430656433,
-0.14035508036613464,
-0.2421628087759018,
0.2271583378314972,
0.18570731580257416,
-0.021874720230698586,
0.16377678513526917,
0.010099484585225582,
0.23913419246673584,
0.0944107174873352,
-0.4681003987789154,
-0.314942866563797,
-0.3170129656791687,
-0.2879398465156555,
-0.026606228202581406,
0.1678607165813446,
0.3233621418476105,
-0.003989709075540304,
-0.21176612377166748,
0.21407166123390198,
0.2239968180656433,
-0.17476239800453186,
-0.1660604327917099,
0.2782447338104248,
-0.03949876129627228,
-0.3239014744758606,
-0.08203542977571487,
0.013039182871580124,
-0.05266598239541054,
0.04654141888022423,
-0.41700810194015503,
0.3313922584056854,
-0.20461075007915497,
-0.03899388387799263,
-0.23115578293800354,
0.17427335679531097,
0.09141339361667633,
-0.14488837122917175,
-0.016081109642982483,
0.1682034432888031,
-0.042936503887176514,
-0.02912416309118271,
0.0024894606322050095,
0.1942386031150818,
0.32451438903808594,
0.2126038372516632,
-0.18899884819984436,
0.2093217670917511,
-0.038245026022195816,
0.03879541903734207,
0.6535491943359375,
0.2737874388694763,
0.07669602334499359,
-0.23769846558570862,
-0.46398448944091797,
-0.15011650323867798,
0.11254113912582397,
-0.4123542308807373,
0.3311195373535156,
-0.04980293661355972,
-0.4764983355998993,
-0.2501312494277954,
-0.3851374685764313,
-0.3440397381782532,
-0.13096733391284943,
0.13904482126235962,
-0.1468764692544937,
0.20066310465335846,
-0.004783418029546738,
0.0029351413249969482,
-0.03799815848469734,
-0.18066170811653137,
0.09352044761180878,
-0.05347315967082977,
-0.0655055120587349,
0.026959778741002083,
0.3056275546550751,
-0.2745109498500824,
-0.33866044878959656,
0.103583425283432,
0.22888632118701935,
0.45027095079421997,
-0.006382543593645096,
0.010023564100265503,
0.051962461322546005,
0.15295249223709106,
0.6871076822280884,
0.024899110198020935,
0.2073339819908142,
0.331292986869812,
0.13082213699817657,
-0.13477487862110138,
-0.34190475940704346,
-0.17348037660121918,
0.37132298946380615,
0.03457373008131981,
0.11244169622659683,
-0.2644974887371063,
0.0738707184791565,
-0.023219313472509384,
0.5086471438407898,
-0.16131682693958282,
-0.26821616291999817,
-0.3335084319114685,
-0.28446465730667114,
-0.26677078008651733,
0.08987431973218918,
0.18212662637233734,
0.3325803875923157,
0.0521925613284111,
0.06861306726932526,
0.16275838017463684,
-0.01475842297077179,
0.1783933788537979,
0.04483410343527794,
0.26418307423591614,
-0.09014337509870529,
0.2104615569114685,
-0.1074535995721817,
0.06339138001203537,
0.19047659635543823,
0.42327824234962463,
-0.052140992134809494,
-0.2642836570739746,
0.013603447936475277,
-0.025819081813097,
0.12896078824996948,
0.13271167874336243,
0.033693090081214905,
0.037257082760334015,
-0.0419183224439621,
0.09327385574579239,
0.05502916872501373,
-0.3299224376678467,
-0.0015834160149097443,
0.03502918407320976,
-0.5425875186920166,
-0.4569776654243469,
0.5198667049407959,
-0.04494579881429672,
-0.08349110931158066,
0.446478933095932,
-0.1348857581615448,
-0.3541564643383026,
0.8186008334159851,
-0.11642121523618698,
0.9402405023574829,
-0.1575019359588623,
0.09028913080692291,
-0.09866241365671158,
0.4318518042564392,
0.22948598861694336,
0.017063036561012268,
0.1314002126455307,
-0.3510846495628357,
-0.35138630867004395,
-0.12832209467887878,
-0.06531061232089996,
-0.017675265669822693,
-0.05402497202157974,
-0.19741018116474152,
0.28237679600715637,
-0.27623945474624634,
-0.16379623115062714,
0.10327675193548203,
0.0036850273609161377,
-0.03839622437953949,
-0.3015959858894348,
-0.7697246670722961,
-0.00449412502348423,
-0.12117353081703186,
0.06400194019079208,
-0.15280959010124207,
-0.04468046501278877,
-0.056931272149086,
0.06236582249403,
-0.30208832025527954,
0.17866528034210205,
-0.16979137063026428,
0.25994792580604553,
-0.024567630141973495,
-0.0733056291937828,
0.22968247532844543,
0.03745171055197716,
0.14896945655345917,
0.07331433892250061,
-0.1680745631456375,
-0.1542634665966034,
0.018114719539880753,
-0.2912917137145996,
0.08071304857730865,
-0.1277768909931183,
0.46871688961982727,
-0.0247424878180027,
-0.4387730360031128,
0.2530715763568878,
0.040891654789447784,
-0.09343792498111725,
-0.176890030503273,
0.31721031665802,
0.16297726333141327,
-0.38635438680648804,
-0.31480252742767334,
-0.2251955270767212,
0.1760263592004776,
-0.08602282404899597,
0.10349471867084503,
0.27249473333358765,
-0.27273836731910706,
0.13004344701766968,
0.2212481051683426,
-0.3995959460735321,
-0.07100939750671387,
0.48821356892585754,
0.26612919569015503,
0.10508935153484344,
0.43448737263679504,
0.6909441351890564,
-0.11683224886655807,
-0.062125708907842636,
-0.09257548302412033,
-0.026029860600829124,
-0.2954341471195221,
0.19919660687446594,
0.036102019250392914,
0.11395426094532013,
-0.016301386058330536,
0.5044164657592773,
0.23668070137500763,
-0.07160066813230515,
-0.10141049325466156,
-0.6054025292396545,
0.11774159222841263,
0.22982917726039886,
-0.008950591087341309,
-0.12087689340114594,
0.18993735313415527,
-0.24741096794605255,
-0.009036242961883545,
-0.21726658940315247,
-0.2536601424217224,
0.149265319108963,
-0.3593367636203766,
0.33571791648864746,
-0.47842779755592346,
0.02975611574947834,
0.12374929338693619,
-0.12056969106197357,
0.015323271974921227,
-0.05983371287584305,
-0.06523385643959045,
-0.22060364484786987,
-0.025333471596240997,
0.13809356093406677,
-0.06563480198383331,
-0.14238989353179932,
-0.27523136138916016,
-0.32111597061157227,
0.04484034702181816,
-0.13002441823482513,
0.03925352171063423,
0.23859912157058716,
0.07158346474170685,
-0.008784317411482334,
0.2596636712551117,
-0.1693480908870697,
-0.17357464134693146,
0.3215183615684509,
-0.18076092004776,
0.2754143476486206,
0.10878092050552368,
0.17672982811927795,
-0.014015750028192997,
-0.006127588450908661,
-0.41254886984825134,
0.09684249758720398,
-0.13666170835494995,
0.09565967321395874,
0.21848127245903015,
-0.42707979679107666,
0.042860355228185654,
0.39789673686027527,
0.30222398042678833,
0.26150473952293396,
-0.35761505365371704,
-0.12942644953727722,
-0.10067427158355713,
0.15081125497817993,
-0.2962697148323059,
-0.2760988175868988,
0.09819464385509491,
-0.19011150300502777,
-0.10046075284481049,
0.30181387066841125,
0.31056785583496094,
-0.28316205739974976,
-0.3916252851486206,
0.054189831018447876,
0.3112677037715912,
0.08972637355327606,
-0.020647291094064713,
0.3724782466888428,
0.26550838351249695,
0.11199095100164413,
0.1267891675233841,
0.033131543546915054,
0.21988514065742493,
0.3703351616859436,
0.01961667090654373,
0.38314542174339294,
0.523292064666748,
0.1656559705734253,
-0.21056056022644043,
-0.5987139344215393,
0.4757797420024872,
0.3198190927505493,
0.23724150657653809,
-0.027562104165554047,
0.0966658666729927,
-0.15784543752670288,
0.16749565303325653,
-0.1574901044368744,
-0.09077134728431702,
0.004277288913726807,
-0.0026952028274536133,
0.04631982371211052,
0.105522021651268,
-0.20071563124656677,
0.1826440691947937,
-0.21552637219429016,
-0.025181684643030167,
-0.08627595007419586,
-0.045274585485458374,
0.19512122869491577,
-0.22312189638614655,
-0.14297054708003998,
0.051692478358745575,
0.17075717449188232,
0.11685743182897568,
-0.22422544658184052,
0.2616121172904968,
0.2061663717031479,
-0.2228834331035614,
0.02599717490375042,
0.4006114602088928,
0.5047865509986877,
0.4441468417644501,
-0.1801772117614746,
0.17048625648021698,
-0.07073335349559784,
-0.15703071653842926,
-0.11129402369260788,
0.10800404101610184,
0.06837717443704605,
0.24206295609474182,
0.2476898580789566,
0.07881338149309158,
-0.06334798038005829,
0.20421338081359863,
0.2919194996356964,
0.1018160730600357,
-0.019952040165662766,
-0.01035880297422409,
-0.08660656958818436,
-0.13673312962055206,
-0.3233426511287689,
-0.07314436882734299,
-0.4708895981311798,
0.039566412568092346,
0.6526071429252625,
-0.3489196002483368,
0.07471372932195663,
0.17004412412643433,
0.03570958226919174,
-0.08097545802593231,
0.44160231947898865,
0.6995095610618591,
0.28221896290779114,
-0.4421756863594055,
0.20090730488300323,
-0.3303515315055847,
0.2510179877281189,
-0.18690021336078644,
0.2030411958694458,
0.5098544359207153,
0.2263413667678833,
0.011725448071956635,
0.2636483311653137,
0.1323356330394745,
0.30151185393333435,
-0.05144138261675835,
0.2220495641231537,
-0.4766448736190796,
-0.33531901240348816,
-0.11409084498882294,
0.3805038034915924,
-0.3412327468395233,
-0.10624979436397552,
0.11643864214420319,
-0.5912811756134033,
0.00906546413898468,
-0.32360029220581055,
-0.2978064715862274,
0.14662206172943115,
0.33901795744895935,
0.3214839696884155,
0.11210818588733673,
0.09663780778646469,
-0.045619092881679535,
0.02398538775742054,
-0.08314673602581024,
-0.13934503495693207,
0.008372840471565723,
0.41474002599716187,
0.06428590416908264,
0.1914905458688736,
-0.19462990760803223,
-0.20107419788837433,
-0.1859125941991806,
0.3737422227859497,
-0.10762900859117508,
-0.07781060039997101,
-0.2968199849128723,
-0.03628626465797424,
-0.1400793194770813,
0.06149996444582939,
-0.11882076412439346,
0.1798103153705597,
0.10993452370166779,
0.33849725127220154,
0.027435675263404846,
-0.35614022612571716,
0.5066059231758118,
-0.5102148056030273,
-0.33769306540489197,
-0.37471693754196167,
0.13542501628398895,
0.28170451521873474,
-0.023407669737935066,
-0.5694020986557007,
0.0318840816617012,
0.32646846771240234,
0.11371894180774689,
-0.4719181954860687,
0.039571456611156464,
-0.12444944679737091,
0.25465086102485657,
-0.04203364998102188,
0.19640791416168213,
0.09507788717746735,
-0.23247690498828888,
-0.20838305354118347,
-0.04194290190935135
] |
https://github.com/huggingface/datasets/issues/2724 | 404 Error when loading remote data files from private repo | I guess the issue is when computing the ETags of the remote files. Indeed `use_auth_token` must be passed to `request_etags` here:
https://github.com/huggingface/datasets/blob/35b5e4bc0cb2ed896e40f3eb2a4aa3de1cb1a6c5/src/datasets/builder.py#L160-L160 | ## Describe the bug
When loading remote data files from a private repo, a 404 error is raised.
## Steps to reproduce the bug
```python
url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset")
dset = load_dataset("json", data_files=url, use_auth_token=True)
# HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl
```
## Expected results
Load dataset.
## Actual results
404 Error.
| 22 | 404 Error when loading remote data files from private repo
## Describe the bug
When loading remote data files from a private repo, a 404 error is raised.
## Steps to reproduce the bug
```python
url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset")
dset = load_dataset("json", data_files=url, use_auth_token=True)
# HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl
```
## Expected results
Load dataset.
## Actual results
404 Error.
I guess the issue is when computing the ETags of the remote files. Indeed `use_auth_token` must be passed to `request_etags` here:
https://github.com/huggingface/datasets/blob/35b5e4bc0cb2ed896e40f3eb2a4aa3de1cb1a6c5/src/datasets/builder.py#L160-L160 | [
0.08716332912445068,
0.025846317410469055,
0.02740677073597908,
0.6045911908149719,
-0.17846785485744476,
-0.08985549956560135,
0.28822243213653564,
0.32685044407844543,
0.018490511924028397,
0.16752350330352783,
-0.36940035223960876,
-0.08398587256669998,
0.22415441274642944,
-0.0408567450940609,
0.08882202208042145,
-0.04227903485298157,
0.03764244168996811,
0.12004923820495605,
0.32785680890083313,
-0.24067310988903046,
-0.17161765694618225,
0.16059386730194092,
-0.02825300768017769,
0.2701846659183502,
0.06974271684885025,
0.12595975399017334,
0.04215916991233826,
0.5915515422821045,
-0.12429501861333847,
-0.16657063364982605,
0.2873156666755676,
-0.01730671525001526,
0.5707440376281738,
0.8942393064498901,
-0.00011840259685413912,
0.1681630164384842,
0.2595362067222595,
0.010358421131968498,
-0.23485082387924194,
-0.11426851153373718,
-0.4038444757461548,
0.13020434975624084,
0.08363646268844604,
-0.1607080101966858,
-0.18077313899993896,
-0.09381306171417236,
-0.30602961778640747,
0.08644178509712219,
0.440893292427063,
0.3926030099391937,
0.16618019342422485,
0.44843706488609314,
0.09070837497711182,
-0.16564609110355377,
0.4235147535800934,
0.03485792130231857,
0.0053400155156850815,
0.29008498787879944,
-0.07083797454833984,
0.08676281571388245,
0.013296835124492645,
-0.006878661457449198,
0.014133995398879051,
0.0842936560511589,
0.20927706360816956,
0.013457628898322582,
-0.04238691180944443,
-0.09927429258823395,
-0.1002170518040657,
0.06586197018623352,
0.41295403242111206,
0.00025692209601402283,
-0.2669297456741333,
0.02668280154466629,
-0.03675464168190956,
-0.1364857703447342,
0.1582319438457489,
0.25694069266319275,
-0.13410742580890656,
0.12089532613754272,
-0.17355549335479736,
-0.31348708271980286,
-0.40482473373413086,
0.33383822441101074,
0.11144736409187317,
-0.055139318108558655,
0.009700399823486805,
0.025280632078647614,
-0.25263574719429016,
-0.2069937288761139,
-0.09649007767438889,
-0.17500512301921844,
0.02132173627614975,
0.16974756121635437,
-0.028792541474103928,
-0.09079501032829285,
0.08586658537387848,
-0.031663037836551666,
0.2942892909049988,
0.39395689964294434,
-0.2702389061450958,
-0.06638757884502411,
-0.4752776324748993,
0.19549083709716797,
-0.017346050590276718,
0.3439953327178955,
0.019397027790546417,
0.2792779505252838,
0.4515995383262634,
0.4925678074359894,
0.024925585836172104,
0.0916304737329483,
-0.33785367012023926,
-0.0051901089027523994,
-0.16792821884155273,
-0.19273287057876587,
0.46461939811706543,
-0.49792909622192383,
-0.003977103158831596,
0.18470661342144012,
-0.2357388734817505,
0.02775893546640873,
-0.026083528995513916,
0.3406423330307007,
-0.0719405859708786,
-0.1338147521018982,
0.06868564337491989,
0.0375017374753952,
-0.27683740854263306,
-0.09239888191223145,
-0.17043732106685638,
-0.16320396959781647,
0.021363910287618637,
0.25917235016822815,
0.13167867064476013,
-0.02675054594874382,
0.2024156153202057,
-0.03695002570748329,
0.3569188714027405,
-0.23496143519878387,
0.00012231431901454926,
0.19251064956188202,
-0.18512043356895447,
0.259773313999176,
0.1659449338912964,
-0.02537403255701065,
0.11905266344547272,
-0.3925628066062927,
-0.0547075979411602,
-0.1396566927433014,
-0.6864683628082275,
-0.43079498410224915,
-0.08433157950639725,
0.10729408264160156,
-0.19420744478702545,
0.04000305384397507,
-0.5282008647918701,
-0.37321236729621887,
-0.11128867417573929,
-0.0995282530784607,
0.037624917924404144,
0.028247516602277756,
-0.04839659482240677,
-0.11583229899406433,
0.15852780640125275,
0.585699737071991,
0.3585841655731201,
-0.007159821689128876,
0.3294961154460907,
-0.1886000782251358,
0.20193451642990112,
0.34317976236343384,
-0.18510091304779053,
0.08392054587602615,
-0.28782546520233154,
0.31100142002105713,
0.159758061170578,
-0.48151475191116333,
-0.41125571727752686,
0.645683228969574,
-0.26988595724105835,
0.033996760845184326,
0.09822957217693329,
-0.10844186693429947,
0.11725133657455444,
-0.20856738090515137,
0.5326528549194336,
0.46572744846343994,
0.21078947186470032,
-0.13008779287338257,
-0.2885695993900299,
-0.2136395126581192,
-0.3629419803619385,
0.39985913038253784,
-0.0017961859703063965,
0.21093057096004486,
0.36255398392677307,
-0.25690534710884094,
0.29321977496147156,
-0.04581858590245247,
-0.1872212439775467,
0.30721598863601685,
0.35845401883125305,
0.019274640828371048,
0.22420309484004974,
0.0763053447008133,
-0.2873438000679016,
0.19276905059814453,
-0.3585609793663025,
0.14916014671325684,
-0.041979819536209106,
-0.06279014050960541,
-0.3100636601448059,
-0.09108037501573563,
-0.4545489251613617,
0.1863730251789093,
0.042548924684524536,
-0.03727060556411743,
-0.17018947005271912,
0.16517439484596252,
0.02010086551308632,
0.27203720808029175,
-0.12226290255784988,
0.27186599373817444,
-0.2868466377258301,
0.6367553472518921,
0.02676633931696415,
0.07505424320697784,
0.18609870970249176,
0.21778720617294312,
0.3806755542755127,
-0.06307878345251083,
-0.19424408674240112,
0.31248337030410767,
0.19504474103450775,
0.13240289688110352,
0.7725483775138855,
-0.06868322193622589,
0.22053906321525574,
-0.08822654187679291,
0.028784645721316338,
0.4030067026615143,
0.05954766273498535,
0.2151004672050476,
0.18245786428451538,
0.1951792985200882,
0.04415951296687126,
0.3703364431858063,
0.09918777644634247,
-0.10814222693443298,
0.17922064661979675,
-0.12749451398849487,
-0.10717328637838364,
-0.03834602236747742,
0.3741493821144104,
0.03181377798318863,
-0.20077863335609436,
-0.06032271683216095,
-0.117218978703022,
0.027873411774635315,
0.2025967389345169,
-0.30271977186203003,
-0.04150378704071045,
0.3303074538707733,
-0.13910529017448425,
-0.016718674451112747,
0.2410387396812439,
0.42050138115882874,
0.29792582988739014,
-0.01705273613333702,
-0.1817573457956314,
0.06567981839179993,
-0.08967842906713486,
-0.08312133699655533,
-0.0638892725110054,
0.022054489701986313,
0.034077055752277374,
0.16878604888916016,
0.10156265646219254,
-0.03769714757800102,
-0.05694606155157089,
-0.4256904423236847,
-0.08248665928840637,
0.2719036638736725,
-0.45164749026298523,
-0.014094317331910133,
-0.3728097081184387,
-0.1323232352733612,
-0.07672715187072754,
-0.26150089502334595,
-0.5702651143074036,
-0.07631095498800278,
0.028902584686875343,
-0.08092717826366425,
-0.10595512390136719,
-0.15909266471862793,
0.03471019119024277,
0.2810233533382416,
0.11680296063423157,
-0.35476404428482056,
-0.18585574626922607,
-0.012185351923108101,
-0.2940156161785126,
-0.09452323615550995,
0.2922326326370239,
0.020485851913690567,
0.3175249993801117,
-0.4767366349697113,
-0.09028425812721252,
-0.4070098400115967,
-0.1112845167517662,
0.035645388066768646,
0.15650686621665955,
0.34827643632888794,
-0.039822980761528015,
0.07231596112251282,
0.2941640615463257,
0.09164897352457047,
0.25703495740890503,
-0.10887099802494049,
-0.2068011462688446,
0.24579954147338867,
-0.183187797665596,
-0.09091976284980774,
-0.1320875734090805,
-0.029461488127708435,
-0.255073219537735,
-0.18537214398384094,
0.2371392399072647,
0.37716978788375854,
0.0953637957572937,
-0.2680521309375763,
0.07060561329126358,
0.2262730598449707,
-0.15317684412002563,
-0.14682325720787048,
-0.17198093235492706,
-0.5023722052574158,
0.2743116021156311,
-0.4032090902328491,
-0.23065976798534393,
0.26528626680374146,
0.22562776505947113,
0.043405305594205856,
-0.12375889718532562,
-0.6602150797843933,
-0.5772988200187683,
-0.08363714069128036,
0.26500052213668823,
-0.27288395166397095,
0.04726767539978027,
0.043852414935827255,
-0.15400230884552002,
0.07781757414340973,
0.04580431431531906,
-0.272454172372818,
0.1395341157913208,
0.04778975248336792,
0.14115406572818756,
0.012935844250023365,
0.19846183061599731,
-0.06428145617246628,
0.5992150902748108,
0.17629151046276093,
0.19723378121852875,
0.27015697956085205,
0.03504962846636772,
0.21592336893081665,
-0.027146629989147186,
0.04164595901966095,
-0.05252150446176529,
-0.01807054877281189,
-0.1607160121202469,
0.21095684170722961,
0.41178542375564575,
-0.02700704149901867,
-0.29436174035072327,
-0.7045916318893433,
-0.19054609537124634,
-0.27299585938453674,
-0.4170331358909607,
0.3470000624656677,
0.08055468648672104,
0.17777225375175476,
-0.03540243208408356,
-0.11524347960948944,
-0.19524884223937988,
0.24966058135032654,
0.45841288566589355,
0.20801115036010742,
0.2246270328760147,
0.05449717119336128,
0.01266586221754551,
-0.47432804107666016,
0.3333805501461029,
0.03144177421927452,
0.2829284071922302,
0.025477390736341476,
0.20008641481399536,
0.138321191072464,
-0.17131201922893524,
0.010132931172847748,
0.10000964254140854,
0.49799007177352905,
-0.018564336001873016,
-0.16390657424926758,
-0.08585072308778763,
-0.05355604737997055,
0.007816776633262634,
0.0035870946012437344,
-0.11755961179733276,
0.8319284319877625,
-0.29114294052124023,
-0.2107408344745636,
0.0021341126412153244,
-0.13268375396728516,
-0.12457484006881714,
-0.4110311269760132,
-0.3006388247013092,
-0.3991365432739258,
-0.30015334486961365,
-0.03602585941553116,
-0.17558793723583221,
0.12235692888498306,
-0.1613682359457016,
0.1208263635635376,
0.36283114552497864,
0.2604135572910309,
0.06928060948848724,
-0.056780535727739334,
0.3072284460067749,
-0.19988588988780975,
-0.07384178787469864,
0.3068894147872925,
0.2507612705230713,
0.42061394453048706,
0.6409816741943359,
0.013059457764029503,
-0.41182130575180054,
0.03386958688497543,
-0.17218899726867676,
0.0882977843284607,
0.4270467758178711,
-0.09032054990530014,
0.05497509986162186,
0.27326759696006775,
0.4028317332267761,
-0.10747259855270386,
0.10769059509038925,
0.07535061985254288,
-0.2576531767845154,
-0.1100756824016571,
-0.14170123636722565,
0.4426448941230774,
-0.2945505380630493,
0.04820258915424347,
0.03064827248454094,
0.561643660068512,
-0.16131755709648132,
0.4553394317626953,
-0.25322434306144714,
0.8656350374221802,
0.031880415976047516,
0.31915712356567383,
0.41253164410591125,
-0.21757784485816956,
0.15343394875526428,
-0.6794500946998596,
-0.03270205482840538,
-0.12118662148714066,
0.23535729944705963,
-0.17376746237277985,
-0.0629226341843605,
-0.03268568217754364,
-0.22243066132068634,
0.06971131265163422,
0.34404146671295166,
-0.10734473168849945,
0.5143920183181763,
0.22667543590068817,
0.04824613034725189,
0.14297905564308167,
-0.07098756730556488,
-0.3608294725418091,
0.08680447190999985,
-0.08842092752456665,
0.0974169671535492,
-0.081390880048275,
-0.3059490919113159,
-0.35817790031433105,
-0.159612238407135,
0.016860857605934143,
0.19650036096572876,
0.10908729583024979,
-0.057544782757759094,
0.05662238597869873,
-0.2959423065185547,
0.021162357181310654,
-0.012535464018583298,
0.1347132921218872,
0.003047458827495575,
-0.5207505226135254,
0.13716985285282135,
-0.17261070013046265,
-0.029373103752732277,
-0.05644238740205765,
-0.09330956637859344,
0.10724769532680511,
-0.2675108015537262,
-0.18807804584503174,
-0.029824279248714447,
-0.10000541061162949,
-0.45312434434890747,
-0.25851595401763916,
0.1860947608947754,
-0.00816933810710907,
-0.15586978197097778,
0.0714389979839325,
-0.01611924171447754,
-0.03413725644350052,
-0.10822261869907379,
0.08674444258213043,
0.18004164099693298,
-0.3045518696308136,
-0.3173418939113617,
0.16464875638484955,
-0.276405930519104,
-0.02752038463950157,
0.40222078561782837,
-0.09576994925737381,
-0.11389078944921494,
0.3496784567832947,
0.10881282389163971,
-0.08042547851800919,
-0.13513168692588806,
-0.05548541992902756,
0.3459484279155731,
-0.7139825820922852,
-0.009598544798791409,
-0.03711825981736183,
0.2363055795431137,
-0.07314348220825195,
-0.01666223630309105,
0.10228577256202698,
-0.40737271308898926,
0.25609663128852844,
-0.5434624552726746,
-0.05383820831775665,
0.08932901918888092,
-0.31750449538230896,
-0.14622335135936737,
0.10508305579423904,
0.10625702142715454,
-0.13187453150749207,
-0.3294660151004791,
-0.24216797947883606,
0.37425902485847473,
-0.39903736114501953,
-0.0887279361486435,
-0.08793582767248154,
0.004687294363975525,
0.2556554079055786,
0.10628838837146759,
0.047214657068252563,
0.07301253825426102,
-0.20928730070590973,
-0.09891635179519653,
-0.3098871111869812,
0.2121885120868683,
0.07141515612602234,
-0.17483192682266235,
0.03209828957915306,
-0.19382739067077637,
-0.2138299196958542,
0.08982809633016586,
0.009389936923980713,
0.14457082748413086,
0.040426045656204224,
-0.15556934475898743,
0.23989881575107574,
0.03252497315406799,
-0.3132784366607666,
0.4965501129627228,
0.19678574800491333,
0.5202299356460571,
-0.17442242801189423,
0.04942641779780388,
-0.669400691986084,
0.027660571038722992,
0.12311942130327225,
0.0687427669763565,
0.2977376878261566,
0.3116060197353363,
0.6110661029815674,
-0.5101627707481384,
0.1276436150074005,
-0.09019747376441956,
0.14471715688705444,
0.11532951891422272,
-0.27954426407814026,
0.03439094126224518,
0.13569781184196472,
0.09083416312932968,
-0.018594641238451004,
-0.21945564448833466,
0.5809532999992371,
-0.01937539130449295,
-0.21607790887355804,
0.11845708638429642,
0.21080780029296875,
0.07177530229091644,
0.06186092644929886,
0.11580369621515274,
0.37479206919670105,
0.13988140225410461,
-0.2101060450077057,
0.04968496039509773,
-0.10487394034862518,
0.2838538587093353,
-0.08392538130283356,
0.056089356541633606,
-0.03170657902956009,
0.3715340495109558,
-0.11075519770383835,
0.10754518955945969,
0.08344107121229172,
0.2526920735836029,
0.06964550912380219,
-0.5230892896652222,
-0.2532202899456024,
-0.023606285452842712,
0.32998380064964294,
0.011329308152198792,
-0.2905014157295227,
0.26625457406044006,
-0.1612526923418045,
0.27388036251068115,
-0.3528711795806885,
-0.04373015835881233,
0.05426515266299248,
0.15025363862514496,
-0.04973582178354263,
-0.22339403629302979,
-0.0962868481874466,
-0.037093039602041245,
-0.10773837566375732,
-0.13209259510040283,
-0.3277089297771454,
0.10414020717144012,
-0.1485617458820343,
-0.28721028566360474,
-0.24182933568954468,
0.2078893482685089,
0.0006500557065010071,
-0.11098656058311462,
0.2159474492073059,
0.1630753129720688,
-0.03788080811500549,
0.1516307145357132,
-0.28272977471351624,
0.36193642020225525,
0.15720674395561218,
-0.0038282983005046844,
0.0017596841789782047,
0.1595136523246765,
0.04882141947746277,
0.23241668939590454,
0.27227091789245605,
0.1974623054265976,
0.07931070774793625,
0.294363796710968,
0.07264149188995361,
-0.11642992496490479,
-0.04465923085808754,
-0.2403576523065567,
0.28473836183547974,
-0.1660987287759781,
0.5623670816421509,
-0.5071778297424316,
-0.043934643268585205,
-0.3436986804008484,
-0.18986836075782776,
-0.3341599702835083,
0.13067063689231873,
0.2980681359767914,
0.2615303695201874,
-0.02252255380153656,
-0.13732540607452393,
0.01799006015062332,
-0.399605393409729,
0.42134007811546326,
0.4900417923927307,
0.40013954043388367,
-0.3416481912136078,
-0.14886721968650818,
-0.43808162212371826,
0.4692401885986328,
-0.002340119332075119,
-0.1144673079252243,
0.1430307775735855,
0.20809035003185272,
-0.12226679176092148,
-0.014951281249523163,
0.23603680729866028,
-0.2913755774497986,
0.22217132151126862,
-0.09080037474632263,
-0.0849626213312149,
-0.08829113841056824,
-0.07929450273513794,
0.0259990356862545,
-0.02537546120584011,
-0.2910270392894745,
0.15609332919120789,
-0.3079160451889038,
-0.021578945219516754,
0.16688579320907593,
-0.060808394104242325,
0.13425365090370178,
-0.270195871591568,
0.45397716760635376,
0.12280766665935516,
0.1914721131324768,
0.16910970211029053,
-0.3373650312423706,
-0.13203273713588715,
-0.15177787840366364,
-0.20587515830993652,
-0.4226776957511902,
-0.39095184206962585,
0.12357950210571289,
-0.12298552691936493,
0.08950275182723999,
-0.3886905610561371,
0.28310391306877136,
-0.03628912568092346,
0.20376814901828766,
-0.10125444829463959,
0.15504315495491028,
-0.2333904206752777,
-0.12165690958499908,
0.1989431530237198,
0.061615392565727234,
0.05814483016729355,
0.09676172584295273,
-0.08364243805408478,
0.04073072969913483,
0.6753649115562439,
-0.44637584686279297,
-0.09666475653648376,
0.091166652739048,
0.31245529651641846,
0.260393887758255,
-0.3580761253833771,
-0.16400565207004547,
0.14705055952072144,
0.2772577702999115,
0.2774125039577484,
-0.2409752458333969,
0.18420292437076569,
-0.2666308879852295,
0.1258789598941803,
0.047534387558698654,
0.09526022523641586,
0.04320544749498367,
-0.18912279605865479,
0.33355712890625,
-0.052645135670900345
] |
https://github.com/huggingface/datasets/issues/2724 | 404 Error when loading remote data files from private repo | Yes, I remember having properly implemented that:
- https://github.com/huggingface/datasets/commit/7a9c62f7cef9ecc293f629f859d4375a6bd26dc8#diff-f933ce41f71c6c0d1ce658e27de62cbe0b45d777e9e68056dd012ac3eb9324f7R160
- https://github.com/huggingface/datasets/pull/2628/commits/6350a03b4b830339a745f7b1da46ece784ca734c
But a subsequent refactoring accidentally removed it... | ## Describe the bug
When loading remote data files from a private repo, a 404 error is raised.
## Steps to reproduce the bug
```python
url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset")
dset = load_dataset("json", data_files=url, use_auth_token=True)
# HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl
```
## Expected results
Load dataset.
## Actual results
404 Error.
| 18 | 404 Error when loading remote data files from private repo
## Describe the bug
When loading remote data files from a private repo, a 404 error is raised.
## Steps to reproduce the bug
```python
url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset")
dset = load_dataset("json", data_files=url, use_auth_token=True)
# HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl
```
## Expected results
Load dataset.
## Actual results
404 Error.
Yes, I remember having properly implemented that:
- https://github.com/huggingface/datasets/commit/7a9c62f7cef9ecc293f629f859d4375a6bd26dc8#diff-f933ce41f71c6c0d1ce658e27de62cbe0b45d777e9e68056dd012ac3eb9324f7R160
- https://github.com/huggingface/datasets/pull/2628/commits/6350a03b4b830339a745f7b1da46ece784ca734c
But a subsequent refactoring accidentally removed it... | [
0.15199077129364014,
0.021742552518844604,
0.0421525202691555,
0.4689883589744568,
-0.1487778276205063,
-0.08374543488025665,
0.18702206015586853,
0.33147820830345154,
0.025100965052843094,
0.13213089108467102,
-0.414760947227478,
-0.03817537799477577,
0.1177171990275383,
-0.08457151800394058,
0.22746588289737701,
-0.09395453333854675,
0.0643758624792099,
0.20311349630355835,
0.17884007096290588,
-0.19641532003879547,
-0.14163631200790405,
0.18918363749980927,
-0.026706509292125702,
0.21358083188533783,
0.0884627029299736,
0.16262586414813995,
-0.016953308135271072,
0.5753363370895386,
-0.13345840573310852,
-0.25307968258857727,
0.42648380994796753,
0.057515256106853485,
0.4901398718357086,
0.8685286641120911,
-0.00011990925122518092,
0.21894361078739166,
0.28508660197257996,
0.06304039061069489,
-0.2731931805610657,
-0.17700167000293732,
-0.4306524693965912,
0.16966493427753448,
0.19023001194000244,
-0.0577680841088295,
-0.14800316095352173,
-0.08566296100616455,
-0.22312064468860626,
0.10306939482688904,
0.386391282081604,
0.2849092185497284,
0.17129822075366974,
0.37988993525505066,
0.05668913945555687,
-0.14312373101711273,
0.2864226996898651,
0.0662519708275795,
-0.047332536429166794,
0.45223793387413025,
-0.09436686336994171,
0.10323736071586609,
-0.06495878845453262,
-0.0003478717990219593,
-0.0010121464729309082,
0.026999574154615402,
0.22685596346855164,
-0.006047253496944904,
-0.11014994233846664,
-0.05667009949684143,
-0.1633126139640808,
0.1307188868522644,
0.34964609146118164,
-0.11198923736810684,
-0.26373597979545593,
-0.07687991112470627,
-0.007029128260910511,
-0.23805171251296997,
0.21041521430015564,
0.18955425918102264,
-0.11701534688472748,
0.24972359836101532,
-0.28613245487213135,
-0.4180770218372345,
-0.29749202728271484,
0.3176789879798889,
0.06410978734493256,
0.04845109581947327,
-0.03187137469649315,
-0.05228909105062485,
-0.3012053072452545,
-0.057660140097141266,
-0.10492631047964096,
-0.1257021576166153,
-0.035795342177152634,
0.1374061554670334,
0.010150060057640076,
-0.06494675576686859,
0.26228636503219604,
-0.07379985600709915,
0.38918566703796387,
0.27722692489624023,
-0.0017992714419960976,
-0.03497651219367981,
-0.4886954128742218,
0.13276372849941254,
0.02805345505475998,
0.3387027084827423,
-0.09827468544244766,
0.22229138016700745,
0.504839301109314,
0.547964334487915,
0.06486351788043976,
0.12374137341976166,
-0.18652106821537018,
0.1162765622138977,
-0.1982971578836441,
-0.20187395811080933,
0.5696326494216919,
-0.4419042468070984,
-0.02552393451333046,
0.30897971987724304,
-0.3250640034675598,
0.025451967492699623,
-0.054316435009241104,
0.2940497100353241,
-0.0640183612704277,
-0.0053877681493759155,
0.11053818464279175,
0.000679749995470047,
-0.2913879454135895,
0.037887442857027054,
-0.18087103962898254,
-0.1263379603624344,
-0.06103208661079407,
0.17199957370758057,
0.14999859035015106,
-0.07614345848560333,
0.1993522197008133,
-0.046854130923748016,
0.3632751703262329,
-0.2024489939212799,
-0.1399960219860077,
0.2448553889989853,
-0.1660926640033722,
0.27028948068618774,
0.11247313022613525,
-0.048219457268714905,
0.03127632290124893,
-0.39526909589767456,
-0.0608171783387661,
-0.15336936712265015,
-0.6331655383110046,
-0.4467028081417084,
-0.10268296301364899,
0.07899603992700577,
-0.245428204536438,
0.048447854816913605,
-0.5156442523002625,
-0.24825714528560638,
-0.22695395350456238,
-0.11614564061164856,
0.10250462591648102,
0.07317124307155609,
-0.21550291776657104,
-0.17253811657428741,
0.2357490360736847,
0.600387454032898,
0.21605238318443298,
-0.016952525824308395,
0.30434420704841614,
-0.22470739483833313,
0.153622567653656,
0.16470229625701904,
-0.142365962266922,
0.22901883721351624,
-0.38561388850212097,
0.1902230829000473,
0.21304748952388763,
-0.46183475852012634,
-0.4828762114048004,
0.6060366034507751,
-0.32022613286972046,
0.24633444845676422,
0.018754586577415466,
-0.21136920154094696,
-0.0374569445848465,
-0.13877691328525543,
0.539817214012146,
0.4439115524291992,
0.22864727675914764,
-0.11083438992500305,
-0.3019842505455017,
-0.24865587055683136,
-0.4080139994621277,
0.3468931317329407,
0.04905182123184204,
0.27888715267181396,
0.36819735169410706,
-0.1649482250213623,
0.41396382451057434,
-0.06997214257717133,
-0.12638725340366364,
0.3668569326400757,
0.4195958375930786,
0.0625421479344368,
0.1435607522726059,
-0.07973732054233551,
-0.3744693100452423,
0.2066185474395752,
-0.3822326362133026,
0.11964509636163712,
0.023865237832069397,
-0.036894045770168304,
-0.30128052830696106,
-0.15244099497795105,
-0.5029711127281189,
0.10532321035861969,
0.05480107665061951,
0.05661114305257797,
-0.17418766021728516,
0.16568061709403992,
-0.11462612450122833,
0.4241325855255127,
-0.009763114154338837,
0.2932831048965454,
-0.34593790769577026,
0.6859853267669678,
0.05206691846251488,
0.021230868995189667,
0.07523100823163986,
0.3377070128917694,
0.27000105381011963,
-0.11514069885015488,
-0.1538030505180359,
0.44897156953811646,
0.057342372834682465,
0.1254338026046753,
0.68576979637146,
-0.19216026365756989,
0.3496067225933075,
-0.12841157615184784,
0.031871896237134933,
0.34694355726242065,
-0.0006150491535663605,
0.2657712996006012,
0.18787500262260437,
0.13337327539920807,
-0.03801034763455391,
0.2506725490093231,
0.09259633719921112,
-0.1911727339029312,
0.21223141252994537,
-0.15564244985580444,
-0.17209142446517944,
-0.12357590347528458,
0.41049060225486755,
-0.006213977932929993,
-0.19080239534378052,
-0.0735202208161354,
-0.19876663386821747,
-0.0376577153801918,
0.11918525397777557,
-0.28792256116867065,
0.05729725956916809,
0.33489587903022766,
-0.08594504743814468,
-0.017397098243236542,
0.19621026515960693,
0.46378371119499207,
0.36611372232437134,
-0.027939356863498688,
-0.1758410483598709,
0.2077217549085617,
-0.030725516378879547,
-0.047853659838438034,
-0.06401488929986954,
0.06216103956103325,
0.09428255259990692,
0.274038702249527,
0.13052727282047272,
0.025358421728014946,
-0.09310479462146759,
-0.3885853886604309,
-0.17608371376991272,
0.204664409160614,
-0.49243003129959106,
-0.08462252467870712,
-0.46466898918151855,
0.0009304434061050415,
-0.08484146744012833,
-0.21397441625595093,
-0.46509838104248047,
-0.059336356818675995,
-0.0064660049974918365,
-0.0798758864402771,
-0.1846032589673996,
-0.12334895879030228,
-0.13193002343177795,
0.20603130757808685,
-0.010157881304621696,
-0.37514162063598633,
-0.20108522474765778,
0.09160161018371582,
-0.2265712022781372,
-0.10035832226276398,
0.1256130039691925,
-0.018742602318525314,
0.31928226351737976,
-0.4008624255657196,
-0.13409475982189178,
-0.33758291602134705,
-0.15688282251358032,
0.11969868838787079,
0.15438422560691833,
0.2986595630645752,
0.10028257966041565,
-0.038811564445495605,
0.2130705863237381,
0.027554534375667572,
0.24902495741844177,
-0.11150196939706802,
-0.23841872811317444,
0.21736516058444977,
-0.12694554030895233,
0.02060266025364399,
-0.16850413382053375,
-0.023513421416282654,
-0.2968158721923828,
-0.3472934067249298,
0.19880205392837524,
0.28477099537849426,
0.07364684343338013,
-0.24364377558231354,
0.04520484060049057,
0.27940118312835693,
-0.2056296467781067,
-0.03065415285527706,
-0.0997856855392456,
-0.44695135951042175,
0.19767145812511444,
-0.3998924791812897,
-0.18469421565532684,
0.2627222239971161,
0.16231712698936462,
0.04972651228308678,
-0.09553954005241394,
-0.741330087184906,
-0.5427147746086121,
0.00724119134247303,
0.28259995579719543,
-0.276782363653183,
0.02394668199121952,
0.1121174544095993,
-0.07217127829790115,
0.08613048493862152,
-0.0010127872228622437,
-0.25588470697402954,
-0.02241288125514984,
0.040470022708177567,
0.25278666615486145,
0.10340713709592819,
0.2775859534740448,
-0.08091561496257782,
0.5106106400489807,
0.1753753274679184,
0.2900907099246979,
0.3952641487121582,
0.06233462691307068,
0.34868526458740234,
-0.12345606833696365,
0.02799747698009014,
-0.05888112634420395,
-0.10171541571617126,
-0.16725817322731018,
0.1642964482307434,
0.400334894657135,
0.001157095655798912,
-0.39444294571876526,
-0.7023409605026245,
-0.23990097641944885,
-0.25115296244621277,
-0.39583873748779297,
0.23581646382808685,
0.03891964629292488,
0.15246866643428802,
-0.10119664669036865,
0.06480108201503754,
-0.0949854627251625,
0.24101588129997253,
0.3989120125770569,
0.22971972823143005,
0.19885244965553284,
0.08657635748386383,
0.02214997075498104,
-0.6100175976753235,
0.19955317676067352,
0.030805686488747597,
0.20613855123519897,
0.03166801854968071,
0.1479301154613495,
0.033029209822416306,
-0.16074304282665253,
0.11662740260362625,
0.13540935516357422,
0.521043598651886,
-0.07745610177516937,
-0.20373712480068207,
-0.0485215038061142,
-0.05659569799900055,
0.07154421508312225,
0.07154446840286255,
-0.07392607629299164,
0.7497162222862244,
-0.27573177218437195,
-0.18430928885936737,
0.1453227698802948,
-0.22945350408554077,
-0.07225262373685837,
-0.4218308925628662,
-0.32185104489326477,
-0.40207794308662415,
-0.2374114692211151,
-0.08456339687108994,
-0.16327178478240967,
0.1329292505979538,
-0.08230376243591309,
0.003487028181552887,
0.3989429771900177,
0.1448923647403717,
0.038855716586112976,
-0.09217780828475952,
0.34152838587760925,
-0.20109476149082184,
-0.020129216834902763,
0.3490424156188965,
0.3559366464614868,
0.3721441626548767,
0.6303966641426086,
-0.07400861382484436,
-0.2629466652870178,
0.09121521562337875,
-0.09164413064718246,
0.19384820759296417,
0.452279269695282,
-0.019825175404548645,
0.032510906457901,
0.27307388186454773,
0.3494526743888855,
-0.21218205988407135,
0.019735373556613922,
0.06299306452274323,
-0.36004766821861267,
-0.14448127150535583,
-0.09171547740697861,
0.5425670146942139,
-0.24238811433315277,
0.020302578806877136,
0.032404012978076935,
0.6648785471916199,
-0.27993008494377136,
0.3975716233253479,
-0.29227590560913086,
0.8610060214996338,
0.12897419929504395,
0.3152337968349457,
0.45370978116989136,
-0.36156249046325684,
0.29278168082237244,
-0.647673487663269,
0.011648203246295452,
-0.07091303169727325,
0.21440231800079346,
-0.19246697425842285,
-0.08449974656105042,
-0.03970771282911301,
-0.30457133054733276,
0.04993386194109917,
0.34621891379356384,
-0.058028772473335266,
0.43517619371414185,
0.20923899114131927,
-0.04748193919658661,
0.11755702644586563,
-0.044576603919267654,
-0.4515305161476135,
0.055913083255290985,
-0.13007037341594696,
0.11493471264839172,
-0.1449425220489502,
-0.19521327316761017,
-0.3324144184589386,
-0.146312415599823,
0.02146799862384796,
0.23029178380966187,
0.2007448673248291,
-0.12353481352329254,
0.11451052129268646,
-0.40369713306427,
0.03246661275625229,
0.004657920449972153,
0.015303783118724823,
0.07964217662811279,
-0.48804664611816406,
0.15596111118793488,
-0.21708276867866516,
0.09574220329523087,
-0.013812958262860775,
-0.052320923656225204,
0.10700447112321854,
-0.19901049137115479,
-0.20017391443252563,
-0.07361169904470444,
-0.17673972249031067,
-0.4683378338813782,
-0.20650428533554077,
0.2000974416732788,
0.04474641755223274,
-0.13831166923046112,
0.07860367000102997,
0.0633988231420517,
0.11480790376663208,
-0.188250333070755,
0.0761442631483078,
0.2264971137046814,
-0.3660918176174164,
-0.3395540416240692,
0.11693401634693146,
-0.25622308254241943,
-0.08167128264904022,
0.42825350165367126,
-0.0658489391207695,
-0.13986557722091675,
0.29389524459838867,
0.09743493795394897,
-0.09408479928970337,
-0.10204670578241348,
-0.07969874888658524,
0.48896005749702454,
-0.5784722566604614,
0.061934441328048706,
-0.09595288336277008,
0.09818105399608612,
-0.09859218448400497,
-0.03321775421500206,
0.13364452123641968,
-0.3805679380893707,
0.12734153866767883,
-0.5043215155601501,
-0.11311353743076324,
0.1486772894859314,
-0.30342188477516174,
-0.056127216666936874,
0.11875338107347488,
0.10086363554000854,
-0.07907629013061523,
-0.3572708070278168,
-0.22492481768131256,
0.2928542196750641,
-0.38234737515449524,
-0.18638551235198975,
-0.12350906431674957,
0.05164043605327606,
0.2517184913158417,
0.09055189788341522,
0.044312067329883575,
0.1776963472366333,
-0.18901175260543823,
-0.06398282200098038,
-0.34400829672813416,
0.20224305987358093,
0.07723481953144073,
-0.16176265478134155,
0.10213993489742279,
-0.13557815551757812,
-0.15086285769939423,
0.08777802437543869,
0.07124631106853485,
0.15431806445121765,
0.09472578763961792,
-0.2369144856929779,
0.29306602478027344,
-0.11635244637727737,
-0.20115622878074646,
0.4889202415943146,
0.2483329027891159,
0.5059662461280823,
-0.049322403967380524,
0.06675052642822266,
-0.6707575917243958,
0.03137467801570892,
0.1665511280298233,
0.05572352558374405,
0.2788779139518738,
0.3210638165473938,
0.6118311285972595,
-0.5756317377090454,
0.03299054875969887,
0.006039781961590052,
0.31092458963394165,
0.13473212718963623,
-0.29455772042274475,
0.019192734733223915,
0.04291485622525215,
0.0752066895365715,
-0.0013580825179815292,
-0.2630734443664551,
0.5856037735939026,
0.04904261603951454,
-0.18890579044818878,
0.0820930078625679,
0.12292009592056274,
0.050972163677215576,
0.01733192801475525,
0.17457902431488037,
0.47024548053741455,
0.14202770590782166,
-0.17214006185531616,
0.12955716252326965,
-0.12668706476688385,
0.28273898363113403,
-0.0844971239566803,
0.04689487814903259,
-0.06921859830617905,
0.49684256315231323,
-0.033524006605148315,
0.13903756439685822,
-0.009480375796556473,
0.3376968502998352,
0.11957477033138275,
-0.5196660161018372,
-0.15519031882286072,
0.03633832931518555,
0.19796425104141235,
0.05864522233605385,
-0.25081387162208557,
0.17381489276885986,
-0.18209972977638245,
0.2708263397216797,
-0.30558377504348755,
-0.09882046282291412,
-0.01199515163898468,
0.10819865763187408,
-0.09616819024085999,
-0.23484459519386292,
-0.023699887096881866,
0.01874065399169922,
-0.08669035136699677,
-0.16234555840492249,
-0.22828733921051025,
0.07809150218963623,
-0.1180657148361206,
-0.35634034872055054,
-0.15246111154556274,
0.12795372307300568,
0.015266135334968567,
-0.06568185240030289,
0.23949289321899414,
0.2469673901796341,
-0.10232223570346832,
0.07067546248435974,
-0.16406309604644775,
0.29496657848358154,
0.11479116976261139,
0.052733413875103,
-0.055348869413137436,
0.1584404706954956,
0.06899229437112808,
0.14549289643764496,
0.239198237657547,
0.2414408177137375,
0.07334227859973907,
0.19124865531921387,
0.085417740046978,
-0.10164161771535873,
0.1510271281003952,
-0.145206019282341,
0.39081478118896484,
-0.2408697009086609,
0.5807543992996216,
-0.4651976525783539,
-0.010185204446315765,
-0.21760952472686768,
-0.1564033031463623,
-0.31276315450668335,
0.19484259188175201,
0.3365882337093353,
0.19358748197555542,
-0.04486218839883804,
-0.08106881380081177,
0.019934896379709244,
-0.18684346973896027,
0.30005377531051636,
0.5435930490493774,
0.3429715037345886,
-0.28799715638160706,
-0.14295241236686707,
-0.4444928765296936,
0.5230222940444946,
0.028518473729491234,
-0.03382813185453415,
0.1645580679178238,
0.21040572226047516,
-0.22617942094802856,
-0.019460167735815048,
0.23046493530273438,
-0.22297005355358124,
0.2771523594856262,
-0.13849647343158722,
-0.04355829954147339,
-0.12609578669071198,
-0.09669744968414307,
0.07465068250894547,
-0.04411088675260544,
-0.23333501815795898,
0.18888629972934723,
-0.16806234419345856,
-0.050056539475917816,
0.13126008212566376,
-0.06503510475158691,
0.09329639375209808,
-0.2972729504108429,
0.45254358649253845,
0.1580042988061905,
0.06680326163768768,
0.09579578787088394,
-0.448732852935791,
-0.24346446990966797,
-0.18337252736091614,
-0.13895179331302643,
-0.48156461119651794,
-0.3514610230922699,
0.17299805581569672,
-0.19229556620121002,
0.03250061720609665,
-0.3576340079307556,
0.2487705647945404,
-0.0688275694847107,
0.15178550779819489,
-0.15571297705173492,
0.18152348697185516,
-0.22592121362686157,
-0.13009679317474365,
0.23945285379886627,
0.11176057159900665,
0.004915326833724976,
0.10795405507087708,
-0.1028827652335167,
-0.019818346947431564,
0.6600611209869385,
-0.4209558367729187,
-0.04056360572576523,
0.05026547610759735,
0.3303496837615967,
0.14360040426254272,
-0.4629881978034973,
-0.2183723747730255,
0.07783813029527664,
0.23848095536231995,
0.26627373695373535,
-0.20905253291130066,
0.20866255462169647,
-0.3058159649372101,
0.018663186579942703,
0.04856560006737709,
0.16297629475593567,
0.1390303671360016,
-0.22022275626659393,
0.42235907912254333,
-0.021665651351213455
] |
https://github.com/huggingface/datasets/issues/2722 | Missing cache file | This could be solved by going to the glue/ directory and delete sst2 directory, then load the dataset again will help you redownload the dataset. | Strangely missing cache file after I restart my program again.
`glue_dataset = datasets.load_dataset('glue', 'sst2')`
`FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
| 25 | Missing cache file
Strangely missing cache file after I restart my program again.
`glue_dataset = datasets.load_dataset('glue', 'sst2')`
`FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
This could be solved by going to the glue/ directory and delete sst2 directory, then load the dataset again will help you redownload the dataset. | [
-0.14894962310791016,
-0.2841118574142456,
-0.09039494395256042,
0.14607062935829163,
0.27517789602279663,
0.049327097833156586,
0.07703189551830292,
0.20987989008426666,
0.26189684867858887,
0.0594647079706192,
-0.0856972485780716,
0.09699899703264236,
0.09862162172794342,
0.25173115730285645,
0.11679002642631531,
-0.14294449985027313,
-0.11884047836065292,
0.21364334225654602,
-0.3757644593715668,
0.10285937786102295,
-0.03009480983018875,
0.49926117062568665,
0.018785178661346436,
-0.030171751976013184,
-0.3194895088672638,
0.015822608023881912,
-0.07254412025213242,
0.37143704295158386,
-0.06256776303052902,
-0.25055694580078125,
0.20426829159259796,
-0.008187264204025269,
0.175368070602417,
0.2365751564502716,
-0.00010006787488237023,
-0.008589088916778564,
0.15010789036750793,
-0.0443095788359642,
-0.13118383288383484,
0.188865527510643,
-0.12325775623321533,
-0.18027639389038086,
-0.00427312171086669,
-0.0790974348783493,
-0.4431522786617279,
0.12933087348937988,
0.14939197897911072,
-0.2958284020423889,
0.5744661092758179,
-0.02616754360496998,
0.3707997500896454,
0.2814997434616089,
0.19907836616039276,
-0.27685701847076416,
0.1207759901881218,
-0.15391306579113007,
-0.06568607687950134,
0.16096670925617218,
0.09189023077487946,
-0.15300872921943665,
0.13427940011024475,
0.46995481848716736,
0.08480462431907654,
0.1188218891620636,
0.285153865814209,
-0.014772645197808743,
-0.2164844572544098,
-0.15982568264007568,
0.3803758919239044,
-0.002382248640060425,
0.38972124457359314,
-0.21391290426254272,
-0.1837673932313919,
-0.10251566767692566,
-0.005080621223896742,
-0.009725227952003479,
0.10555818676948547,
-0.011737396940588951,
0.1646527647972107,
0.31028541922569275,
0.07971113175153732,
-0.3766744136810303,
0.13409395515918732,
-0.1535578966140747,
0.12377223372459412,
0.024871237576007843,
-0.20391525328159332,
0.02517976611852646,
0.2108682245016098,
-0.08172502368688583,
-0.3896354138851166,
0.2301621288061142,
-0.4329809546470642,
0.10807165503501892,
-0.29195934534072876,
0.054004088044166565,
0.27276870608329773,
0.0597485676407814,
-0.011315694078803062,
0.18614515662193298,
0.012057115323841572,
0.08818106353282928,
0.24704882502555847,
0.09374862909317017,
0.1267063319683075,
0.2551040053367615,
0.2777356803417206,
-0.09263571351766586,
0.2941235899925232,
-0.0005994974635541439,
-0.13509266078472137,
-0.14422041177749634,
0.010552709922194481,
-0.05795310437679291,
0.14860908687114716,
-0.02361883595585823,
0.06878172606229782,
-0.14405232667922974,
-0.08591791242361069,
-0.009425212629139423,
0.02107778936624527,
0.043870776891708374,
-0.06761975586414337,
0.2988848090171814,
-0.12510839104652405,
-0.04401623457670212,
0.12227892875671387,
-0.0032415129244327545,
-0.10495667904615402,
-0.12094772607088089,
-0.42300400137901306,
0.017348259687423706,
-0.15100634098052979,
0.1446428745985031,
0.269857257604599,
-0.28264161944389343,
0.47179195284843445,
-0.09085581451654434,
-0.14310210943222046,
-0.00546114519238472,
0.15620777010917664,
0.11936531960964203,
-0.11497599631547928,
0.3126595616340637,
0.07207787036895752,
0.20439589023590088,
0.1971701681613922,
-0.2255742847919464,
0.09353027492761612,
-0.06225036829710007,
-0.3156169652938843,
-0.3906930088996887,
-0.2478712648153305,
0.27469971776008606,
-0.25985074043273926,
0.04765923693776131,
-0.17600253224372864,
-0.0673484206199646,
0.022054344415664673,
-0.13179104030132294,
-0.05097348242998123,
-0.008843515068292618,
-0.1057492345571518,
-0.30277276039123535,
0.35041099786758423,
0.45630067586898804,
-0.38411617279052734,
-0.312404990196228,
0.07431130856275558,
-0.3012653589248657,
-0.286796510219574,
0.2582087814807892,
-0.06908769905567169,
0.09036190062761307,
-0.3982504606246948,
0.339610755443573,
0.08690030872821808,
-0.24574024975299835,
-0.4413239359855652,
0.1408776193857193,
-0.15611007809638977,
-0.01685292087495327,
0.0004647374153137207,
0.0846225917339325,
0.04105604812502861,
0.16092129051685333,
-0.011093497276306152,
0.07270510494709015,
0.12957000732421875,
0.1198459044098854,
-0.29339203238487244,
-0.22342424094676971,
-0.10686896741390228,
0.17819151282310486,
-0.018435049802064896,
0.04801754280924797,
0.08942993730306625,
-0.05326653644442558,
-0.07241155952215195,
-0.03469553217291832,
0.14210817217826843,
0.5428274869918823,
0.32406851649284363,
0.17598754167556763,
0.07108265906572342,
-0.11121997237205505,
-0.42366498708724976,
0.24059846997261047,
0.01108362153172493,
0.1994277685880661,
-0.07274147868156433,
-0.10408075898885727,
-0.18065926432609558,
-0.1200452670454979,
-0.1043451577425003,
-0.3273671269416809,
0.2714442312717438,
0.24506808817386627,
0.23671194911003113,
0.11927956342697144,
-0.10004040598869324,
0.5312882661819458,
0.22796182334423065,
0.10427271574735641,
-0.5642829537391663,
0.23931942880153656,
-0.13725978136062622,
-0.3061444163322449,
0.07471535354852676,
0.039714962244033813,
0.036592982709407806,
-0.20777207612991333,
-0.08093776553869247,
0.5030695199966431,
-0.2509526312351227,
0.15252552926540375,
0.2653539478778839,
0.10400418192148209,
-0.07879949361085892,
-0.20128095149993896,
0.044373366981744766,
-0.13536237180233002,
0.0737977921962738,
0.020762592554092407,
0.12078230082988739,
0.07421330362558365,
0.04061739891767502,
-0.052559949457645416,
0.007951516658067703,
0.02719062753021717,
0.18152835965156555,
-0.18845704197883606,
-0.10013553500175476,
-0.14881697297096252,
0.13058824837207794,
-0.22027303278446198,
0.23376496136188507,
-0.01286257989704609,
-0.15995784103870392,
0.40276315808296204,
0.5056482553482056,
0.15148383378982544,
0.1703585684299469,
-0.00778656080365181,
-0.34673547744750977,
-0.09445461630821228,
0.0424061194062233,
0.35871273279190063,
0.5050243139266968,
0.28021669387817383,
-0.0021780170500278473,
-0.018723322078585625,
0.08872130513191223,
-0.05611689016222954,
0.10066398978233337,
-0.26983195543289185,
-0.0591023787856102,
0.05737096443772316,
0.1500863879919052,
-0.11432870477437973,
-0.36185649037361145,
0.1692369133234024,
-0.1863107830286026,
0.20129621028900146,
-0.14933066070079803,
-0.11433019489049911,
-0.22471687197685242,
-0.21979588270187378,
0.15502838790416718,
0.07930334657430649,
-0.2900718152523041,
-0.14712601900100708,
0.09794420003890991,
0.0780380517244339,
0.0648428350687027,
0.17272108793258667,
0.14013448357582092,
0.11947160214185715,
0.023245038464665413,
0.04207741841673851,
-0.2549949884414673,
-0.19496892392635345,
-0.16108539700508118,
0.1396796852350235,
-0.11145705729722977,
0.059811461716890335,
0.35524511337280273,
-0.2490369975566864,
0.21423733234405518,
-0.40082281827926636,
-0.31548187136650085,
0.0011929906904697418,
-0.10156621038913727,
0.2772093117237091,
0.34343647956848145,
0.4804937243461609,
-0.13628658652305603,
-0.24632950127124786,
0.44489291310310364,
-0.3510624170303345,
-0.17933803796768188,
-0.08744674175977707,
0.03412163257598877,
-0.1851828694343567,
-0.3269743025302887,
-0.17200911045074463,
-0.16259488463401794,
-0.3666309416294098,
0.4123757481575012,
-0.09111310541629791,
-0.07027702033519745,
-0.0009888410568237305,
-0.025826726108789444,
0.19590288400650024,
-0.2662549614906311,
0.0188400037586689,
-0.48769405484199524,
-0.5863960981369019,
0.2309204488992691,
-0.313408762216568,
-0.32654276490211487,
0.1614692062139511,
0.17822422087192535,
0.23236103355884552,
-0.3869132399559021,
-0.6166649460792542,
-0.5167446732521057,
-0.2617878317832947,
0.20290102064609528,
-0.20047320425510406,
0.1902625411748886,
0.3913959264755249,
-0.03829052299261093,
-0.17959800362586975,
-0.18168911337852478,
-0.4716680943965912,
0.23143091797828674,
0.011441610753536224,
0.21683520078659058,
-0.23398113250732422,
0.39324820041656494,
0.04659068211913109,
0.4432980418205261,
0.013125263154506683,
-0.04163709655404091,
0.32199811935424805,
-0.0824592113494873,
0.456437885761261,
-0.29177892208099365,
-0.38312244415283203,
0.18578141927719116,
-0.006061002612113953,
0.22609762847423553,
0.2681306004524231,
0.14435502886772156,
0.140583336353302,
-0.28790080547332764,
0.12220264971256256,
-0.2376619577407837,
-0.1655716747045517,
-0.108788400888443,
0.14541247487068176,
-0.010435707867145538,
0.10996188223361969,
0.011975027620792389,
-0.25767216086387634,
-0.042645957320928574,
0.32685205340385437,
0.29621630907058716,
0.1599026620388031,
0.1903889924287796,
-0.4206800162792206,
-0.11567160487174988,
-0.4370611906051636,
0.2657991647720337,
-0.16007627546787262,
-0.016081154346466064,
-0.32908937335014343,
-0.06535270810127258,
0.01633354276418686,
-0.07605529576539993,
0.7218397855758667,
-0.22103847563266754,
-0.0354335680603981,
-0.0009089428931474686,
0.02858203649520874,
-0.30478185415267944,
-0.12136013805866241,
-0.029741430655121803,
0.06299534440040588,
0.47293800115585327,
0.3769620656967163,
-0.3789210319519043,
-0.15356852114200592,
0.11344795674085617,
-0.05293061211705208,
-0.16449113190174103,
-0.1424071192741394,
-0.34877634048461914,
-0.19713464379310608,
-0.2680312693119049,
-0.13038361072540283,
-0.09941048920154572,
0.03016861341893673,
0.21412713825702667,
0.07131898403167725,
-0.07482853531837463,
-0.24385184049606323,
0.005864046514034271,
0.20637966692447662,
0.4361850321292877,
0.07888580113649368,
0.20692333579063416,
0.2102936953306198,
0.33995747566223145,
-0.12386341392993927,
0.4497167468070984,
-0.18482379615306854,
-0.055516570806503296,
0.2116197645664215,
-0.07914023846387863,
0.053019147366285324,
0.10414445400238037,
-0.08769083768129349,
0.1449717879295349,
-0.03047138825058937,
0.41504061222076416,
-0.08473701030015945,
0.11732131242752075,
0.25674623250961304,
0.136358380317688,
0.09789614379405975,
-0.05755753815174103,
0.17505404353141785,
0.001387912780046463,
0.04335133731365204,
0.16932028532028198,
0.2645578980445862,
-0.13970448076725006,
0.08990821987390518,
-0.35668617486953735,
0.794887900352478,
0.0072720907628536224,
-0.0595921166241169,
0.16836214065551758,
-0.2669597864151001,
0.48443204164505005,
0.030315957963466644,
0.03828459978103638,
-0.22180405259132385,
-0.3330696225166321,
0.10393242537975311,
-0.007571175694465637,
0.0718078538775444,
-0.0013675689697265625,
-0.2892475724220276,
0.15569156408309937,
0.09436434507369995,
0.1527908742427826,
-0.23765410482883453,
0.2912335991859436,
-0.0004341062158346176,
-0.06802065670490265,
-0.05179699510335922,
0.33986032009124756,
-0.2662389278411865,
0.38848793506622314,
-0.16270962357521057,
-0.11618085205554962,
0.13284030556678772,
-0.10301654785871506,
-0.28311842679977417,
-0.002375105395913124,
-0.3912836015224457,
0.16747400164604187,
0.2133186161518097,
0.014537915587425232,
-0.17102742195129395,
0.005038518458604813,
0.3181121349334717,
0.18066222965717316,
-0.35796645283699036,
0.17150068283081055,
0.09421409666538239,
-0.16306078433990479,
-0.17370936274528503,
0.11599965393543243,
0.19633880257606506,
-0.11181140691041946,
-0.272612988948822,
0.03782567381858826,
-0.1886429637670517,
-0.25167298316955566,
-0.20216552913188934,
-0.007931999862194061,
-0.14178071916103363,
-0.18206854164600372,
-0.20654460787773132,
0.19182565808296204,
0.07828207314014435,
-0.15520253777503967,
0.21925029158592224,
0.2732061445713043,
-0.020023422315716743,
-0.0007666647434234619,
0.09925515949726105,
-0.23416250944137573,
-0.15734422206878662,
0.523572564125061,
-0.29108870029449463,
-0.09910734742879868,
0.3289555609226227,
0.05504751577973366,
-0.17448730766773224,
-0.23695236444473267,
-0.1459592878818512,
0.07694243639707565,
-0.31014588475227356,
0.019104454666376114,
0.07290708273649216,
-0.21285730600357056,
0.2415006011724472,
-0.06433096528053284,
0.21720285713672638,
-0.14662328362464905,
0.019026685506105423,
-0.2803134322166443,
-0.2939014136791229,
0.17897966504096985,
0.018782392144203186,
0.21109841763973236,
-0.011530686169862747,
0.0773661732673645,
0.03629358857870102,
0.2026420533657074,
-0.4853776693344116,
0.1817745715379715,
-0.1482909917831421,
0.013320660218596458,
0.42206498980522156,
-0.2894527316093445,
0.1827642321586609,
-0.15726503729820251,
0.2635749280452728,
0.10097615420818329,
-0.5141133666038513,
-0.3665655851364136,
-0.013536959886550903,
0.06696277111768723,
-0.21059095859527588,
0.01882651075720787,
-0.06436259299516678,
-0.003720451146364212,
-0.052136410027742386,
-0.04270938038825989,
0.24464821815490723,
0.034435197710990906,
0.014183219522237778,
0.15152736008167267,
0.08938667178153992,
-0.03110385686159134,
0.24175713956356049,
0.08255033940076828,
0.05484157055616379,
0.08445553481578827,
-0.08326085656881332,
-0.035125188529491425,
-0.22913743555545807,
0.037864141166210175,
0.04910345375537872,
0.11351118981838226,
0.029933743178844452,
0.24389493465423584,
0.04288731515407562,
-0.2724184989929199,
-0.2917986214160919,
-0.05453947186470032,
0.3474991023540497,
0.001447625458240509,
-0.08829673379659653,
0.047402769327163696,
0.08239913731813431,
0.3787726163864136,
-0.26252859830856323,
0.06941287219524384,
0.2650740444660187,
0.013171778991818428,
0.18297787010669708,
0.10564933717250824,
0.09618864953517914,
0.02418694645166397,
0.15396729111671448,
0.28428226709365845,
0.5918828845024109,
-0.24184148013591766,
-0.06851336359977722,
-0.05544668808579445,
-0.16248510777950287,
-0.2928982973098755,
0.24251170456409454,
-0.005492113530635834,
0.06630714237689972,
0.1724502444267273,
-0.08960027247667313,
0.1781722456216812,
0.11484059691429138,
0.2551927864551544,
0.013995148241519928,
-0.21927674114704132,
-0.03796013072133064,
0.18454834818840027,
-0.10687616467475891,
0.04477541148662567,
-0.06146663427352905,
0.6470045447349548,
-0.4179856777191162,
-0.36418846249580383,
-0.2113065868616104,
0.2803060710430145,
-0.25293123722076416,
-0.1189957708120346,
0.19900256395339966,
-0.06411680579185486,
-0.02936258539557457,
0.06043349578976631,
0.13640473783016205,
-0.07471856474876404,
0.3099990487098694,
-0.005131974816322327,
0.014547541737556458,
-0.18431833386421204,
-0.260073721408844,
0.12810920178890228,
0.09534497559070587,
-0.021320728585124016,
0.32332465052604675,
0.05608281493186951,
-0.22794166207313538,
-0.012882865965366364,
0.5119288563728333,
0.3439207077026367,
0.10319114476442337,
-0.0047944411635398865,
0.27666226029396057,
0.0499538891017437,
-0.13562798500061035,
-0.24103306233882904,
0.21707819402217865,
0.017255112528800964,
-0.2678772211074829,
0.11446069180965424,
0.2914259731769562,
-0.270986407995224,
-0.03147948905825615,
-0.27852824330329895,
0.2457701563835144,
-0.0369521901011467,
0.10552642494440079,
-0.29384300112724304,
-0.1737421452999115,
-0.1535029113292694,
0.016271837055683136,
-0.49716809391975403,
-0.09212913364171982,
0.13052575290203094,
-0.06435523927211761,
0.087259441614151,
-0.3384014368057251,
0.1706446409225464,
-0.12498243153095245,
0.5146693587303162,
0.40269753336906433,
0.06583061814308167,
-0.043774258345365524,
-0.27276289463043213,
-0.6360184550285339,
0.19229012727737427,
-0.002703435719013214,
-0.02237001806497574,
-0.256523460149765,
0.2879667282104492,
0.02659662812948227,
-0.04531349986791611,
0.22624260187149048,
0.2340509295463562,
0.050704024732112885,
-0.14863485097885132,
-0.4697644114494324,
0.09556567668914795,
0.09675218909978867,
0.01691429130733013,
0.34383824467658997,
-0.20059072971343994,
0.05095938220620155,
0.01190254557877779,
0.23709216713905334,
0.03702939301729202,
0.06645503640174866,
-0.10404369235038757,
-0.11237223446369171,
0.5082687735557556,
0.1078961193561554,
0.06724894046783447,
-0.039785291999578476,
-0.10350215435028076,
-0.13269096612930298,
-0.39737972617149353,
-0.043212227523326874,
0.04391923546791077,
0.13582192361354828,
0.42934054136276245,
-0.02944619581103325,
-0.13773885369300842,
-0.2468762993812561,
0.15713970363140106,
0.1699461042881012,
0.24346214532852173,
-0.2193078100681305,
0.06721914559602737,
0.0822722539305687,
0.07176345586776733,
0.10304196178913116,
0.22210323810577393,
-0.017556332051753998,
0.10068168491125107,
-0.20252172648906708,
-0.15911586582660675,
0.6115161180496216,
-0.17844079434871674,
-0.05534954369068146,
0.06102215498685837,
0.27732041478157043,
0.238297700881958,
-0.3452552556991577,
-0.5500258207321167,
0.09080905467271805,
0.19098541140556335,
0.12308863550424576,
-0.19961701333522797,
0.36355075240135193,
-0.3064098358154297,
0.15115895867347717,
0.08295421302318573,
0.09983943402767181,
0.2783592939376831,
-0.13046135008335114,
0.1929553896188736,
-0.053024083375930786
] |
https://github.com/huggingface/datasets/issues/2722 | Missing cache file | Hi ! Not sure why this file was missing, but yes the way to fix this is to delete the sst2 directory and to reload the dataset | Strangely missing cache file after I restart my program again.
`glue_dataset = datasets.load_dataset('glue', 'sst2')`
`FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
| 27 | Missing cache file
Strangely missing cache file after I restart my program again.
`glue_dataset = datasets.load_dataset('glue', 'sst2')`
`FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
Hi ! Not sure why this file was missing, but yes the way to fix this is to delete the sst2 directory and to reload the dataset | [
-0.09679467976093292,
-0.21156643331050873,
-0.08074970543384552,
0.19621051847934723,
0.3262523412704468,
0.2369842231273651,
0.014586098492145538,
0.21860246360301971,
0.3042124807834625,
0.024730518460273743,
0.03596023470163345,
0.032418083399534225,
0.06950761377811432,
0.0254835095256567,
0.18523193895816803,
-0.1839706301689148,
-0.051999010145664215,
0.24471376836299896,
-0.2526428997516632,
0.11344894766807556,
0.02623971551656723,
0.5897666811943054,
-0.016213655471801758,
-0.05348403751850128,
-0.40702977776527405,
0.0637795627117157,
-0.1067260354757309,
0.38643878698349,
0.08373851329088211,
-0.30925485491752625,
0.3094594180583954,
-0.12232400476932526,
0.16652460396289825,
0.23787400126457214,
-0.00010695545643102378,
-0.01726728305220604,
0.1097327321767807,
-0.07381422817707062,
-0.20030803978443146,
0.19364124536514282,
-0.17556217312812805,
-0.2121768295764923,
-0.04314936697483063,
-0.168314591050148,
-0.31272315979003906,
0.20771393179893494,
0.2080177217721939,
-0.36020979285240173,
0.46698278188705444,
-0.07798522710800171,
0.3034725785255432,
0.07345235347747803,
0.18703919649124146,
-0.22531767189502716,
0.09968416392803192,
-0.06471720337867737,
0.017999699339270592,
0.16279077529907227,
0.02801886573433876,
-0.08813339471817017,
0.22781166434288025,
0.5137568712234497,
0.019126763567328453,
0.06689453125,
0.325275719165802,
0.005802473518997431,
-0.21486666798591614,
-0.11751492321491241,
0.4294655919075012,
0.02524614706635475,
0.5012624859809875,
-0.28459179401397705,
-0.25567469000816345,
-0.14776046574115753,
0.060786839574575424,
-0.03762026131153107,
0.13062717020511627,
0.03820469602942467,
0.24020445346832275,
0.368046373128891,
0.1573648303747177,
-0.49636292457580566,
0.17827662825584412,
-0.16717252135276794,
0.24006405472755432,
-0.025219164788722992,
-0.20897239446640015,
0.025738459080457687,
-0.052348893135786057,
0.06021830067038536,
-0.4202076494693756,
0.09361803531646729,
-0.4452362358570099,
0.22937580943107605,
-0.33843994140625,
0.017712675034999847,
0.15640325844287872,
0.058669496327638626,
-0.06727149337530136,
0.17569272220134735,
-0.009615628980100155,
-0.01781514659523964,
0.18466195464134216,
0.005052134394645691,
0.11658047139644623,
0.3475583791732788,
0.30021849274635315,
-0.06085663288831711,
0.27725863456726074,
-0.03443160280585289,
-0.11260564625263214,
-0.2116934061050415,
-0.026766974478960037,
-0.04452041536569595,
0.3394457697868347,
0.07092498242855072,
0.04714687168598175,
-0.1273614913225174,
-0.07488241046667099,
0.0052466425113379955,
0.009482037276029587,
0.04625769704580307,
-0.01736152172088623,
0.22797146439552307,
-0.16196762025356293,
0.06697346270084381,
0.07527465373277664,
-0.11207681894302368,
-0.102296844124794,
-0.23965317010879517,
-0.43853628635406494,
0.08573813736438751,
-0.1416299045085907,
0.2605867385864258,
0.2251199632883072,
-0.35293489694595337,
0.519439697265625,
-0.15446345508098602,
-0.13394564390182495,
-0.06719162315130234,
0.17338773608207703,
0.016442060470581055,
-0.1112947091460228,
0.3600178360939026,
-0.007032331079244614,
0.2911078929901123,
0.2413918375968933,
-0.20934417843818665,
0.032927922904491425,
0.0017527267336845398,
-0.4485355019569397,
-0.48719555139541626,
-0.2713918387889862,
0.20584708452224731,
-0.30411869287490845,
0.11930710822343826,
-0.22378814220428467,
-0.13245177268981934,
0.11007228493690491,
-0.36230072379112244,
0.0665285736322403,
-0.03160803020000458,
-0.18146221339702606,
-0.39800745248794556,
0.318770170211792,
0.5888078212738037,
-0.4055527448654175,
-0.37794768810272217,
-0.0020710418466478586,
-0.2126726359128952,
-0.31252768635749817,
0.22824378311634064,
-0.08365102112293243,
0.19378571212291718,
-0.5655229687690735,
0.32826900482177734,
0.24218234419822693,
-0.40670526027679443,
-0.5046396851539612,
0.17634522914886475,
-0.07614542543888092,
0.02423199824988842,
0.03887517377734184,
0.18627512454986572,
-0.04853927716612816,
0.09085139632225037,
-0.006864242255687714,
-0.059624798595905304,
0.09114371240139008,
0.07389060407876968,
-0.21609897911548615,
-0.18529444932937622,
-0.019468095153570175,
0.1719609946012497,
0.10141435265541077,
0.06008569151163101,
0.1387098729610443,
-0.08658865094184875,
-0.10599861294031143,
0.031337253749370575,
0.16042456030845642,
0.6651588082313538,
0.2728140652179718,
0.19428014755249023,
0.12406140565872192,
-0.15081828832626343,
-0.48160499334335327,
0.3217647671699524,
0.018610768020153046,
-0.05824253708124161,
-0.14319802820682526,
-0.12471086531877518,
-0.021040719002485275,
-0.20054996013641357,
-0.1294281929731369,
-0.40229669213294983,
0.17124684154987335,
0.1458328664302826,
0.2671714723110199,
0.1689707189798355,
-0.06524395942687988,
0.6422885060310364,
0.18650518357753754,
0.07551492750644684,
-0.5425471663475037,
0.2478588968515396,
-0.0030786674469709396,
-0.23680491745471954,
-0.03969396650791168,
0.11975489556789398,
0.09181836992502213,
-0.16839724779129028,
-0.12286324054002762,
0.4949473738670349,
-0.22939637303352356,
0.049852706491947174,
0.36630430817604065,
0.1016438752412796,
-0.10426019877195358,
-0.13743676245212555,
0.036056555807590485,
-0.15738773345947266,
0.12170307338237762,
-0.014661259949207306,
0.11883538961410522,
-0.020610734820365906,
0.05812514200806618,
-0.10986905544996262,
-0.08939050883054733,
0.014416126534342766,
0.21584093570709229,
-0.1967652291059494,
-0.14747028052806854,
-0.13284893333911896,
0.21661637723445892,
-0.25272250175476074,
0.29282423853874207,
0.027248602360486984,
-0.06466448307037354,
0.36604100465774536,
0.5254279971122742,
0.10125930607318878,
0.15091177821159363,
-0.041498906910419464,
-0.37807098031044006,
-0.057685624808073044,
0.01970587857067585,
0.37175920605659485,
0.6975573897361755,
0.25144466757774353,
-0.0356975756585598,
-0.12420254200696945,
0.17769236862659454,
0.011952903121709824,
0.06130991876125336,
-0.2530558705329895,
-0.03694767877459526,
0.12760639190673828,
0.12229142338037491,
0.03188113868236542,
-0.2021452784538269,
0.08581773936748505,
-0.11579915881156921,
0.15629498660564423,
-0.0868854746222496,
-0.04789434373378754,
-0.24927397072315216,
-0.27354422211647034,
0.1308376044034958,
0.1976596564054489,
-0.22532391548156738,
-0.10981961339712143,
0.03443964943289757,
-0.05061193183064461,
0.23515641689300537,
0.12277757376432419,
0.03378382325172424,
0.13835778832435608,
0.05541960895061493,
-0.0962221547961235,
-0.25235670804977417,
-0.1669972836971283,
-0.18826603889465332,
0.03505536541342735,
-0.13206151127815247,
-0.056625548750162125,
0.3350156843662262,
-0.3225826919078827,
0.2025211751461029,
-0.5201033353805542,
-0.2556633949279785,
0.015361711382865906,
-0.005426846444606781,
0.1994890719652176,
0.3850773870944977,
0.3450613021850586,
-0.1408618539571762,
-0.14688417315483093,
0.4020044803619385,
-0.30228641629219055,
-0.14556407928466797,
-0.03853147476911545,
0.00021098688011988997,
-0.21065516769886017,
-0.2796365022659302,
-0.11357853561639786,
-0.23546196520328522,
-0.253964364528656,
0.294638454914093,
-0.1774367392063141,
-0.13457992672920227,
-0.09570272266864777,
-0.15386533737182617,
0.16463227570056915,
-0.2699987590312958,
-0.026416240260004997,
-0.4716522991657257,
-0.6318153738975525,
0.2939579486846924,
-0.2295251339673996,
-0.22315193712711334,
0.24458274245262146,
0.05899515748023987,
0.3146018385887146,
-0.3103456497192383,
-0.6782829165458679,
-0.44364532828330994,
-0.2228262573480606,
0.2856234014034271,
-0.4130554497241974,
0.1635393500328064,
0.48083868622779846,
-0.14880363643169403,
-0.10701561719179153,
-0.14147287607192993,
-0.48690250515937805,
0.08948937058448792,
0.0037860777229070663,
0.3139515519142151,
-0.278752863407135,
0.47861215472221375,
0.07337623834609985,
0.5729888677597046,
0.053060803562402725,
0.029859649017453194,
0.279693067073822,
0.01713181659579277,
0.5509272217750549,
-0.264904648065567,
-0.3026597797870636,
0.2523859739303589,
-0.06244255602359772,
0.16339176893234253,
0.21036934852600098,
0.18107390403747559,
0.1441463679075241,
-0.275234580039978,
0.04003819450736046,
-0.327170193195343,
-0.08457142114639282,
-0.10914790630340576,
0.038930587470531464,
0.036759793758392334,
0.15658578276634216,
-0.044706791639328,
-0.37457841634750366,
-0.13701549172401428,
0.3229601979255676,
0.4588410258293152,
0.2946387231349945,
0.2685698866844177,
-0.4339427947998047,
-0.2006482183933258,
-0.3611648678779602,
0.23750710487365723,
-0.03766835853457451,
-0.03216318413615227,
-0.2462550848722458,
0.04612414538860321,
-0.05429002642631531,
0.07071062177419662,
0.8077055811882019,
-0.21465900540351868,
-0.055143311619758606,
0.014453377574682236,
0.07183528691530228,
-0.2178858518600464,
-0.19470803439617157,
0.17276722192764282,
0.29213181138038635,
0.46029916405677795,
0.3915625810623169,
-0.2678529918193817,
-0.21936450898647308,
0.16354522109031677,
-0.017156722024083138,
-0.23043593764305115,
-0.2725432515144348,
-0.3794245421886444,
-0.03904710337519646,
-0.07978101074695587,
-0.25829076766967773,
-0.053567707538604736,
-0.043248988687992096,
0.25021642446517944,
0.09689585864543915,
-0.09235236048698425,
-0.20093005895614624,
-0.10868662595748901,
0.02671259641647339,
0.495519757270813,
0.02526789717376232,
0.1935296505689621,
0.17334827780723572,
0.34211966395378113,
-0.11405399441719055,
0.3577987849712372,
-0.2585393488407135,
-0.11328063905239105,
0.32450971007347107,
-0.1598336100578308,
0.07410329580307007,
0.08618351817131042,
-0.199303537607193,
0.1636451929807663,
0.021828070282936096,
0.39374881982803345,
-0.09867189079523087,
-0.043854132294654846,
0.19097699224948883,
0.17915362119674683,
-0.029738202691078186,
-0.14867201447486877,
0.13551534712314606,
0.11216586828231812,
0.09184728562831879,
0.2919159531593323,
0.12789364159107208,
-0.17803171277046204,
-0.0020836717449128628,
-0.4114619195461273,
0.7303287386894226,
0.060277484357357025,
0.02347845397889614,
0.047158271074295044,
-0.2416369467973709,
0.6816248893737793,
-0.11252821236848831,
0.15294548869132996,
-0.15826134383678436,
-0.40883365273475647,
0.0609314888715744,
-0.06391602009534836,
0.10557360202074051,
0.033670324832201004,
-0.2475382685661316,
0.38323959708213806,
0.13450393080711365,
0.14397726953029633,
-0.1651841253042221,
0.21332186460494995,
0.04268377274274826,
-0.009613581001758575,
0.055894773453474045,
0.23825806379318237,
-0.34722423553466797,
0.4295879602432251,
-0.2156778872013092,
-0.009586125612258911,
0.1674836277961731,
-0.08256672322750092,
-0.35993218421936035,
-0.04651608318090439,
-0.4265128970146179,
0.24851034581661224,
0.27858680486679077,
-0.06686431169509888,
-0.13093312084674835,
0.08683763444423676,
0.3556089401245117,
0.16571013629436493,
-0.329010546207428,
0.22401301562786102,
0.08498653769493103,
-0.06575480848550797,
-0.21965841948986053,
0.03174585849046707,
0.25206834077835083,
-0.05531027913093567,
-0.15715867280960083,
0.09816882014274597,
-0.36750197410583496,
-0.35027629137039185,
-0.1498156487941742,
-0.0038482099771499634,
-0.11485770344734192,
-0.16446851193904877,
-0.26081234216690063,
0.168583482503891,
0.2005792111158371,
-0.13293209671974182,
0.13272450864315033,
0.35895949602127075,
-0.008371747098863125,
-0.07440970093011856,
-0.031070750206708908,
-0.2876269519329071,
-0.1363268494606018,
0.5017420053482056,
-0.2428731620311737,
-0.23379671573638916,
0.3761480152606964,
-0.04800044372677803,
-0.20095746219158173,
-0.16556325554847717,
-0.09986697137355804,
0.008130868896842003,
-0.3345195949077606,
-0.05080326646566391,
0.03337569162249565,
-0.02016117423772812,
0.2324293553829193,
-0.3288281559944153,
0.23378972709178925,
-0.14228087663650513,
0.04058481380343437,
-0.4315918982028961,
-0.22890184819698334,
0.1564459502696991,
-0.014112696051597595,
0.1237567812204361,
0.01886654645204544,
-0.022002656012773514,
0.043559618294239044,
0.183561310172081,
-0.39205867052078247,
0.2403353750705719,
-0.15127262473106384,
0.016412779688835144,
0.378059446811676,
-0.1453932821750641,
0.19781874120235443,
-0.20911985635757446,
0.18783392012119293,
-0.007013581693172455,
-0.4165579676628113,
-0.28128087520599365,
0.039988089352846146,
0.10889744758605957,
-0.3066793978214264,
0.11901023238897324,
-0.10237029194831848,
-0.016736704856157303,
0.048801958560943604,
-0.04143708199262619,
0.2671300172805786,
0.08534463495016098,
0.06661105901002884,
0.1731095016002655,
0.05592935532331467,
-0.05336790531873703,
0.055409543216228485,
0.1705223023891449,
-0.06029289960861206,
0.0776350200176239,
0.008527033030986786,
0.03909321501851082,
-0.12149325013160706,
0.1347724199295044,
-0.05027734115719795,
-0.013681426644325256,
-0.13897299766540527,
0.11482563614845276,
0.0675121620297432,
-0.41565656661987305,
-0.29595276713371277,
0.022116439417004585,
0.22578707337379456,
-0.13272617757320404,
-0.1999204009771347,
0.10937052965164185,
0.124458447098732,
0.29311636090278625,
-0.23061007261276245,
0.05545775592327118,
0.4106414318084717,
0.1473628580570221,
0.07640118896961212,
0.05399497598409653,
0.0977284163236618,
-0.01336725801229477,
0.30589771270751953,
0.28997042775154114,
0.6977529525756836,
-0.3106094002723694,
0.001532894792035222,
-0.0925406962633133,
0.033929768949747086,
-0.20715869963169098,
0.22906315326690674,
0.04742904752492905,
-0.0009531006217002869,
0.2722170352935791,
0.015615753829479218,
0.17892862856388092,
0.2054872214794159,
0.37316054105758667,
-0.11007236689329147,
-0.4000128507614136,
-0.13722071051597595,
0.20102837681770325,
-0.24704700708389282,
-0.009014658629894257,
-0.07382689416408539,
0.6431600451469421,
-0.37984251976013184,
-0.29614710807800293,
-0.12487123161554337,
0.1860913634300232,
-0.291266530752182,
-0.015075179748237133,
0.30560973286628723,
0.0000538751482963562,
0.1109788566827774,
0.04606960341334343,
0.18239226937294006,
0.03231630101799965,
0.2538016140460968,
0.05208507925271988,
-0.07659663259983063,
-0.09458283334970474,
-0.20463797450065613,
0.21942651271820068,
0.10172294080257416,
-0.038137856870889664,
0.24791404604911804,
0.060567546635866165,
-0.3091120421886444,
-0.05196782574057579,
0.5426905751228333,
0.28481391072273254,
0.07306783646345139,
0.007485434412956238,
0.12655553221702576,
0.1710316687822342,
-0.1292840838432312,
-0.1871747523546219,
0.21795006096363068,
0.06744693219661713,
-0.30112534761428833,
-0.05857134982943535,
0.25547799468040466,
-0.16151195764541626,
0.1505517214536667,
-0.25554707646369934,
0.25177544355392456,
-0.14359615743160248,
0.060067467391490936,
-0.37529200315475464,
-0.13925603032112122,
-0.17222373187541962,
0.21595162153244019,
-0.4729175269603729,
-0.09143045544624329,
0.23566414415836334,
-0.014075873419642448,
-0.013921248726546764,
-0.27241992950439453,
0.12868903577327728,
-0.1506764441728592,
0.32116788625717163,
0.5002920627593994,
0.033783480525016785,
-0.16932351887226105,
-0.21953842043876648,
-0.5923280119895935,
0.24283143877983093,
0.02722807787358761,
0.09311974793672562,
-0.19424091279506683,
0.264868825674057,
-0.029921308159828186,
-0.08640450984239578,
0.2662326395511627,
0.19246292114257812,
0.08036818355321884,
-0.09204010665416718,
-0.47814375162124634,
-0.05662974342703819,
0.11737295985221863,
0.029378671199083328,
0.28451240062713623,
-0.23942703008651733,
0.05625778064131737,
0.13288848102092743,
0.15100884437561035,
0.008560830727219582,
0.02026359736919403,
-0.08011849224567413,
0.025763723999261856,
0.5730305910110474,
0.1187078133225441,
0.060010313987731934,
0.049525126814842224,
-0.12369818240404129,
-0.033217903226614,
-0.32977256178855896,
0.11300364881753922,
0.07611072063446045,
0.09475056827068329,
0.34510624408721924,
-0.24469110369682312,
-0.1119472086429596,
-0.2737617492675781,
0.16651275753974915,
0.13546788692474365,
0.284045547246933,
-0.3247118592262268,
0.07680881768465042,
-0.020787913352251053,
0.1927500069141388,
0.19934794306755066,
0.18234500288963318,
-0.09816786646842957,
0.10807918012142181,
-0.13855445384979248,
0.06205194443464279,
0.5860344171524048,
-0.250849187374115,
0.04632043465971947,
-0.0526139996945858,
0.3319084048271179,
0.27831172943115234,
-0.2728857696056366,
-0.3691663444042206,
0.010499715805053711,
0.33975210785865784,
0.1677314043045044,
-0.2306312620639801,
0.314406156539917,
-0.31401798129081726,
0.2389192432165146,
0.14132900536060333,
0.045536499470472336,
0.16196033358573914,
-0.11549787223339081,
0.14303037524223328,
-0.11682413518428802
] |
https://github.com/huggingface/datasets/issues/2716 | Calling shuffle on IterableDataset will disable batching in case any functions were mapped | Hi :) Good catch ! Feel free to open a PR if you want to contribute, this would be very welcome ;) | When using dataset in streaming mode, if one applies `shuffle` method on the dataset and `map` method for which `batched=True` than the batching operation will not happen, instead `batched` will be set to `False`
I did RCA on the dataset codebase, the problem is emerging from [this line of code](https://github.com/huggingface/datasets/blob/d25a0bf94d9f9a9aa6cabdf5b450b9c327d19729/src/datasets/iterable_dataset.py#L197) here as it is
`self.ex_iterable.shuffle_data_sources(seed), function=self.function, batch_size=self.batch_size`, as one can see it is missing batched argument, which means that the iterator fallsback to default constructor value, which in this case is `False`.
To remedy the problem we can change this line to
`self.ex_iterable.shuffle_data_sources(seed), function=self.function, batched=self.batched, batch_size=self.batch_size`
| 22 | Calling shuffle on IterableDataset will disable batching in case any functions were mapped
When using dataset in streaming mode, if one applies `shuffle` method on the dataset and `map` method for which `batched=True` than the batching operation will not happen, instead `batched` will be set to `False`
I did RCA on the dataset codebase, the problem is emerging from [this line of code](https://github.com/huggingface/datasets/blob/d25a0bf94d9f9a9aa6cabdf5b450b9c327d19729/src/datasets/iterable_dataset.py#L197) here as it is
`self.ex_iterable.shuffle_data_sources(seed), function=self.function, batch_size=self.batch_size`, as one can see it is missing batched argument, which means that the iterator fallsback to default constructor value, which in this case is `False`.
To remedy the problem we can change this line to
`self.ex_iterable.shuffle_data_sources(seed), function=self.function, batched=self.batched, batch_size=self.batch_size`
Hi :) Good catch ! Feel free to open a PR if you want to contribute, this would be very welcome ;) | [
-0.40982159972190857,
-0.25380757451057434,
0.016455572098493576,
-0.03116121143102646,
0.3398856520652771,
-0.05797150731086731,
0.30230793356895447,
0.06744365394115448,
-0.21752531826496124,
0.3773574233055115,
-0.23105058073997498,
0.29125529527664185,
-0.1922607719898224,
0.26576876640319824,
-0.09424517303705215,
0.1088104173541069,
0.07740239799022675,
0.08244480192661285,
-0.40716680884361267,
-0.02597617357969284,
-0.22573430836200714,
-0.09344673901796341,
-0.5538956522941589,
-0.2494303435087204,
-0.038742441684007645,
-0.12912949919700623,
0.08400078117847443,
0.06907330453395844,
-0.24990873038768768,
-0.10485842078924179,
0.11572183668613434,
0.5466902256011963,
-0.0666162520647049,
0.4911217987537384,
-0.00010466054663993418,
-0.04668644070625305,
0.2209416627883911,
-0.14789551496505737,
-0.19710896909236908,
-0.016235053539276123,
-0.22870135307312012,
0.3616315722465515,
-0.17292040586471558,
-0.04709026589989662,
-0.11057857424020767,
-0.3326941430568695,
0.017909280955791473,
-0.3529170751571655,
0.10909885168075562,
-0.0607377290725708,
0.25048211216926575,
0.15205222368240356,
-0.18338540196418762,
-0.011095729656517506,
0.3300376236438751,
0.16020122170448303,
-0.18874028325080872,
0.27957484126091003,
0.3021201491355896,
0.121400386095047,
-0.02153133600950241,
0.33969590067863464,
-0.04575907438993454,
0.09730739891529083,
0.2876344919204712,
-0.12215467542409897,
-0.07569097727537155,
-0.40559279918670654,
0.16290771961212158,
0.13279442489147186,
0.404119610786438,
-0.32703858613967896,
-0.23384526371955872,
-0.3728272318840027,
0.06836409866809845,
-0.2494542896747589,
0.12981559336185455,
-0.08261556178331375,
-0.12513919174671173,
-0.11274491250514984,
-0.42950931191444397,
0.12751635909080505,
-0.01358431950211525,
-0.03393314778804779,
0.5006253719329834,
0.42253372073173523,
-0.13812534511089325,
0.12638044357299805,
0.25885215401649475,
-0.2066313922405243,
0.46598026156425476,
-0.08024673163890839,
-0.21356073021888733,
0.336856484413147,
-0.4075322151184082,
-0.13013774156570435,
0.17357981204986572,
0.2387515902519226,
0.3460846543312073,
0.044618040323257446,
0.21715688705444336,
0.2294618785381317,
0.1571497917175293,
0.054624032229185104,
0.433102548122406,
0.06278820335865021,
-0.06883607059717178,
0.04540435969829559,
0.1574961543083191,
0.30581438541412354,
0.023727748543024063,
-0.024925261735916138,
0.2888556718826294,
-0.08608542382717133,
0.0023557692766189575,
-0.05673038959503174,
0.10770413279533386,
-0.1669805347919464,
-0.09526276588439941,
-0.3858785033226013,
-0.1767873764038086,
-0.15378741919994354,
0.27110084891319275,
0.38850417733192444,
0.059484608471393585,
0.015489639714360237,
-0.3158888816833496,
0.2343371957540512,
0.0019728727638721466,
0.13454240560531616,
-0.2632301151752472,
-0.24805529415607452,
-0.23270206153392792,
0.09058192372322083,
0.23690707981586456,
-0.4453912377357483,
0.3494919538497925,
0.3258510231971741,
0.07712188363075256,
0.0918583869934082,
0.10895088315010071,
-0.15704989433288574,
0.28728821873664856,
0.09947812557220459,
0.09743908047676086,
0.05698293447494507,
0.12130062282085419,
0.17568425834178925,
0.0762384757399559,
0.0880064070224762,
-0.05089686065912247,
-0.07897619158029556,
0.40252500772476196,
0.25784602761268616,
-0.18700261414051056,
-0.09086345136165619,
-0.5048842430114746,
0.11811211705207825,
0.03824286907911301,
-0.31099337339401245,
0.14446355402469635,
-0.27121007442474365,
0.0033719204366207123,
-0.2548607587814331,
0.1507638841867447,
0.1824272722005844,
0.05241083726286888,
-0.09079878777265549,
0.0347350649535656,
-0.2587927281856537,
0.6150110960006714,
0.4008065462112427,
-0.21168780326843262,
0.04171401634812355,
-0.2732912003993988,
0.07794059813022614,
0.1313033252954483,
0.11648879945278168,
-0.39750903844833374,
0.1741447001695633,
-0.12211589515209198,
0.43536391854286194,
0.05989338457584381,
0.042874664068222046,
0.3480425477027893,
-0.1915021687746048,
0.2754976749420166,
0.26480281352996826,
-0.25412023067474365,
0.29648706316947937,
-0.195029154419899,
-0.07633287459611893,
-0.03204459697008133,
0.09391391277313232,
-0.20649521052837372,
0.34019744396209717,
0.12303756922483444,
-0.18032711744308472,
0.31682687997817993,
-0.26744791865348816,
0.13477690517902374,
-0.02287154272198677,
0.2825084328651428,
0.0961352065205574,
-0.017181040719151497,
-0.17783337831497192,
-0.2438289225101471,
0.09893359988927841,
0.16356873512268066,
-0.0619945302605629,
-0.0031119510531425476,
-0.3148012161254883,
0.16152527928352356,
-0.11590186506509781,
-0.48904916644096375,
-0.21333925426006317,
0.2111133188009262,
0.22683894634246826,
0.0447983480989933,
-0.15611621737480164,
-0.17670975625514984,
0.0718609169125557,
-0.2924743890762329,
-0.19436222314834595,
-0.3770170211791992,
-0.09432810544967651,
0.11367473751306534,
-0.22657252848148346,
0.1598411500453949,
0.13840000331401825,
0.12026345729827881,
-0.18165870010852814,
-0.08545278757810593,
0.4552505314350128,
-0.020410610362887383,
0.02248018980026245,
-0.04716116189956665,
0.24538539350032806,
-0.10958787053823471,
0.0012365318834781647,
-0.12778976559638977,
-0.0703825056552887,
0.22009959816932678,
-0.1837344914674759,
-0.05832407623529434,
0.4448702931404114,
-0.45442724227905273,
0.2487807273864746,
0.23268456757068634,
-0.27511733770370483,
0.41832518577575684,
0.2991345226764679,
-0.20195923745632172,
-0.10131178051233292,
0.06431888043880463,
-0.1856445074081421,
0.19164857268333435,
0.02253604866564274,
-0.3827545940876007,
0.07535749673843384,
0.48506027460098267,
0.13220973312854767,
-0.10927187651395798,
-0.08307620137929916,
-0.11397214978933334,
-0.27826210856437683,
-0.019103998318314552,
0.3351626396179199,
0.4067941904067993,
0.23896294832229614,
0.20843127369880676,
0.10732938349246979,
0.19761711359024048,
-0.18797531723976135,
0.12293282151222229,
0.011179693043231964,
0.1723269373178482,
0.23125922679901123,
0.18283013999462128,
-0.12189150601625443,
-0.4867268204689026,
-0.3557828664779663,
0.0885690450668335,
0.3144857585430145,
-0.21189096570014954,
-0.2529515027999878,
-0.16681905090808868,
-0.21225020289421082,
-0.127616748213768,
-0.2103356570005417,
-0.08317738771438599,
-0.22036579251289368,
0.1369229257106781,
0.7543542981147766,
-0.1674434393644333,
0.2527228891849518,
0.3151094615459442,
0.14116260409355164,
-0.05606553703546524,
-0.09979800134897232,
-0.14668643474578857,
-0.023652156814932823,
-0.00853615254163742,
0.19708774983882904,
0.15754224359989166,
-0.14271052181720734,
0.35637718439102173,
-0.00003468245267868042,
-0.3080059885978699,
-0.30346250534057617,
0.13079124689102173,
0.08780035376548767,
-0.1911066323518753,
0.0158843956887722,
0.046646662056446075,
0.18439583480358124,
-0.010060397908091545,
-0.25694629549980164,
0.20348790287971497,
-0.417111873626709,
-0.05132760852575302,
0.0685134008526802,
-0.17025837302207947,
-0.08840359002351761,
-0.2802339792251587,
-0.09832512587308884,
-0.14165155589580536,
-0.36884671449661255,
0.23633480072021484,
-0.11345644295215607,
0.0388992577791214,
0.25806137919425964,
-0.0042466153390705585,
-0.11644142121076584,
-0.19471925497055054,
-0.2532932162284851,
-0.35945242643356323,
-0.6516541242599487,
0.01042615994811058,
-0.20069541037082672,
-0.2527255713939667,
0.031744617968797684,
0.19869458675384521,
0.1780179888010025,
0.6395938992500305,
-0.03225615620613098,
0.1754574030637741,
-0.10564970970153809,
0.07817938923835754,
-0.004831027239561081,
0.11123224347829819,
0.4022187292575836,
0.0161641463637352,
-0.10084447264671326,
-0.20056292414665222,
-0.030082140117883682,
0.11220020800828934,
0.031147122383117676,
0.23186343908309937,
0.1879940927028656,
0.45610561966896057,
-0.055017054080963135,
0.9363188147544861,
0.14279116690158844,
0.12082698941230774,
0.30897781252861023,
-0.04061315208673477,
0.2949373126029968,
-0.339870810508728,
-0.1727132648229599,
0.41899144649505615,
0.15892280638217926,
-0.25301268696784973,
0.26995599269866943,
-0.17851731181144714,
-0.3480796813964844,
-0.14285700023174286,
0.14365708827972412,
-0.0000630207359790802,
-0.07042565196752548,
0.20394355058670044,
0.1525273472070694,
0.21581920981407166,
0.019343815743923187,
0.18846657872200012,
-0.12127092480659485,
-0.05080856382846832,
-0.21817690134048462,
-0.035010263323783875,
0.3387904763221741,
-0.09035099297761917,
-0.4391949474811554,
-0.3892981708049774,
-0.4123506546020508,
0.06676645576953888,
0.06230171024799347,
0.5975314974784851,
-0.1478610783815384,
-0.11797051131725311,
0.2101563662290573,
0.18202582001686096,
0.571148693561554,
-0.4470503628253937,
-0.10754486918449402,
0.12747859954833984,
0.06227240711450577,
-0.09501587599515915,
-0.153840571641922,
-0.2738073766231537,
0.2109861671924591,
0.09701718389987946,
0.2901657819747925,
-0.2299705147743225,
0.0009554987773299217,
-0.05706717073917389,
-0.0818057581782341,
0.1513826698064804,
-0.09597072750329971,
-0.2688919007778168,
-0.2532072067260742,
-0.23671340942382812,
0.18790853023529053,
0.07250145077705383,
0.011418083682656288,
-0.2773074507713318,
-0.038711756467819214,
0.018391069024801254,
0.2690771818161011,
-0.12162521481513977,
0.3407265841960907,
0.17266923189163208,
0.2733711004257202,
0.16915622353553772,
0.38521265983581543,
-0.0037226304411888123,
0.359880656003952,
0.19307278096675873,
0.28694021701812744,
-0.14820453524589539,
0.17003777623176575,
-0.06553228199481964,
0.10065382719039917,
0.2456892728805542,
-0.15611577033996582,
0.15349119901657104,
0.14782874286174774,
0.28660663962364197,
-0.10289286822080612,
-0.2666446268558502,
0.3975701630115509,
-0.06962720304727554,
-0.4378699064254761,
-0.842522144317627,
0.1484270542860031,
0.04689660295844078,
-0.13860563933849335,
0.5356465578079224,
-0.3040623664855957,
-0.13314934074878693,
0.3750416040420532,
-0.1486595869064331,
0.6218429207801819,
-0.014361865818500519,
-0.11625193059444427,
0.365371972322464,
0.22373966872692108,
0.12808561325073242,
-0.010589741170406342,
0.33867520093917847,
-0.09619440138339996,
-0.5596520900726318,
0.18156218528747559,
-0.10514859110116959,
0.02700306475162506,
0.0661650225520134,
-0.2295011281967163,
0.2785797715187073,
-0.0691480040550232,
0.16584549844264984,
-0.1683228611946106,
-0.19083698093891144,
-0.2544879913330078,
-0.32339051365852356,
-0.3023679852485657,
0.22152715921401978,
-0.02607467770576477,
0.06519860029220581,
0.07856619358062744,
-0.08549633622169495,
0.06075618788599968,
0.09819464385509491,
-0.1658932864665985,
0.19183462858200073,
-0.2944267988204956,
-0.1783636510372162,
-0.31935638189315796,
0.16196124255657196,
0.07044702768325806,
0.012355618178844452,
0.05615722015500069,
0.04769061133265495,
-0.09444482624530792,
0.15502451360225677,
0.33363109827041626,
0.26628050208091736,
-0.10049290955066681,
0.09578671306371689,
0.10777725279331207,
-0.07018161565065384,
-0.05772118270397186,
0.054372064769268036,
0.1306614726781845,
-0.3757498860359192,
-0.3450509011745453,
-0.1822018176317215,
0.20622475445270538,
-0.14294934272766113,
-0.12859301269054413,
0.06688138842582703,
-0.03239353373646736,
-0.21686597168445587,
0.16906023025512695,
-0.08591268956661224,
-0.19332604110240936,
0.4004814624786377,
-0.27560189366340637,
-0.09686192870140076,
-0.22721050679683685,
0.3841654658317566,
0.20004594326019287,
0.1802428811788559,
0.31967395544052124,
-0.06274331361055374,
-0.1752789318561554,
-0.2885640263557434,
-0.16546928882598877,
-0.12286562472581863,
-0.1576547473669052,
0.11634010076522827,
0.16484962403774261,
0.03248903155326843,
0.04596758633852005,
0.2720922827720642,
-0.20125944912433624,
0.13934412598609924,
-0.3060131371021271,
-0.174760103225708,
-0.30506324768066406,
0.008987285196781158,
0.08258609473705292,
0.13150654733181,
-0.08717967569828033,
0.22746776044368744,
0.08972494304180145,
-0.1020628958940506,
-0.41252315044403076,
-0.3236413896083832,
-0.09591668844223022,
0.19104139506816864,
0.005848795175552368,
0.02907501719892025,
0.21066272258758545,
-0.028109580278396606,
0.1836046576499939,
0.117401622235775,
-0.22972071170806885,
-0.27581101655960083,
0.1535896211862564,
0.08504527807235718,
0.17564618587493896,
-0.09352333843708038,
-0.07108338922262192,
-0.21771609783172607,
-0.525406539440155,
-0.2647675573825836,
0.4250847101211548,
0.18220815062522888,
0.016789764165878296,
-0.17175976932048798,
0.46559280157089233,
0.009039971977472305,
0.06405606865882874,
0.04699692875146866,
-0.1677902340888977,
-0.4819266200065613,
-0.0941469818353653,
-0.15038719773292542,
-0.18860171735286713,
-0.2323780357837677,
-0.10757581144571304,
-0.01794993132352829,
0.24784933030605316,
0.31368252635002136,
0.1901547908782959,
-0.2606303095817566,
0.08994144201278687,
0.2874261140823364,
0.45172056555747986,
0.5097652673721313,
0.09002935886383057,
-0.43665990233421326,
0.2320922315120697,
0.2794460952281952,
-0.15223270654678345,
-0.1554151326417923,
-0.021723948419094086,
0.08458967506885529,
0.20068180561065674,
0.09547129273414612,
-0.14061443507671356,
-0.2623804807662964,
0.0018219798803329468,
0.06674700975418091,
0.26190251111984253,
-0.49572503566741943,
0.2348489761352539,
0.07080314308404922,
0.020959120243787766,
-0.08102278411388397,
0.2266281098127365,
0.09625141322612762,
-0.006023019552230835,
0.3671915531158447,
-0.08139068633317947,
0.23923523724079132,
0.24574053287506104,
-0.015189941972494125,
-0.05181615799665451,
-0.520972728729248,
-0.11953821778297424,
0.5239407420158386,
-0.13210758566856384,
0.4228522479534149,
0.12531127035617828,
0.020269572734832764,
-0.20507538318634033,
0.006279102526605129,
-0.03978727385401726,
0.03535356745123863,
-0.18454697728157043,
-0.03271319717168808,
-0.06929156184196472,
-0.2562200427055359,
-0.03857960179448128,
0.01949809119105339,
-0.07973448932170868,
0.24708174169063568,
0.2956738770008087,
-0.1761792004108429,
-0.07514327764511108,
-0.48869210481643677,
-0.013266332447528839,
0.15510806441307068,
0.4034702479839325,
-0.10906223207712173,
0.06983339786529541,
-0.11696764826774597,
0.058861345052719116,
0.25690123438835144,
0.3191128373146057,
0.16532853245735168,
0.3827478587627411,
0.18819566071033478,
0.11947904527187347,
-0.13577662408351898,
-0.1633855551481247,
-0.1559184342622757,
0.23633092641830444,
0.18901127576828003,
-0.08696073293685913,
0.24470897018909454,
0.21430742740631104,
-0.1717333048582077,
0.04155781492590904,
0.09316308796405792,
0.20780101418495178,
0.055041369050741196,
-0.012998498976230621,
-0.10157287120819092,
0.006441034376621246,
0.008636770769953728,
-0.04515425115823746,
-0.3146965205669403,
-0.021476134657859802,
-0.03406095877289772,
-0.19874347746372223,
0.12356411665678024,
-0.22025775909423828,
0.1245720386505127,
0.024396497756242752,
0.41302821040153503,
0.16067273914813995,
-0.3146045506000519,
-0.10011114180088043,
-0.33078116178512573,
-0.5856949090957642,
-0.06208109110593796,
-0.03646768257021904,
0.11419765651226044,
0.06432216614484787,
0.3521093726158142,
0.07632448524236679,
-0.04076056927442551,
-0.006029501557350159,
-0.007385770790278912,
-0.1809278428554535,
0.5266046524047852,
-0.21563708782196045,
-0.04582777991890907,
-0.38056355714797974,
0.12041991204023361,
0.13754260540008545,
-0.27473846077919006,
0.2784753441810608,
-0.09803391993045807,
0.1694282591342926,
0.12343228608369827,
0.2686366140842438,
-0.0671861469745636,
-0.3670598864555359,
0.06549619138240814,
0.19546164572238922,
0.058426983654499054,
-0.1546785831451416,
0.17120172083377838,
-0.2905958890914917,
-0.21371985971927643,
-0.31747114658355713,
-0.025992654263973236,
0.1941359043121338,
0.4024055600166321,
0.17548246681690216,
-0.08575339615345001,
-0.32128503918647766,
0.1749442219734192,
0.11125285923480988,
0.14036230742931366,
-0.29177790880203247,
0.3752891421318054,
0.07990864664316177,
0.25145652890205383,
-0.14692983031272888,
0.06904849410057068,
-0.09655117988586426,
0.0188275333493948,
-0.3619233965873718,
-0.32676154375076294,
0.6507822275161743,
-0.3065682053565979,
-0.3087317645549774,
-0.19299711287021637,
0.3111165165901184,
0.1510484218597412,
-0.18155024945735931,
-0.16170009970664978,
0.3057672381401062,
0.17141464352607727,
-0.07744430750608444,
0.053945522755384445,
0.2937752604484558,
-0.21064506471157074,
0.08784274756908417,
-0.1030067652463913,
0.04751221463084221,
0.1259881556034088,
-0.3081817924976349,
0.30534663796424866,
-0.2104218602180481
] |
https://github.com/huggingface/datasets/issues/2714 | add more precise information for size | We already have this information in the dataset_infos.json files of each dataset.
Maybe we can parse these files in the backend to return their content with the endpoint at huggingface.co/api/datasets
For now if you want to access this info you have to load the json for each dataset. For example:
- for a dataset on github like `squad`
- https://raw.githubusercontent.com/huggingface/datasets/master/datasets/squad/dataset_infos.json
- for a community dataset on the hub like `lhoestq/squad`:
https://huggingface.co/datasets/lhoestq/squad/resolve/main/dataset_infos.json | For the import into ELG, we would like a more precise description of the size of the dataset, instead of the current size categories. The size can be expressed in bytes, or any other preferred size unit. As suggested in the slack channel, perhaps this could be computed with a regex for existing datasets. | 71 | add more precise information for size
For the import into ELG, we would like a more precise description of the size of the dataset, instead of the current size categories. The size can be expressed in bytes, or any other preferred size unit. As suggested in the slack channel, perhaps this could be computed with a regex for existing datasets.
We already have this information in the dataset_infos.json files of each dataset.
Maybe we can parse these files in the backend to return their content with the endpoint at huggingface.co/api/datasets
For now if you want to access this info you have to load the json for each dataset. For example:
- for a dataset on github like `squad`
- https://raw.githubusercontent.com/huggingface/datasets/master/datasets/squad/dataset_infos.json
- for a community dataset on the hub like `lhoestq/squad`:
https://huggingface.co/datasets/lhoestq/squad/resolve/main/dataset_infos.json | [
-0.0413549467921257,
-0.5577727556228638,
-0.1589670181274414,
0.3919740915298462,
0.20537523925304413,
-0.0639248937368393,
-0.07375909388065338,
0.05036449804902077,
0.10644851624965668,
0.07986827194690704,
-0.43947017192840576,
0.0881778821349144,
-0.06569746136665344,
0.4548652172088623,
0.06093831732869148,
0.03885871171951294,
-0.22952008247375488,
-0.11266595125198364,
-0.14924325048923492,
-0.21980217099189758,
0.02345031499862671,
0.27985575795173645,
0.25340187549591064,
-0.029591165482997894,
-0.015450181439518929,
0.12148220837116241,
-0.2544066905975342,
0.29460030794143677,
-0.5448059439659119,
-0.21685506403446198,
0.16250605881214142,
-0.05755861476063728,
0.15924066305160522,
-0.021006084978580475,
-0.00010385124915046617,
-0.06477726995944977,
0.10809534788131714,
-0.22959540784358978,
-0.32057276368141174,
-0.03833518922328949,
0.002548627555370331,
-0.3959293067455292,
0.1042662039399147,
-0.08504437655210495,
-0.14127467572689056,
-0.11663614958524704,
0.033571530133485794,
-0.12619543075561523,
0.454143762588501,
0.09185416996479034,
0.27337387204170227,
0.4500887095928192,
0.1584029346704483,
-0.13895465433597565,
0.03383248299360275,
0.48663240671157837,
0.014397161081433296,
0.26793864369392395,
0.38407278060913086,
0.30030253529548645,
-0.09223108738660812,
0.40507954359054565,
0.2523309290409088,
-0.025928765535354614,
0.26014578342437744,
0.03143671154975891,
-0.3214985132217407,
-0.13708752393722534,
0.10250457376241684,
0.4285008907318115,
0.16740480065345764,
-0.3730250895023346,
-0.5177246332168579,
-0.45340830087661743,
0.15884946286678314,
-0.2547270953655243,
0.04930028319358826,
0.23190344870090485,
0.030197568237781525,
0.17674732208251953,
-0.25479480624198914,
-0.15073341131210327,
-0.23824439942836761,
-0.024006977677345276,
-0.17766693234443665,
0.07897006720304489,
-0.2915140688419342,
-0.11853084713220596,
0.0026721619069576263,
-0.404931902885437,
-0.6295156478881836,
0.03170476853847504,
-0.1120762974023819,
0.20418070256710052,
-0.1458260715007782,
-0.3822920620441437,
0.31469112634658813,
0.2405809462070465,
0.5023841857910156,
0.15784072875976562,
0.007503264583647251,
0.15249480307102203,
0.001108839176595211,
0.19479385018348694,
0.19777879118919373,
0.30219998955726624,
0.3661184012889862,
-0.0779799371957779,
0.10311935842037201,
0.03168575465679169,
0.14990699291229248,
-0.13568425178527832,
-0.21373844146728516,
0.08167555928230286,
-0.3636181652545929,
-0.20705413818359375,
0.02260155975818634,
-0.11125046014785767,
-0.07278435677289963,
-0.00996615830808878,
0.1764279305934906,
0.023527221754193306,
0.07943371683359146,
0.4399178624153137,
0.02852550521492958,
0.011436380445957184,
-0.09482719004154205,
0.22786816954612732,
0.16592782735824585,
-0.25803250074386597,
-0.16819752752780914,
0.010056856088340282,
-0.057712048292160034,
0.13958482444286346,
0.01280646026134491,
-0.3011854588985443,
0.3934866786003113,
-0.11033345013856888,
0.17219369113445282,
-0.04999668151140213,
-0.07833845168352127,
0.04960431903600693,
0.18665964901447296,
0.0405113585293293,
0.09215705096721649,
-0.21698907017707825,
0.027859438210725784,
-0.1454954743385315,
-0.3767354488372803,
-0.20538270473480225,
-0.19978827238082886,
-0.26013946533203125,
-0.4404105246067047,
0.26630231738090515,
-0.23471631109714508,
-0.06464840471744537,
-0.4436701238155365,
0.3297385275363922,
-0.14819097518920898,
0.13810373842716217,
0.004347324371337891,
0.0898580402135849,
-0.029387736693024635,
-0.1064031720161438,
0.004888672381639481,
0.23059451580047607,
-0.03316263109445572,
-0.2757418155670166,
-0.03610619157552719,
-0.2553452253341675,
-0.24731558561325073,
0.4085279107093811,
-0.05465377867221832,
-0.2784495949745178,
-0.10996702313423157,
0.28476381301879883,
0.3449612259864807,
-0.4075213074684143,
-0.06387810409069061,
0.23232504725456238,
0.04206998646259308,
0.09201064705848694,
0.04418634995818138,
0.005191089119762182,
0.22958992421627045,
0.16459430754184723,
0.017502140253782272,
0.3218153715133667,
-0.1843341886997223,
0.12283927947282791,
-0.10666871070861816,
-0.40866151452064514,
-0.1758037656545639,
0.1705344021320343,
0.042558453977108,
-0.33535563945770264,
0.20834699273109436,
0.08446154743432999,
0.22124189138412476,
-0.15257000923156738,
0.06526108086109161,
0.2249131202697754,
-0.016241807490587234,
-0.048572055995464325,
0.05012267455458641,
-0.11235156655311584,
-0.619635820388794,
0.13108962774276733,
-0.019652916118502617,
0.23720872402191162,
-0.039961978793144226,
-0.41779983043670654,
-0.3142913579940796,
0.15523865818977356,
0.05969243124127388,
-0.09161064028739929,
0.21395716071128845,
-0.03350606560707092,
0.26269984245300293,
-0.05387946963310242,
-0.13238997757434845,
-0.0153962392359972,
-0.12488975375890732,
0.2994818687438965,
-0.6840798854827881,
0.06770341843366623,
-0.01876366324722767,
0.03172259405255318,
0.16396188735961914,
0.1434709131717682,
-0.20231720805168152,
-0.047474537044763565,
0.028176698833703995,
0.07564710825681686,
-0.17491072416305542,
0.4565298557281494,
0.26037946343421936,
0.47787177562713623,
0.2401750683784485,
-0.003362659364938736,
0.2902505695819855,
-0.1425657570362091,
0.02223789319396019,
0.1272934377193451,
-0.5045996904373169,
0.5015557408332825,
0.31562721729278564,
-0.038914166390895844,
0.07486201822757721,
-0.05898912250995636,
0.01904780976474285,
-0.01331355795264244,
-0.230565145611763,
-0.3546418249607086,
0.025125866755843163,
-0.040418319404125214,
0.2994697690010071,
0.06176400184631348,
-0.3438566029071808,
0.06254801899194717,
0.5101695656776428,
0.013296358287334442,
-0.004637420177459717,
0.34522545337677,
-0.3160443603992462,
-0.2252226173877716,
0.20957772433757782,
0.05568161979317665,
0.18306076526641846,
0.3736017942428589,
0.10899938642978668,
0.1292484998703003,
0.21133440732955933,
-0.02861158922314644,
0.10022848844528198,
0.1177816390991211,
-0.057875677943229675,
0.04376937821507454,
0.3493604362010956,
-0.06456644833087921,
-0.40007495880126953,
-0.11726261675357819,
-0.28997308015823364,
0.08528384566307068,
-0.22829915583133698,
-0.01757066138088703,
-0.1347503960132599,
-0.36447954177856445,
-0.15860560536384583,
-0.09908182919025421,
-0.5645573139190674,
-0.22262632846832275,
0.18555614352226257,
-0.24787196516990662,
-0.3137250542640686,
-0.21819184720516205,
0.10119819641113281,
0.24532245099544525,
-0.06832005083560944,
0.008963219821453094,
-0.09081020951271057,
-0.08565809577703476,
-0.010182216763496399,
0.17825371026992798,
0.17768017947673798,
0.058975350111722946,
0.39298754930496216,
-0.2609722912311554,
0.10445022583007812,
0.0062727611511945724,
-0.5086253881454468,
0.27177250385284424,
-0.18404033780097961,
0.18420153856277466,
0.07716716825962067,
0.11175832152366638,
0.08953835070133209,
0.03495604917407036,
0.17227394878864288,
-0.0007507428526878357,
-0.38367000222206116,
-0.09394168108701706,
-0.008097079582512379,
0.1394447386264801,
-0.16136519610881805,
-0.18604391813278198,
-0.31226280331611633,
-0.32968372106552124,
0.30159199237823486,
0.07866908609867096,
0.21225306391716003,
0.2112787514925003,
-0.010681357234716415,
0.14255297183990479,
-0.1424604207277298,
0.009721056558191776,
-0.30361032485961914,
-0.43506771326065063,
0.2735944092273712,
-0.4120614528656006,
-0.19509978592395782,
-0.05730815231800079,
0.09150902181863785,
0.20120447874069214,
-0.2210039645433426,
-0.1597377210855484,
-0.539400577545166,
-0.12289516627788544,
-0.02798295207321644,
0.1173584833741188,
0.035787925124168396,
0.25578755140304565,
-0.12904995679855347,
-0.14567027986049652,
0.022804342210292816,
-0.27357378602027893,
-0.05567368119955063,
0.25041288137435913,
0.030425958335399628,
-0.21156281232833862,
0.2764240801334381,
0.16652929782867432,
0.28718072175979614,
0.22735942900180817,
-0.21231292188167572,
0.12033353000879288,
-0.13590000569820404,
0.21259410679340363,
0.007170282304286957,
-0.033948346972465515,
0.24978622794151306,
0.11921675503253937,
0.07559487223625183,
0.4831528067588806,
0.39565256237983704,
0.2829972803592682,
0.023087278008461,
-0.09263360500335693,
-0.16538187861442566,
-0.19856208562850952,
0.344450980424881,
0.20882101356983185,
-0.12780389189720154,
-0.03476022183895111,
-0.08615773916244507,
-0.16283009946346283,
-0.1396651566028595,
-0.18851608037948608,
0.3137397766113281,
0.004514679312705994,
0.13771985471248627,
-0.5218555331230164,
-0.10159923136234283,
-0.24486485123634338,
0.575069010257721,
-0.03825290501117706,
-0.3285714387893677,
-0.043059490621089935,
-0.2700405418872833,
0.12685658037662506,
0.0676167756319046,
0.022902756929397583,
-0.08566901832818985,
-0.33627867698669434,
-0.1821860373020172,
-0.2599528431892395,
-0.31373313069343567,
0.24169932305812836,
0.009534135460853577,
-0.11772617697715759,
0.4289170205593109,
0.4547971487045288,
-0.5648523569107056,
-0.2424127459526062,
0.12744423747062683,
0.21621905267238617,
-0.15282239019870758,
-0.03606448322534561,
-0.14624246954917908,
-0.08846276998519897,
-0.49264606833457947,
0.040590111166238785,
0.05517217516899109,
0.1614609807729721,
0.02942551113665104,
0.0009255371987819672,
0.058542899787425995,
0.060693077743053436,
0.40500056743621826,
0.6058878302574158,
0.1253756880760193,
0.13702799379825592,
-0.13994990289211273,
0.14958781003952026,
0.461338073015213,
0.27388957142829895,
0.6469153761863708,
0.10128623247146606,
-0.13587380945682526,
0.02033964730799198,
0.04022179916501045,
0.23844316601753235,
0.3605238199234009,
0.181538924574852,
-0.008894041180610657,
0.031524717807769775,
0.1655164659023285,
-0.3032902181148529,
0.10036005079746246,
-0.04855102300643921,
0.0017779292538762093,
-0.14446131885051727,
0.050865620374679565,
0.4109845459461212,
-0.049149319529533386,
0.0982711911201477,
0.12952786684036255,
0.37050920724868774,
-0.2069343626499176,
0.2141832560300827,
0.06725777685642242,
1.064089059829712,
-0.21761290729045868,
0.1019979938864708,
0.058885421603918076,
-0.19377101957798004,
0.4219006597995758,
-0.05987294763326645,
-0.0264882892370224,
-0.20776422321796417,
0.2569037079811096,
0.15744838118553162,
0.14917109906673431,
0.1458738148212433,
0.09924314171075821,
-0.16685311496257782,
0.057449255138635635,
0.06236618757247925,
0.11759749054908752,
-0.3965126872062683,
0.5909294486045837,
-0.41359788179397583,
-0.5295297503471375,
-0.5926880836486816,
0.2633856534957886,
-0.08879989385604858,
0.35993045568466187,
0.046248868107795715,
-0.2781260013580322,
-0.18703846633434296,
-0.23176586627960205,
-0.354902446269989,
-0.1536562740802765,
-0.03243333101272583,
-0.2425076812505722,
0.15938782691955566,
-0.31849268078804016,
0.012261036783456802,
0.32865816354751587,
0.08202627301216125,
0.1905641406774521,
-0.22805187106132507,
0.15927961468696594,
-0.5026182532310486,
0.1174357682466507,
0.12815721333026886,
-0.08316069096326828,
0.09588515758514404,
-0.17829230427742004,
0.01701369136571884,
0.057219211012125015,
0.3150845468044281,
0.012074500322341919,
-0.004442363977432251,
-0.003743678331375122,
-0.2274230271577835,
-0.2892987132072449,
-0.015189682133495808,
-0.007887013256549835,
0.058214861899614334,
-0.09111174941062927,
0.17131412029266357,
0.19772091507911682,
0.061844926327466965,
-0.039444200694561005,
0.3849596679210663,
-0.09771717339754105,
-0.23960523307323456,
0.22643673419952393,
-0.09407458454370499,
-0.3045296370983124,
0.0304966252297163,
0.14478418231010437,
-0.007471144199371338,
-0.1658855825662613,
0.24899441003799438,
0.3029513359069824,
-0.37189072370529175,
-0.09938175976276398,
0.03480325639247894,
-0.22846835851669312,
-0.0984034314751625,
0.10121703147888184,
0.2532755732536316,
0.07875335216522217,
0.2638925313949585,
-0.18403591215610504,
-0.377127081155777,
0.4878150224685669,
-0.013802632689476013,
0.1850367784500122,
-0.2188994586467743,
0.05069127306342125,
0.04825513809919357,
0.4039396643638611,
-0.4329451024532318,
0.0922188013792038,
-0.2767193913459778,
-0.028818439692258835,
0.32233017683029175,
0.029494645074009895,
0.3968380391597748,
-0.17653830349445343,
0.09039248526096344,
0.01576181687414646,
-0.2969461977481842,
-0.23897427320480347,
-0.13299067318439484,
0.09426640719175339,
-0.09506577998399734,
0.2489355355501175,
0.06630923599004745,
0.1162625253200531,
-0.0040641408413648605,
-0.2708459794521332,
0.3166065514087677,
0.10424875468015671,
0.1591234803199768,
0.07672358304262161,
-0.06984397768974304,
0.07232401520013809,
0.13010136783123016,
-0.085783950984478,
0.3456188440322876,
0.30201393365859985,
0.03628312423825264,
0.09662073850631714,
-0.21389302611351013,
-0.1111757829785347,
0.10312330722808838,
0.20834675431251526,
0.23052436113357544,
0.0727466344833374,
0.09219463169574738,
0.24231217801570892,
-0.2250278890132904,
0.2563062608242035,
0.38161033391952515,
0.0709071233868599,
-0.12181125581264496,
0.2718304395675659,
-0.018345672637224197,
0.276136189699173,
-0.12249868363142014,
0.1581384241580963,
0.18339046835899353,
-0.08791901916265488,
0.1031724214553833,
0.3402596712112427,
0.19694656133651733,
0.47808992862701416,
0.2556493282318115,
0.015926405787467957,
0.3624539375305176,
0.04302544146776199,
-0.012007802724838257,
-0.0018363147974014282,
-0.19793538749217987,
-0.06428578495979309,
0.4485364556312561,
0.20687970519065857,
0.5565652847290039,
-0.18060721457004547,
-0.3229583203792572,
0.20262715220451355,
-0.14475366473197937,
0.1746150106191635,
0.3417481780052185,
-0.20678074657917023,
-0.2872582674026489,
0.1873379945755005,
0.3389519453048706,
0.20001575350761414,
0.10486821085214615,
0.45687738060951233,
0.1618059277534485,
-0.31414708495140076,
-0.2933788597583771,
0.4585607349872589,
-0.0922619178891182,
-0.08357815444469452,
0.06675852835178375,
-0.21804410219192505,
-0.37444475293159485,
0.03840557113289833,
-0.06295400857925415,
-0.4746852517127991,
0.1443570852279663,
-0.076022669672966,
0.11673799157142639,
-0.25030502676963806,
-0.08757595717906952,
0.09847694635391235,
0.06288450211286545,
-0.2830200493335724,
0.17781534790992737,
0.2792685627937317,
0.05243413522839546,
0.15252161026000977,
0.2958323657512665,
0.30387046933174133,
-0.1640511304140091,
0.13018068671226501,
0.35552096366882324,
-0.037477537989616394,
-0.09910403192043304,
-0.24289965629577637,
-0.010976966470479965,
0.0800495371222496,
-0.0562434084713459,
0.3106296956539154,
0.25585103034973145,
-0.2411571592092514,
-0.19957149028778076,
-0.32349392771720886,
0.07947446405887604,
0.013972820714116096,
0.3263382017612457,
-0.0467863529920578,
-0.04233021289110184,
-0.3483890891075134,
-0.24708250164985657,
-0.49441850185394287,
0.09922659397125244,
-0.02364439144730568,
0.13147762417793274,
0.044209353625774384,
-0.24575409293174744,
0.11702197790145874,
0.19647766649723053,
0.24383848905563354,
0.5422877669334412,
0.003423526883125305,
-0.011232114396989346,
-0.2232893407344818,
-0.4496416747570038,
0.06868868321180344,
0.04924960806965828,
-0.14422520995140076,
0.006549045443534851,
0.3821814954280853,
0.27541449666023254,
0.14550819993019104,
-0.10403411090373993,
-0.29305779933929443,
-0.011830021627247334,
0.011832166463136673,
-0.3173428475856781,
0.13393165171146393,
-0.06577613949775696,
-0.14267465472221375,
0.2859063148498535,
0.02343863993883133,
0.08739355951547623,
-0.2667754292488098,
0.061236679553985596,
-0.3607884645462036,
0.29227983951568604,
-0.1789943426847458,
-0.12328894436359406,
0.28615063428878784,
0.0752062052488327,
0.16302134096622467,
-0.2596968710422516,
-0.1424851268529892,
-0.19440197944641113,
-0.29547542333602905,
-0.25705721974372864,
0.42370298504829407,
-0.018125448375940323,
0.39554619789123535,
-0.04504530131816864,
-0.2638512849807739,
-0.11382828652858734,
0.010052363388240337,
-0.08705558627843857,
-0.2136552929878235,
0.014052258804440498,
0.1094871312379837,
-0.025669075548648834,
-0.10503501445055008,
-0.005402600392699242,
0.2724958658218384,
0.03597118332982063,
-0.06809334456920624,
-0.06531393527984619,
-0.3072284162044525,
0.5054525136947632,
-0.02577781304717064,
-0.05801619589328766,
0.08781319856643677,
0.2606492340564728,
0.4709811806678772,
-0.161562979221344,
-0.6479039192199707,
0.4406292736530304,
0.2577059864997864,
0.15934288501739502,
0.0267740860581398,
0.19524939358234406,
0.026560990139842033,
-0.1362665295600891,
-0.29469582438468933,
-0.1092558354139328,
0.10154376924037933,
-0.25857219099998474,
-0.01920357346534729,
-0.18782038986682892
] |
https://github.com/huggingface/datasets/issues/2709 | Missing documentation for wnut_17 (ner_tags) | Hi @maxpel, thanks for reporting this issue.
Indeed, the documentation in the dataset card is not complete. Iβm opening a Pull Request to fix it.
As the paper explains, there are 6 entity types and we have ordered them alphabetically: `corporation`, `creative-work`, `group`, `location`, `person` and `product`.
Each of these entity types has 2 possible IOB2 format tags:
- `B-`: to indicate that the token is the beginning of an entity name, and the
- `I-`: to indicate that the token is inside an entity name.
Additionally, there is the standalone IOB2 tag
- `O`: that indicates that the token belongs to no named entity.
In total there are 13 possible tags, which correspond to the following integer numbers:
0. `O`
1. `B-corporation`
2. `I-corporation`
3. `B-creative-work`
4. `I-creative-work`
5. `B-group`
6. `I-group`
7. `B-location`
8. `I-location`
9. `B-person`
10. `I-person`
11. `B-product`
12. `I-product` | On the info page of the wnut_17 data set (https://huggingface.co/datasets/wnut_17), the model output of ner-tags is only documented for these 5 cases:
`ner_tags: a list of classification labels, with possible values including O (0), B-corporation (1), I-corporation (2), B-creative-work (3), I-creative-work (4).`
I trained a model with the data and it gives me 13 classes:
```
"id2label": {
"0": 0,
"1": 1,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
"8": 8,
"9": 9,
"10": 10,
"11": 11,
"12": 12
}
"label2id": {
"0": 0,
"1": 1,
"10": 10,
"11": 11,
"12": 12,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
"8": 8,
"9": 9
}
```
The paper (https://www.aclweb.org/anthology/W17-4418.pdf) explains those 6 categories, but the ordering does not match:
```
1. person
2. location (including GPE, facility)
3. corporation
4. product (tangible goods, or well-defined
services)
5. creative-work (song, movie, book and
so on)
6. group (subsuming music band, sports team,
and non-corporate organisations)
```
I would be very helpful for me, if somebody could clarify the model ouputs and explain the "B-" and "I-" prefixes to me.
Really great work with that and the other packages, I couldn't believe that training the model with that data was basically a one-liner! | 145 | Missing documentation for wnut_17 (ner_tags)
On the info page of the wnut_17 data set (https://huggingface.co/datasets/wnut_17), the model output of ner-tags is only documented for these 5 cases:
`ner_tags: a list of classification labels, with possible values including O (0), B-corporation (1), I-corporation (2), B-creative-work (3), I-creative-work (4).`
I trained a model with the data and it gives me 13 classes:
```
"id2label": {
"0": 0,
"1": 1,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
"8": 8,
"9": 9,
"10": 10,
"11": 11,
"12": 12
}
"label2id": {
"0": 0,
"1": 1,
"10": 10,
"11": 11,
"12": 12,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
"8": 8,
"9": 9
}
```
The paper (https://www.aclweb.org/anthology/W17-4418.pdf) explains those 6 categories, but the ordering does not match:
```
1. person
2. location (including GPE, facility)
3. corporation
4. product (tangible goods, or well-defined
services)
5. creative-work (song, movie, book and
so on)
6. group (subsuming music band, sports team,
and non-corporate organisations)
```
I would be very helpful for me, if somebody could clarify the model ouputs and explain the "B-" and "I-" prefixes to me.
Really great work with that and the other packages, I couldn't believe that training the model with that data was basically a one-liner!
Hi @maxpel, thanks for reporting this issue.
Indeed, the documentation in the dataset card is not complete. Iβm opening a Pull Request to fix it.
As the paper explains, there are 6 entity types and we have ordered them alphabetically: `corporation`, `creative-work`, `group`, `location`, `person` and `product`.
Each of these entity types has 2 possible IOB2 format tags:
- `B-`: to indicate that the token is the beginning of an entity name, and the
- `I-`: to indicate that the token is inside an entity name.
Additionally, there is the standalone IOB2 tag
- `O`: that indicates that the token belongs to no named entity.
In total there are 13 possible tags, which correspond to the following integer numbers:
0. `O`
1. `B-corporation`
2. `I-corporation`
3. `B-creative-work`
4. `I-creative-work`
5. `B-group`
6. `I-group`
7. `B-location`
8. `I-location`
9. `B-person`
10. `I-person`
11. `B-product`
12. `I-product` | [
0.27512356638908386,
-0.2970442771911621,
0.020811006426811218,
0.46739083528518677,
-0.05594465881586075,
0.05201501399278641,
-0.011735420674085617,
-0.29913243651390076,
-0.25691089034080505,
-0.2186730057001114,
0.09837961941957474,
0.38133594393730164,
-0.1071821078658104,
0.2050386369228363,
0.19616825878620148,
-0.07216843217611313,
0.16841265559196472,
-0.18871551752090454,
0.3061251640319824,
-0.11009581387042999,
-0.3069918751716614,
0.3437997102737427,
-0.24828357994556427,
0.49542778730392456,
-0.3762373626232147,
-0.08591840416193008,
-0.18694068491458893,
-0.15397340059280396,
-0.40464353561401367,
-0.5950914621353149,
0.2896222770214081,
0.15563979744911194,
0.0723898857831955,
-0.05791003257036209,
-0.00012028065248159692,
-0.24607767164707184,
0.028519107028841972,
-0.18893703818321228,
-0.12240524590015411,
-0.12341566383838654,
-0.09262992441654205,
-0.20607347786426544,
0.28356605768203735,
-0.009430982172489166,
-0.14294783771038055,
-0.1868063062429428,
0.2751156985759735,
0.5176036953926086,
-0.2508019804954529,
0.11971699446439743,
0.049763280898332596,
-0.1621631681919098,
0.26890867948532104,
0.028813369572162628,
0.3519521951675415,
0.09083603322505951,
-0.12326043844223022,
0.3104267418384552,
0.42767950892448425,
-0.05340629070997238,
-0.2571891248226166,
0.46276000142097473,
0.09637622535228729,
-0.28202512860298157,
0.25890564918518066,
0.22859938442707062,
0.3358660340309143,
-0.4192575514316559,
-0.13016778230667114,
0.3817868232727051,
0.25169292092323303,
0.11475452035665512,
-0.2154105007648468,
-0.01573963835835457,
-0.05260191112756729,
-0.6351479887962341,
0.0023943185806274414,
0.4393245279788971,
0.0330132432281971,
0.041424669325351715,
-0.0036089520435780287,
0.17081522941589355,
-0.21630264818668365,
0.036044567823410034,
-0.09499086439609528,
0.697446346282959,
-0.1429922729730606,
-0.11016599088907242,
-0.02036735787987709,
-0.06452485173940659,
-0.31365352869033813,
0.05326354131102562,
0.0026733241975307465,
0.04854067414999008,
-0.35271552205085754,
0.08211410045623779,
0.11130084097385406,
0.6753000020980835,
0.10347212105989456,
0.1295492947101593,
-0.10830862820148468,
-0.1619323492050171,
-0.12468457221984863,
0.019132643938064575,
0.012667687609791756,
0.06710965931415558,
0.19440507888793945,
0.20111329853534698,
-0.044637084007263184,
0.3469557762145996,
0.03237162157893181,
-0.07408232986927032,
-0.10442253202199936,
0.04558149725198746,
-0.28209349513053894,
0.09278092533349991,
0.06808412075042725,
-0.01837567239999771,
-0.29603105783462524,
0.22548454999923706,
-0.32309311628341675,
-0.08890502154827118,
0.14402315020561218,
-0.07520698755979538,
-0.0731508880853653,
0.035711102187633514,
0.18765777349472046,
-0.0504874587059021,
-0.0379350483417511,
-0.48212674260139465,
-0.14820395410060883,
0.038648571819067,
-0.4639267027378082,
0.2523359954357147,
0.1713847815990448,
0.012634718790650368,
0.20624597370624542,
-0.11117095500230789,
-0.40546315908432007,
0.035456910729408264,
-0.0658327117562294,
-0.031302087008953094,
0.08896953612565994,
0.17950190603733063,
-0.4525703191757202,
0.38388821482658386,
0.0929940938949585,
-0.16428005695343018,
-0.2671719193458557,
0.011925812810659409,
-0.4921441674232483,
-0.3080556392669678,
0.06903062015771866,
0.12878932058811188,
-0.13658836483955383,
0.060957446694374084,
0.1897369921207428,
0.33188530802726746,
-0.11531756073236465,
0.19909116625785828,
-0.10074061900377274,
-0.09831230342388153,
-0.42692017555236816,
-0.2644009292125702,
0.007203444838523865,
0.04096946865320206,
-0.33410945534706116,
-0.16238179802894592,
0.13737741112709045,
0.18717271089553833,
0.31126049160957336,
-0.022741537541151047,
-0.024128103628754616,
0.42472144961357117,
-0.10909358412027359,
0.14674271643161774,
0.24993270635604858,
-0.3465861976146698,
-0.00875328853726387,
-0.17400746047496796,
-0.025899197906255722,
0.13298583030700684,
-0.08956421166658401,
0.1664261668920517,
-0.17449724674224854,
-0.09269816428422928,
0.01602623239159584,
-0.0840965285897255,
-0.09572654217481613,
-0.19901196658611298,
0.050236161798238754,
-0.1406760811805725,
0.6332870125770569,
0.11183547973632812,
-0.15727032721042633,
-0.11101601272821426,
-0.3735496997833252,
0.1674022078514099,
0.3539591431617737,
-0.007134024053812027,
0.04491346329450607,
0.36230355501174927,
0.08719758689403534,
0.3109552264213562,
0.32685843110084534,
0.05157744139432907,
-0.1253264844417572,
-0.016678398475050926,
0.12321312725543976,
0.7216906547546387,
0.1610007882118225,
-0.16097649931907654,
-0.05989472195506096,
-0.02970360592007637,
-0.04210175946354866,
-0.5228353142738342,
0.1638389378786087,
-0.035480089485645294,
-0.09276916086673737,
-0.01569090224802494,
-0.23457065224647522,
0.3003310263156891,
-0.7553528547286987,
0.12536650896072388,
-0.5494099855422974,
-0.2719164788722992,
-0.3093494772911072,
0.17231670022010803,
0.2604399621486664,
0.1606016755104065,
0.32123732566833496,
0.2714570164680481,
0.092471644282341,
-0.0461573526263237,
0.14885959029197693,
-0.6642780303955078,
0.09114314615726471,
0.6776845455169678,
0.08837292343378067,
-0.5249886512756348,
-0.09680113941431046,
0.092643603682518,
-0.1376926153898239,
-0.08231161534786224,
-0.18299594521522522,
0.044782817363739014,
-0.0842520147562027,
0.29331517219543457,
0.11412899196147919,
0.00895964726805687,
0.062317632138729095,
0.0631055235862732,
-0.3090403974056244,
0.06691209971904755,
0.10345074534416199,
-0.13608962297439575,
0.0211300291121006,
0.11993888765573502,
-0.038746174424886703,
0.44149643182754517,
0.5638067126274109,
-0.18636426329612732,
-0.0692085549235344,
0.2521671950817108,
-0.1829850971698761,
-0.05771152675151825,
-0.27078142762184143,
0.18219205737113953,
0.2422930747270584,
0.07314713299274445,
0.20161473751068115,
-0.14233148097991943,
-0.2664194405078888,
-0.2101287990808487,
0.14799515902996063,
0.0713571235537529,
-0.3675379157066345,
0.13229107856750488,
-0.014125408604741096,
0.028321508318185806,
-0.10011770576238632,
-0.23693642020225525,
-0.052668891847133636,
0.15793655812740326,
-0.28952014446258545,
-0.04862573370337486,
-0.0847703367471695,
-0.04149748757481575,
0.04939218983054161,
-0.13326463103294373,
-0.3768899440765381,
-0.46188414096832275,
0.0604124553501606,
-0.206577867269516,
0.10461397469043732,
0.09165730327367783,
0.026790201663970947,
0.25777798891067505,
0.007820582017302513,
0.4968670904636383,
-0.019922498613595963,
-0.31351438164711,
-0.41870540380477905,
0.0002778545022010803,
-0.1932314783334732,
-0.0689464807510376,
-0.2793946862220764,
-0.47155696153640747,
-0.1962033212184906,
0.1891830861568451,
-0.6522645354270935,
0.1992064118385315,
-0.03079277276992798,
0.04235564172267914,
0.3619498014450073,
0.038489632308483124,
-0.2372523695230484,
0.11657854914665222,
0.01289432868361473,
-0.048275597393512726,
-0.23773479461669922,
-0.06300483644008636,
-0.10789703577756882,
0.04758823662996292,
-0.27776721119880676,
-0.39978983998298645,
-0.4137220084667206,
-0.03607252985239029,
0.14719116687774658,
-0.05640581622719765,
0.07939731329679489,
0.5000626444816589,
-0.3187742233276367,
0.054229483008384705,
-0.04027790576219559,
0.42917194962501526,
-0.057938240468502045,
-0.03629525750875473,
0.3741433024406433,
-0.12259981781244278,
-0.2875942289829254,
0.28604039549827576,
-0.27761226892471313,
-0.0642169713973999,
-0.2167772352695465,
-0.16597028076648712,
0.012863085605204105,
0.12474901974201202,
-0.2548131048679352,
0.1925068199634552,
0.1471298784017563,
0.16049031913280487,
-0.05104697495698929,
0.18261262774467468,
-0.18101879954338074,
-0.1359701007604599,
0.14857494831085205,
-0.17386531829833984,
0.16256457567214966,
-0.11205846816301346,
-0.23526960611343384,
0.15339191257953644,
-0.09810611605644226,
0.09581063687801361,
-0.1561301052570343,
-0.19584399461746216,
0.1817343533039093,
0.12042199075222015,
0.12857258319854736,
0.09146779030561447,
-0.1207999512553215,
0.06562942266464233,
0.06713762879371643,
0.16727612912654877,
0.1578972339630127,
0.421294242143631,
0.24852675199508667,
0.4521145522594452,
-0.23041048645973206,
-0.15187305212020874,
0.061670415103435516,
0.5299968719482422,
0.36668670177459717,
-0.13157647848129272,
-0.13184882700443268,
-0.004167362116277218,
-0.2918213903903961,
0.0320725180208683,
0.398659884929657,
0.2485453188419342,
0.12701767683029175,
-0.1801847219467163,
-0.10870575904846191,
-0.3199879229068756,
-0.3875412940979004,
-0.01801827922463417,
-0.09424231201410294,
-0.10322877019643784,
0.07345358282327652,
-0.06816732883453369,
0.08875934034585953,
0.21131399273872375,
-0.4619138240814209,
0.30382466316223145,
0.377991646528244,
0.10604724287986755,
0.04582115262746811,
-0.21797125041484833,
-0.40669143199920654,
-0.32081687450408936,
0.2544097900390625,
0.3007875680923462,
-0.20964588224887848,
-0.3157258629798889,
0.6650326251983643,
-0.16230055689811707,
-0.21462859213352203,
0.023116208612918854,
-0.07982353866100311,
-0.1886563003063202,
0.20493003726005554,
-0.3243946135044098,
0.2717301547527313,
0.11944057792425156,
-0.5196070671081543,
0.3327740728855133,
0.22355245053768158,
0.45686963200569153,
0.29481592774391174,
-0.008476635441184044,
0.17130997776985168,
0.019742852076888084,
-0.12699201703071594,
0.045113854110240936,
0.33078333735466003,
-0.0008959323167800903,
0.32831907272338867,
0.2983851432800293,
-0.5064972639083862,
0.36129340529441833,
-0.22676871716976166,
0.237677663564682,
0.10060190409421921,
-0.017506279051303864,
0.3284780979156494,
-0.2298385202884674,
0.0035500377416610718,
-0.34673672914505005,
0.14709751307964325,
0.4200778305530548,
-0.15439970791339874,
-0.07772929221391678,
-0.13057288527488708,
0.3563927710056305,
0.2603347599506378,
-0.3048219382762909,
0.004071187227964401,
0.2573171854019165,
-0.2401524782180786,
0.06442369520664215,
0.4713020920753479,
1.0378031730651855,
0.30313146114349365,
0.18855303525924683,
0.12191803753376007,
-0.35903477668762207,
0.6271584630012512,
-0.4413630962371826,
0.2939226031303406,
-0.4917210340499878,
-0.25976628065109253,
-0.0798555389046669,
-0.053247690200805664,
-0.3230321407318115,
0.4851151704788208,
-0.01338179036974907,
0.27995339035987854,
0.07956822216510773,
0.15331347286701202,
0.07628194987773895,
0.03819984197616577,
0.43927738070487976,
-0.13556119799613953,
0.1449454426765442,
0.015881530940532684,
-0.09430626034736633,
0.05065116658806801,
-0.21553343534469604,
-0.030917908996343613,
-0.05851714313030243,
0.14974576234817505,
-0.4512600302696228,
-0.0009580831974744797,
0.07393854856491089,
-0.1980789452791214,
0.25279492139816284,
0.25648385286331177,
0.2726524770259857,
0.31249943375587463,
0.45828258991241455,
-0.1184881329536438,
-0.10115684568881989,
-0.02884584292769432,
-0.3781507611274719,
-0.04519467428326607,
0.022876255214214325,
0.023968886584043503,
0.18928533792495728,
0.1026286706328392,
-0.05566110089421272,
-0.21882712841033936,
0.11235112696886063,
0.26708680391311646,
-0.3358883857727051,
-0.030405744910240173,
-0.02764938771724701,
-0.10194674879312515,
0.3579663038253784,
0.22160232067108154,
-0.015674835070967674,
-0.07147177308797836,
0.06776124238967896,
0.20440122485160828,
-0.39643794298171997,
-0.03683416545391083,
-0.13983380794525146,
0.0013344883918762207,
0.09315034747123718,
-0.05396144837141037,
0.25005394220352173,
-0.057375192642211914,
-0.0314921960234642,
0.16727960109710693,
-0.13086682558059692,
-0.13194246590137482,
0.00782545655965805,
0.3666979670524597,
-0.4888993501663208,
0.011682133190333843,
0.17349357903003693,
0.056234508752822876,
0.14636178314685822,
0.5145271420478821,
0.1278764009475708,
0.20627138018608093,
0.02741047367453575,
-0.280746191740036,
-0.11724263429641724,
0.3828389048576355,
-0.1685977280139923,
-0.033844735473394394,
-0.43503567576408386,
-0.44973224401474,
0.11957387626171112,
0.2847346365451813,
-0.2097821682691574,
-0.08335837721824646,
-0.21612387895584106,
0.233693927526474,
0.12750914692878723,
-0.03612321615219116,
0.06236489862203598,
0.37260711193084717,
-0.08863846212625504,
-0.060328513383865356,
0.007493201643228531,
-0.0603775717318058,
-0.23134860396385193,
0.16880960762500763,
0.26450806856155396,
0.21355247497558594,
-0.06094043701887131,
0.0440988689661026,
0.031655263155698776,
0.013330221176147461,
-0.07199028134346008,
-0.09964556992053986,
0.2574816346168518,
0.5117642283439636,
-0.1896258443593979,
0.46775978803634644,
-0.05134561285376549,
-0.05994066596031189,
0.2764768600463867,
0.5056187510490417,
0.44985848665237427,
-0.20504577457904816,
0.12724898755550385,
-0.04221469908952713,
-0.018022211268544197,
0.3335677683353424,
-0.10503846406936646,
-0.11606129258871078,
0.40811628103256226,
-0.21387548744678497,
0.06169207766652107,
-0.29449692368507385,
0.2523397207260132,
-0.05195934325456619,
0.09030629694461823,
-0.17367424070835114,
0.09293796867132187,
0.10154535621404648,
-0.20903384685516357,
-0.17550431191921234,
0.7825029492378235,
0.06047942489385605,
-0.040078360587358475,
0.10151821374893188,
0.2406180202960968,
0.1557169109582901,
0.05071154236793518,
-0.17258182168006897,
0.33012738823890686,
0.1372450292110443,
0.11137361824512482,
-0.10510092973709106,
-0.04635167494416237,
0.27190378308296204,
0.40978044271469116,
0.025590214878320694,
0.12060881406068802,
0.1058511734008789,
0.5922998785972595,
0.1977982074022293,
0.16488701105117798,
0.06664928048849106,
0.20302483439445496,
-0.06973496079444885,
-0.33846691250801086,
0.2676413357257843,
0.22469601035118103,
-0.04550208896398544,
-0.2587057054042816,
-0.5041489601135254,
0.16587285697460175,
-0.31361258029937744,
-0.11848689615726471,
-0.12743505835533142,
-0.10701622813940048,
-0.07399950921535492,
-0.6019306778907776,
-0.12226004898548126,
-0.24033328890800476,
0.0025611408054828644,
0.06185847148299217,
-0.33460450172424316,
0.22315552830696106,
-0.09027296304702759,
0.1559704840183258,
-0.13287459313869476,
-0.36673223972320557,
0.3920842409133911,
0.3054876923561096,
-0.007446017116308212,
0.0691748782992363,
0.08002111315727234,
0.02804327756166458,
0.013377286493778229,
0.4532525837421417,
0.14092937111854553,
0.267415314912796,
-0.048288267105817795,
-0.13040438294410706,
0.09244397282600403,
-0.06314481049776077,
0.13921062648296356,
0.14441925287246704,
0.13119299709796906,
-0.21763019263744354,
0.11929219961166382,
-0.04705768823623657,
0.06233072280883789,
0.17834074795246124,
0.17828451097011566,
0.1870179921388626,
0.21969197690486908,
-0.16628289222717285,
0.02440837025642395,
-0.28895869851112366,
0.058966778218746185,
0.193168044090271,
-0.10106906294822693,
0.031212687492370605,
0.516757607460022,
0.5962793231010437,
0.16361629962921143,
-0.0893290787935257,
0.057416848838329315,
0.12139958143234253,
0.32256412506103516,
0.5040456652641296,
-0.09578404575586319,
-0.5049680471420288,
-0.43854057788848877,
-0.22838017344474792,
0.1354016214609146,
-0.1539175659418106,
-0.15483637154102325,
0.049773626029491425,
0.03153816610574722,
0.14695340394973755,
-0.045476384460926056,
-0.2531869411468506,
0.10341840982437134,
0.17060984671115875,
0.4527876675128937,
-0.24799694120883942,
-0.2641299068927765,
0.1756778359413147,
0.14816290140151978,
-0.3362431526184082,
0.2616693675518036,
-0.21284006536006927,
-0.3010275959968567,
-0.07571224868297577,
0.1897960752248764,
0.0888681560754776,
-0.019040051847696304,
0.6010876893997192,
-0.045583710074424744,
0.32022446393966675,
0.24284130334854126,
-0.021292511373758316,
-0.2903785705566406,
-0.2750292122364044,
0.2024098038673401,
-0.07441277801990509,
0.44212526082992554,
-0.38460230827331543,
0.241886168718338,
0.03471031039953232,
0.06267920136451721,
-0.2775329351425171,
-0.2786612808704376,
0.027765102684497833,
-0.21431274712085724,
-0.3709549009799957,
0.2795896828174591,
-0.09794631600379944,
0.02873716875910759,
0.45051559805870056,
0.11070254445075989,
0.0913536325097084,
-0.12944555282592773,
-0.1693638116121292,
-0.2396496832370758,
0.21203690767288208,
-0.37559977173805237,
-0.05406705290079117,
-0.0467672199010849,
0.14199331402778625,
0.5354366898536682,
0.47856780886650085,
-0.31463590264320374,
-0.20530672371387482,
0.37741586565971375,
-0.11494379490613937,
-0.27096855640411377,
0.10972684621810913,
0.2885725200176239,
-0.17287752032279968,
-0.06768904626369476,
-0.47643837332725525,
0.20645475387573242,
-0.1344134360551834,
-0.23892639577388763,
-0.30019962787628174
] |
https://github.com/huggingface/datasets/issues/2708 | QASC: incomplete training set | Hi @danyaljj, thanks for reporting.
Unfortunately, I have not been able to reproduce your problem. My train split has 8134 examples:
```ipython
In [10]: ds["train"]
Out[10]:
Dataset({
features: ['id', 'question', 'choices', 'answerKey', 'fact1', 'fact2', 'combinedfact', 'formatted_question'],
num_rows: 8134
})
In [11]: ds["train"].shape
Out[11]: (8134, 8)
```
and the content of the last 5 examples is:
```ipython
In [12]: for i in range(8129, 8134):
...: print(json.dumps(ds["train"][i]))
...:
{"id": "3KAKFY4PGU1LGXM77JAK2700NGCI3X", "question": "Chitin can be used for protection by whom?", "choices": {"text": ["Fungi", "People", "Man", "Fish", "trees", "Dogs", "animal", "Birds"], "label": ["A", "B",
"C", "D", "E", "F", "G", "H"]}, "answerKey": "D", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish scales are also composed of chitin.", "combinedfact": "Chitin can be used for prote
ction by fish.", "formatted_question": "Chitin can be used for protection by whom? (A) Fungi (B) People (C) Man (D) Fish (E) trees (F) Dogs (G) animal (H) Birds"}
{"id": "336YQZE83VDAQVZ26HW59X51JZ9M5M", "question": "Which type of animal uses plates for protection?", "choices": {"text": ["squids", "reptiles", "sea urchins", "fish", "amphibians", "Frogs", "mammals", "salm
on"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "B", "fact1": "scales are used for protection by scaled animals", "fact2": "Reptiles have scales or plates.", "combinedfact": "Reptiles use
their plates for protection.", "formatted_question": "Which type of animal uses plates for protection? (A) squids (B) reptiles (C) sea urchins (D) fish (E) amphibians (F) Frogs (G) mammals (H) salmon"}
{"id": "3WZ36BJEV3FGS66VGOOUYX0LN8GTBU", "question": "What are used for protection by fish?", "choices": {"text": ["scales", "fins", "streams.", "coral", "gills", "Collagen", "mussels", "whiskers"], "label": ["
A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "A", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are backboned aquatic animals.", "combinedfact": "scales are used for prote
ction by fish ", "formatted_question": "What are used for protection by fish? (A) scales (B) fins (C) streams. (D) coral (E) gills (F) Collagen (G) mussels (H) whiskers"}
{"id": "3Z2R0DQ0JHDKFAO2706OYIXGNA4E28", "question": "What are pangolins covered in?", "choices": {"text": ["tunicates", "Echinoids", "shells", "exoskeleton", "blastoids", "barrel-shaped", "protection", "white"
], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "G", "fact1": "scales are used for protection by scaled animals", "fact2": "Pangolins have an elongate and tapering body covered above with ov
erlapping scales.", "combinedfact": "Pangolins are covered in overlapping protection.", "formatted_question": "What are pangolins covered in? (A) tunicates (B) Echinoids (C) shells (D) exoskeleton (E) blastoids
(F) barrel-shaped (G) protection (H) white"}
{"id": "3PMBY0YE272GIWPNWIF8IH5RBHVC9S", "question": "What are covered with protection?", "choices": {"text": ["apples", "trees", "coral", "clams", "roses", "wings", "hats", "fish"], "label": ["A", "B", "C", "D
", "E", "F", "G", "H"]}, "answerKey": "H", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are covered with scales.", "combinedfact": "Fish are covered with protection", "formatted_q
uestion": "What are covered with protection? (A) apples (B) trees (C) coral (D) clams (E) roses (F) wings (G) hats (H) fish"}
```
Could you please load again your dataset and print its shape, like this:
```python
ds = load_dataset("qasc", split="train)
print(ds.shape)
```
and confirm which is your output? | ## Describe the bug
The training instances are not loaded properly.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("qasc", script_version='1.10.2')
def load_instances(split):
instances = dataset[split]
print(f"split: {split} - size: {len(instances)}")
for x in instances:
print(json.dumps(x))
load_instances('test')
load_instances('validation')
load_instances('train')
```
## results
For test and validation, we can see the examples in the output (which is good!):
```
split: test - size: 920
{"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Anthax", "under water", "uterus", "wombs", "two", "moles", "live", "embryo"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What type of birth do therian mammals have? (A) Anthax (B) under water (C) uterus (D) wombs (E) two (F) moles (G) live (H) embryo", "id": "3C44YUNSI1OBFBB8D36GODNOZN9DPA", "question": "What type of birth do therian mammals have?"}
{"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Corvidae", "arthropods", "birds", "backbones", "keratin", "Jurassic", "front paws", "Parakeets."]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "By what time had mouse-sized viviparous mammals evolved? (A) Corvidae (B) arthropods (C) birds (D) backbones (E) keratin (F) Jurassic (G) front paws (H) Parakeets.", "id": "3B1NLC6UGZVERVLZFT7OUYQLD1SGPZ", "question": "By what time had mouse-sized viviparous mammals evolved?"}
{"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Reduced friction", "causes infection", "vital to a good life", "prevents water loss", "camouflage from consumers", "Protection against predators", "spur the growth of the plant", "a smooth surface"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What does a plant's skin do? (A) Reduced friction (B) causes infection (C) vital to a good life (D) prevents water loss (E) camouflage from consumers (F) Protection against predators (G) spur the growth of the plant (H) a smooth surface", "id": "3QRYMNZ7FYGITFVSJET3PS0F4S0NT9", "question": "What does a plant's skin do?"}
...
```
However, only a few instances are loaded for the training split, which is not correct.
## Environment info
- `datasets` version: '1.10.2'
- Platform: MaxOS
- Python version:3.7
- PyArrow version: 3.0.0
| 496 | QASC: incomplete training set
## Describe the bug
The training instances are not loaded properly.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("qasc", script_version='1.10.2')
def load_instances(split):
instances = dataset[split]
print(f"split: {split} - size: {len(instances)}")
for x in instances:
print(json.dumps(x))
load_instances('test')
load_instances('validation')
load_instances('train')
```
## results
For test and validation, we can see the examples in the output (which is good!):
```
split: test - size: 920
{"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Anthax", "under water", "uterus", "wombs", "two", "moles", "live", "embryo"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What type of birth do therian mammals have? (A) Anthax (B) under water (C) uterus (D) wombs (E) two (F) moles (G) live (H) embryo", "id": "3C44YUNSI1OBFBB8D36GODNOZN9DPA", "question": "What type of birth do therian mammals have?"}
{"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Corvidae", "arthropods", "birds", "backbones", "keratin", "Jurassic", "front paws", "Parakeets."]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "By what time had mouse-sized viviparous mammals evolved? (A) Corvidae (B) arthropods (C) birds (D) backbones (E) keratin (F) Jurassic (G) front paws (H) Parakeets.", "id": "3B1NLC6UGZVERVLZFT7OUYQLD1SGPZ", "question": "By what time had mouse-sized viviparous mammals evolved?"}
{"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Reduced friction", "causes infection", "vital to a good life", "prevents water loss", "camouflage from consumers", "Protection against predators", "spur the growth of the plant", "a smooth surface"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What does a plant's skin do? (A) Reduced friction (B) causes infection (C) vital to a good life (D) prevents water loss (E) camouflage from consumers (F) Protection against predators (G) spur the growth of the plant (H) a smooth surface", "id": "3QRYMNZ7FYGITFVSJET3PS0F4S0NT9", "question": "What does a plant's skin do?"}
...
```
However, only a few instances are loaded for the training split, which is not correct.
## Environment info
- `datasets` version: '1.10.2'
- Platform: MaxOS
- Python version:3.7
- PyArrow version: 3.0.0
Hi @danyaljj, thanks for reporting.
Unfortunately, I have not been able to reproduce your problem. My train split has 8134 examples:
```ipython
In [10]: ds["train"]
Out[10]:
Dataset({
features: ['id', 'question', 'choices', 'answerKey', 'fact1', 'fact2', 'combinedfact', 'formatted_question'],
num_rows: 8134
})
In [11]: ds["train"].shape
Out[11]: (8134, 8)
```
and the content of the last 5 examples is:
```ipython
In [12]: for i in range(8129, 8134):
...: print(json.dumps(ds["train"][i]))
...:
{"id": "3KAKFY4PGU1LGXM77JAK2700NGCI3X", "question": "Chitin can be used for protection by whom?", "choices": {"text": ["Fungi", "People", "Man", "Fish", "trees", "Dogs", "animal", "Birds"], "label": ["A", "B",
"C", "D", "E", "F", "G", "H"]}, "answerKey": "D", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish scales are also composed of chitin.", "combinedfact": "Chitin can be used for prote
ction by fish.", "formatted_question": "Chitin can be used for protection by whom? (A) Fungi (B) People (C) Man (D) Fish (E) trees (F) Dogs (G) animal (H) Birds"}
{"id": "336YQZE83VDAQVZ26HW59X51JZ9M5M", "question": "Which type of animal uses plates for protection?", "choices": {"text": ["squids", "reptiles", "sea urchins", "fish", "amphibians", "Frogs", "mammals", "salm
on"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "B", "fact1": "scales are used for protection by scaled animals", "fact2": "Reptiles have scales or plates.", "combinedfact": "Reptiles use
their plates for protection.", "formatted_question": "Which type of animal uses plates for protection? (A) squids (B) reptiles (C) sea urchins (D) fish (E) amphibians (F) Frogs (G) mammals (H) salmon"}
{"id": "3WZ36BJEV3FGS66VGOOUYX0LN8GTBU", "question": "What are used for protection by fish?", "choices": {"text": ["scales", "fins", "streams.", "coral", "gills", "Collagen", "mussels", "whiskers"], "label": ["
A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "A", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are backboned aquatic animals.", "combinedfact": "scales are used for prote
ction by fish ", "formatted_question": "What are used for protection by fish? (A) scales (B) fins (C) streams. (D) coral (E) gills (F) Collagen (G) mussels (H) whiskers"}
{"id": "3Z2R0DQ0JHDKFAO2706OYIXGNA4E28", "question": "What are pangolins covered in?", "choices": {"text": ["tunicates", "Echinoids", "shells", "exoskeleton", "blastoids", "barrel-shaped", "protection", "white"
], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "G", "fact1": "scales are used for protection by scaled animals", "fact2": "Pangolins have an elongate and tapering body covered above with ov
erlapping scales.", "combinedfact": "Pangolins are covered in overlapping protection.", "formatted_question": "What are pangolins covered in? (A) tunicates (B) Echinoids (C) shells (D) exoskeleton (E) blastoids
(F) barrel-shaped (G) protection (H) white"}
{"id": "3PMBY0YE272GIWPNWIF8IH5RBHVC9S", "question": "What are covered with protection?", "choices": {"text": ["apples", "trees", "coral", "clams", "roses", "wings", "hats", "fish"], "label": ["A", "B", "C", "D
", "E", "F", "G", "H"]}, "answerKey": "H", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are covered with scales.", "combinedfact": "Fish are covered with protection", "formatted_q
uestion": "What are covered with protection? (A) apples (B) trees (C) coral (D) clams (E) roses (F) wings (G) hats (H) fish"}
```
Could you please load again your dataset and print its shape, like this:
```python
ds = load_dataset("qasc", split="train)
print(ds.shape)
```
and confirm which is your output? | [
-0.24501818418502808,
-0.3615005612373352,
-0.16716867685317993,
0.3723610043525696,
0.12369561940431595,
0.14514625072479248,
0.01643914356827736,
0.43802058696746826,
-0.12132073938846588,
0.09349366277456284,
0.16326017677783966,
0.12497171759605408,
0.04304622486233711,
0.24713630974292755,
-0.09437542408704758,
-0.16472667455673218,
-0.006986498832702637,
0.2966332733631134,
-0.23057591915130615,
-0.07449205219745636,
-0.24184870719909668,
0.3023808002471924,
-0.25007009506225586,
-0.07362444698810577,
-0.1649782806634903,
-0.28729361295700073,
-0.04917550086975098,
0.013311292976140976,
0.0458688959479332,
-0.3200641870498657,
-0.048026345670223236,
-0.32475730776786804,
-0.10144554823637009,
0.4697219133377075,
-0.0001062213268596679,
0.07821312546730042,
0.1270972490310669,
-0.14088590443134308,
-0.33008459210395813,
0.10743055492639542,
-0.29337531328201294,
-0.17282818257808685,
0.03268078714609146,
-0.09739089757204056,
-0.2557198703289032,
-0.27290722727775574,
-0.04965332895517349,
-0.08545031398534775,
0.5871787667274475,
0.28984975814819336,
0.25290682911872864,
0.36333250999450684,
0.033648040145635605,
-0.08324999362230301,
-0.22133463621139526,
-0.5049698948860168,
-0.04054076969623566,
0.03281443938612938,
0.226451575756073,
0.045711807906627655,
0.24681809544563293,
0.23078911006450653,
0.27607494592666626,
-0.10078461468219757,
0.14792534708976746,
-0.21711750328540802,
0.11462073773145676,
-0.19621537625789642,
0.026363015174865723,
0.19727548956871033,
0.37196892499923706,
0.1936609148979187,
-0.362187922000885,
-0.15385690331459045,
-0.031955502927303314,
-0.4144752025604248,
-0.03721609711647034,
0.2690790295600891,
-0.06167750060558319,
0.2073267549276352,
-0.18613331019878387,
0.23456312716007233,
-0.19978831708431244,
0.1442641317844391,
-0.14621135592460632,
0.22440800070762634,
-0.06546995788812637,
-0.09541485458612442,
-0.24957914650440216,
0.18124566972255707,
-0.07055852562189102,
0.1260930895805359,
-0.008440632373094559,
0.1862765997648239,
-0.5876227021217346,
-0.15183091163635254,
0.17353034019470215,
-0.21874696016311646,
0.053667545318603516,
-0.027697019279003143,
0.47179439663887024,
-0.1412028670310974,
0.07026393711566925,
0.09774018824100494,
0.27454742789268494,
0.510951042175293,
0.20128431916236877,
0.10085728764533997,
-0.14834164083003998,
0.22572503983974457,
-0.1809089481830597,
0.11723130196332932,
-0.11040054261684418,
-0.12200337648391724,
0.10848405957221985,
0.23920652270317078,
-0.18323065340518951,
-0.16618883609771729,
-0.4356071650981903,
0.466990202665329,
-0.45179057121276855,
0.1110791489481926,
-0.20339567959308624,
0.323964387178421,
-0.234174445271492,
0.2661924958229065,
0.09681965410709381,
0.24211354553699493,
-0.4497469365596771,
-0.17268894612789154,
-0.30696359276771545,
-0.0053718201816082,
-0.15202414989471436,
-0.1448994129896164,
0.06679610908031464,
-0.01988770067691803,
0.6864047050476074,
-0.19058440625667572,
0.24069738388061523,
-0.14949792623519897,
0.11669190227985382,
-0.16772392392158508,
-0.15737813711166382,
0.21686163544654846,
0.0933343917131424,
-0.1515268236398697,
0.09868443012237549,
0.12735849618911743,
0.07355371862649918,
-0.012329638004302979,
-0.19337794184684753,
-0.07780466228723526,
0.07314908504486084,
0.3307124972343445,
0.06733304262161255,
0.14819450676441193,
-0.08008994907140732,
0.3283025324344635,
0.31319108605384827,
0.20750480890274048,
-0.16546696424484253,
-0.12911242246627808,
-0.06724986433982849,
-0.06642185896635056,
0.22847342491149902,
0.10686805844306946,
-0.3879639208316803,
-0.28312796354293823,
0.21119007468223572,
0.15231402218341827,
-0.12773042917251587,
0.16637933254241943,
-0.06378420442342758,
0.44638434052467346,
-0.05747614800930023,
0.12282456457614899,
-0.16067132353782654,
-0.02783610112965107,
-0.07585090398788452,
-0.08085640519857407,
-0.03595645725727081,
0.06373881548643112,
0.07715383917093277,
-0.37818166613578796,
0.3808515667915344,
0.1721242368221283,
0.25330817699432373,
0.28783297538757324,
-0.04543640464544296,
-0.05310138314962387,
-0.36928147077560425,
-0.33304956555366516,
-0.13223013281822205,
0.030395302921533585,
0.13761068880558014,
-0.0659366026520729,
-0.019651658833026886,
-0.21230824291706085,
0.4386972486972809,
0.07534371316432953,
-0.12689483165740967,
0.24750728905200958,
0.2016564905643463,
-0.17555323243141174,
0.1349402666091919,
-0.08826404809951782,
-0.46486788988113403,
0.38561609387397766,
-0.21369893848896027,
0.1805247813463211,
0.14558462798595428,
0.07521550357341766,
-0.5313088297843933,
-0.035460665822029114,
-0.0576033778488636,
-0.3980095684528351,
0.20891840755939484,
-0.048274025321006775,
0.15215782821178436,
-0.041621871292591095,
-0.11929871141910553,
0.0717150941491127,
-0.20159761607646942,
-0.00515141524374485,
-0.24554015696048737,
0.2948983907699585,
-0.10221893340349197,
-0.03381586819887161,
0.2529667019844055,
0.17136546969413757,
0.08386866003274918,
-0.2252238243818283,
-0.05354296416044235,
0.32463595271110535,
0.1384626030921936,
-0.09934002161026001,
-0.17156293988227844,
-0.12261374294757843,
0.11806334555149078,
-0.13192327320575714,
-0.20201075077056885,
0.20575353503227234,
0.11587457358837128,
-0.023305412381887436,
-0.1940404176712036,
0.39195382595062256,
0.17039801180362701,
0.2448914647102356,
0.23195473849773407,
0.052922360599040985,
0.14485932886600494,
-0.0916806235909462,
0.09757355600595474,
-0.06388531625270844,
0.1896001696586609,
-0.04972818121314049,
-0.08440710604190826,
-0.08688639849424362,
-0.2769930362701416,
0.12966762483119965,
0.1336870640516281,
0.03488852456212044,
-0.07926284521818161,
-0.16267076134681702,
-0.15375086665153503,
0.16446903347969055,
0.15907013416290283,
0.11744587123394012,
0.1510910987854004,
0.30799856781959534,
-0.2536085844039917,
-0.19983479380607605,
0.035686373710632324,
0.0004938896745443344,
0.16264919936656952,
0.04262413829565048,
0.24649447202682495,
0.28478580713272095,
0.19369514286518097,
-0.09436897933483124,
-0.10659638792276382,
0.12310546636581421,
0.18458369374275208,
0.21532076597213745,
-0.37300536036491394,
0.1432095617055893,
-0.10245362669229507,
0.2950366139411926,
-0.12795302271842957,
0.23551613092422485,
0.15933464467525482,
-0.2550414800643921,
0.22766529023647308,
0.03674865514039993,
-0.05300880968570709,
0.26497504115104675,
-0.25477418303489685,
0.2745155692100525,
0.1846228390932083,
-0.15319736301898956,
0.1978166699409485,
0.1969081312417984,
-0.312193900346756,
0.2985316812992096,
-0.08765894174575806,
0.12445177137851715,
0.2559632956981659,
-0.07411043345928192,
-0.29835397005081177,
0.19359542429447174,
-0.23935702443122864,
0.17809461057186127,
-0.1836474984884262,
0.48361432552337646,
-0.14166489243507385,
0.19091850519180298,
-0.3466755151748657,
-0.3810739815235138,
0.194875106215477,
-0.058126918971538544,
-0.25776755809783936,
0.1504846215248108,
0.041065849363803864,
-0.2013731449842453,
-0.15939705073833466,
-0.7575305104255676,
0.035438451915979385,
-0.1635408103466034,
0.19720520079135895,
0.15635789930820465,
0.27698469161987305,
0.030858401209115982,
0.26685631275177,
-0.03541667386889458,
-0.12603548169136047,
-0.16512897610664368,
-0.17090915143489838,
-0.19464239478111267,
0.32051315903663635,
-0.15303830802440643,
-0.3015632629394531,
-0.14507131278514862,
-0.13938692212104797,
0.5834783911705017,
-0.03466767445206642,
-0.378031849861145,
-0.22077496349811554,
-0.009999850764870644,
0.10903552174568176,
-0.04120458662509918,
-0.18902075290679932,
0.35724884271621704,
-0.09905218333005905,
-0.20293983817100525,
-0.09182053804397583,
-0.07755450159311295,
0.308878630399704,
0.1910596489906311,
0.2585725784301758,
-0.40904760360717773,
0.28545212745666504,
-0.008006636053323746,
1.058462381362915,
0.37234243750572205,
0.07478473335504532,
0.040125973522663116,
-0.004404434934258461,
-0.1289394646883011,
-0.19658973813056946,
-0.1487228125333786,
0.1607522815465927,
-0.059310927987098694,
-0.2840839624404907,
0.2656477689743042,
0.13444417715072632,
-0.01971808262169361,
-0.1355738639831543,
0.2519265413284302,
-0.6226943135261536,
-0.14675496518611908,
-0.044139280915260315,
-0.06796186417341232,
0.5081369280815125,
0.02614424377679825,
0.257525771856308,
0.18022020161151886,
0.09821067005395889,
0.018910512328147888,
-0.02215837687253952,
0.1799113005399704,
-0.04808169975876808,
-0.3849965035915375,
-0.0720151737332344,
-0.06307343393564224,
0.19185855984687805,
-0.13689087331295013,
0.28505390882492065,
-0.033641062676906586,
-0.0315195769071579,
-0.01550232619047165,
0.019306369125843048,
0.4916499853134155,
0.10303489863872528,
0.07596337795257568,
0.21372759342193604,
0.09836098551750183,
-0.08789962530136108,
-0.15574762225151062,
-0.12499906122684479,
-0.3020194172859192,
-0.10051921010017395,
0.3204062283039093,
-0.3774963617324829,
0.030184093862771988,
-0.050086431205272675,
0.02130807936191559,
-0.3617132008075714,
0.015999723225831985,
-0.36471399664878845,
0.02364521473646164,
-0.11307728290557861,
0.173613041639328,
0.2534515857696533,
0.23927341401576996,
-0.0875733271241188,
-0.08668432384729385,
0.03843469172716141,
-0.3197672665119171,
0.22974032163619995,
0.30852121114730835,
0.38501226902008057,
0.07585376501083374,
0.5038482546806335,
0.10594791918992996,
-0.26027050614356995,
0.23495501279830933,
0.5228105187416077,
-0.14997568726539612,
-0.30383509397506714,
0.11173082143068314,
-0.17185597121715546,
0.4033384621143341,
0.24303606152534485,
-0.19719216227531433,
0.0012437626719474792,
-0.07558263093233109,
0.24124640226364136,
0.21512943506240845,
0.08252006024122238,
0.07904691249132156,
-0.023911025375127792,
0.20277006924152374,
-0.3584730923175812,
0.056004270911216736,
-0.16657766699790955,
-0.032250117510557175,
-0.08164291083812714,
0.1298966407775879,
-0.1747608631849289,
0.3338707685470581,
0.11272673308849335,
0.6330318450927734,
0.13059383630752563,
-0.03830336406826973,
0.4832281470298767,
0.04900947958230972,
0.12288255989551544,
-0.3597961664199829,
0.2030261754989624,
-0.21738353371620178,
-0.11080850660800934,
0.08873874694108963,
-0.06483016163110733,
0.18832112848758698,
0.32872748374938965,
-0.14395007491111755,
0.4234223961830139,
-0.44848233461380005,
-0.0406922809779644,
0.07384324073791504,
-0.05108862370252609,
0.031465232372283936,
-0.025164484977722168,
-0.2900230884552002,
0.23594391345977783,
-0.001587461680173874,
-0.04060879722237587,
-0.1033926010131836,
-0.07316337525844574,
-0.12275676429271698,
-0.1274029016494751,
-0.009229131042957306,
0.2474856674671173,
-0.3118840157985687,
-0.10061167925596237,
0.3116767406463623,
-0.16100355982780457,
0.07622502744197845,
0.3196714222431183,
-0.12019768357276917,
0.27096736431121826,
-0.09747084230184555,
0.24680368602275848,
-0.04635564237833023,
0.057972174137830734,
0.004804526921361685,
-0.09126721322536469,
0.4631344974040985,
-0.1395934671163559,
-0.0712311714887619,
0.4149790406227112,
-0.2818176746368408,
0.01761142909526825,
0.05109196901321411,
0.0648634284734726,
0.008035574108362198,
-0.35855814814567566,
-0.11048108339309692,
0.13763642311096191,
0.002934444695711136,
-0.33818718791007996,
0.2300058752298355,
0.05722832307219505,
-0.18927466869354248,
0.167087584733963,
0.08654479682445526,
-0.14631204307079315,
0.0427083820104599,
0.13614925742149353,
0.357046902179718,
-0.13059647381305695,
0.7882822751998901,
0.152877077460289,
-0.03984731063246727,
-0.3938729763031006,
-0.07261848449707031,
0.29451784491539,
-0.4357192814350128,
0.30196478962898254,
-0.013656633906066418,
-0.02465241402387619,
-0.05216120555996895,
0.4134022891521454,
0.18873465061187744,
0.03993622213602066,
0.21849296987056732,
-0.4894671142101288,
-0.19310998916625977,
0.23990510404109955,
-0.014509744942188263,
0.030234800651669502,
-0.1322636902332306,
0.290312260389328,
-0.12786754965782166,
0.20974647998809814,
-0.42142897844314575,
-0.14337365329265594,
-0.39858949184417725,
0.1878070831298828,
-0.5181500911712646,
-0.14573681354522705,
0.22721804678440094,
-0.10953837633132935,
0.24738553166389465,
0.03755567595362663,
-0.2567579448223114,
-0.3200959861278534,
-0.286135196685791,
0.061764851212501526,
0.1927330195903778,
0.11274062097072601,
0.28893953561782837,
0.04166898876428604,
-0.283442884683609,
0.017824552953243256,
0.10131730139255524,
-0.19480231404304504,
0.04676731675863266,
0.08719675987958908,
0.38642629981040955,
0.021977920085191727,
-0.1919877529144287,
-0.13588842749595642,
-0.08825583755970001,
0.09046057611703873,
0.060168128460645676,
-0.2023029923439026,
0.05235040560364723,
-0.012818440794944763,
-0.15071135759353638,
0.22151929140090942,
-0.12311778962612152,
0.27379515767097473,
0.2905270755290985,
-0.1926756650209427,
-0.018426500260829926,
-0.11681218445301056,
0.16187681257724762,
0.16859111189842224,
-0.1445004791021347,
0.13150151073932648,
0.013579250313341618,
0.35283133387565613,
-0.38441190123558044,
0.0049672615714371204,
-0.3526672124862671,
-0.018404461443424225,
0.08932147920131683,
0.1673433631658554,
0.04376876726746559,
-0.35472536087036133,
-0.08603262901306152,
0.2811054289340973,
-0.2622296214103699,
-0.10819937288761139,
0.2802659273147583,
0.5731698870658875,
0.027564924210309982,
-0.00029213353991508484,
0.1819286197423935,
-0.38978904485702515,
-0.05266415327787399,
-0.09915968775749207,
0.0734335333108902,
0.13528841733932495,
0.22908583283424377,
0.02008461207151413,
-0.06619007140398026,
-0.17423176765441895,
0.011692501604557037,
0.04695800691843033,
-0.08975778520107269,
0.3786463439464569,
-0.013822533190250397,
0.2987895905971527,
-0.06386503577232361,
-0.14970281720161438,
-0.3668246269226074,
-0.16805317997932434,
-0.0015943199396133423,
0.06458891928195953,
0.008598417043685913,
-0.1513916254043579,
-0.166392982006073,
-0.0818333625793457,
0.07922067493200302,
-0.32834213972091675,
0.15425552427768707,
-0.12845595180988312,
-0.44175291061401367,
-0.23238497972488403,
-0.38803109526634216,
0.48574501276016235,
0.25828471779823303,
-0.27954843640327454,
0.28432169556617737,
0.1506461650133133,
-0.18257483839988708,
-0.11769081652164459,
0.4338414967060089,
0.1280679553747177,
0.08454227447509766,
-0.04630749300122261,
-0.08711693435907364,
0.08225703239440918,
-0.10404372215270996,
0.1117977499961853,
0.282286137342453,
0.16424806416034698,
-0.07677625119686127,
0.2574383318424225,
0.17530013620853424,
-0.27625077962875366,
0.17334668338298798,
0.08105354011058807,
0.23269912600517273,
-0.2533418536186218,
0.1304883360862732,
-0.11444900929927826,
-0.044753242284059525,
-0.055324018001556396,
0.18831607699394226,
-0.40113505721092224,
0.0053415303118526936,
0.11087293922901154,
0.11024194210767746,
0.12415517121553421,
-0.08430610597133636,
0.12751390039920807,
-0.304999440908432,
0.5124529004096985,
0.010311871767044067,
0.022915497422218323,
-0.4916667342185974,
-0.06471637636423111,
-0.2829297184944153,
-0.050129108130931854,
-0.2130352258682251,
0.21043696999549866,
0.034697093069553375,
0.20908287167549133,
0.126204252243042,
0.10176967084407806,
-0.01411709189414978,
0.025087689980864525,
-0.2571706771850586,
0.3189041316509247,
-0.7061988711357117,
-0.13506819307804108,
-0.20198319852352142,
0.3497313857078552,
0.16052713990211487,
-0.3106667995452881,
0.015564840286970139,
-0.12397593259811401,
0.1142854318022728,
0.19485165178775787,
-0.16094504296779633,
0.31587353348731995,
-0.08579668402671814,
0.21465064585208893,
0.12741917371749878,
0.14347538352012634,
-0.07196864485740662,
-0.16336886584758759,
-0.1401194930076599,
-0.3524002432823181,
-0.25267985463142395,
0.22536122798919678,
0.26888373494148254,
0.4694867730140686,
0.10293508321046829,
-0.1061381995677948,
0.033746056258678436,
0.044514916837215424,
0.2115575522184372,
-0.48957180976867676,
-0.3758787512779236,
0.23327285051345825,
0.01272030919790268,
0.22322866320610046,
0.11946558952331543,
0.26363110542297363,
-0.1482476443052292,
-0.24762898683547974,
-0.3535001277923584,
-0.434756875038147,
0.43083521723747253,
-0.07013341784477234,
-0.0934196263551712,
-0.14455246925354004,
0.21891455352306366,
0.015860069543123245,
-0.06313683092594147,
-0.6744803190231323,
-0.06597793102264404,
0.4094994068145752,
-0.11327271908521652,
-0.258516788482666,
0.18066923320293427,
0.12449517846107483,
-0.12710441648960114,
-0.05643163248896599,
0.2745739817619324,
0.02782716229557991,
-0.23108278214931488,
0.08180901408195496,
-0.09666555374860764
] |
https://github.com/huggingface/datasets/issues/2707 | 404 Not Found Error when loading LAMA dataset | Hi @dwil2444! I was able to reproduce your error when I downgraded to v1.1.2. Updating to the latest version of Datasets fixed the error for me :) | The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download:
Steps to Reproduce:
1. `from datasets import load_dataset`
2. `dataset = load_dataset('lama', 'trex')`.
Results:
`FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` | 27 | 404 Not Found Error when loading LAMA dataset
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download:
Steps to Reproduce:
1. `from datasets import load_dataset`
2. `dataset = load_dataset('lama', 'trex')`.
Results:
`FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
Hi @dwil2444! I was able to reproduce your error when I downgraded to v1.1.2. Updating to the latest version of Datasets fixed the error for me :) | [
0.027576211839914322,
-0.17989498376846313,
-0.04161740094423294,
0.5950441956520081,
0.4188714623451233,
0.12768834829330444,
-0.10213330388069153,
0.40457576513290405,
-0.42221447825431824,
0.2916167676448822,
-0.31222131848335266,
0.16415256261825562,
-0.15944592654705048,
-0.24671973288059235,
0.008444897830486298,
-0.38672828674316406,
-0.10027260333299637,
-0.023484423756599426,
-0.2141505777835846,
0.1703375279903412,
-0.05522758513689041,
0.35647639632225037,
-0.14585751295089722,
0.19389812648296356,
0.04134819656610489,
0.1218295618891716,
-0.15613962709903717,
0.32318270206451416,
-0.21325738728046417,
-0.31375205516815186,
0.3761623799800873,
-0.19663801789283752,
0.26369479298591614,
0.7459002137184143,
-0.00011316101881675422,
0.17093372344970703,
0.2560487389564514,
-0.15245740115642548,
-0.22756710648536682,
-0.3300166130065918,
-0.20319250226020813,
0.02083774469792843,
0.02605983428657055,
0.06207785755395889,
-0.32797858119010925,
-0.054119329899549484,
0.029656976461410522,
-0.10687048733234406,
0.07269826531410217,
0.24270308017730713,
0.22229202091693878,
0.5647497177124023,
0.1862715631723404,
-0.3274773359298706,
0.15546733140945435,
-0.18181286752223969,
-0.14007803797721863,
0.6799881458282471,
0.1498619168996811,
0.4447283148765564,
0.11700417101383209,
0.47278904914855957,
0.008193714544177055,
-0.02073507383465767,
0.21938365697860718,
-0.1606038361787796,
0.326507568359375,
-0.3726654648780823,
0.2364118993282318,
0.31053468585014343,
0.39843985438346863,
-0.1125398650765419,
-0.3003062903881073,
-0.18801620602607727,
0.06316548585891724,
-0.12065553665161133,
0.28559958934783936,
0.17267808318138123,
-0.25153666734695435,
0.23724861443042755,
0.06468425691127777,
-0.3774136006832123,
-0.03092486783862114,
0.23972153663635254,
-0.0525427982211113,
-0.3283063769340515,
-0.19415518641471863,
-0.04403308779001236,
-0.0428910069167614,
-0.11775532364845276,
-0.12237375229597092,
-0.10222421586513519,
-0.060499157756567,
0.4073461890220642,
-0.180119127035141,
-0.02228362485766411,
0.13104218244552612,
0.16329142451286316,
0.09161075204610825,
0.2455804944038391,
-0.06008706986904144,
0.10735038667917252,
-0.42935606837272644,
0.10836191475391388,
0.2306107133626938,
0.01939290761947632,
0.03872079402208328,
0.006426270119845867,
0.1022537499666214,
0.5596540570259094,
0.15376342833042145,
-0.06698731333017349,
-0.34945303201675415,
-0.3994399905204773,
-0.4301459789276123,
0.045364297926425934,
0.3619139790534973,
-0.27459365129470825,
-0.19267719984054565,
-0.22559985518455505,
-0.1761285364627838,
-0.11796463280916214,
0.3284711241722107,
0.481830358505249,
-0.013562030158936977,
0.15182197093963623,
-0.22316697239875793,
0.10770697891712189,
-0.08430848270654678,
-0.14565864205360413,
-0.24824529886245728,
0.07948356866836548,
-0.23873475193977356,
0.17901627719402313,
0.1133856475353241,
-0.689028799533844,
0.3001265525817871,
-0.3057088553905487,
-0.11379532516002655,
0.008293431252241135,
0.036354854702949524,
-0.07377755641937256,
-0.11099008470773697,
0.2830492854118347,
0.01269884780049324,
-0.024833694100379944,
-0.0502682588994503,
-0.12376323342323303,
-0.13512007892131805,
0.012352686375379562,
-0.2292303740978241,
-0.27759554982185364,
-0.013929145410656929,
0.12852559983730316,
-0.016809986904263496,
0.20330536365509033,
0.11596241593360901,
0.16870000958442688,
-0.2712261378765106,
-0.1288265883922577,
-0.0279897078871727,
0.13941749930381775,
-0.08796803653240204,
-0.16762834787368774,
0.42587411403656006,
0.5617586970329285,
-0.187883198261261,
-0.011663433164358139,
-0.06527315080165863,
-0.4448719322681427,
0.02188781648874283,
0.26677054166793823,
-0.1007741317152977,
0.27995041012763977,
-0.5007410049438477,
0.07614456117153168,
0.3697856366634369,
-0.3822961747646332,
-0.2424638271331787,
-0.017970630899071693,
-0.14580678939819336,
-0.03623995557427406,
0.04559772089123726,
-0.19905641674995422,
-0.07116077095270157,
-0.11173910647630692,
0.43045204877853394,
-0.03965491056442261,
0.10824070870876312,
-0.2827381491661072,
-0.15614712238311768,
-0.17059260606765747,
-0.04027320444583893,
0.028207365423440933,
0.08693507313728333,
0.06497400254011154,
0.18903249502182007,
-0.16411978006362915,
0.15053662657737732,
0.017725132405757904,
0.004449970554560423,
0.33847808837890625,
0.33359384536743164,
0.25317180156707764,
0.04346807673573494,
-0.1701405942440033,
-0.09063541144132614,
0.1604187786579132,
-0.17632454633712769,
0.2604498863220215,
-0.3216399550437927,
-0.058682914823293686,
-0.3983005881309509,
-0.062190257012844086,
-0.2430596500635147,
-0.11298798024654388,
0.1386483609676361,
0.027711566537618637,
0.15545892715454102,
0.39966338872909546,
-0.1036328673362732,
0.08665696531534195,
0.04136381298303604,
0.3868948519229889,
-0.5217031240463257,
0.28829383850097656,
-0.1621195524930954,
-0.056998275220394135,
0.04473505914211273,
0.16505488753318787,
0.08897604048252106,
-0.22642023861408234,
0.08791528642177582,
0.3215097486972809,
0.1480686068534851,
0.025421060621738434,
0.6113665103912354,
-0.22603102028369904,
0.12113066762685776,
-0.2721594572067261,
0.0900690108537674,
-0.011643309146165848,
0.1313445121049881,
0.1288069188594818,
0.06315868347883224,
0.16527263820171356,
0.11230376362800598,
0.07629312574863434,
0.1483362466096878,
0.027766918763518333,
0.34169092774391174,
-0.03243190422654152,
-0.07262768596410751,
-0.29882359504699707,
0.2953137457370758,
0.15609991550445557,
0.22114701569080353,
-0.08733808994293213,
-0.2797175943851471,
-0.24180567264556885,
-0.2270905077457428,
-0.10548235476016998,
-0.009752124547958374,
0.1181006208062172,
-0.30578702688217163,
0.2041136920452118,
0.21844854950904846,
0.35602086782455444,
0.19932784140110016,
0.13254991173744202,
0.16369061172008514,
0.16327078640460968,
0.12155065685510635,
-0.1284630298614502,
0.09213730692863464,
0.16995874047279358,
0.07395846396684647,
0.18714725971221924,
-0.14971444010734558,
0.04575768858194351,
-0.32760053873062134,
-0.09893335402011871,
-0.15985871851444244,
0.2108633667230606,
-0.13682493567466736,
-0.13080337643623352,
-0.36505377292633057,
-0.5920031666755676,
-0.24788233637809753,
-0.05494958534836769,
-0.4640187919139862,
-0.2258247286081314,
-0.12924031913280487,
-0.014691349118947983,
-0.04870826005935669,
0.038463443517684937,
-0.31731081008911133,
0.1435844898223877,
-0.08266331255435944,
-0.07947026193141937,
-0.20915952324867249,
0.04749482497572899,
-0.04806728661060333,
0.06190832331776619,
0.33122795820236206,
-0.0067724063992500305,
0.33889973163604736,
-0.34618040919303894,
0.11025503277778625,
-0.28570806980133057,
-0.32711347937583923,
0.17541779577732086,
0.12566828727722168,
0.20207162201404572,
0.17227886617183685,
0.19576767086982727,
0.07499697804450989,
-0.123117595911026,
0.3749607503414154,
0.08856706321239471,
-0.10426314920186996,
0.014484524726867676,
-0.02298785001039505,
0.20795036852359772,
0.0007504746317863464,
-0.20677411556243896,
-0.11179474741220474,
-0.27963003516197205,
-0.0600174218416214,
0.07530343532562256,
-0.013635694980621338,
0.0379965640604496,
0.20160934329032898,
0.3852608799934387,
-0.5088937878608704,
-0.051905423402786255,
-0.08486022055149078,
-0.37702929973602295,
0.3114745020866394,
-0.2667357921600342,
-0.29005277156829834,
0.3200336694717407,
-0.23562884330749512,
0.5331383347511292,
-0.16575577855110168,
-0.47655701637268066,
0.08593949675559998,
0.052384793758392334,
0.16051261126995087,
0.2272057980298996,
-0.1370076835155487,
0.049804240465164185,
0.0314960815012455,
-0.11339221894741058,
0.0020016133785247803,
-0.07477440685033798,
-0.330096960067749,
-0.05309678614139557,
0.49509862065315247,
-0.11386508494615555,
0.050314124673604965,
0.07333746552467346,
0.4199265241622925,
0.37260353565216064,
0.15347635746002197,
0.4652197062969208,
0.11670766770839691,
0.5983062386512756,
-0.09072577208280563,
-0.1926039159297943,
-0.11692254990339279,
0.011718213558197021,
0.12796157598495483,
0.07446957379579544,
0.546522855758667,
0.19827152788639069,
-0.5745590925216675,
-0.39142996072769165,
-0.28495049476623535,
-0.32507991790771484,
-0.30527493357658386,
-0.1911684274673462,
0.13386057317256927,
0.08208435773849487,
0.013069719076156616,
0.08364845812320709,
-0.0033115982078015804,
0.22149766981601715,
0.6827547550201416,
0.03139651194214821,
0.009650429710745811,
0.021812256425619125,
0.4009026288986206,
-0.7738462090492249,
0.20678627490997314,
-0.21021851897239685,
0.006306190509349108,
0.02551303431391716,
0.09632045775651932,
0.20565398037433624,
-0.018410390242934227,
0.6278685331344604,
0.09966666251420975,
0.08079271018505096,
-0.024640705436468124,
-0.04942964017391205,
-0.25270870327949524,
0.08706937730312347,
0.0038775280117988586,
-0.002545436378568411,
0.13381871581077576,
0.6096513271331787,
-0.26296254992485046,
-0.19459562003612518,
0.14874815940856934,
0.09003909677267075,
-0.14678116142749786,
-0.20162037014961243,
-0.28165340423583984,
-0.28332841396331787,
-0.1463649719953537,
-0.3225826025009155,
-0.19489090144634247,
0.3163624107837677,
0.4110972583293915,
-0.12065553665161133,
0.12045027315616608,
0.12903550267219543,
0.13255032896995544,
0.0731242448091507,
0.2535378336906433,
0.1423863172531128,
0.1947261393070221,
0.4189743995666504,
0.2729954719543457,
0.20542220771312714,
0.6228634715080261,
-0.228593647480011,
-0.5557919144630432,
-0.13782677054405212,
-0.01024930365383625,
0.06610357761383057,
0.28422099351882935,
-0.17861531674861908,
0.10758081078529358,
0.20942071080207825,
0.24472200870513916,
-0.3189246654510498,
0.23772455751895905,
0.41662344336509705,
-0.042057037353515625,
-0.2295142263174057,
-0.21055501699447632,
0.17515486478805542,
-0.10906805098056793,
0.014288850128650665,
0.5919676423072815,
0.2655680775642395,
-0.030893711373209953,
-0.05332484468817711,
-0.07624515146017075,
0.8943347334861755,
-0.30520325899124146,
-0.13551083207130432,
0.41264021396636963,
-0.14292076230049133,
0.32684576511383057,
0.1835494339466095,
0.15979892015457153,
-0.03327137231826782,
0.14850838482379913,
-0.033982373774051666,
0.00621168315410614,
0.15092864632606506,
-0.06659981608390808,
-0.07233025878667831,
0.37007683515548706,
0.11855196952819824,
-0.19964706897735596,
-0.11468279361724854,
0.02984718233346939,
-0.08640537410974503,
0.15772928297519684,
-0.1449262797832489,
0.14607802033424377,
0.0016581080853939056,
0.6845747828483582,
-0.16133570671081543,
-0.18023142218589783,
-0.22834010422229767,
-0.11844468116760254,
-0.0732770562171936,
0.011694565415382385,
-0.17958007752895355,
0.010882735252380371,
0.035908713936805725,
-0.4694709777832031,
0.07185404002666473,
0.11272259801626205,
-0.07392925024032593,
-0.10578218102455139,
-0.43124836683273315,
0.2365911602973938,
-0.26606014370918274,
-0.4037059545516968,
-0.02575618028640747,
0.0901983305811882,
0.24511530995368958,
-0.025860995054244995,
-0.1520770937204361,
0.06720418483018875,
0.027141019701957703,
0.0056663863360881805,
0.28131359815597534,
-0.08333173394203186,
-0.15449188649654388,
-0.035088229924440384,
-0.187053844332695,
0.07246348261833191,
0.1514793485403061,
-0.1914687305688858,
0.1532903015613556,
0.26336920261383057,
-0.15947647392749786,
-0.4186685383319855,
0.17830544710159302,
-0.0989261120557785,
0.05039098113775253,
0.39246249198913574,
-0.23457488417625427,
-0.33268576860427856,
0.17193090915679932,
0.3241138458251953,
-0.18727529048919678,
-0.1208377331495285,
0.17900460958480835,
0.11105486750602722,
-0.5132269859313965,
0.06201022490859032,
0.16030466556549072,
0.42989861965179443,
-0.0017267876537516713,
0.0022819973528385162,
0.2556878626346588,
-0.6776077151298523,
-0.10107898712158203,
-0.367516428232193,
-0.2923969030380249,
0.2684902548789978,
-0.165911465883255,
0.07735773175954819,
-0.192793071269989,
0.026706699281930923,
0.2402820885181427,
-0.1025601476430893,
-0.27446985244750977,
0.17550548911094666,
-0.2248120903968811,
0.01374746486544609,
0.1955941617488861,
0.17041154205799103,
0.13594262301921844,
0.06231484189629555,
0.12038911879062653,
-0.11331479251384735,
-0.3900868594646454,
-0.15296348929405212,
0.005295922979712486,
0.08705610781908035,
-0.017516545951366425,
-0.17527760565280914,
0.07977086305618286,
-0.15812592208385468,
-0.015274535864591599,
-0.1603565216064453,
-0.1277950257062912,
0.2234126329421997,
0.10350367426872253,
-0.14177973568439484,
0.12940223515033722,
-0.012022227048873901,
-0.2700367569923401,
0.3153377175331116,
0.15040192008018494,
0.2719042897224426,
0.26040711998939514,
-0.1854819655418396,
-0.25813451409339905,
-0.059067241847515106,
-0.0993146300315857,
0.02914091944694519,
-0.04276907444000244,
-0.15330463647842407,
0.26131585240364075,
-0.00674804300069809,
0.037508029490709305,
-0.021029142662882805,
0.2382085919380188,
0.05593971535563469,
-0.16830432415008545,
0.2652599513530731,
0.44115880131721497,
0.11089856177568436,
-0.3262587785720825,
0.10491646826267242,
0.16239817440509796,
0.035919707268476486,
-0.044005781412124634,
-0.15892010927200317,
-0.25835177302360535,
0.22088563442230225,
-0.014928221702575684,
0.07926547527313232,
0.19504870474338531,
0.15079748630523682,
0.3202213644981384,
0.41018906235694885,
0.21013568341732025,
-0.029063861817121506,
0.30335721373558044,
0.14909105002880096,
0.09737129509449005,
0.48541688919067383,
-0.14227509498596191,
0.34988006949424744,
-0.6094717383384705,
0.29929473996162415,
-0.019463665783405304,
-0.4472787380218506,
-0.048181090503931046,
0.16359922289848328,
-0.05227030813694,
-0.163170725107193,
-0.15161189436912537,
0.39189115166664124,
-0.1910351812839508,
0.12939444184303284,
-0.14711564779281616,
0.07285517454147339,
0.006705891340970993,
0.051813267171382904,
0.12348949909210205,
-0.31676918268203735,
0.0602363646030426,
-0.02923121489584446,
0.2890925109386444,
-0.3182103633880615,
-0.12025889754295349,
0.07526790350675583,
-0.09156450629234314,
-0.14280778169631958,
-0.21748727560043335,
0.09187136590480804,
-0.02022784948348999,
-0.011862426996231079,
0.15452790260314941,
0.20117387175559998,
0.042938780039548874,
0.021825557574629784,
0.1903546303510666,
0.4008922576904297,
0.043345868587493896,
0.053809963166713715,
-0.12926605343818665,
-0.15214760601520538,
-0.0523977130651474,
0.05507887899875641,
0.20609886944293976,
0.039979249238967896,
0.10836969316005707,
0.38215476274490356,
0.1420222520828247,
-0.18379774689674377,
-0.2758410573005676,
0.06751123070716858,
0.24999907612800598,
-0.2783145606517792,
0.4672817289829254,
-0.5629260540008545,
0.009647160768508911,
-0.17254668474197388,
-0.06416856497526169,
-0.5021948218345642,
0.5542028546333313,
0.22443388402462006,
-0.3633377254009247,
-0.1388116180896759,
-0.16076983511447906,
0.06507126986980438,
0.017088335007429123,
0.4634777307510376,
0.38833752274513245,
0.4095774292945862,
-0.24451375007629395,
-0.5597165822982788,
-0.7324656844139099,
0.21579253673553467,
-0.16816852986812592,
0.0038513075560331345,
-0.016579311341047287,
0.06825091689825058,
-0.11442811042070389,
0.323978066444397,
0.2871297001838684,
0.08536692708730698,
0.33439481258392334,
-0.10839863121509552,
-0.06861806660890579,
-0.16217750310897827,
-0.21010442078113556,
-0.02690943516790867,
-0.10259975492954254,
-0.18482205271720886,
0.06553538143634796,
-0.4303750991821289,
-0.010382138192653656,
0.11705931276082993,
0.13537508249282837,
-0.1436254233121872,
-0.0944075882434845,
0.45965713262557983,
-0.03793919086456299,
0.2285943329334259,
0.04792948067188263,
-0.06741808354854584,
-0.1437527984380722,
-0.24102532863616943,
0.21547213196754456,
-0.04308701306581497,
-0.03164291754364967,
0.03730815276503563,
-0.22980065643787384,
-0.24773608148097992,
-0.20151416957378387,
0.5169583559036255,
0.14915528893470764,
0.3214688003063202,
-0.05671769380569458,
0.10792724043130875,
-0.04208359494805336,
-0.10294602811336517,
0.2558765709400177,
-0.06126713007688522,
-0.14643673598766327,
-0.06086520105600357,
-0.13904321193695068,
-0.1754334568977356,
0.6612130403518677,
-0.36373499035835266,
0.16299138963222504,
-0.15414650738239288,
0.034805476665496826,
0.06580144912004471,
-0.2408938705921173,
-0.7541186809539795,
0.28832367062568665,
0.29039695858955383,
0.39034751057624817,
-0.17270560562610626,
0.15979115664958954,
-0.2616015076637268,
-0.09701259434223175,
0.1424274891614914,
0.04662320762872696,
-0.05161087214946747,
-0.05189906433224678,
0.14433670043945312,
-0.02485104463994503
] |
https://github.com/huggingface/datasets/issues/2707 | 404 Not Found Error when loading LAMA dataset | Hi @dwil2444, thanks for reporting.
Could you please confirm which `datasets` version you were using and if the problem persists after you update it to the latest version: `pip install -U datasets`?
Thanks @stevhliu for the hint to fix this! ;) | The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download:
Steps to Reproduce:
1. `from datasets import load_dataset`
2. `dataset = load_dataset('lama', 'trex')`.
Results:
`FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` | 41 | 404 Not Found Error when loading LAMA dataset
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download:
Steps to Reproduce:
1. `from datasets import load_dataset`
2. `dataset = load_dataset('lama', 'trex')`.
Results:
`FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
Hi @dwil2444, thanks for reporting.
Could you please confirm which `datasets` version you were using and if the problem persists after you update it to the latest version: `pip install -U datasets`?
Thanks @stevhliu for the hint to fix this! ;) | [
0.03762311860918999,
-0.24428004026412964,
-0.038677673786878586,
0.6305747628211975,
0.4072245955467224,
0.08833067864179611,
-0.07169881463050842,
0.3489046096801758,
-0.3947158753871918,
0.2646036744117737,
-0.2870088815689087,
0.22050392627716064,
-0.15739920735359192,
-0.29622483253479004,
0.01087191142141819,
-0.3568078279495239,
-0.11493336409330368,
-0.016995497047901154,
-0.18155816197395325,
0.14895343780517578,
-0.06250450760126114,
0.3521652817726135,
-0.12652359902858734,
0.1486693024635315,
0.07350368797779083,
0.15039585530757904,
-0.12595586478710175,
0.28142595291137695,
-0.1905415952205658,
-0.3247135579586029,
0.41167908906936646,
-0.1972883641719818,
0.24718299508094788,
0.7875103950500488,
-0.00011716944572981447,
0.14737439155578613,
0.29832345247268677,
-0.16497346758842468,
-0.28214171528816223,
-0.3706021308898926,
-0.230401873588562,
-0.07490676641464233,
0.025426030158996582,
0.0481942817568779,
-0.32169950008392334,
-0.012167631648480892,
0.0023316293954849243,
-0.0769946426153183,
0.100645512342453,
0.2473406195640564,
0.18179874122142792,
0.550254225730896,
0.17999441921710968,
-0.2549855709075928,
0.12390526384115219,
-0.15642686188220978,
-0.14325936138629913,
0.6937099695205688,
0.2121167927980423,
0.4913325905799866,
0.16552802920341492,
0.46622124314308167,
-0.016464732587337494,
-0.0003988780081272125,
0.17522349953651428,
-0.14699994027614594,
0.30668944120407104,
-0.3588722348213196,
0.20230954885482788,
0.3324889540672302,
0.4127960801124573,
-0.10821089893579483,
-0.3176199793815613,
-0.2034643590450287,
0.0543413907289505,
-0.12056926637887955,
0.28014883399009705,
0.21867738664150238,
-0.2847771644592285,
0.2256474494934082,
0.07062181085348129,
-0.40138453245162964,
-0.0462254136800766,
0.2663987874984741,
-0.047564923763275146,
-0.3123939335346222,
-0.22547966241836548,
-0.045705005526542664,
-0.056101348251104355,
-0.12284865975379944,
-0.11375245451927185,
-0.13131152093410492,
-0.050230737775564194,
0.41346675157546997,
-0.14364813268184662,
-0.0026623010635375977,
0.07641751319169998,
0.1962408423423767,
0.05347359925508499,
0.21881051361560822,
-0.07187911868095398,
0.11107447743415833,
-0.3836347758769989,
0.09449699521064758,
0.2684501111507416,
-0.008999437093734741,
0.01165451854467392,
0.05600009113550186,
0.09365706145763397,
0.566753625869751,
0.18055874109268188,
-0.04137609899044037,
-0.3334457278251648,
-0.3940545916557312,
-0.4419756829738617,
0.021696897223591805,
0.3429948687553406,
-0.2445632368326187,
-0.18179090321063995,
-0.23282670974731445,
-0.17847061157226562,
-0.1435522884130478,
0.3312101662158966,
0.45489123463630676,
-0.019203800708055496,
0.1615789830684662,
-0.19783812761306763,
0.09738566726446152,
-0.07085973769426346,
-0.1500714123249054,
-0.20358222723007202,
0.051846522837877274,
-0.22741463780403137,
0.18366453051567078,
0.15186896920204163,
-0.7167769074440002,
0.3160146176815033,
-0.24610567092895508,
-0.1420823037624359,
0.0163225457072258,
0.03050672449171543,
-0.09267991781234741,
-0.08239241689443588,
0.2839704155921936,
0.04608573392033577,
0.016591643914580345,
-0.09836353361606598,
-0.1527361273765564,
-0.11856424063444138,
0.04763289541006088,
-0.24598056077957153,
-0.2467963546514511,
-0.07156384736299515,
0.08310629427433014,
-0.035312823951244354,
0.21009571850299835,
0.0569600909948349,
0.15968994796276093,
-0.23593369126319885,
-0.16106106340885162,
0.012228108942508698,
0.10796849429607391,
-0.02366369217634201,
-0.16904376447200775,
0.4432070851325989,
0.572274923324585,
-0.19049161672592163,
-0.020382530987262726,
-0.10015976428985596,
-0.41237467527389526,
0.034705750644207,
0.23537957668304443,
-0.10508331656455994,
0.32707902789115906,
-0.5126181244850159,
0.009488284587860107,
0.409607470035553,
-0.40439528226852417,
-0.2640869915485382,
-0.014640252105891705,
-0.10365815460681915,
0.016905130818486214,
0.06188146770000458,
-0.22211337089538574,
-0.07356929033994675,
-0.07332904636859894,
0.4005432724952698,
-0.05047762393951416,
0.13117367029190063,
-0.2857053279876709,
-0.18099409341812134,
-0.1583043336868286,
-0.046168215572834015,
0.02716837078332901,
0.09744126349687576,
0.027126923203468323,
0.17072992026805878,
-0.17741696536540985,
0.1637757420539856,
0.028524672612547874,
0.015392250381410122,
0.3604581952095032,
0.36565861105918884,
0.3046256899833679,
0.048387736082077026,
-0.18081289529800415,
-0.09314081817865372,
0.13364219665527344,
-0.1816186159849167,
0.21336577832698822,
-0.38490819931030273,
-0.014410383999347687,
-0.38522279262542725,
-0.08000048995018005,
-0.26022714376449585,
-0.12296511232852936,
0.09325908124446869,
0.046089399605989456,
0.16975677013397217,
0.4013625979423523,
-0.12059752643108368,
0.13327772915363312,
0.06453465670347214,
0.3940294682979584,
-0.5741816759109497,
0.2775956690311432,
-0.14540046453475952,
-0.08513006567955017,
-0.015284806489944458,
0.19776774942874908,
0.08631297200918198,
-0.23296476900577545,
0.11672575771808624,
0.28296399116516113,
0.16249775886535645,
-0.012236900627613068,
0.5958026647567749,
-0.27512842416763306,
0.1441279798746109,
-0.2933015525341034,
0.07423506677150726,
-0.007406076416373253,
0.12386007606983185,
0.13903212547302246,
0.006497688591480255,
0.17456232011318207,
0.09160639345645905,
0.1102491021156311,
0.12899819016456604,
0.0054875947535037994,
0.345259428024292,
-0.03483506292104721,
-0.11654456704854965,
-0.2764837145805359,
0.3460578918457031,
0.1868557631969452,
0.2750222384929657,
-0.08001020550727844,
-0.23353804647922516,
-0.2471490502357483,
-0.22479668259620667,
-0.0969628095626831,
0.020595181733369827,
0.12121866643428802,
-0.30041471123695374,
0.2324628233909607,
0.15404874086380005,
0.36344048380851746,
0.20169083774089813,
0.11857406049966812,
0.10717342048883438,
0.11043864488601685,
0.17240731418132782,
-0.11058884114027023,
0.07493850588798523,
0.19392384588718414,
0.00811377726495266,
0.2232380211353302,
-0.12770292162895203,
0.0503925122320652,
-0.26901036500930786,
-0.003008410334587097,
-0.15629997849464417,
0.1812729388475418,
-0.1465037763118744,
-0.09712192416191101,
-0.3710280656814575,
-0.5473516583442688,
-0.29290100932121277,
-0.08434141427278519,
-0.46254587173461914,
-0.19801431894302368,
-0.18170557916164398,
-0.027036789804697037,
0.032718297094106674,
0.05915547162294388,
-0.2924278974533081,
0.12238635867834091,
-0.12172575294971466,
-0.11992304772138596,
-0.21571549773216248,
0.05696948245167732,
-0.049863822758197784,
0.02784501016139984,
0.3217616081237793,
0.02316507324576378,
0.3310336172580719,
-0.3448907434940338,
0.11463582515716553,
-0.28240272402763367,
-0.32512563467025757,
0.14712397754192352,
0.1241643875837326,
0.26160770654678345,
0.15321728587150574,
0.2105141282081604,
0.07225092500448227,
-0.11967088282108307,
0.3903248608112335,
0.13410182297229767,
-0.07723408192396164,
0.00793229229748249,
-0.055242352187633514,
0.2397369146347046,
0.03000456467270851,
-0.19425436854362488,
-0.14022427797317505,
-0.2553321421146393,
-0.0677703469991684,
0.05643099918961525,
-0.05487637221813202,
-0.03026837855577469,
0.20589783787727356,
0.3537767231464386,
-0.5599410533905029,
-0.04335710406303406,
-0.06653515249490738,
-0.37191858887672424,
0.3360430598258972,
-0.27762314677238464,
-0.27101632952690125,
0.3012787997722626,
-0.2774122953414917,
0.5949878692626953,
-0.15964199602603912,
-0.4551081657409668,
0.1483641266822815,
0.06455530226230621,
0.16787084937095642,
0.21631111204624176,
-0.11844965815544128,
0.049182161688804626,
0.021315205842256546,
-0.05232962220907211,
0.013579655438661575,
-0.08147241175174713,
-0.3569487929344177,
-0.05117134749889374,
0.5589964985847473,
-0.06849707663059235,
0.07862869650125504,
0.06840914487838745,
0.478671669960022,
0.40287744998931885,
0.13347160816192627,
0.4516439139842987,
0.08729597181081772,
0.6159577369689941,
-0.04390095919370651,
-0.25054731965065,
-0.16805019974708557,
0.0329115092754364,
0.18022991716861725,
0.04680473357439041,
0.5635346174240112,
0.18872666358947754,
-0.5760726928710938,
-0.37026548385620117,
-0.3555660843849182,
-0.31244510412216187,
-0.2666375935077667,
-0.17304788529872894,
0.17113590240478516,
0.10120637714862823,
0.023409850895404816,
0.059765879064798355,
-0.026387715712189674,
0.2043713480234146,
0.6898044347763062,
0.09071609377861023,
0.008173760958015919,
0.03365197405219078,
0.3789704144001007,
-0.7080026268959045,
0.1770665943622589,
-0.19994057714939117,
0.026301398873329163,
0.022996287792921066,
0.12766894698143005,
0.2167024165391922,
-0.018788741901516914,
0.6216827630996704,
0.0953299030661583,
0.04196583852171898,
-0.04860939830541611,
-0.02911575511097908,
-0.31577619910240173,
0.09242725372314453,
0.027822624891996384,
-0.020845970138907433,
0.1545671820640564,
0.59287428855896,
-0.31545791029930115,
-0.19719424843788147,
0.17522487044334412,
0.13599154353141785,
-0.21905763447284698,
-0.23175860941410065,
-0.3073805272579193,
-0.262360155582428,
-0.12138461321592331,
-0.32690924406051636,
-0.22119642794132233,
0.3113204836845398,
0.4118070900440216,
-0.14191865921020508,
0.13858313858509064,
0.15231800079345703,
0.061950042843818665,
0.01664735935628414,
0.27212953567504883,
0.12672926485538483,
0.20772261917591095,
0.4207662343978882,
0.2836776375770569,
0.22169345617294312,
0.6485917568206787,
-0.27845045924186707,
-0.5561398863792419,
-0.1726401448249817,
-0.04620913788676262,
0.07593316584825516,
0.25493496656417847,
-0.19427792727947235,
0.0927215963602066,
0.21093609929084778,
0.23352758586406708,
-0.31871551275253296,
0.16780005395412445,
0.424769788980484,
-0.035699423402547836,
-0.2502809762954712,
-0.22135232388973236,
0.18251538276672363,
-0.08227935433387756,
0.02548792213201523,
0.6119908690452576,
0.27917057275772095,
-0.018806496635079384,
-0.07844752818346024,
-0.12661024928092957,
0.9042652249336243,
-0.26879310607910156,
-0.12948757410049438,
0.40731263160705566,
-0.12766599655151367,
0.29723161458969116,
0.15402722358703613,
0.1268145889043808,
-0.018085334450006485,
0.21903802454471588,
-0.02974165417253971,
-0.03424464911222458,
0.16127926111221313,
-0.07486388087272644,
-0.06641033291816711,
0.39868733286857605,
0.1374392807483673,
-0.19951102137565613,
-0.13387206196784973,
0.016989722847938538,
-0.0966544896364212,
0.16772712767124176,
-0.12971843779087067,
0.10635575652122498,
-0.012541405856609344,
0.7009761333465576,
-0.1536019742488861,
-0.1957850456237793,
-0.2491743415594101,
-0.11733818054199219,
-0.10560319572687149,
0.004550006240606308,
-0.19563814997673035,
0.021331297233700752,
0.054773665964603424,
-0.5188841223716736,
0.0887024998664856,
0.10067428648471832,
-0.0801486074924469,
-0.11251454055309296,
-0.4400891363620758,
0.2601296007633209,
-0.26932477951049805,
-0.39940571784973145,
-0.031932782381772995,
0.09879181534051895,
0.21096432209014893,
-0.0006939955055713654,
-0.1603873372077942,
0.04806624352931976,
0.02547496184706688,
0.0005276165902614594,
0.2996789813041687,
-0.06047506630420685,
-0.1382225751876831,
-0.042804963886737823,
-0.18818441033363342,
0.07866398245096207,
0.1960265189409256,
-0.16622315347194672,
0.12938757240772247,
0.2950856685638428,
-0.134036585688591,
-0.3536817133426666,
0.14744457602500916,
-0.11437539011240005,
0.05681026726961136,
0.41006287932395935,
-0.23068147897720337,
-0.38653549551963806,
0.1940346211194992,
0.31122586131095886,
-0.1955406814813614,
-0.1101502776145935,
0.21588772535324097,
0.07211201637983322,
-0.5249443054199219,
0.031330306082963943,
0.19515156745910645,
0.4888620972633362,
-0.004363796673715115,
-0.0386480949819088,
0.25470519065856934,
-0.7374973297119141,
-0.14804969727993011,
-0.360777348279953,
-0.25936272740364075,
0.2665598392486572,
-0.1515921950340271,
0.06078539416193962,
-0.18254289031028748,
-0.038475051522254944,
0.28260767459869385,
-0.08991732448339462,
-0.23541103303432465,
0.20196738839149475,
-0.1939253807067871,
0.040221840143203735,
0.21661297976970673,
0.17542114853858948,
0.1277007758617401,
0.05248386412858963,
0.09622223675251007,
-0.12487801909446716,
-0.3624163269996643,
-0.13640454411506653,
0.033715035766363144,
0.10878656804561615,
-0.01520201563835144,
-0.1299055814743042,
0.03494259715080261,
-0.18885749578475952,
0.03854392468929291,
-0.15875209867954254,
-0.14086851477622986,
0.20559611916542053,
0.11426497995853424,
-0.11822294443845749,
0.13143539428710938,
-0.017749115824699402,
-0.3116675615310669,
0.33046603202819824,
0.1340044140815735,
0.2897087335586548,
0.2980370819568634,
-0.16557766497135162,
-0.19554206728935242,
-0.030240602791309357,
-0.11342296749353409,
-0.009879812598228455,
-0.003583282232284546,
-0.13966506719589233,
0.3032433092594147,
-0.038525715470314026,
0.06210664287209511,
-0.036333419382572174,
0.18619100749492645,
0.08585122972726822,
-0.1964636892080307,
0.30424922704696655,
0.4258558750152588,
0.07979673892259598,
-0.33164089918136597,
0.13367986679077148,
0.14834915101528168,
0.06210086867213249,
-0.03902638331055641,
-0.15888148546218872,
-0.24431322515010834,
0.16530002653598785,
0.00010572373867034912,
0.0717245489358902,
0.20313508808612823,
0.10513124614953995,
0.3249287009239197,
0.44768208265304565,
0.24436832964420319,
-0.06357331573963165,
0.28587326407432556,
0.170922189950943,
0.042959943413734436,
0.47475576400756836,
-0.12514129281044006,
0.37369081377983093,
-0.6186772584915161,
0.31842315196990967,
-0.006749726831912994,
-0.4154496192932129,
-0.09514725208282471,
0.12692303955554962,
-0.05725449323654175,
-0.16097918152809143,
-0.15947702527046204,
0.3915148675441742,
-0.17743366956710815,
0.1014193445444107,
-0.17260384559631348,
0.04078823700547218,
0.008249599486589432,
0.060596149414777756,
0.1344088315963745,
-0.3056885004043579,
0.05960109829902649,
-0.024314425885677338,
0.29291969537734985,
-0.3246060013771057,
-0.15941157937049866,
0.1317426562309265,
-0.10522373020648956,
-0.15157392621040344,
-0.22826844453811646,
0.13090583682060242,
-0.023343190550804138,
0.0086628757417202,
0.1606980860233307,
0.22126880288124084,
0.01776595041155815,
-0.008729558438062668,
0.20353494584560394,
0.3928322196006775,
0.05822933092713356,
0.05009235441684723,
-0.11590588837862015,
-0.15697629749774933,
-0.036139342933893204,
0.03649178519845009,
0.25574132800102234,
0.03822047635912895,
0.06777317821979523,
0.33890393376350403,
0.12149527668952942,
-0.16654495894908905,
-0.28207507729530334,
0.061465855687856674,
0.22724784910678864,
-0.265738844871521,
0.5067769289016724,
-0.5798212289810181,
-0.019848491996526718,
-0.21295033395290375,
-0.08595869690179825,
-0.5317122936248779,
0.5941916108131409,
0.2756079435348511,
-0.33961302042007446,
-0.14326268434524536,
-0.15959292650222778,
0.040614087134599686,
0.029021665453910828,
0.4412975311279297,
0.3815443217754364,
0.43548640608787537,
-0.25903457403182983,
-0.5794159173965454,
-0.6965132355690002,
0.1823435127735138,
-0.1787940114736557,
0.0366053432226181,
-0.048607613891363144,
0.08238818496465683,
-0.1335342526435852,
0.3341454863548279,
0.30720391869544983,
0.08917586505413055,
0.39791300892829895,
-0.0584486722946167,
-0.0807565227150917,
-0.16794046759605408,
-0.17810599505901337,
-0.015063146129250526,
-0.10680072009563446,
-0.17110294103622437,
0.038767941296100616,
-0.437511146068573,
-0.03569977357983589,
0.12286390364170074,
0.14469973742961884,
-0.11244988441467285,
-0.06670933216810226,
0.46050402522087097,
-0.05492641031742096,
0.22601744532585144,
0.052484191954135895,
-0.04620329663157463,
-0.1337999403476715,
-0.2298383265733719,
0.27626410126686096,
0.012729715555906296,
-0.015146948397159576,
-0.02036634460091591,
-0.26149123907089233,
-0.24837006628513336,
-0.2103630006313324,
0.4305932819843292,
0.12359586358070374,
0.2976340055465698,
0.0021891221404075623,
0.018361760303378105,
-0.031073566526174545,
-0.09404707700014114,
0.244273379445076,
-0.052743226289749146,
-0.16626958549022675,
-0.04645531624555588,
-0.14769352972507477,
-0.13380995392799377,
0.6335505247116089,
-0.3730255365371704,
0.1740247905254364,
-0.16731767356395721,
0.0666934996843338,
0.049396708607673645,
-0.20804226398468018,
-0.7280303835868835,
0.2806951701641083,
0.33226287364959717,
0.3692118227481842,
-0.1336749643087387,
0.13377702236175537,
-0.23105579614639282,
-0.05837510898709297,
0.13056744635105133,
0.049201078712940216,
-0.040305010974407196,
-0.016208713874220848,
0.13046275079250336,
0.007338773459196091
] |
https://github.com/huggingface/datasets/issues/2707 | 404 Not Found Error when loading LAMA dataset | @stevhliu @albertvillanova updating to the latest version of datasets did in fact fix this issue. Thanks a lot for your help! | The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download:
Steps to Reproduce:
1. `from datasets import load_dataset`
2. `dataset = load_dataset('lama', 'trex')`.
Results:
`FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` | 21 | 404 Not Found Error when loading LAMA dataset
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download:
Steps to Reproduce:
1. `from datasets import load_dataset`
2. `dataset = load_dataset('lama', 'trex')`.
Results:
`FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
@stevhliu @albertvillanova updating to the latest version of datasets did in fact fix this issue. Thanks a lot for your help! | [
0.05794468894600868,
-0.22567202150821686,
-0.033730484545230865,
0.601818859577179,
0.3969440460205078,
0.12284957617521286,
-0.0771399587392807,
0.39270901679992676,
-0.428257554769516,
0.25280824303627014,
-0.3340737819671631,
0.19940945506095886,
-0.1437428593635559,
-0.26345333456993103,
0.032960157841444016,
-0.36312854290008545,
-0.10555801540613174,
-0.0356408953666687,
-0.1782311201095581,
0.14029298722743988,
-0.07738116383552551,
0.3491840660572052,
-0.17138688266277313,
0.14610302448272705,
0.030564257875084877,
0.16406972706317902,
-0.1523560881614685,
0.28182023763656616,
-0.1676367223262787,
-0.34052774310112,
0.4034929871559143,
-0.16597625613212585,
0.2667889893054962,
0.7545300126075745,
-0.00011551385978236794,
0.15827785432338715,
0.2871516942977905,
-0.1801176369190216,
-0.22589559853076935,
-0.32084786891937256,
-0.2181340456008911,
-0.007623940706253052,
0.029934214428067207,
0.057537682354450226,
-0.3109133243560791,
-0.025062043219804764,
0.014786052517592907,
-0.1243562325835228,
0.07845419645309448,
0.2548891007900238,
0.19966411590576172,
0.5669784545898438,
0.15794168412685394,
-0.283899188041687,
0.12108803540468216,
-0.16003482043743134,
-0.15506547689437866,
0.6935014724731445,
0.19798506796360016,
0.5019047260284424,
0.10769839584827423,
0.4367842674255371,
0.05121472477912903,
-0.00003656558692455292,
0.17038850486278534,
-0.1627655327320099,
0.3027927279472351,
-0.3620828092098236,
0.22604861855506897,
0.3412953019142151,
0.4112471044063568,
-0.08956187218427658,
-0.30020907521247864,
-0.20412373542785645,
0.06301464885473251,
-0.10476405173540115,
0.2831820547580719,
0.21247409284114838,
-0.2709571421146393,
0.22400690615177155,
0.05969756841659546,
-0.3989567756652832,
-0.037575140595436096,
0.22203339636325836,
-0.06659089773893356,
-0.3245238661766052,
-0.22492766380310059,
-0.04771905392408371,
-0.06987553834915161,
-0.1235073059797287,
-0.10927949100732803,
-0.09628154337406158,
-0.04494296386837959,
0.4012902081012726,
-0.20008991658687592,
0.008139338344335556,
0.09800373017787933,
0.18055865168571472,
0.07189824432134628,
0.2427891194820404,
-0.09231708198785782,
0.13857167959213257,
-0.40705734491348267,
0.0528271421790123,
0.2572007179260254,
-0.013970504514873028,
0.02449212595820427,
0.012990246526896954,
0.106097511947155,
0.572939932346344,
0.14168384671211243,
-0.027777746319770813,
-0.36550846695899963,
-0.4114144742488861,
-0.4233098030090332,
0.02774348482489586,
0.3314843773841858,
-0.2584201693534851,
-0.16572305560112,
-0.23326893150806427,
-0.179672509431839,
-0.132035493850708,
0.31180861592292786,
0.4670642018318176,
0.007098408415913582,
0.13626888394355774,
-0.19499626755714417,
0.11438661068677902,
-0.07240243256092072,
-0.17767873406410217,
-0.24211300909519196,
0.03218310698866844,
-0.24019528925418854,
0.16971834003925323,
0.1667344868183136,
-0.7531391382217407,
0.318369597196579,
-0.28396400809288025,
-0.14984947443008423,
-0.008334029465913773,
0.014448238536715508,
-0.0589313842356205,
-0.08033017069101334,
0.2743905186653137,
0.03718028590083122,
0.015965977683663368,
-0.1051175445318222,
-0.11155181378126144,
-0.1097056195139885,
0.02559131756424904,
-0.23604115843772888,
-0.23863880336284637,
-0.04296828806400299,
0.0918828472495079,
-0.038621604442596436,
0.2000916600227356,
0.06250768899917603,
0.1967736929655075,
-0.23702266812324524,
-0.10619238018989563,
-0.030195169150829315,
0.11454493552446365,
-0.08161552250385284,
-0.16770698130130768,
0.46163618564605713,
0.5593082904815674,
-0.20581553876399994,
-0.024667654186487198,
-0.07579708844423294,
-0.43323102593421936,
0.012862876057624817,
0.25520557165145874,
-0.09844907373189926,
0.3181888163089752,
-0.535184919834137,
0.06595012545585632,
0.3240579068660736,
-0.34938374161720276,
-0.23256000876426697,
-0.039577119052410126,
-0.09581436216831207,
0.0048005711287260056,
0.03160547465085983,
-0.23549491167068481,
-0.060296714305877686,
-0.09364010393619537,
0.4298363924026489,
-0.027584735304117203,
0.1246362254023552,
-0.28726911544799805,
-0.14987802505493164,
-0.1584855020046234,
-0.04586093872785568,
0.043246712535619736,
0.10697641968727112,
0.04843944311141968,
0.1735406517982483,
-0.1535310000181198,
0.1848183572292328,
0.04871721938252449,
0.018518641591072083,
0.33532392978668213,
0.3199562430381775,
0.2681529223918915,
0.0523090735077858,
-0.14468029141426086,
-0.11347473412752151,
0.16420122981071472,
-0.16079185903072357,
0.23383177816867828,
-0.3601340651512146,
-0.01217050664126873,
-0.3953309953212738,
-0.06181470304727554,
-0.2387169748544693,
-0.14594723284244537,
0.10872702300548553,
0.0498262420296669,
0.14927788078784943,
0.4205014109611511,
-0.1292731612920761,
0.10975617170333862,
0.047861114144325256,
0.38248422741889954,
-0.5560262799263,
0.26856404542922974,
-0.13298417627811432,
-0.07263798266649246,
0.043146081268787384,
0.17572763562202454,
0.06376910954713821,
-0.24541185796260834,
0.07924094051122665,
0.282450407743454,
0.15959690511226654,
0.005703672766685486,
0.5873307585716248,
-0.2710196375846863,
0.12329201400279999,
-0.3047972321510315,
0.06468340009450912,
0.004443850368261337,
0.10392547398805618,
0.12042944878339767,
0.0022749416530132294,
0.217210054397583,
0.11708712577819824,
0.07933422923088074,
0.117336705327034,
0.04205905646085739,
0.3593284785747528,
-0.039353467524051666,
-0.08840543031692505,
-0.26600754261016846,
0.3219721019268036,
0.19953924417495728,
0.2781037390232086,
-0.08389508724212646,
-0.26050707697868347,
-0.24626410007476807,
-0.2269674837589264,
-0.09558860957622528,
0.022151485085487366,
0.12184711545705795,
-0.3248014748096466,
0.2021925151348114,
0.19158925116062164,
0.35608139634132385,
0.18363463878631592,
0.10893572121858597,
0.14588549733161926,
0.13454820215702057,
0.13291382789611816,
-0.12896618247032166,
0.06203974410891533,
0.17203761637210846,
0.037038322538137436,
0.18934571743011475,
-0.14007435739040375,
0.04061230272054672,
-0.3171596825122833,
-0.0203474760055542,
-0.11832856386899948,
0.19154047966003418,
-0.16015908122062683,
-0.14113478362560272,
-0.3798511028289795,
-0.5577109456062317,
-0.2689444422721863,
-0.04697922617197037,
-0.451986163854599,
-0.22897598147392273,
-0.16177301108837128,
-0.029615815728902817,
-0.014888595789670944,
0.07792703062295914,
-0.33014070987701416,
0.16266527771949768,
-0.08770006895065308,
-0.07232167571783066,
-0.2259000539779663,
0.07858641445636749,
-0.048843808472156525,
0.040049586445093155,
0.3276120126247406,
-0.0029403753578662872,
0.31279829144477844,
-0.3487846553325653,
0.1278117299079895,
-0.2811443507671356,
-0.3291573226451874,
0.1592874675989151,
0.12833231687545776,
0.22069840133190155,
0.133571594953537,
0.21085798740386963,
0.0832076147198677,
-0.11418589949607849,
0.35805201530456543,
0.0815688893198967,
-0.0978449136018753,
0.0026841238141059875,
-0.023812314495444298,
0.23145760595798492,
0.03207310661673546,
-0.2025597095489502,
-0.1074046716094017,
-0.25200387835502625,
-0.0685243159532547,
0.049398232251405716,
-0.0499449223279953,
0.006882951594889164,
0.1808726042509079,
0.3758724629878998,
-0.531543493270874,
-0.06250694394111633,
-0.09594845026731491,
-0.406195729970932,
0.3328714370727539,
-0.29455968737602234,
-0.31114915013313293,
0.3056977391242981,
-0.26410117745399475,
0.563758134841919,
-0.1587350219488144,
-0.465562641620636,
0.19951121509075165,
0.050237659364938736,
0.18199990689754486,
0.23394659161567688,
-0.14301759004592896,
0.03545132651925087,
-0.0009082737378776073,
-0.07460038363933563,
-0.002246581017971039,
-0.07925495505332947,
-0.33181262016296387,
-0.056298643350601196,
0.5509485602378845,
-0.09798727929592133,
0.04112711176276207,
0.11342507600784302,
0.40319597721099854,
0.387158066034317,
0.12850335240364075,
0.46587663888931274,
0.10687243938446045,
0.6118937730789185,
-0.04721850901842117,
-0.20560243725776672,
-0.11985479295253754,
0.019816428422927856,
0.17206642031669617,
0.08316490054130554,
0.5636385679244995,
0.17241273820400238,
-0.5466659069061279,
-0.3913594186306,
-0.3036639392375946,
-0.33727243542671204,
-0.28231382369995117,
-0.20804953575134277,
0.1505245715379715,
0.10039430856704712,
0.026642605662345886,
0.07064186036586761,
-0.014653004705905914,
0.2296503633260727,
0.658683180809021,
0.08534260839223862,
-0.006898275576531887,
0.02418459579348564,
0.4207143485546112,
-0.7590509653091431,
0.18124473094940186,
-0.23696868121623993,
0.06420250982046127,
0.029387082904577255,
0.105766661465168,
0.21635910868644714,
-0.003922611940652132,
0.6508569717407227,
0.10210340470075607,
0.10048998892307281,
-0.033059995621442795,
-0.03834060952067375,
-0.3130970597267151,
0.08922351896762848,
0.017764117568731308,
-0.0205392949283123,
0.15222859382629395,
0.6132916808128357,
-0.2646583914756775,
-0.20380021631717682,
0.158005952835083,
0.11168412864208221,
-0.19899238646030426,
-0.22956061363220215,
-0.2762856185436249,
-0.2647714614868164,
-0.12348330765962601,
-0.3163944482803345,
-0.2108534872531891,
0.30215874314308167,
0.40224072337150574,
-0.12708324193954468,
0.11525581032037735,
0.1207244023680687,
0.0784333348274231,
0.04213742911815643,
0.2388523519039154,
0.19566228985786438,
0.22885370254516602,
0.4308677613735199,
0.2876802682876587,
0.21006041765213013,
0.6384994387626648,
-0.2398592233657837,
-0.586044192314148,
-0.12277806550264359,
-0.05112907290458679,
0.06981894373893738,
0.25868868827819824,
-0.21006835997104645,
0.08586423844099045,
0.19249992072582245,
0.22094357013702393,
-0.3436315953731537,
0.22584904730319977,
0.42441844940185547,
-0.03446562588214874,
-0.24821355938911438,
-0.20887093245983124,
0.16940143704414368,
-0.119234099984169,
0.017804890871047974,
0.5995387434959412,
0.2700917720794678,
-0.026441404595971107,
-0.048998791724443436,
-0.10915868729352951,
0.8627340793609619,
-0.3173598051071167,
-0.14306099712848663,
0.3974967300891876,
-0.13693994283676147,
0.2823218107223511,
0.20007236301898956,
0.11651362478733063,
-0.025203436613082886,
0.1742735356092453,
-0.01708868518471718,
-0.01824435591697693,
0.1442669928073883,
-0.07403790950775146,
-0.028406931087374687,
0.3510410189628601,
0.12942564487457275,
-0.23276111483573914,
-0.10225602239370346,
0.0341760516166687,
-0.06307611614465714,
0.14572495222091675,
-0.11923736333847046,
0.12048755586147308,
0.0023406781256198883,
0.6824349164962769,
-0.1257651150226593,
-0.18499457836151123,
-0.2092805653810501,
-0.09097591042518616,
-0.10111330449581146,
0.034301817417144775,
-0.15159288048744202,
0.029892118647694588,
0.0362040176987648,
-0.4707599878311157,
0.12462730705738068,
0.1019475907087326,
-0.054782867431640625,
-0.11864113807678223,
-0.4549552798271179,
0.283439576625824,
-0.25646495819091797,
-0.391073077917099,
-0.03253768011927605,
0.10195472091436386,
0.23474356532096863,
0.010864797979593277,
-0.14539945125579834,
0.06580018997192383,
0.05132307484745979,
-0.007698755711317062,
0.2702142596244812,
-0.08341440558433533,
-0.14983077347278595,
-0.03950227424502373,
-0.16116677224636078,
0.057236719876527786,
0.1878032237291336,
-0.19460883736610413,
0.14141245186328888,
0.2921893000602722,
-0.13587839901447296,
-0.38490912318229675,
0.1558651626110077,
-0.1216333657503128,
0.04630357027053833,
0.4255715310573578,
-0.24248257279396057,
-0.3623392581939697,
0.1913568079471588,
0.33844709396362305,
-0.16663974523544312,
-0.10544735193252563,
0.23950183391571045,
0.10636243969202042,
-0.5258744955062866,
0.05448075383901596,
0.153938889503479,
0.47102850675582886,
-0.019393084570765495,
-0.0037686116993427277,
0.23193858563899994,
-0.750491201877594,
-0.1091424822807312,
-0.35529476404190063,
-0.28996559977531433,
0.24946144223213196,
-0.2133907526731491,
0.07850157469511032,
-0.1959085464477539,
0.019029011949896812,
0.2596179246902466,
-0.068084716796875,
-0.2487381249666214,
0.21405383944511414,
-0.20452113449573517,
0.011654632166028023,
0.1629921942949295,
0.18184047937393188,
0.13228458166122437,
0.048519909381866455,
0.1022280901670456,
-0.09280213713645935,
-0.3593689501285553,
-0.13953378796577454,
-0.005581781268119812,
0.09575788676738739,
-0.008807703852653503,
-0.11008759588003159,
0.049774110317230225,
-0.17504596710205078,
-0.014561954885721207,
-0.1571628898382187,
-0.15055237710475922,
0.23732590675354004,
0.1356777846813202,
-0.11252851784229279,
0.16059544682502747,
-0.049646005034446716,
-0.28928303718566895,
0.3091975450515747,
0.15574654936790466,
0.26550066471099854,
0.26231861114501953,
-0.17233484983444214,
-0.23542800545692444,
-0.043110769242048264,
-0.13496017456054688,
0.018605653196573257,
-0.04056596755981445,
-0.1381244659423828,
0.2875162661075592,
-0.020358286798000336,
0.042812515050172806,
-0.03272416815161705,
0.20530208945274353,
0.07514562457799911,
-0.19980575144290924,
0.2819973826408386,
0.42310822010040283,
0.08534782379865646,
-0.34148159623146057,
0.1376572847366333,
0.12283055484294891,
0.05778651311993599,
-0.052853215485811234,
-0.18045976758003235,
-0.24738545715808868,
0.19403764605522156,
-0.018629148602485657,
0.04206115007400513,
0.2001730501651764,
0.15390363335609436,
0.3345659673213959,
0.4152142405509949,
0.23629502952098846,
-0.06609274446964264,
0.31934529542922974,
0.16582150757312775,
0.06525497138500214,
0.49296796321868896,
-0.10178972035646439,
0.3545520305633545,
-0.6261976361274719,
0.31194624304771423,
0.01612752676010132,
-0.4276149272918701,
-0.07344846427440643,
0.14919975399971008,
-0.089267298579216,
-0.14754492044448853,
-0.14916709065437317,
0.40757352113723755,
-0.17820629477500916,
0.09093228727579117,
-0.18220987915992737,
0.03982004523277283,
0.007886657491326332,
0.04208489879965782,
0.12493127584457397,
-0.31949883699417114,
0.0690995305776596,
-0.010481301695108414,
0.28258824348449707,
-0.33005291223526,
-0.13212144374847412,
0.10353204607963562,
-0.10194344818592072,
-0.1543000489473343,
-0.22642767429351807,
0.1020386815071106,
-0.01656734198331833,
0.006534099578857422,
0.14163295924663544,
0.19482068717479706,
0.02239098772406578,
0.04225458949804306,
0.18140193819999695,
0.37014761567115784,
0.02525203302502632,
0.06330554187297821,
-0.11174698173999786,
-0.1309589147567749,
-0.03375823050737381,
0.04166737571358681,
0.24964165687561035,
0.07430241256952286,
0.07412648946046829,
0.3713850677013397,
0.12138859927654266,
-0.15664757788181305,
-0.28034716844558716,
0.092797189950943,
0.2560226619243622,
-0.24451744556427002,
0.4824370741844177,
-0.5761269330978394,
0.005578920245170593,
-0.18509523570537567,
-0.09213172644376755,
-0.4762137532234192,
0.5811566710472107,
0.24588125944137573,
-0.3841911256313324,
-0.13724753260612488,
-0.16093699634075165,
0.05347127467393875,
0.010903148911893368,
0.4640219509601593,
0.3801373541355133,
0.4002388119697571,
-0.24733799695968628,
-0.5967435836791992,
-0.7138708829879761,
0.20299649238586426,
-0.12870770692825317,
0.014065315946936607,
-0.016893992200493813,
0.09791208058595657,
-0.10944009572267532,
0.32119327783584595,
0.2787204384803772,
0.09092609584331512,
0.38006502389907837,
-0.07814006507396698,
-0.08953860402107239,
-0.15599416196346283,
-0.20072771608829498,
-0.006341315805912018,
-0.12186456471681595,
-0.153665691614151,
0.06662063300609589,
-0.44744837284088135,
-0.03139307349920273,
0.13142773509025574,
0.13802282512187958,
-0.11379458010196686,
-0.05849126726388931,
0.4580972194671631,
-0.04548847675323486,
0.21344152092933655,
0.0362047478556633,
-0.034438855946063995,
-0.17633166909217834,
-0.23219740390777588,
0.24595129489898682,
-0.023341089487075806,
-0.038154419511556625,
0.004017386585474014,
-0.2301509976387024,
-0.23830465972423553,
-0.2027825564146042,
0.430776983499527,
0.1455107033252716,
0.2989000380039215,
-0.04868500679731369,
0.07911200076341629,
-0.027856025844812393,
-0.08894012123346329,
0.27188754081726074,
-0.023565523326396942,
-0.17768333852291107,
-0.057247474789619446,
-0.1270514577627182,
-0.1526109129190445,
0.6423465013504028,
-0.38832512497901917,
0.16754789650440216,
-0.1507979929447174,
0.04554767906665802,
0.04172171279788017,
-0.21818478405475616,
-0.7388221025466919,
0.2959374189376831,
0.31846755743026733,
0.37564605474472046,
-0.15932032465934753,
0.1444541960954666,
-0.23463958501815796,
-0.06979940831661224,
0.13745342195034027,
0.07604976743459702,
-0.03250636160373688,
-0.038327425718307495,
0.1242024302482605,
-0.015437213703989983
] |
https://github.com/huggingface/datasets/issues/2705 | 404 not found error on loading WIKIANN dataset | Hi @ronbutan, thanks for reporting.
You are right: we have recently found that the link to the original PAN-X dataset (also called WikiANN), hosted at Dropbox, is no longer working.
We have opened an issue in the GitHub repository of the original dataset (afshinrahimi/mmner#4) and we have also contacted the author by email to ask if they are planning to fix this issue. See the details here: https://github.com/huggingface/datasets/issues/2691#issuecomment-885463027
I close this issue because it is the same as in #2691. Feel free to subscribe to that other issue to be informed about any updates. | ## Describe the bug
Unable to retreive wikiann English dataset
## Steps to reproduce the bug
```python
from datasets import list_datasets, load_dataset, list_metrics, load_metric
WIKIANN = load_dataset("wikiann","en")
```
## Expected results
Colab notebook should display successful download status
## Actual results
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.1
- Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.11
- PyArrow version: 3.0.0
| 94 | 404 not found error on loading WIKIANN dataset
## Describe the bug
Unable to retreive wikiann English dataset
## Steps to reproduce the bug
```python
from datasets import list_datasets, load_dataset, list_metrics, load_metric
WIKIANN = load_dataset("wikiann","en")
```
## Expected results
Colab notebook should display successful download status
## Actual results
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.1
- Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.11
- PyArrow version: 3.0.0
Hi @ronbutan, thanks for reporting.
You are right: we have recently found that the link to the original PAN-X dataset (also called WikiANN), hosted at Dropbox, is no longer working.
We have opened an issue in the GitHub repository of the original dataset (afshinrahimi/mmner#4) and we have also contacted the author by email to ask if they are planning to fix this issue. See the details here: https://github.com/huggingface/datasets/issues/2691#issuecomment-885463027
I close this issue because it is the same as in #2691. Feel free to subscribe to that other issue to be informed about any updates. | [
-0.1983267068862915,
0.014373883605003357,
0.0021063871681690216,
0.23605558276176453,
0.03386017307639122,
0.06316614896059036,
0.05425315722823143,
0.19719533622264862,
-0.023259850218892097,
0.18440191447734833,
-0.19901664555072784,
0.34823185205459595,
0.1889098584651947,
-0.03520497307181358,
0.13873936235904694,
-0.251796692609787,
0.029693491756916046,
0.263538122177124,
0.05810778588056564,
-0.09758882224559784,
-0.21162952482700348,
0.18207521736621857,
-0.4031834006309509,
0.2455025613307953,
-0.1433740109205246,
-0.004809694364666939,
0.02790103666484356,
0.1099606305360794,
-0.33658185601234436,
-0.2690233588218689,
0.3799152672290802,
-0.22253385186195374,
0.32790377736091614,
0.6063836812973022,
-0.0001109609438572079,
-0.07591457664966583,
0.4458804130554199,
0.10000969469547272,
-0.3918362259864807,
-0.40558290481567383,
-0.4237222671508789,
-0.09749145060777664,
-0.008898742496967316,
-0.2199465036392212,
-0.03363232687115669,
-0.3518971800804138,
-0.026359913870692253,
0.04644956439733505,
0.1087757870554924,
0.4080132246017456,
0.21612083911895752,
0.3451710343360901,
0.19947956502437592,
-0.07589851319789886,
0.11122369021177292,
-0.20418022572994232,
-0.29388707876205444,
0.24858848750591278,
0.3716220259666443,
0.019318263977766037,
0.21474218368530273,
0.4076726734638214,
-0.01293568778783083,
-0.11919301748275757,
0.00026054680347442627,
0.09621056169271469,
-0.23527660965919495,
-0.32713237404823303,
0.19403678178787231,
0.4193383455276489,
0.7381361126899719,
-0.07732503861188889,
-0.3165581226348877,
-0.10834257304668427,
0.19985634088516235,
-0.1682269424200058,
0.22594726085662842,
-0.02507886104285717,
-0.12835970520973206,
0.21046540141105652,
0.1944340020418167,
-0.3695298433303833,
-0.1503363996744156,
0.28802722692489624,
-0.06775437295436859,
0.6986862421035767,
-0.029351316392421722,
0.018618356436491013,
-0.10053238272666931,
-0.20149359107017517,
0.6673566102981567,
-0.07950074970722198,
0.10716750472784042,
0.09523790329694748,
-0.1010604053735733,
-0.007474232465028763,
0.07825381308794022,
0.2704423666000366,
0.0974569097161293,
-0.534289538860321,
0.08907071501016617,
0.07139027863740921,
-0.17264904081821442,
0.12932747602462769,
0.09667274355888367,
0.4672057330608368,
0.11363634467124939,
0.0596066489815712,
0.3231092691421509,
0.5634965896606445,
-0.05617332458496094,
-0.08622726798057556,
-0.22024837136268616,
0.036675695329904556,
0.07653973996639252,
-0.12122311443090439,
0.2347896248102188,
-0.27975571155548096,
-0.17787520587444305,
0.11101504415273666,
0.01049685850739479,
-0.11178329586982727,
0.1340743452310562,
0.3343398869037628,
-0.05209772288799286,
0.46857398748397827,
-0.10902515798807144,
-0.03539246320724487,
-0.29612913727760315,
-0.014135033823549747,
-0.12278071790933609,
0.22994650900363922,
-0.29763227701187134,
-0.030436700209975243,
0.017703842371702194,
-0.00027281977236270905,
0.3745609223842621,
-0.10934735089540482,
0.26856547594070435,
-0.07992681115865707,
0.04724086821079254,
-0.05898067727684975,
-0.16804063320159912,
0.20729729533195496,
0.18564577400684357,
0.09388921409845352,
-0.03930176421999931,
-0.5908221006393433,
-0.003734700381755829,
0.25002866983413696,
-0.5024210214614868,
-0.11107978224754333,
-0.30879294872283936,
0.20745660364627838,
-0.03941495716571808,
-0.09533916413784027,
-0.2219093143939972,
0.08939914405345917,
-0.1252567172050476,
-0.2733164131641388,
-0.048346199095249176,
-0.15643249452114105,
-0.07152637094259262,
-0.07148662954568863,
0.070688396692276,
0.15402978658676147,
-0.39549899101257324,
-0.06631115078926086,
-0.015067491680383682,
0.09245122969150543,
0.010231167078018188,
0.2509191334247589,
-0.2897426187992096,
0.1805291771888733,
-0.4087095558643341,
0.29948586225509644,
0.4748588800430298,
-0.6277832388877869,
-0.47029533982276917,
-0.15518486499786377,
-0.21839426457881927,
0.17647935450077057,
-0.173221617937088,
-0.13972140848636627,
0.062319688498973846,
-0.024624070152640343,
0.3741477429866791,
0.25298428535461426,
0.1814841330051422,
-0.17659705877304077,
-0.3372810184955597,
-0.2627294361591339,
-0.18732212483882904,
0.054497379809617996,
0.27011701464653015,
-0.0965789332985878,
0.22201091051101685,
0.0977875217795372,
0.2185596227645874,
-0.3049603998661041,
-0.03528109937906265,
0.3708952069282532,
0.27774521708488464,
0.0029749050736427307,
0.04270176589488983,
-0.16318359971046448,
-0.24017775058746338,
0.23564979434013367,
-0.06516925990581512,
0.2263508290052414,
-0.13035014271736145,
-0.1732659935951233,
-0.5030013918876648,
0.02821596898138523,
-0.4124867022037506,
0.011803712695837021,
0.20276959240436554,
0.0639728456735611,
-0.09518930315971375,
0.38212302327156067,
-0.12547868490219116,
0.05538341403007507,
-0.06486067175865173,
0.05906686931848526,
-0.14258559048175812,
0.30040067434310913,
-0.2772378921508789,
0.05214350298047066,
0.00996578112244606,
0.35019999742507935,
0.32463932037353516,
0.06505093723535538,
-0.05871939659118652,
0.141134575009346,
-0.27383142709732056,
-0.008421473205089569,
0.6433120369911194,
-0.08431084454059601,
0.25592103600502014,
-0.46607667207717896,
0.21869508922100067,
0.06542299687862396,
0.18413971364498138,
0.03611046075820923,
-0.04124831408262253,
0.2195613831281662,
0.2949729263782501,
0.10333410650491714,
0.16457931697368622,
0.07501973956823349,
0.39242714643478394,
-0.20228907465934753,
0.04770295321941376,
-0.3806106448173523,
0.1593780517578125,
-0.27649691700935364,
0.1574203372001648,
-0.19358909130096436,
-0.20637886226177216,
0.24189376831054688,
0.41384416818618774,
-0.24434271454811096,
0.2266426682472229,
0.15896663069725037,
-0.26875537633895874,
-0.05737673491239548,
0.216517373919487,
0.3593728244304657,
0.33088743686676025,
0.15745705366134644,
0.3751513957977295,
0.07560491561889648,
-0.06192236393690109,
-0.028679484501481056,
0.21858853101730347,
-0.03857220709323883,
0.13424023985862732,
0.2594105303287506,
0.21804994344711304,
0.005973683670163155,
-0.33778437972068787,
-0.23733431100845337,
-0.1496371030807495,
0.20967088639736176,
-0.04744856059551239,
-0.03733116760849953,
-0.28403809666633606,
-0.23944586515426636,
-0.09973287582397461,
-0.11303094774484634,
-0.19366341829299927,
-0.4324692189693451,
0.03765943646430969,
0.013679396361112595,
0.18238064646720886,
0.16215315461158752,
-0.1680106818675995,
-0.09756208956241608,
-0.0643109530210495,
-0.1069129928946495,
-0.32569363713264465,
-0.021321671083569527,
-0.4002249240875244,
0.05501653626561165,
0.13995860517024994,
0.011889632791280746,
0.04373551905155182,
-0.4289548099040985,
0.04449436068534851,
-0.39280179142951965,
-0.49042582511901855,
0.31522199511528015,
-0.006296675652265549,
0.3915444016456604,
-0.074369877576828,
0.22677873075008392,
-0.08173444867134094,
-0.19397172331809998,
0.2416510283946991,
-0.32596734166145325,
0.056970998644828796,
-0.026868656277656555,
-0.08117718249559402,
-0.020122868940234184,
0.1438261717557907,
-0.24768027663230896,
-0.3624432384967804,
-0.09889863431453705,
-0.3223593235015869,
-0.1130257099866867,
-0.028317943215370178,
0.16638411581516266,
0.08703990280628204,
0.25703153014183044,
-0.06554122269153595,
-0.19781745970249176,
-0.29992568492889404,
-0.2391170859336853,
0.4530377686023712,
-0.21171991527080536,
-0.22439749538898468,
0.25397786498069763,
-0.11932327598333359,
0.2886123061180115,
-0.24184347689151764,
-0.5117618441581726,
-0.46581515669822693,
-0.07484263926744461,
0.4123659133911133,
0.09361582249403,
0.09906748682260513,
0.20168384909629822,
0.05596940219402313,
-0.05547342449426651,
-0.0769423171877861,
-0.19395865499973297,
-0.3744466006755829,
0.0871133953332901,
0.4336402714252472,
-0.02948397397994995,
0.011090097948908806,
0.05805095657706261,
0.4314292073249817,
0.10376100242137909,
0.3736896514892578,
0.4079250693321228,
0.07399248331785202,
0.4846552610397339,
-0.1832886040210724,
-0.17954683303833008,
-0.00456065870821476,
-0.16733884811401367,
-0.18428216874599457,
0.13886576890945435,
0.36081352829933167,
-0.4884895384311676,
-0.38888099789619446,
-0.20705637335777283,
-0.5439022183418274,
-0.2546106278896332,
-0.25338488817214966,
0.34864291548728943,
-0.012165024876594543,
0.2779345214366913,
0.08119504898786545,
-0.1389019787311554,
-0.17066097259521484,
0.03346985951066017,
0.4500012993812561,
-0.11775188893079758,
0.011662714183330536,
-0.3267327547073364,
-0.003824325278401375,
-0.5948866009712219,
0.12459791451692581,
-0.04871708154678345,
0.4634472727775574,
0.0193503238260746,
0.164951354265213,
0.12430166453123093,
-0.13934992253780365,
0.13266246020793915,
-0.5171256065368652,
0.07150355726480484,
0.017452098429203033,
0.29447513818740845,
-0.10080558806657791,
-0.02994457073509693,
-0.12415261566638947,
-0.021814709529280663,
0.08833065629005432,
0.3394630551338196,
-0.19617754220962524,
-0.05453690513968468,
0.42826053500175476,
0.3095886707305908,
-0.07252278178930283,
-0.02787589281797409,
-0.23788999021053314,
-0.6871283650398254,
-0.048893868923187256,
-0.14858222007751465,
-0.006867645308375359,
0.13951556384563446,
0.06602243334054947,
0.0056033506989479065,
0.00020054355263710022,
0.1595851480960846,
-0.012886971235275269,
0.2413863092660904,
0.11817541718482971,
0.1687460094690323,
-0.08369309455156326,
0.08700145781040192,
-0.038288556039333344,
0.24883857369422913,
0.4720654785633087,
-0.1361256092786789,
-0.5144057273864746,
-0.24390766024589539,
-0.08874726295471191,
0.059064410626888275,
0.2464936077594757,
-0.12936317920684814,
-0.23279565572738647,
0.040993645787239075,
0.16700753569602966,
0.19614286720752716,
0.21501894295215607,
0.3455318212509155,
0.23008613288402557,
-0.5121196508407593,
-0.0948590487241745,
0.39556649327278137,
0.040389541536569595,
-0.02156791090965271,
0.4098517894744873,
0.15628603100776672,
-0.21896854043006897,
0.1863829344511032,
-0.07326755672693253,
1.0719256401062012,
-0.09111259877681732,
0.21139772236347198,
0.360704630613327,
-0.16902145743370056,
0.08085183799266815,
0.06972155719995499,
0.09890991449356079,
-0.14436882734298706,
-0.2136267125606537,
-0.13772201538085938,
0.04931684955954552,
0.013337574899196625,
-0.2496158629655838,
-0.17790630459785461,
0.4681975841522217,
0.05009278655052185,
0.2999769449234009,
0.3743361532688141,
0.21240544319152832,
-0.1332148313522339,
-0.08354099094867706,
-0.1145634800195694,
0.11672858893871307,
-0.11611337959766388,
0.1636292189359665,
-0.2745771110057831,
-0.03611820563673973,
-0.06918017566204071,
-0.1278301477432251,
-0.21919424831867218,
0.18463543057441711,
-0.2150387316942215,
0.0012124478816986084,
-0.2951926290988922,
-0.6971201300621033,
-0.08813665807247162,
0.43817365169525146,
-0.08142092823982239,
0.1437566727399826,
-0.3321283757686615,
0.38853442668914795,
-0.12054330855607986,
0.019439026713371277,
0.043305329978466034,
-0.4239310622215271,
0.04854363948106766,
-0.07400989532470703,
-0.4560857117176056,
0.046534813940525055,
-0.002385479398071766,
0.08682671189308167,
-0.18211308121681213,
0.09334279596805573,
0.0025486983358860016,
-0.009811869822442532,
-0.10353736579418182,
0.11486665159463882,
0.12167508900165558,
-0.411383718252182,
0.13548143208026886,
-0.11525385081768036,
-0.06806615740060806,
-0.04926799237728119,
0.21874108910560608,
-0.23285216093063354,
-0.010587412863969803,
0.26593273878097534,
0.052638448774814606,
-0.17030125856399536,
0.2356356978416443,
0.030227888375520706,
-0.2531353831291199,
-0.1517295241355896,
0.005413047969341278,
-0.17494270205497742,
-0.3292524516582489,
-0.17287351191043854,
0.0499940849840641,
0.070730060338974,
-0.2453923225402832,
0.22827300429344177,
0.1984299272298813,
-0.24769246578216553,
-0.11966091394424438,
-0.4557778835296631,
-0.07028523087501526,
0.2636733055114746,
0.015657585114240646,
0.12527599930763245,
0.03511061519384384,
-0.1545596420764923,
0.017141709104180336,
-0.1899532973766327,
-0.3249896764755249,
0.13028168678283691,
-0.17261716723442078,
-0.10024566948413849,
-0.06111565977334976,
-0.0010173171758651733,
0.2794390320777893,
-0.012363443151116371,
0.1607063114643097,
-0.06857437640428543,
0.050645504146814346,
-0.17117691040039062,
-0.04071773216128349,
0.11010300368070602,
0.1396261304616928,
-0.09979093819856644,
-0.01332339271903038,
-0.299019992351532,
0.16170214116573334,
-0.21713119745254517,
-0.018371108919382095,
0.20072942972183228,
0.06660299003124237,
-0.007603711448609829,
0.20762832462787628,
0.1514819860458374,
-0.0018375813961029053,
0.3704831004142761,
0.17045316100120544,
0.2995699644088745,
0.05928782746195793,
0.08693140000104904,
0.14704355597496033,
0.15853461623191833,
0.2571718692779541,
-0.11941976100206375,
-0.1919035166501999,
0.46165958046913147,
0.33683666586875916,
-0.33511942625045776,
0.11515818536281586,
0.18227729201316833,
0.18198071420192719,
0.25653761625289917,
-0.23511014878749847,
-0.16910074651241302,
0.3897416293621063,
0.23370607197284698,
-0.40884098410606384,
-0.27050355076789856,
0.7051087617874146,
0.13844597339630127,
0.019532952457666397,
0.1763792634010315,
0.14711445569992065,
-0.16894903779029846,
0.09905146807432175,
-0.04300229623913765,
0.44942083954811096,
0.1409204751253128,
0.22152429819107056,
0.257134348154068,
0.004680175334215164,
0.18894752860069275,
0.2908565104007721,
0.06058163195848465,
-0.007808484137058258,
0.5327866077423096,
-0.04777032881975174,
0.31201452016830444,
-0.0900689885020256,
0.5175079703330994,
-0.3650616705417633,
-0.16091783344745636,
0.1385195106267929,
-0.27048227190971375,
0.08757895976305008,
0.08422910422086716,
0.013295896351337433,
-0.17403724789619446,
-0.03492317348718643,
0.15465155243873596,
-0.17054350674152374,
0.09714300185441971,
-0.20057153701782227,
-0.033706892281770706,
-0.17426559329032898,
-0.3630823493003845,
0.32500460743904114,
-0.07058055698871613,
0.0345463752746582,
0.05864223465323448,
-0.28984567523002625,
0.1423875242471695,
-0.09714527428150177,
-0.09245867282152176,
0.07285840064287186,
0.39945513010025024,
0.11106593906879425,
-0.013152837753295898,
0.33746588230133057,
0.3209851086139679,
0.268896222114563,
-0.35773199796676636,
0.33981063961982727,
0.3719189167022705,
0.13484317064285278,
-0.2798982262611389,
-0.05266530439257622,
0.024911217391490936,
-0.12452660501003265,
-0.07728143781423569,
0.043800998479127884,
0.16288252174854279,
0.0021945033222436905,
0.29330551624298096,
0.19431540369987488,
-0.22423364222049713,
0.3932960033416748,
-0.011173177510499954,
-0.03381040319800377,
-0.05374462530016899,
-0.446410208940506,
-0.07815315574407578,
-0.07924485206604004,
-0.3510477840900421,
-0.009435229003429413,
-0.22643926739692688,
0.608411431312561,
0.4803208112716675,
-0.13243897259235382,
0.06563261896371841,
-0.14732106029987335,
0.07006480544805527,
0.10076488554477692,
0.1866699606180191,
0.5567755699157715,
0.048867739737033844,
-0.19498872756958008,
-0.28054752945899963,
-0.8394196629524231,
0.21461118757724762,
-0.4184161424636841,
-0.21929800510406494,
0.12834620475769043,
-0.15781612694263458,
-0.18907949328422546,
0.10426409542560577,
0.48049396276474,
0.47387295961380005,
0.14696837961673737,
0.20532239973545074,
-0.3954739272594452,
-0.32867947220802307,
0.29865097999572754,
0.09619352966547012,
-0.08352693915367126,
-0.2910257875919342,
-0.06355227530002594,
0.05931166931986809,
-0.009148817509412766,
-0.021053072065114975,
0.00023200362920761108,
-0.2736732065677643,
-0.47895094752311707,
0.6185746788978577,
0.2002343386411667,
0.13023753464221954,
-0.20664089918136597,
-0.22193562984466553,
-0.06274223327636719,
-0.23153288662433624,
-0.057964809238910675,
0.20540910959243774,
0.12755510210990906,
0.10050994157791138,
-0.03112451732158661,
0.006656412035226822,
-0.2374490648508072,
0.14022080600261688,
0.1548164039850235,
0.19144167006015778,
-0.2015690952539444,
0.12493465095758438,
0.07308166474103928,
0.045683201402425766,
0.11385364830493927,
0.33278173208236694,
-0.18592265248298645,
0.2362198680639267,
-0.00523010641336441,
-0.46759262681007385,
0.4862316846847534,
-0.02276303619146347,
-0.3595174551010132,
-0.09219565242528915,
0.10791119933128357,
-0.08129779249429703,
-0.11362618952989578,
-0.12582126259803772,
0.15037760138511658,
0.26720812916755676,
0.18069615960121155,
-0.24539312720298767,
0.1420568972826004,
-0.06776072084903717,
0.10506978631019592,
0.014162901788949966,
0.4371636211872101,
0.1009187325835228,
-0.2681315243244171,
-0.025753766298294067,
-0.029371997341513634
] |
https://github.com/huggingface/datasets/issues/2700 | from datasets import Dataset is failing | Hi @kswamy15, thanks for reporting.
We are fixing this critical issue and making an urgent patch release of the `datasets` library today.
In the meantime, you can circumvent this issue by updating the `tqdm` library: `!pip install -U tqdm` | ## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import Dataset
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: latest version as of 07/21/2021
- Platform: Google Colab
- Python version: 3.7
- PyArrow version:
| 39 | from datasets import Dataset is failing
## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import Dataset
```
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: latest version as of 07/21/2021
- Platform: Google Colab
- Python version: 3.7
- PyArrow version:
Hi @kswamy15, thanks for reporting.
We are fixing this critical issue and making an urgent patch release of the `datasets` library today.
In the meantime, you can circumvent this issue by updating the `tqdm` library: `!pip install -U tqdm` | [
-0.40854549407958984,
-0.15285880863666534,
-0.12398098409175873,
0.06415057927370071,
0.11212562769651413,
0.10350476950407028,
0.3430987000465393,
0.22389811277389526,
-0.13659407198429108,
0.0548991933465004,
-0.08839066326618195,
0.28764060139656067,
0.0480186752974987,
0.06119982898235321,
-0.13520953059196472,
0.019828997552394867,
-0.05538862198591232,
-0.010933049023151398,
-0.33377447724342346,
0.1266525685787201,
-0.21732278168201447,
0.3459279537200928,
-0.3196709156036377,
-0.06650705635547638,
-0.2649056315422058,
-0.21713554859161377,
-0.0884474590420723,
0.2700226902961731,
-0.08907099068164825,
-0.3350610136985779,
0.00573810376226902,
0.14068210124969482,
-0.037914324551820755,
0.5401779413223267,
-0.0001011048661894165,
-0.00783560425043106,
0.3128854036331177,
0.09356395155191422,
-0.08441740274429321,
-0.07104721665382385,
-0.3134647011756897,
-0.4694294333457947,
0.08068467676639557,
-0.19161611795425415,
-0.0022027790546417236,
0.10913679003715515,
-0.012365376576781273,
-0.31574133038520813,
0.31910440325737,
0.3372053802013397,
0.3364602029323578,
0.5836634635925293,
0.0019610971212387085,
-0.3067323863506317,
0.0630691796541214,
-0.3369418978691101,
-0.16334572434425354,
0.2865930199623108,
0.4009720981121063,
-0.1956421583890915,
-0.013574451208114624,
0.1969815194606781,
-0.21396662294864655,
0.21284602582454681,
0.06265705078840256,
0.03283991664648056,
-0.041646406054496765,
-0.4304128587245941,
0.2624838352203369,
0.18701666593551636,
0.5149675011634827,
-0.32717427611351013,
-0.03733786195516586,
-0.05686807632446289,
0.003816830227151513,
-0.23251473903656006,
0.2190859019756317,
-0.036922477185726166,
-0.13161875307559967,
0.22365465760231018,
-0.03621728718280792,
0.07104828208684921,
0.052687518298625946,
0.03846438601613045,
-0.22176817059516907,
-0.04606768488883972,
-0.08298926055431366,
-0.04080982506275177,
-0.04121565446257591,
-0.13637018203735352,
0.37135258316993713,
-0.007810218259692192,
0.028417116031050682,
-0.023821137845516205,
-0.5177699327468872,
-0.05755691975355148,
0.3645917475223541,
0.035568539053201675,
0.09874515980482101,
0.012087637558579445,
-0.03975464776158333,
0.10945962369441986,
-0.07145053893327713,
0.31002843379974365,
0.16832523047924042,
-0.10733255743980408,
-0.005500167608261108,
0.07948808372020721,
0.2821151614189148,
0.18807020783424377,
-0.21654367446899414,
0.08192786574363708,
0.06307081878185272,
-0.472385048866272,
0.23844100534915924,
0.10428494215011597,
0.28063684701919556,
0.10728169977664948,
-0.37295612692832947,
0.04527496173977852,
-0.04403133690357208,
0.13769219815731049,
-0.09065934270620346,
0.41095760464668274,
-0.10914923995733261,
0.015047978609800339,
-0.0427166111767292,
0.06004766374826431,
-0.2108018845319748,
-0.3220812678337097,
-0.2802448272705078,
0.02439454011619091,
0.04633820429444313,
-0.1378919631242752,
-0.041607342660427094,
-0.16257037222385406,
0.21165940165519714,
0.04829129949212074,
0.15722958743572235,
0.09542517364025116,
0.16688689589500427,
-0.27029547095298767,
-0.057617463171482086,
0.4077107906341553,
0.19267135858535767,
0.04098907858133316,
0.2395564466714859,
-0.09556908905506134,
-0.07582066208124161,
0.09298605471849442,
-0.25969451665878296,
-0.18633274734020233,
-0.006995001807808876,
0.3259134888648987,
0.10396097600460052,
-0.25566744804382324,
-0.09166165441274643,
0.11335746943950653,
0.07731550931930542,
-0.18635590374469757,
-0.0654878243803978,
-0.2524954676628113,
-0.0674688071012497,
-0.3504024147987366,
0.0776728168129921,
0.538080096244812,
-0.43270885944366455,
-0.014956027269363403,
-0.15926234424114227,
-0.10781307518482208,
0.01245766133069992,
0.2770962119102478,
-0.0810050219297409,
0.16957874596118927,
-0.1159965917468071,
0.04912459850311279,
0.24016806483268738,
-0.3199150264263153,
-0.36263778805732727,
0.0908704474568367,
-0.3010790944099426,
-0.04273604974150658,
-0.13671347498893738,
0.09372100234031677,
0.29575303196907043,
-0.009447305463254452,
0.44824039936065674,
0.24621008336544037,
-0.2692752480506897,
0.09033361822366714,
-0.1365797221660614,
-0.2909477651119232,
-0.0536917969584465,
0.04697104170918465,
0.2362900674343109,
-0.08992554992437363,
0.2524040937423706,
-0.2295200079679489,
0.1484711468219757,
0.1339481770992279,
-0.018707379698753357,
0.3950462341308594,
0.3054838478565216,
0.036539822816848755,
-0.03233204036951065,
-0.18340030312538147,
-0.5057474374771118,
0.24987447261810303,
0.3089754581451416,
0.08186358213424683,
-0.023477979004383087,
-0.008907325565814972,
-0.44862014055252075,
0.20375286042690277,
-0.1624399721622467,
0.09563907980918884,
0.28822803497314453,
0.08945836126804352,
-0.2714304029941559,
0.05097741261124611,
-0.24730244278907776,
0.436018168926239,
0.03216204792261124,
0.08695350587368011,
-0.10878632962703705,
0.2889498174190521,
-0.2754172682762146,
-0.258111834526062,
0.21473020315170288,
-0.05800933390855789,
0.24765312671661377,
0.0031080080661922693,
-0.05819253623485565,
0.32931020855903625,
0.0771937146782875,
0.24509920179843903,
0.13071241974830627,
-0.05771958827972412,
0.19696837663650513,
-0.2697571814060211,
-0.09545516222715378,
0.09380564093589783,
0.10415726155042648,
-0.07342708110809326,
0.08057643473148346,
0.17065444588661194,
-0.21421541273593903,
0.010488733649253845,
0.03483666479587555,
0.22887256741523743,
0.3592413067817688,
-0.05495096743106842,
-0.05419178307056427,
-0.13662920892238617,
0.22214293479919434,
0.11840188503265381,
0.01258416473865509,
-0.14748074114322662,
-0.24708953499794006,
0.24930772185325623,
0.4901154339313507,
0.10153788328170776,
0.15998977422714233,
-0.1755923628807068,
-0.21589988470077515,
0.09772101789712906,
0.1335703432559967,
0.35445791482925415,
0.47675269842147827,
0.23726706206798553,
0.1458982676267624,
0.18171663582324982,
-0.03525610640645027,
-0.22571474313735962,
0.027819402515888214,
0.20883314311504364,
0.06914463639259338,
0.13963675498962402,
0.2791810929775238,
0.057567697018384933,
-0.2701754868030548,
-0.39848217368125916,
0.04939962178468704,
0.23472179472446442,
-0.32264208793640137,
0.02030310593545437,
-0.30221372842788696,
-0.06692477315664291,
-0.033974628895521164,
-0.18413610756397247,
-0.179214209318161,
-0.49881884455680847,
0.017765101045370102,
0.17335261404514313,
-0.03627313673496246,
0.22547776997089386,
-0.08869295567274094,
0.03826092183589935,
0.15818023681640625,
-0.23425798118114471,
-0.08380153775215149,
-0.22351107001304626,
-0.08587968349456787,
0.20162524282932281,
0.12259253859519958,
0.12752316892147064,
0.4814583361148834,
-0.3473612666130066,
-0.07640956342220306,
-0.3007536828517914,
-0.2729538381099701,
0.10808776319026947,
-0.10794106125831604,
0.5393426418304443,
0.16909384727478027,
0.14294597506523132,
-0.1891462504863739,
0.08378329873085022,
0.272969126701355,
-0.28412920236587524,
-0.036144886165857315,
0.11399199068546295,
-0.006927959620952606,
-0.12470061331987381,
-0.005945043638348579,
-0.285399854183197,
-0.2594158947467804,
-0.5138935446739197,
-0.11649183928966522,
0.036663275212049484,
0.08556056022644043,
0.2803022265434265,
0.1171809732913971,
0.2591089606285095,
0.09507961571216583,
0.1597631573677063,
-0.15738791227340698,
-0.2747930884361267,
0.28898370265960693,
-0.26695677638053894,
-0.4839945137500763,
0.2523919343948364,
-0.04362417012453079,
0.24882782995700836,
0.018374670296907425,
-0.29169517755508423,
-0.347537636756897,
-0.0735727995634079,
0.4598749876022339,
-0.01469474658370018,
0.1394757330417633,
0.22422398626804352,
0.10214101523160934,
-0.2486860305070877,
-0.15036123991012573,
-0.1936662495136261,
-0.24385502934455872,
0.26908010244369507,
0.04296664148569107,
-0.06959414482116699,
0.4731345772743225,
0.12930354475975037,
0.5410224199295044,
0.2028912454843521,
0.1337267905473709,
0.3551773130893707,
-0.3133038878440857,
0.4701180160045624,
-0.013746067881584167,
-0.463214635848999,
-0.20931945741176605,
-0.1566200852394104,
-0.21966029703617096,
0.18398430943489075,
-0.12190089374780655,
0.008344793692231178,
-0.20083220303058624,
0.03130718320608139,
-0.3126891255378723,
-0.2886297106742859,
-0.10992638766765594,
-0.03780770301818848,
0.29879230260849,
0.12471833825111389,
-0.007796924561262131,
-0.1730635166168213,
0.07662893086671829,
0.08026079833507538,
0.3518160581588745,
-0.3658190071582794,
-0.20556138455867767,
-0.09202040731906891,
0.039197344332933426,
-0.5612573027610779,
0.314253032207489,
-0.03763154149055481,
0.30101674795150757,
-0.1695302277803421,
0.04660562425851822,
-0.02107089012861252,
-0.13673286139965057,
0.18659871816635132,
-0.27073776721954346,
-0.061026811599731445,
0.3763120472431183,
-0.03752053901553154,
-0.2834615111351013,
0.03169584646821022,
-0.3035867512226105,
-0.08721428364515305,
0.5882401466369629,
0.14968177676200867,
-0.23192429542541504,
0.0843925029039383,
0.17987702786922455,
0.2301519215106964,
-0.04857199639081955,
-0.030697457492351532,
-0.35785719752311707,
-0.6081138253211975,
-0.41690847277641296,
-0.031757742166519165,
0.19469012320041656,
0.14782075583934784,
0.03667769581079483,
-0.12188388407230377,
-0.08149267733097076,
-0.26426273584365845,
0.10142526775598526,
0.2987627387046814,
0.015271392650902271,
0.051446136087179184,
0.37911856174468994,
-0.05459874868392944,
-0.3085269331932068,
0.45532169938087463,
0.5644428133964539,
0.09358692169189453,
-0.36368149518966675,
-0.03503702953457832,
-0.02977437525987625,
0.14752662181854248,
0.1547471582889557,
-0.12155764549970627,
0.015369579195976257,
0.02566392533481121,
0.15828478336334229,
0.31261223554611206,
0.09274580329656601,
0.34124064445495605,
-0.02118859812617302,
-0.10412966459989548,
-0.16989459097385406,
0.11319227516651154,
0.1280115246772766,
0.061129674315452576,
0.28484463691711426,
-0.23907269537448883,
0.012301232665777206,
0.018996862694621086,
0.04771941900253296,
0.6743608117103577,
-0.0058517009019851685,
-0.1335729956626892,
0.349702924489975,
-0.24423107504844666,
0.23129141330718994,
-0.0070458389818668365,
0.14582881331443787,
-0.3999634087085724,
-0.418032705783844,
-0.011390410363674164,
-0.14084766805171967,
0.37667757272720337,
0.018121208995580673,
-0.2749493718147278,
0.23372606933116913,
0.056708261370658875,
0.16945470869541168,
0.004825202282518148,
-0.08591409027576447,
-0.19948257505893707,
-0.2102622389793396,
-0.34247663617134094,
0.2780531048774719,
0.030498448759317398,
0.10023084282875061,
-0.2302432656288147,
-0.07565086334943771,
-0.00227205827832222,
-0.11455376446247101,
-0.22085566818714142,
-0.04306414723396301,
-0.39075303077697754,
0.13655906915664673,
0.15413519740104675,
-0.1798413097858429,
0.012880388647317886,
-0.006883341819047928,
0.10351940244436264,
0.07395082712173462,
-0.11307872831821442,
0.14917130768299103,
0.13117554783821106,
0.025197677314281464,
0.14567779004573822,
-0.13558845221996307,
0.3613079786300659,
-0.17018887400627136,
-0.10812702029943466,
0.2956545054912567,
-0.028227385133504868,
-0.14451417326927185,
0.15492850542068481,
0.3218531012535095,
0.048436034470796585,
-0.09873015433549881,
-0.02497098594903946,
0.07267309725284576,
0.21778494119644165,
-0.4324817955493927,
0.227469801902771,
0.10982169210910797,
0.028008224442601204,
0.44828730821609497,
-0.27451562881469727,
-0.07572857290506363,
-0.16928444802761078,
0.27806219458580017,
-0.09780365973711014,
-0.06835329532623291,
0.26357167959213257,
0.33503690361976624,
-0.21407419443130493,
-0.2988039255142212,
0.30231350660324097,
-0.27148768305778503,
-0.11594278365373611,
0.2750820815563202,
-0.12192121148109436,
-0.0068429261445999146,
0.17697550356388092,
0.5146287083625793,
0.06726537644863129,
-0.14765048027038574,
-0.11885493993759155,
-0.29264605045318604,
-0.33432963490486145,
0.08661322295665741,
0.05719649791717529,
0.06756079196929932,
0.17114919424057007,
0.2797251343727112,
0.09783060103654861,
0.033782027661800385,
-0.46249160170555115,
0.014687945134937763,
-0.41288265585899353,
0.047485411167144775,
0.23572927713394165,
-0.09743858128786087,
0.10138396173715591,
0.024406105279922485,
0.17997148633003235,
0.10522381961345673,
-0.13376034796237946,
-0.3522090017795563,
-0.03364057093858719,
0.08780457824468613,
-0.003943661227822304,
0.021702861413359642,
0.041218776255846024,
-0.19636186957359314,
-0.27579957246780396,
-0.1250043511390686,
0.09607341885566711,
0.07128264755010605,
-0.10347861051559448,
-0.06183548644185066,
0.16381873190402985,
0.0417051762342453,
-0.12514202296733856,
0.09653450548648834,
0.04805868864059448,
0.12411200255155563,
-0.09323906153440475,
0.05617997795343399,
0.09663502871990204,
-0.053085047751665115,
-0.05388910323381424,
0.11238253116607666,
0.08030882477760315,
-0.08464497327804565,
0.4036473333835602,
-0.29340195655822754,
-0.08378881216049194,
0.2388860434293747,
0.43762192130088806,
0.2970947027206421,
-0.10429760813713074,
-0.13265377283096313,
0.13179895281791687,
0.2998235821723938,
-0.4269779622554779,
-0.07977703213691711,
0.22765526175498962,
0.031215451657772064,
0.28949669003486633,
0.16206017136573792,
0.009170792996883392,
0.08038468658924103,
0.11028575897216797,
0.2927853465080261,
0.3749346137046814,
-0.2685065269470215,
0.00895082950592041,
0.05423349142074585,
0.06610368192195892,
0.1620822250843048,
0.3600082993507385,
0.11127562820911407,
0.17886483669281006,
0.4138867259025574,
-0.018664628267288208,
0.15938019752502441,
0.06331384927034378,
-0.11021047830581665,
0.07847407460212708,
-0.48680657148361206,
0.3760782480239868,
-0.07239304482936859,
0.10603915899991989,
-0.1730605959892273,
0.022688910365104675,
0.09556799381971359,
-0.2848629355430603,
0.1331893652677536,
-0.2175021767616272,
0.3178294003009796,
-0.1695961058139801,
0.20800644159317017,
0.2158292531967163,
0.047075800597667694,
-0.004188835620880127,
-0.0685386210680008,
0.11734287440776825,
0.09520155936479568,
0.3830114006996155,
0.11519481241703033,
0.023484662175178528,
-0.571872353553772,
-0.19430449604988098,
0.1402425765991211,
-0.05001983791589737,
-0.34236660599708557,
0.06596570461988449,
0.014820553362369537,
-0.06839035451412201,
-0.20425386726856232,
0.451804518699646,
0.4655425250530243,
0.1875554472208023,
-0.021745704114437103,
-0.053722407668828964,
-0.06947179138660431,
-0.14148344099521637,
-0.15467652678489685,
0.12118905782699585,
-0.08256487548351288,
0.20945686101913452,
0.33940842747688293,
0.25141647458076477,
-0.32594233751296997,
-0.16451579332351685,
0.11480100452899933,
-0.1634513884782791,
-0.3844025731086731,
0.2955074608325958,
-0.14099594950675964,
-0.16078194975852966,
-0.15958735346794128,
-0.03083287924528122,
-0.3114375174045563,
0.0526951365172863,
0.4397566318511963,
-0.28568750619888306,
0.03535706177353859,
-0.24007806181907654,
0.16592323780059814,
-0.07640831172466278,
0.3434973955154419,
0.3479083776473999,
0.09468461573123932,
-0.3236079812049866,
-0.16090840101242065,
-0.8212378621101379,
0.25097891688346863,
-0.12197670340538025,
-0.23373733460903168,
0.035443536937236786,
0.24889864027500153,
0.0543549470603466,
0.3188181519508362,
0.35754072666168213,
0.040806204080581665,
-0.0032816175371408463,
0.12756307423114777,
-0.323161244392395,
-0.21398328244686127,
-0.07536768913269043,
-0.263258695602417,
-0.0036479178816080093,
-0.3058438003063202,
0.17100493609905243,
-0.2677226662635803,
0.1970316767692566,
-0.21129478514194489,
-0.4058314263820648,
0.21468615531921387,
-0.05972788482904434,
0.4275781214237213,
0.0655837208032608,
0.3013673424720764,
-0.21611464023590088,
-0.05436600744724274,
-0.1791130155324936,
-0.34561413526535034,
-0.14447703957557678,
0.22129717469215393,
0.10740116238594055,
0.28343382477760315,
-0.05568467080593109,
-0.1634291559457779,
-0.10558420419692993,
0.18162140250205994,
0.18367844820022583,
0.048966288566589355,
-0.03273393213748932,
0.2775435447692871,
-0.0131123848259449,
0.23474709689617157,
-0.05518506467342377,
0.23314571380615234,
0.006492599844932556,
0.36844998598098755,
-0.4001816511154175,
-0.534904420375824,
0.2997889816761017,
-0.3270011246204376,
-0.4098890721797943,
-0.3604009449481964,
0.2793194651603699,
0.013264477252960205,
-0.1624010056257248,
-0.1239519715309143,
0.033840663731098175,
0.287150114774704,
0.06945148855447769,
-0.18813206255435944,
0.4414677917957306,
-0.01991770789027214,
0.04686390236020088,
0.00827067345380783,
0.20544467866420746,
0.040581390261650085,
-0.20558452606201172,
0.11345496773719788,
0.020056910812854767
] |
https://github.com/huggingface/datasets/issues/2699 | cannot combine splits merging and streaming? | Hi ! That's missing indeed. We'll try to implement this for the next version :)
I guess we just need to implement #2564 first, and then we should be able to add support for splits combinations | this does not work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)`
with error:
`ValueError: Bad split: train+validation. Available splits: ['train', 'validation']`
these work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation')`
`dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)`
`dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)`
i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits | 36 | cannot combine splits merging and streaming?
this does not work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)`
with error:
`ValueError: Bad split: train+validation. Available splits: ['train', 'validation']`
these work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation')`
`dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)`
`dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)`
i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits
Hi ! That's missing indeed. We'll try to implement this for the next version :)
I guess we just need to implement #2564 first, and then we should be able to add support for splits combinations | [
-0.508149266242981,
-0.33735281229019165,
-0.11027909815311432,
-0.014029920101165771,
0.033048685640096664,
0.07413782924413681,
0.07430857419967651,
0.48546579480171204,
-0.06634528189897537,
0.12954021990299225,
-0.2676169276237488,
0.2315489947795868,
-0.05141301453113556,
0.5110139846801758,
0.030207481235265732,
-0.32583707571029663,
0.12861643731594086,
0.09241476655006409,
-0.3972884714603424,
0.20399005711078644,
0.01569470390677452,
0.13198019564151764,
-0.27985578775405884,
-0.3620296120643616,
-0.35139819979667664,
0.31365087628364563,
-0.05598239600658417,
0.04347771778702736,
-0.19322067499160767,
-0.16841508448123932,
-0.08655869960784912,
0.12416453659534454,
-0.0005709528923034668,
0.535513162612915,
-0.00011480475222924724,
-0.04356765002012253,
0.5377914309501648,
0.05551231652498245,
-0.1230916827917099,
0.052075184881687164,
-0.4317379891872406,
-0.04204105585813522,
-0.08819814026355743,
0.15871554613113403,
-0.22716540098190308,
0.11983014643192291,
-0.1076325923204422,
-0.1590534746646881,
0.3743041157722473,
0.0940157100558281,
0.08995819091796875,
0.10130565613508224,
0.0752253383398056,
-0.2277185171842575,
0.03270193934440613,
0.04079311341047287,
-0.07557561993598938,
-0.06728902459144592,
0.16259467601776123,
0.053375907242298126,
0.1702079176902771,
0.20509138703346252,
0.3278670608997345,
-0.23853431642055511,
0.05297939479351044,
-0.07819964736700058,
-0.21639782190322876,
-0.373132586479187,
-0.03001408278942108,
0.27540507912635803,
0.4171728491783142,
0.18062421679496765,
-0.3277600109577179,
0.09249690920114517,
-0.013237631879746914,
-0.4786670506000519,
0.09487560391426086,
0.07550354301929474,
-0.11467321217060089,
0.13166092336177826,
-0.5122503042221069,
-0.2017861008644104,
-0.20650240778923035,
0.25244462490081787,
-0.11535468697547913,
0.6995689868927002,
0.10643932968378067,
-0.02599623054265976,
0.5007658004760742,
0.009583154693245888,
0.1598903387784958,
-0.0029393937438726425,
-0.25090843439102173,
0.09683782607316971,
-0.3748495578765869,
-0.10227841138839722,
-0.4304012656211853,
-0.06137283891439438,
0.001196436583995819,
0.14795687794685364,
-0.05239901691675186,
0.059487637132406235,
0.1386435329914093,
0.10044150054454803,
0.4026205241680145,
-0.11574052274227142,
-0.0750734880566597,
0.2515939772129059,
0.2232341468334198,
0.11672727018594742,
0.2711426317691803,
-0.03399451822042465,
0.06285279244184494,
-0.2844311594963074,
-0.4857781231403351,
0.006191065534949303,
-0.0998200923204422,
-0.13384293019771576,
-0.15902964770793915,
-0.3384343385696411,
-0.14558793604373932,
-0.028670312836766243,
0.0967051088809967,
0.08552174270153046,
-0.2533041536808014,
0.11408382654190063,
-0.10452795028686523,
0.2969154119491577,
0.021670041605830193,
-0.34279584884643555,
-0.13877920806407928,
-0.014583025127649307,
-0.25547096133232117,
-0.08181260526180267,
0.2565940320491791,
-0.2658790647983551,
0.1501656323671341,
0.3329010009765625,
0.28616800904273987,
0.2612113654613495,
-0.21944916248321533,
0.00296059250831604,
0.09761425852775574,
0.34616103768348694,
0.2332955300807953,
-0.2164623737335205,
-0.18023449182510376,
0.2645344138145447,
0.3113659620285034,
-0.011318124830722809,
0.022351060062646866,
-0.43725553154945374,
-0.09991611540317535,
0.1921674907207489,
0.010141164064407349,
-0.13860271871089935,
-0.19208255410194397,
0.5086092948913574,
0.06771347671747208,
-0.15159370005130768,
-0.19039911031723022,
-0.004080146551132202,
0.09676115214824677,
-0.11162250488996506,
0.3906466066837311,
-0.02873048186302185,
-0.4876493215560913,
-0.05726899951696396,
-0.17837828397750854,
-0.12546737492084503,
0.28666749596595764,
0.3830591142177582,
-0.2684166431427002,
-0.31051355600357056,
0.011701256036758423,
0.22970010340213776,
0.28011372685432434,
0.03561544045805931,
-0.1620110720396042,
0.23579823970794678,
0.14932069182395935,
-0.055292412638664246,
0.2690359354019165,
-0.15444427728652954,
0.14836934208869934,
-0.02331574633717537,
0.1964316964149475,
0.5279392004013062,
-0.14719031751155853,
-0.33208349347114563,
-0.22879533469676971,
-0.044387489557266235,
0.25294142961502075,
0.2439572960138321,
0.3917973041534424,
-0.21008732914924622,
0.18734046816825867,
0.1677795946598053,
0.1789095401763916,
-0.18803080916404724,
0.12672565877437592,
-0.028445053845643997,
0.18994572758674622,
-0.06456397473812103,
0.07346171885728836,
-0.2169761061668396,
-0.21153804659843445,
-0.04375549033284187,
-0.05249607563018799,
-0.056415148079395294,
0.5228716135025024,
-0.18009209632873535,
0.013831548392772675,
-0.34558483958244324,
-0.1949624866247177,
-0.09301489591598511,
0.10025809705257416,
-0.13184693455696106,
0.04163635894656181,
-0.32529211044311523,
-0.390595018863678,
0.05452010780572891,
-0.06383964419364929,
0.06766323745250702,
-0.08787605166435242,
0.42467188835144043,
-0.19910454750061035,
-0.23034442961215973,
-0.007940538227558136,
0.2666899263858795,
0.15803419053554535,
-0.09201399981975555,
-0.04498707130551338,
0.6052395105361938,
0.02400248497724533,
0.3310452699661255,
-0.1366332769393921,
0.006403744220733643,
0.4401605725288391,
-0.21972903609275818,
-0.07471159100532532,
0.37927544116973877,
-0.09111995995044708,
-0.17782914638519287,
-0.3126199245452881,
0.09089495241641998,
-0.37670090794563293,
0.07437746226787567,
0.19437099993228912,
0.09169313311576843,
0.08335120975971222,
0.019015882164239883,
-0.26930028200149536,
-0.12215963751077652,
0.10342356562614441,
-0.574957549571991,
0.031605709344148636,
-0.17163781821727753,
-0.314316064119339,
0.13306108117103577,
0.2696281373500824,
0.08539219200611115,
-0.14476963877677917,
-0.20219749212265015,
-0.146671324968338,
-0.06765228509902954,
0.050508566200733185,
0.28404656052589417,
0.49194586277008057,
0.20360013842582703,
0.25626063346862793,
0.2814300060272217,
-0.027846619486808777,
-0.2152475267648697,
0.3708740472793579,
0.058286070823669434,
0.09248773753643036,
0.33297863602638245,
-0.06735405325889587,
-0.13763664662837982,
-0.1639207899570465,
0.1609381139278412,
0.2921341359615326,
-0.10121235996484756,
-0.1680913269519806,
-0.19607573747634888,
-0.44042128324508667,
-0.34013867378234863,
-0.14366081357002258,
-0.2690731883049011,
-0.13940872251987457,
-0.4952285587787628,
0.09709551930427551,
0.24883733689785004,
-0.16843096911907196,
0.10952594876289368,
0.07562915980815887,
0.01121450960636139,
-0.11200535297393799,
0.2869214117527008,
-0.0890296995639801,
0.1482096165418625,
-0.035377517342567444,
0.1844818890094757,
0.17460937798023224,
0.01708298549056053,
0.11132385581731796,
0.12222664803266525,
-0.14549508690834045,
-0.200328528881073,
-0.5325547456741333,
0.11812618374824524,
-0.174251988530159,
-0.04864328354597092,
0.20686641335487366,
-0.13505075871944427,
0.20300820469856262,
-0.5070751905441284,
-0.025082707405090332,
-0.11798263341188431,
-0.07276836782693863,
-0.08965062350034714,
-0.050346750766038895,
-0.11969752609729767,
-0.46183741092681885,
-0.6362448930740356,
-0.24906422197818756,
-0.5404443740844727,
0.2634403705596924,
-0.25548022985458374,
-0.11217428743839264,
0.10658837854862213,
0.03268911689519882,
-0.11797220259904861,
-0.00657166400924325,
-0.4299367070198059,
-0.28923699259757996,
-0.05893634259700775,
0.40229254961013794,
-0.4461688697338104,
-0.38508957624435425,
0.09212370216846466,
0.10726995766162872,
0.24934695661067963,
0.20305979251861572,
0.08088384568691254,
0.34554389119148254,
-0.029685599729418755,
0.08704200387001038,
-0.07785487920045853,
-0.0007340740412473679,
0.2698395252227783,
-0.16817981004714966,
0.0442817360162735,
-0.19134563207626343,
0.14169085025787354,
0.02980031818151474,
0.3293229639530182,
0.5940422415733337,
-0.09227302670478821,
0.2602945566177368,
0.17206160724163055,
0.8503632545471191,
0.22137165069580078,
0.03386227786540985,
0.026525158435106277,
0.10104808211326599,
0.22209735214710236,
-0.10885629802942276,
-0.2199731469154358,
0.2636604905128479,
-0.1620948612689972,
0.060204677283763885,
0.08742092549800873,
0.023619934916496277,
-0.43554696440696716,
-0.2725833058357239,
0.22029337286949158,
-0.05004021152853966,
0.004869621247053146,
-0.026752257719635963,
-0.2231231927871704,
0.1030634194612503,
0.04373767599463463,
0.018082544207572937,
0.36887431144714355,
-0.016426386311650276,
0.045107219368219376,
0.16677339375019073,
0.2742874324321747,
0.10195295512676239,
-0.3018215298652649,
-0.1953761875629425,
-0.14860498905181885,
0.02856580913066864,
0.007972648367285728,
0.13425379991531372,
-0.23353897035121918,
-0.15235398709774017,
-0.06225062906742096,
-0.033343907445669174,
0.7309001684188843,
-0.47004473209381104,
-0.1862262785434723,
0.08933933079242706,
-0.03167414292693138,
0.0784577801823616,
-0.300266295671463,
-0.14648191630840302,
0.06061252951622009,
0.5181644558906555,
0.331344872713089,
-0.2025873363018036,
-0.008571014739573002,
0.47262439131736755,
-0.1199389323592186,
0.04293392226099968,
-0.2671261727809906,
-0.16365671157836914,
0.22268539667129517,
-0.25410518050193787,
-0.11590563505887985,
0.3159099221229553,
0.09110710769891739,
-0.5133219957351685,
-0.16976213455200195,
0.148053839802742,
-0.33519455790519714,
0.14504529535770416,
0.17143966257572174,
0.38462281227111816,
-0.08066704869270325,
0.15104080736637115,
0.2846968173980713,
-0.01705487072467804,
0.3582700490951538,
0.3160248100757599,
0.4130517542362213,
-0.3127909302711487,
0.28989332914352417,
-0.29520362615585327,
0.6024836301803589,
0.19732576608657837,
0.026883117854595184,
-0.006118349730968475,
0.1774468570947647,
-0.0012975111603736877,
0.08335219323635101,
0.24812699854373932,
0.29447948932647705,
-0.07538491487503052,
-0.2934320271015167,
-0.24796175956726074,
0.24370461702346802,
0.09676335752010345,
0.15705135464668274,
0.3665713667869568,
-0.008095689117908478,
-0.22026677429676056,
-0.18020851910114288,
-0.09314434975385666,
0.8311533331871033,
0.3514555096626282,
-0.051121558994054794,
0.08222368359565735,
-0.3420529365539551,
0.11453449726104736,
-0.24107611179351807,
0.34904974699020386,
-0.04995923116803169,
-0.1900230199098587,
-0.0996517762541771,
-0.06617709249258041,
0.23650100827217102,
-0.12069214880466461,
-0.5448078513145447,
0.3441714942455292,
-0.2958669662475586,
0.47923803329467773,
-0.11601437628269196,
0.1826062649488449,
-0.15226930379867554,
-0.14421260356903076,
-0.24760901927947998,
0.11511339247226715,
0.0034279078245162964,
-0.07587428390979767,
-0.0651073306798935,
-0.29123884439468384,
0.15679627656936646,
0.06516321748495102,
-0.22077122330665588,
0.36436498165130615,
0.07780729979276657,
0.18722626566886902,
-0.08204224705696106,
-0.10570792853832245,
0.09417982399463654,
0.16242747008800507,
0.10932886600494385,
0.10219144076108932,
-0.29168033599853516,
0.26857057213783264,
-0.11990205198526382,
-0.07047313451766968,
-0.35296890139579773,
-0.018266553059220314,
0.10418488830327988,
-0.3264842927455902,
-0.20809417963027954,
0.21078220009803772,
0.11269045621156693,
-0.5091997385025024,
-0.25218573212623596,
-0.06729049980640411,
0.03179804980754852,
-0.028109431266784668,
0.052091848105192184,
0.26793089509010315,
-0.11960136890411377,
-0.32138076424598694,
0.1105262041091919,
-0.18612785637378693,
-0.43569910526275635,
0.13945236802101135,
0.18809285759925842,
0.07793481647968292,
-0.22953800857067108,
0.3991300165653229,
0.01671355776488781,
-0.17747008800506592,
0.3303196132183075,
0.17876127362251282,
-0.08334708958864212,
-0.16436897218227386,
-0.24200597405433655,
0.20209074020385742,
-0.07763848453760147,
0.1237071081995964,
-0.2825098931789398,
-0.21115687489509583,
0.2983008623123169,
0.11038702726364136,
0.015401080250740051,
0.1366526186466217,
-0.193195179104805,
-0.1865275502204895,
-0.16534075140953064,
0.26010411977767944,
-0.2842329442501068,
0.3302905261516571,
-0.14228616654872894,
0.43431946635246277,
0.07367752492427826,
0.2044563591480255,
-0.268424928188324,
-0.0025949329137802124,
0.118878073990345,
0.15532313287258148,
-0.22609013319015503,
-0.3581100106239319,
0.011079738847911358,
-0.07399183511734009,
0.042797625064849854,
0.2439487725496292,
-0.1716938316822052,
-0.13129721581935883,
-0.030048325657844543,
0.09001504629850388,
0.31756263971328735,
0.031015023589134216,
-0.11195196956396103,
0.007407620549201965,
-0.46204668283462524,
0.16751757264137268,
0.24139165878295898,
-0.1604735553264618,
0.07318107038736343,
0.04648303613066673,
0.7694671750068665,
0.0026709511876106262,
0.07632172107696533,
-0.07619927823543549,
0.17114582657814026,
0.148660808801651,
-0.004456361755728722,
0.08597646653652191,
0.1657084822654724,
-0.142755925655365,
-0.011471724137663841,
-0.006430879235267639,
0.353585422039032,
0.08946932852268219,
0.3557211756706238,
-0.303231418132782,
-0.049915894865989685,
-0.34948116540908813,
0.4437384009361267,
0.4431464970111847,
0.1119624450802803,
0.05140266567468643,
0.017768962308764458,
0.1722630113363266,
-0.15171173214912415,
-0.1266009360551834,
-0.16268716752529144,
0.22346985340118408,
-0.03183749318122864,
-0.015460781753063202,
0.38829758763313293,
0.13653942942619324,
-0.04524242877960205,
0.3940405547618866,
-0.18731658160686493,
-0.10820625722408295,
0.6243636012077332,
0.4589971601963043,
-0.273015558719635,
0.07983908802270889,
-0.05182569473981857,
-0.17127317190170288,
-0.11285427957773209,
0.04830912500619888,
-0.18777212500572205,
0.34626829624176025,
0.4000028967857361,
-0.06848356127738953,
0.5021162033081055,
-0.029121898114681244,
-0.4155104458332062,
-0.13500472903251648,
-0.14478975534439087,
0.316670298576355,
0.20443865656852722,
0.31564605236053467,
-0.24624507129192352,
-0.4899684190750122,
-0.2448233664035797,
-0.023059431463479996,
-0.02454417571425438,
-0.02026773989200592,
-0.15291383862495422,
-0.2530761659145355,
-0.189549520611763,
0.1706693023443222,
0.199112206697464,
0.1580580770969391,
0.6029378175735474,
0.004199199378490448,
0.07937965542078018,
-0.2160995602607727,
0.23628082871437073,
0.38221946358680725,
0.35582664608955383,
-0.1452438235282898,
0.007642475888133049,
0.37943947315216064,
-0.26506170630455017,
0.3523431420326233,
0.17057745158672333,
0.40738338232040405,
0.23439814150333405,
-0.17957468330860138,
0.012541621923446655,
0.19979268312454224,
-0.2044631838798523,
0.178981214761734,
0.2393651008605957,
0.5440563559532166,
-0.15174999833106995,
0.19348891079425812,
0.09242461621761322,
-0.08804149925708771,
0.2542189359664917,
-0.2827869951725006,
0.3401775658130646,
-0.3977619707584381,
0.3002811074256897,
0.15731102228164673,
0.015210650861263275,
0.11062591522932053,
-0.0687539204955101,
-0.4797089993953705,
-0.2704091966152191,
0.3754621148109436,
0.0008004431147128344,
-0.09352526813745499,
-0.1560479700565338,
0.0744086503982544,
0.2217359095811844,
0.6444827914237976,
0.032845959067344666,
-0.10677283257246017,
-0.07117506861686707,
-0.2070063352584839,
-0.33537179231643677,
-0.22070029377937317,
0.059146698564291,
0.38609185814857483,
-0.10266465693712234,
0.23614682257175446,
0.07163470983505249,
0.27218949794769287,
0.3447859287261963,
-0.17588287591934204,
0.29584062099456787,
-0.007024303078651428,
-0.33214446902275085,
0.036543432623147964,
0.18798160552978516,
0.11285734176635742,
0.0031115971505641937,
-0.052203673869371414,
0.2949276268482208,
0.03241926431655884,
-0.01875537633895874,
0.1324230134487152,
-0.07014268636703491,
0.2797321081161499,
0.11218816787004471,
-0.2236461639404297,
0.2178763747215271,
0.36565101146698,
-0.09627209603786469,
-0.07680811733007431,
-0.2699718177318573,
-0.17202365398406982,
-0.45059940218925476,
-0.07229685038328171,
0.05266789346933365,
0.4325368106365204,
-0.08005473762750626,
-0.1802477240562439,
-0.1298142373561859,
0.4174407422542572,
0.013185270130634308,
-0.07189469784498215,
-0.1770031899213791,
-0.13223914802074432,
-0.03591826558113098,
0.051905903965234756,
0.30329006910324097,
0.42083463072776794,
-0.22037678956985474,
-0.1917257457971573,
-0.07384631782770157,
-0.34311071038246155,
0.4673774838447571,
-0.2923312783241272,
-0.23839320242404938,
-0.45245620608329773,
-0.1654774248600006,
0.6991725564002991,
0.23404796421527863,
-0.6319128274917603,
-0.29527679085731506,
-0.008874178864061832,
-0.37974977493286133,
0.2310720682144165,
0.5059241056442261,
0.23378118872642517,
-0.12361766397953033,
-0.18091996014118195,
-0.03464075177907944,
0.41538965702056885,
-0.18837879598140717,
0.03530624881386757,
-0.29048800468444824
] |
https://github.com/huggingface/datasets/issues/2699 | cannot combine splits merging and streaming? | is there an update on this? ran into the same issue on 2.17.1.
On a similar note, the keyword `split="all"` also does not work as intended when `streaming=True`. | this does not work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)`
with error:
`ValueError: Bad split: train+validation. Available splits: ['train', 'validation']`
these work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation')`
`dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)`
`dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)`
i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits | 28 | cannot combine splits merging and streaming?
this does not work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)`
with error:
`ValueError: Bad split: train+validation. Available splits: ['train', 'validation']`
these work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation')`
`dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)`
`dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)`
i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits
is there an update on this? ran into the same issue on 2.17.1.
On a similar note, the keyword `split="all"` also does not work as intended when `streaming=True`. | [
-0.503541886806488,
-0.44928255677223206,
-0.06265004724264145,
0.009617645293474197,
0.03072226606309414,
0.06168011575937271,
-0.0063447169959545135,
0.45637813210487366,
-0.17447860538959503,
-0.08336523175239563,
-0.28988903760910034,
0.2879962623119354,
-0.03079027682542801,
0.47199660539627075,
-0.1311560720205307,
-0.2785891890525818,
0.1186746135354042,
0.05297315865755081,
-0.24949777126312256,
0.10285221040248871,
-0.00234927237033844,
0.18162892758846283,
-0.2552993595600128,
-0.2754543423652649,
-0.30162379145622253,
0.30470937490463257,
-0.09392830729484558,
0.08497369289398193,
-0.18097685277462006,
-0.10218105465173721,
-0.18318523466587067,
0.08613096177577972,
-0.14625155925750732,
0.465349406003952,
-0.000119119904411491,
-0.06640659272670746,
0.4739466905593872,
0.023689376190304756,
-0.1657375544309616,
0.005893215537071228,
-0.42429494857788086,
-0.1315978467464447,
-0.02650628611445427,
0.16766029596328735,
-0.14777949452400208,
-0.11249231547117233,
-0.12039075791835785,
-0.1980002224445343,
0.46526455879211426,
0.10550137609243393,
0.06573756039142609,
0.1640673577785492,
0.0813380777835846,
-0.1228371411561966,
0.1347837895154953,
0.08299648761749268,
-0.05059994012117386,
-0.09242178499698639,
0.1676344871520996,
0.038723841309547424,
0.1770179569721222,
0.16958077251911163,
0.24995532631874084,
-0.22147682309150696,
0.17523714900016785,
-0.08828851580619812,
-0.258177250623703,
-0.4419431686401367,
-0.03147853910923004,
0.26303958892822266,
0.43051058053970337,
0.13012652099132538,
-0.3683297336101532,
-0.06913472712039948,
0.0016411138931289315,
-0.45869743824005127,
0.06469971686601639,
0.18567873537540436,
-0.03326179087162018,
0.15244197845458984,
-0.41456127166748047,
-0.2670179009437561,
-0.08244321495294571,
0.2501835525035858,
-0.1861160397529602,
0.7400027513504028,
0.09991200268268585,
0.044417623430490494,
0.48623040318489075,
-0.06372597068548203,
0.03150347247719765,
-0.14740626513957977,
-0.29130128026008606,
0.03264956176280975,
-0.42304253578186035,
-0.056361861526966095,
-0.4128167927265167,
-0.060726068913936615,
-0.07530299574136734,
0.26154735684394836,
-0.08164208382368088,
-0.06863568723201752,
0.02529304102063179,
0.2282828390598297,
0.44165313243865967,
-0.013596759177744389,
0.02783365175127983,
0.28230950236320496,
0.2999210059642792,
-0.008840816095471382,
0.20530836284160614,
-0.04933644086122513,
0.1788281947374344,
-0.22934305667877197,
-0.5347560048103333,
0.007143598981201649,
-0.004154711961746216,
-0.12702709436416626,
-0.2037733793258667,
-0.4067172110080719,
-0.19145458936691284,
-0.06973464041948318,
0.14398260414600372,
0.11813850700855255,
-0.19738484919071198,
0.1970873475074768,
-0.11686823517084122,
0.3822898268699646,
0.05773775279521942,
-0.4158257842063904,
-0.12815487384796143,
0.016133267432451248,
-0.17590117454528809,
-0.1346587836742401,
0.2531839609146118,
-0.24908223748207092,
0.14001008868217468,
0.2666688859462738,
0.11006072163581848,
0.22841697931289673,
-0.31625768542289734,
-0.18309594690799713,
0.28165706992149353,
0.39423826336860657,
0.3222673535346985,
-0.1486661583185196,
-0.09938889741897583,
0.2995222806930542,
0.24861136078834534,
0.08949127793312073,
-0.01681942492723465,
-0.3849736154079437,
0.06658991426229477,
0.1827925592660904,
-0.0046418774873018265,
-0.10608918964862823,
-0.20070791244506836,
0.5514929890632629,
0.1380612850189209,
-0.1529574990272522,
-0.2514249384403229,
-0.00909389927983284,
0.050798606127500534,
-0.15981927514076233,
0.40001389384269714,
0.0025765597820281982,
-0.4289167523384094,
-0.08807018399238586,
-0.2699504494667053,
-0.18345706164836884,
0.28209617733955383,
0.4627702534198761,
-0.1955885887145996,
-0.06435849517583847,
0.027662860229611397,
0.1637023538351059,
0.272155225276947,
-0.01150471717119217,
-0.058943524956703186,
0.31534096598625183,
0.13215693831443787,
-0.028023628517985344,
0.1228790134191513,
-0.17407235503196716,
0.18931691348552704,
0.03602071478962898,
0.1977550983428955,
0.5523374676704407,
-0.13174569606781006,
-0.25889185070991516,
-0.186811164021492,
-0.061555296182632446,
0.24345995485782623,
0.20748187601566315,
0.415402889251709,
-0.09532924741506577,
0.11040003597736359,
0.1752987504005432,
0.20298707485198975,
-0.1337732970714569,
0.2386113703250885,
0.029386859387159348,
0.18214614689350128,
-0.11741302907466888,
0.14927205443382263,
-0.1981409192085266,
-0.17577585577964783,
-0.094475656747818,
0.11188460886478424,
-0.2036132514476776,
0.38246285915374756,
-0.1465902179479599,
0.005868086591362953,
-0.32529088854789734,
-0.1356840878725052,
-0.021822206676006317,
0.0656760111451149,
-0.08020749688148499,
-0.008273305371403694,
-0.2529226541519165,
-0.4530440866947174,
0.14848285913467407,
-0.03839249908924103,
0.12278756499290466,
0.013285578228533268,
0.43455496430397034,
-0.07760635763406754,
-0.2705616056919098,
-0.05783970281481743,
0.24726101756095886,
0.17701269686222076,
-0.07175567746162415,
-0.09581062942743301,
0.5997677445411682,
-0.01442478597164154,
0.3264005780220032,
-0.22261139750480652,
0.008309826254844666,
0.41851115226745605,
-0.21928972005844116,
-0.16881681978702545,
0.3043486475944519,
-0.055958159267902374,
-0.2016996145248413,
-0.3948487639427185,
0.010539256036281586,
-0.3615231513977051,
0.14662779867649078,
0.254461407661438,
0.11905980855226517,
0.057423099875450134,
-0.03934428095817566,
-0.24317839741706848,
-0.07856003940105438,
0.1231793463230133,
-0.5775556564331055,
-0.0017593204975128174,
-0.18544650077819824,
-0.19936001300811768,
0.11832728236913681,
0.3085888922214508,
0.10690127313137054,
-0.15988624095916748,
-0.15839269757270813,
-0.13285040855407715,
0.04680629074573517,
0.07135850191116333,
0.3855442702770233,
0.5326834917068481,
0.21273905038833618,
0.254528671503067,
0.24781250953674316,
0.05345172435045242,
-0.2678244709968567,
0.3367711901664734,
0.15756855905056,
-0.0019088536500930786,
0.4597863554954529,
-0.007917724549770355,
-0.15886190533638,
-0.24636059999465942,
0.19592875242233276,
0.3313297927379608,
-0.057730235159397125,
-0.18749789893627167,
-0.22393256425857544,
-0.48062533140182495,
-0.3368920087814331,
-0.14906004071235657,
-0.11107092350721359,
-0.2142561376094818,
-0.5934169888496399,
0.0875515341758728,
0.3587777316570282,
-0.2359434813261032,
0.045316219329833984,
0.09668585658073425,
0.09203599393367767,
-0.18432669341564178,
0.24804998934268951,
-0.04256201535463333,
0.06306476891040802,
-0.01688944175839424,
0.14756199717521667,
0.10399016737937927,
0.014227349311113358,
0.0645940825343132,
0.11086682230234146,
-0.19121427834033966,
-0.11200173944234848,
-0.39069366455078125,
0.10274212807416916,
-0.23448117077350616,
-0.16741877794265747,
0.054465848952531815,
-0.2099251002073288,
0.31121373176574707,
-0.42786121368408203,
0.046726953238248825,
-0.1365049183368683,
-0.04528765380382538,
-0.2154538333415985,
-0.006681221537292004,
-0.17067082226276398,
-0.5786479711532593,
-0.5259477496147156,
-0.25585272908210754,
-0.605923056602478,
0.2788082957267761,
-0.34103500843048096,
-0.20552314817905426,
-0.045094817876815796,
-0.015721283853054047,
-0.23534385859966278,
-0.0034041465260088444,
-0.19443246722221375,
-0.18835775554180145,
0.06368868052959442,
0.27005207538604736,
-0.30357667803764343,
-0.33378446102142334,
0.1771792769432068,
0.14115077257156372,
0.1378064751625061,
0.19338837265968323,
0.01622818410396576,
0.34788161516189575,
-0.12293778359889984,
-0.015047388151288033,
-0.07521753013134003,
0.03397992625832558,
0.05090249702334404,
-0.1799008846282959,
0.05835813283920288,
-0.1964733600616455,
-0.023069363087415695,
0.15224996209144592,
0.3701874613761902,
0.5726744532585144,
-0.09907493740320206,
0.21310961246490479,
0.13439063727855682,
0.835745632648468,
0.2352280616760254,
0.07360103726387024,
0.00031079351902008057,
0.07434194535017014,
0.28792908787727356,
-0.016190454363822937,
-0.33557435870170593,
0.10672280192375183,
-0.11787441372871399,
0.04885837435722351,
0.033723682165145874,
0.10550753772258759,
-0.3716195821762085,
-0.27905768156051636,
0.17894968390464783,
-0.028165074065327644,
-0.0662597194314003,
-0.023910218849778175,
-0.16341745853424072,
0.07457594573497772,
0.10236154496669769,
0.0754193440079689,
0.42425861954689026,
0.036645013839006424,
0.014228399842977524,
0.22212669253349304,
0.3139767050743103,
-0.04585445299744606,
-0.24497166275978088,
-0.2616368532180786,
-0.2288636565208435,
-0.0137702077627182,
-0.0685810074210167,
0.1579211950302124,
-0.3330875337123871,
-0.2137506902217865,
0.00754169374704361,
-0.05600551888346672,
0.695807695388794,
-0.41673728823661804,
-0.2395978420972824,
0.1238022893667221,
-0.08732347190380096,
0.07403037697076797,
-0.28572365641593933,
-0.05424316227436066,
0.10576481372117996,
0.5969780683517456,
0.3399188816547394,
-0.2951854467391968,
-0.06580709666013718,
0.35772737860679626,
-0.09797387570142746,
0.0423513688147068,
-0.23444034159183502,
-0.11087852716445923,
0.25366973876953125,
-0.29975834488868713,
-0.05754133313894272,
0.26194941997528076,
0.07403159886598587,
-0.5755016803741455,
-0.11277782917022705,
0.19233615696430206,
-0.3422498404979706,
0.17918018996715546,
0.17681193351745605,
0.3542104661464691,
-0.15832485258579254,
0.1607438027858734,
0.23792140185832977,
0.12159606069326401,
0.2369433492422104,
0.46065062284469604,
0.2949655055999756,
-0.37878966331481934,
0.29770007729530334,
-0.289190411567688,
0.5482474565505981,
0.30133485794067383,
-0.044673386961221695,
0.19354626536369324,
0.07044517993927002,
0.0038138702511787415,
0.0711423009634018,
0.2865545451641083,
0.30544784665107727,
-0.19372114539146423,
-0.139932781457901,
-0.21112579107284546,
0.1421007215976715,
0.1574506014585495,
0.13801991939544678,
0.360319584608078,
-0.1431248039007187,
-0.2351296991109848,
-0.11554533243179321,
-0.18563365936279297,
0.8873009085655212,
0.3816843032836914,
-0.06817968189716339,
0.043023597449064255,
-0.2890089750289917,
0.16386596858501434,
-0.3389657735824585,
0.40281540155410767,
-0.13111455738544464,
-0.1926460564136505,
-0.009272603318095207,
-0.04921312257647514,
0.0979621559381485,
-0.16797806322574615,
-0.5425846576690674,
0.3246499300003052,
-0.3020976781845093,
0.5841404795646667,
-0.17401304841041565,
0.19121825695037842,
-0.1254657506942749,
-0.22355610132217407,
-0.2783091962337494,
0.09165740758180618,
0.0013222582638263702,
-0.0044913217425346375,
-0.010948501527309418,
-0.2764008641242981,
0.17070651054382324,
0.061513133347034454,
-0.24858780205249786,
0.4177681803703308,
0.2600618600845337,
0.2272028774023056,
-0.22166869044303894,
-0.022617310285568237,
0.10047894716262817,
0.08738790452480316,
0.12228711694478989,
0.02764972485601902,
-0.2339809238910675,
0.30970653891563416,
-0.10500810295343399,
0.06315449625253677,
-0.40769848227500916,
0.0309956856071949,
0.05102832242846489,
-0.3024616241455078,
-0.18564456701278687,
0.24653425812721252,
0.09399579465389252,
-0.46520233154296875,
-0.15958888828754425,
0.07137185335159302,
0.05545327439904213,
-0.055498622357845306,
0.08772677183151245,
0.3893762528896332,
-0.0660669207572937,
-0.3163757622241974,
0.0705578476190567,
-0.06674258410930634,
-0.3965674340724945,
0.26403579115867615,
0.031447842717170715,
-0.05121590197086334,
-0.19599932432174683,
0.34852829575538635,
0.01323656365275383,
-0.08670064806938171,
0.3205440938472748,
0.10718569159507751,
0.004153817892074585,
-0.12945570051670074,
-0.19517970085144043,
0.004142272751778364,
-0.21129879355430603,
0.30261924862861633,
-0.3392942249774933,
-0.22506007552146912,
0.30767306685447693,
0.051924414932727814,
-0.005559075623750687,
0.20006167888641357,
-0.3011344075202942,
-0.18967165052890778,
-0.13244175910949707,
0.2499932497739792,
-0.2329971343278885,
0.26649484038352966,
-0.1513453722000122,
0.37051159143447876,
0.07393333315849304,
0.2047363966703415,
-0.24251748621463776,
-0.028441084548830986,
0.19033381342887878,
0.16183772683143616,
-0.21813347935676575,
-0.25616025924682617,
0.06381496787071228,
-0.00770197156816721,
-0.040581025183200836,
0.13824552297592163,
-0.08767058700323105,
-0.08444113284349442,
-0.006772685796022415,
0.12558405101299286,
0.3499514162540436,
0.0039518726989626884,
-0.29396459460258484,
-0.1298809051513672,
-0.4188086986541748,
0.07270760834217072,
0.2797527313232422,
-0.21626242995262146,
0.02559531107544899,
0.015184239484369755,
0.6057931184768677,
0.05466827005147934,
0.13425099849700928,
-0.009326878935098648,
0.15036611258983612,
0.0874210000038147,
0.03945481404662132,
0.1886230856180191,
0.10229427367448807,
-0.12361779808998108,
-0.04782204329967499,
-0.12415682524442673,
0.3468586802482605,
0.05085352063179016,
0.37517088651657104,
-0.2206011563539505,
-0.06572633236646652,
-0.4565047025680542,
0.5641180276870728,
0.6649049520492554,
0.19600841403007507,
0.13000652194023132,
-0.026239506900310516,
0.12003955990076065,
-0.020445920526981354,
-0.052835796028375626,
0.09218868613243103,
0.32326480746269226,
-0.023345768451690674,
0.01732785999774933,
0.37364378571510315,
0.1743277907371521,
-0.11568626761436462,
0.4194353222846985,
-0.0534231998026371,
-0.0033310353755950928,
0.5911186933517456,
0.5399007201194763,
-0.24780389666557312,
0.24955858290195465,
-0.039671823382377625,
-0.18912065029144287,
0.007759660482406616,
0.09249149262905121,
-0.05779065936803818,
0.3073027431964874,
0.36317482590675354,
-0.015051234513521194,
0.521959125995636,
-0.13501150906085968,
-0.3156537413597107,
-0.1755792498588562,
-0.030792906880378723,
0.2305196225643158,
0.1782113015651703,
0.1269107162952423,
-0.2820575535297394,
-0.6399973034858704,
-0.3210459053516388,
0.22169628739356995,
0.02463407814502716,
-0.0421336367726326,
-0.10503575205802917,
-0.23772671818733215,
-0.1295274794101715,
0.1912640929222107,
0.22844955325126648,
0.11743305623531342,
0.48437565565109253,
-0.04840806871652603,
0.14060074090957642,
-0.24716289341449738,
0.11564584076404572,
0.30150356888771057,
0.3616245985031128,
-0.12854653596878052,
-0.09961307793855667,
0.3674425482749939,
-0.19698411226272583,
0.333194762468338,
0.15666334331035614,
0.43878525495529175,
0.31611159443855286,
-0.09860220551490784,
-0.04705322906374931,
0.18892471492290497,
-0.18174098432064056,
0.10589022189378738,
0.35670411586761475,
0.44734975695610046,
-0.1761256903409958,
0.3167446255683899,
0.0756130963563919,
-0.04734336584806442,
0.2686209976673126,
-0.328429251909256,
0.41823574900627136,
-0.33073875308036804,
0.3806784749031067,
0.22838051617145538,
0.014038115739822388,
0.07591843605041504,
-0.15922170877456665,
-0.31995823979377747,
-0.24093087017536163,
0.4127052128314972,
-0.044736865907907486,
-0.08618919551372528,
-0.17390389740467072,
0.06465070694684982,
0.2707296907901764,
0.5684184432029724,
0.17923013865947723,
-0.11606279760599136,
-0.1176210418343544,
-0.13071508705615997,
-0.30667591094970703,
-0.2797371447086334,
-0.05939479544758797,
0.33281058073043823,
-0.1411665827035904,
0.28814613819122314,
0.03665587306022644,
0.19434146583080292,
0.2937769293785095,
-0.2930627465248108,
0.31318601965904236,
-0.00038358569145202637,
-0.2739916443824768,
-0.0196857713162899,
0.16402408480644226,
0.034825053066015244,
-0.021421082317829132,
-0.06556759029626846,
0.311576783657074,
0.05781320855021477,
-0.06967684626579285,
0.2057565450668335,
-0.2000386267900467,
0.2929143011569977,
-0.006136707961559296,
-0.2745029330253601,
0.2392382174730301,
0.3565715253353119,
-0.06674686074256897,
-0.05514032393693924,
-0.2639819085597992,
-0.2937241196632385,
-0.5362416505813599,
-0.04190908372402191,
0.048565804958343506,
0.4688356816768646,
-0.16694648563861847,
0.03179918974637985,
-0.15680256485939026,
0.37657326459884644,
-0.01347748190164566,
-0.1482609063386917,
-0.09550382196903229,
-0.11107325553894043,
0.014343708753585815,
0.06099807471036911,
0.31867730617523193,
0.35626840591430664,
-0.28954023122787476,
-0.19581621885299683,
-0.14942052960395813,
-0.2899264097213745,
0.5088550448417664,
-0.2778934836387634,
-0.2478790283203125,
-0.41955405473709106,
-0.2007729411125183,
0.7434701919555664,
0.2198585718870163,
-0.5191449522972107,
-0.4273957312107086,
0.024340886622667313,
-0.42851728200912476,
0.2015218585729599,
0.45583775639533997,
0.20171263813972473,
-0.18644429743289948,
-0.1488497406244278,
-0.23466727137565613,
0.4288899302482605,
-0.36899030208587646,
0.2032209187746048,
-0.2336898297071457
] |
https://github.com/huggingface/datasets/issues/2699 | cannot combine splits merging and streaming? | No update so far, especially since we haven't implemented an efficient way to query `split=train[50%:]` for example. The addition of two splits should be easy though, since we have `concatenate_datasets()` | this does not work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)`
with error:
`ValueError: Bad split: train+validation. Available splits: ['train', 'validation']`
these work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation')`
`dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)`
`dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)`
i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits | 30 | cannot combine splits merging and streaming?
this does not work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)`
with error:
`ValueError: Bad split: train+validation. Available splits: ['train', 'validation']`
these work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation')`
`dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)`
`dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)`
i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits
No update so far, especially since we haven't implemented an efficient way to query `split=train[50%:]` for example. The addition of two splits should be easy though, since we have `concatenate_datasets()` | [
-0.5629585385322571,
-0.32675155997276306,
-0.10197263956069946,
0.03417085111141205,
0.0104738250374794,
0.16627582907676697,
0.008668038994073868,
0.4097115993499756,
-0.16840945184230804,
-0.03566388785839081,
-0.3570808172225952,
0.2472047209739685,
0.004138129763305187,
0.4897006154060364,
-0.11441242694854736,
-0.30418431758880615,
0.10223212093114853,
0.014261208474636078,
-0.2984599471092224,
0.12030093371868134,
-0.012477647513151169,
0.11337999999523163,
-0.32621651887893677,
-0.363817036151886,
-0.31908443570137024,
0.24000012874603271,
-0.12806817889213562,
0.042922280728816986,
-0.20683154463768005,
-0.069341279566288,
-0.15255752205848694,
0.1116684079170227,
-0.10323876887559891,
0.5353806018829346,
-0.00011669805098790675,
-0.06917992979288101,
0.356065034866333,
0.0011915136128664017,
-0.21558865904808044,
0.04031991958618164,
-0.41733062267303467,
-0.10901344567537308,
-0.1298125982284546,
0.1405898630619049,
-0.20498725771903992,
-0.025365930050611496,
-0.15027084946632385,
-0.29716771841049194,
0.472018301486969,
0.22892719507217407,
0.09383166581392288,
0.1844884604215622,
-0.12515473365783691,
-0.2050425112247467,
0.024115487933158875,
0.13664260506629944,
0.021784374490380287,
-0.05410189554095268,
0.0674804151058197,
0.08569766581058502,
0.14105451107025146,
0.20003512501716614,
0.2576899528503418,
-0.2873947024345398,
0.006564833223819733,
-0.01662745326757431,
-0.356707900762558,
-0.4297798275947571,
0.04204055294394493,
0.24756351113319397,
0.3987106680870056,
0.062139250338077545,
-0.3932372033596039,
-0.0995589941740036,
0.0772707387804985,
-0.4380669593811035,
0.004938140511512756,
0.25710681080818176,
-0.003548205830156803,
0.19849418103694916,
-0.49871259927749634,
-0.2470036745071411,
-0.13959798216819763,
0.16546174883842468,
-0.1977836936712265,
0.6794681549072266,
0.09554946422576904,
0.04170748591423035,
0.4442861080169678,
-0.018623363226652145,
0.13362793624401093,
-0.1636413186788559,
-0.29296544194221497,
0.07099375128746033,
-0.531290590763092,
-0.04590603709220886,
-0.49527502059936523,
-0.06793373078107834,
-0.024332566186785698,
0.3000209927558899,
-0.09013278782367706,
-0.08588642627000809,
0.07215616106987,
0.185680091381073,
0.4110248386859894,
-0.07424652576446533,
-0.040048748254776,
0.3761444091796875,
0.09552567452192307,
-0.024280520156025887,
0.19148658215999603,
-0.04170758277177811,
0.07358518987894058,
-0.3313094973564148,
-0.4425780475139618,
-0.10445117205381393,
-0.11129031330347061,
-0.05940615013241768,
-0.2546117603778839,
-0.3197609782218933,
-0.15004584193229675,
-0.09814358502626419,
0.0991952121257782,
0.1662728488445282,
-0.2589898109436035,
0.18902233242988586,
-0.05445975810289383,
0.3512985110282898,
0.08324701339006424,
-0.43564873933792114,
-0.142022967338562,
0.029343320056796074,
-0.19388805329799652,
-0.07226378470659256,
0.17003494501113892,
-0.3458119034767151,
0.11395179480314255,
0.32637500762939453,
0.1461852788925171,
0.2458554208278656,
-0.11688142269849777,
-0.1559658646583557,
0.20374223589897156,
0.40266555547714233,
0.3276335597038269,
-0.19405566155910492,
-0.15372559428215027,
0.3970188498497009,
0.23468559980392456,
0.04405513033270836,
-0.01532890647649765,
-0.3773135542869568,
-0.11772403120994568,
0.18809112906455994,
0.055303506553173065,
-0.10817675292491913,
-0.2932767868041992,
0.5392346382141113,
0.19288258254528046,
-0.10699360072612762,
-0.1961674988269806,
0.010775785893201828,
0.043013278394937515,
-0.1803409606218338,
0.4600680470466614,
0.02523045986890793,
-0.30509668588638306,
-0.10203133523464203,
-0.2664884626865387,
-0.16254693269729614,
0.2578987777233124,
0.5132903456687927,
-0.18756316602230072,
-0.07961416989564896,
-0.0024265889078378677,
0.23631133139133453,
0.3588963449001312,
-0.0022799819707870483,
-0.06296264380216599,
0.28808459639549255,
0.10088054835796356,
-0.026023302227258682,
0.1955055594444275,
-0.21795015037059784,
0.21944445371627808,
0.06540756672620773,
0.29734373092651367,
0.6252545714378357,
-0.13230882585048676,
-0.3226918578147888,
-0.13233990967273712,
-0.04442702978849411,
0.3122730851173401,
0.23374183475971222,
0.3901839554309845,
-0.1388823390007019,
0.16721895337104797,
0.07780279964208603,
0.1828767955303192,
-0.157456174492836,
0.1904822736978531,
0.013091448694467545,
0.0679018646478653,
-0.12471903860569,
0.06153685599565506,
-0.17732462286949158,
-0.21873554587364197,
-0.05432097241282463,
-0.03564092144370079,
-0.23099014163017273,
0.309231698513031,
-0.18499411642551422,
0.011002760380506516,
-0.21813476085662842,
-0.10433289408683777,
-0.060464147478342056,
0.060915812849998474,
-0.04020249843597412,
0.032272204756736755,
-0.27134594321250916,
-0.43935680389404297,
0.16561633348464966,
0.017960580065846443,
0.0682932585477829,
-0.08164745569229126,
0.414629727602005,
-0.03752508759498596,
-0.13835981488227844,
-0.0038067735731601715,
0.27074959874153137,
0.21283158659934998,
-0.04108862951397896,
-0.05707870423793793,
0.637468695640564,
-0.03874088078737259,
0.36010080575942993,
-0.13081547617912292,
-0.09914876520633698,
0.3809138536453247,
-0.18692560493946075,
-0.1917419582605362,
0.21869204938411713,
-0.11338496953248978,
-0.19194579124450684,
-0.3356300890445709,
0.05614285171031952,
-0.3414522707462311,
0.15005290508270264,
0.19431251287460327,
0.14107413589954376,
0.10702040791511536,
-0.0043258219957351685,
-0.2536223530769348,
-0.11096950620412827,
0.07806141674518585,
-0.4849781095981598,
0.06279066205024719,
-0.09954753518104553,
-0.31005579233169556,
0.09361332654953003,
0.30681195855140686,
0.032993633300065994,
-0.20009350776672363,
-0.15930166840553284,
-0.12788715958595276,
-0.03641563653945923,
0.15230195224285126,
0.2262178212404251,
0.526885986328125,
0.2351241409778595,
0.2950029969215393,
0.2878319323062897,
-0.000025846995413303375,
-0.20270323753356934,
0.340432733297348,
0.10613732039928436,
0.05454162135720253,
0.4155191481113434,
0.03399117290973663,
-0.12937161326408386,
-0.14186087250709534,
0.1073036640882492,
0.35557854175567627,
-0.11034104228019714,
-0.19697923958301544,
-0.17893101274967194,
-0.44525933265686035,
-0.2178281843662262,
-0.18030481040477753,
-0.22163721919059753,
-0.12133465707302094,
-0.5537726283073425,
0.05631352216005325,
0.2734818160533905,
-0.2527981400489807,
0.06084611266851425,
0.013874784111976624,
0.0514974445104599,
-0.12263235449790955,
0.19202834367752075,
-0.03591102361679077,
0.14752045273780823,
0.025688840076327324,
0.16215157508850098,
0.09733795374631882,
0.03634226694703102,
0.20830132067203522,
0.03940802067518234,
-0.15693649649620056,
-0.15839967131614685,
-0.3098805546760559,
0.11231882125139236,
-0.17474383115768433,
-0.15581443905830383,
0.08770930022001266,
-0.13841459155082703,
0.2619889974594116,
-0.46495112776756287,
0.006013167090713978,
0.0692315623164177,
0.0233322586864233,
-0.17397648096084595,
0.017976364120841026,
-0.12036599963903427,
-0.4751027524471283,
-0.5777910947799683,
-0.3769370913505554,
-0.5826810002326965,
0.2288324236869812,
-0.31586727499961853,
-0.1643296778202057,
-0.0043512433767318726,
0.001290658488869667,
-0.13891057670116425,
-0.01231851801276207,
-0.2750331163406372,
-0.22597357630729675,
-0.029814615845680237,
0.38660532236099243,
-0.3441849946975708,
-0.34166866540908813,
0.12581558525562286,
0.08484209328889847,
0.14778907597064972,
0.2787325382232666,
0.053843915462493896,
0.4182502329349518,
-0.030881235376000404,
0.101348876953125,
-0.15603837370872498,
-0.005187073722481728,
0.057473938912153244,
-0.18324893712997437,
0.05273525416851044,
-0.19087952375411987,
0.10855916142463684,
0.05980150029063225,
0.2747507691383362,
0.5933238863945007,
-0.13615036010742188,
0.20727947354316711,
0.12037862837314606,
0.8095674514770508,
0.35976070165634155,
0.04077410697937012,
-0.018215052783489227,
0.023424269631505013,
0.29748815298080444,
0.010126225650310516,
-0.29874274134635925,
0.04991590604186058,
-0.14156663417816162,
-0.00402400828897953,
0.05462672561407089,
0.07699444890022278,
-0.22366297245025635,
-0.30310240387916565,
0.17808663845062256,
-0.01140664517879486,
-0.04564180597662926,
0.0032954737544059753,
-0.3156510293483734,
0.15333500504493713,
0.03456968441605568,
0.09274379163980484,
0.3763923943042755,
0.14014145731925964,
-0.013376503251492977,
0.14039532840251923,
0.23214247822761536,
-0.022207023575901985,
-0.24774697422981262,
-0.14912420511245728,
-0.29650524258613586,
-0.006635993719100952,
-0.006987931206822395,
0.13701191544532776,
-0.1587994247674942,
-0.12014064192771912,
-0.05658608675003052,
-0.049390390515327454,
0.7114302515983582,
-0.45319244265556335,
-0.26498907804489136,
0.11476394534111023,
-0.07030384242534637,
0.0608883798122406,
-0.28568142652511597,
-0.06975489109754562,
0.0182558111846447,
0.5728448629379272,
0.3122258186340332,
-0.36937353014945984,
0.01097253430634737,
0.41075143218040466,
-0.05167126655578613,
0.014093894511461258,
-0.224946528673172,
-0.09967521578073502,
0.19681397080421448,
-0.28450286388397217,
-0.09305334836244583,
0.2984684407711029,
0.08714958280324936,
-0.5047914981842041,
-0.14730659127235413,
0.12550415098667145,
-0.2893354594707489,
0.22800548374652863,
0.1507515162229538,
0.3743748068809509,
-0.11126285046339035,
0.2034260481595993,
0.20392408967018127,
0.09843140840530396,
0.39824411273002625,
0.5817867517471313,
0.2708513140678406,
-0.3922901749610901,
0.2621522843837738,
-0.19930268824100494,
0.6196824312210083,
0.19688622653484344,
-0.03043481335043907,
0.18418338894844055,
0.21381047368049622,
0.06751786917448044,
0.005529033951461315,
0.40075773000717163,
0.2757980525493622,
-0.15304027497768402,
-0.3861135244369507,
-0.33599263429641724,
0.24097087979316711,
0.10721562802791595,
0.1172284334897995,
0.2983798384666443,
-0.24530400335788727,
-0.26301175355911255,
-0.1641203910112381,
-0.1428685188293457,
0.8355723023414612,
0.2862566113471985,
-0.03044455125927925,
0.05532810837030411,
-0.3914276957511902,
0.1680610179901123,
-0.2743692994117737,
0.2851753234863281,
-0.08314154297113419,
-0.186971515417099,
-0.0356740765273571,
-0.08674557507038116,
0.08063378185033798,
-0.16745004057884216,
-0.5597043633460999,
0.32050758600234985,
-0.33853232860565186,
0.6049416661262512,
-0.15315932035446167,
0.2446136772632599,
-0.07784111052751541,
-0.22489048540592194,
-0.2846637964248657,
0.10222883522510529,
0.03377380222082138,
-0.1739228069782257,
-0.020964011549949646,
-0.3144792914390564,
0.1402827352285385,
0.04736867547035217,
-0.2247452735900879,
0.39297348260879517,
0.12129542976617813,
0.29637211561203003,
-0.19382919371128082,
-0.07755332440137863,
0.08923526108264923,
0.14378929138183594,
0.007270149886608124,
0.024205656722187996,
-0.2042822241783142,
0.28352221846580505,
-0.11683272570371628,
-0.0005435948842205107,
-0.3456047475337982,
-0.05277096480131149,
0.16185399889945984,
-0.23878076672554016,
-0.16674968600273132,
0.3071747124195099,
0.11616522073745728,
-0.4539034962654114,
-0.17302864789962769,
0.0727936327457428,
0.08080586791038513,
-0.12545987963676453,
-0.008342156186699867,
0.33566349744796753,
-0.027603058144450188,
-0.2748652994632721,
0.07462318241596222,
-0.08325442671775818,
-0.3821352422237396,
0.21592527627944946,
0.09384196996688843,
-0.046655867248773575,
-0.28092923760414124,
0.40623271465301514,
0.09074965864419937,
-0.14461778104305267,
0.31448128819465637,
0.17649996280670166,
-0.048396456986665726,
-0.11807090789079666,
-0.18997496366500854,
0.1644662618637085,
-0.14181721210479736,
0.25583887100219727,
-0.2848276197910309,
-0.1989770084619522,
0.20859739184379578,
0.016352210193872452,
0.07019682973623276,
0.08835814148187637,
-0.21416127681732178,
-0.2028147131204605,
-0.1593116670846939,
0.22031544148921967,
-0.19372621178627014,
0.3330325782299042,
-0.051562562584877014,
0.4218500852584839,
-0.007198469713330269,
0.3313893675804138,
-0.25347310304641724,
-0.09625961631536484,
0.09268318116664886,
0.1790982484817505,
-0.22650380432605743,
-0.24087980389595032,
0.0800744816660881,
-0.0041556041687726974,
0.02631230466067791,
0.21644854545593262,
-0.14594998955726624,
-0.10185779631137848,
-0.01673402078449726,
0.10106877237558365,
0.32473185658454895,
0.04005438834428787,
-0.17383722960948944,
-0.08985435962677002,
-0.417684942483902,
-0.00004132557660341263,
0.2310691475868225,
-0.14562341570854187,
0.04195964336395264,
-0.1166706308722496,
0.5988972783088684,
-0.033819667994976044,
0.023398324847221375,
-0.0743526741862297,
0.17323946952819824,
0.0672897920012474,
-0.06821976602077484,
0.23209388554096222,
0.14185389876365662,
-0.14353713393211365,
-0.03473299369215965,
-0.10849636048078537,
0.5253283381462097,
-0.0074386559426784515,
0.34056389331817627,
-0.18362273275852203,
-0.03862486034631729,
-0.437784880399704,
0.5704587697982788,
0.6197542548179626,
0.1255451887845993,
0.08024631440639496,
-0.02507062628865242,
0.13269639015197754,
-0.14943626523017883,
-0.019077880308032036,
-0.0658382922410965,
0.2843089699745178,
-0.02265249937772751,
0.04662475734949112,
0.34635576605796814,
0.18526890873908997,
-0.1863318532705307,
0.3465772569179535,
-0.08486641943454742,
0.036880720406770706,
0.6152137517929077,
0.5245512127876282,
-0.20519764721393585,
0.18875360488891602,
-0.05996742844581604,
-0.10028569400310516,
-0.023549668490886688,
0.038380250334739685,
-0.11707184463739395,
0.4275076985359192,
0.3652181327342987,
-0.0959077924489975,
0.44592300057411194,
-0.12416252493858337,
-0.3084608018398285,
-0.10925677418708801,
-0.0957791805267334,
0.2732257544994354,
0.1954220086336136,
0.23360002040863037,
-0.22728458046913147,
-0.5564151406288147,
-0.2964174449443817,
0.1989220827817917,
-0.0005030110478401184,
-0.026082433760166168,
-0.061624228954315186,
-0.21081113815307617,
-0.18352830410003662,
0.16571778059005737,
0.31170862913131714,
0.10387291759252548,
0.5233665704727173,
-0.028563864529132843,
0.1567165106534958,
-0.18335144221782684,
0.2187565267086029,
0.3276806175708771,
0.24306148290634155,
-0.214715376496315,
-0.044710323214530945,
0.47053736448287964,
-0.17441637814044952,
0.3689652383327484,
0.06625499576330185,
0.4786750376224518,
0.22870275378227234,
-0.09756416082382202,
-0.016671452671289444,
0.23962607979774475,
-0.12773004174232483,
0.15653128921985626,
0.28774896264076233,
0.39793696999549866,
-0.2280067354440689,
0.33546289801597595,
0.09486576169729233,
-0.09148190170526505,
0.25716090202331543,
-0.2848649322986603,
0.37018075585365295,
-0.43512842059135437,
0.36090677976608276,
0.17415758967399597,
-0.03668656945228577,
0.02452552318572998,
-0.1262340545654297,
-0.3281082510948181,
-0.1997922658920288,
0.3658401370048523,
-0.09116776287555695,
-0.06660987436771393,
-0.14712727069854736,
0.08115659654140472,
0.28591683506965637,
0.6932580471038818,
0.137950599193573,
-0.02658260613679886,
-0.09041116386651993,
-0.13789677619934082,
-0.34060749411582947,
-0.29209104180336,
-0.022655490785837173,
0.3094886243343353,
-0.06917645782232285,
0.23214091360569,
0.0396098867058754,
0.2239389717578888,
0.33031344413757324,
-0.1517220437526703,
0.26975390315055847,
-0.0057906173169612885,
-0.3530409336090088,
-0.043470900505781174,
0.1749807447195053,
0.08806105703115463,
0.019751563668251038,
-0.07968927919864655,
0.3680073916912079,
-0.04224812984466553,
-0.037723422050476074,
0.12587960064411163,
-0.178680419921875,
0.3576280176639557,
-0.03006093204021454,
-0.19537371397018433,
0.29693591594696045,
0.3609973192214966,
-0.10619063675403595,
0.010583793744444847,
-0.205717533826828,
-0.22419613599777222,
-0.44202983379364014,
-0.0029546022415161133,
0.12989893555641174,
0.4470360577106476,
-0.14370177686214447,
-0.16730476915836334,
-0.07577598094940186,
0.37369176745414734,
0.06481799483299255,
-0.18946754932403564,
-0.10383382439613342,
-0.12071606516838074,
0.0660398080945015,
0.06320623308420181,
0.23648402094841003,
0.33937716484069824,
-0.26183727383613586,
-0.10521107167005539,
-0.045648761093616486,
-0.3176644742488861,
0.5313112735748291,
-0.31954631209373474,
-0.3200962543487549,
-0.44399380683898926,
-0.16522452235221863,
0.7742828130722046,
0.2778420150279999,
-0.5704833269119263,
-0.36303800344467163,
0.044099271297454834,
-0.4159353971481323,
0.2290615737438202,
0.46930718421936035,
0.2546672224998474,
-0.13204272091388702,
-0.16126614809036255,
-0.09017384052276611,
0.2937220633029938,
-0.395595908164978,
0.08249491453170776,
-0.3279797434806824
] |
https://github.com/huggingface/datasets/issues/2699 | cannot combine splits merging and streaming? | Can you concatenate_datasets that are being streamed now? I was led to believe concatenation works on non streaming datasets only. | this does not work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)`
with error:
`ValueError: Bad split: train+validation. Available splits: ['train', 'validation']`
these work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation')`
`dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)`
`dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)`
i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits | 20 | cannot combine splits merging and streaming?
this does not work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)`
with error:
`ValueError: Bad split: train+validation. Available splits: ['train', 'validation']`
these work:
`dataset = datasets.load_dataset('mc4','iw',split='train+validation')`
`dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)`
`dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)`
i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits
Can you concatenate_datasets that are being streamed now? I was led to believe concatenation works on non streaming datasets only. | [
-0.4972448945045471,
-0.34456026554107666,
-0.08369326591491699,
-0.03313758969306946,
0.06932451575994492,
0.13376691937446594,
0.1229911595582962,
0.3452857732772827,
-0.17619137465953827,
-0.05153866112232208,
-0.3312400281429291,
0.1976320743560791,
0.06191803514957428,
0.5450554490089417,
-0.12007267773151398,
-0.24915137887001038,
0.1142064556479454,
-0.03042377531528473,
-0.26979953050613403,
0.08239126205444336,
0.0007427223026752472,
0.12790447473526,
-0.3568953275680542,
-0.3306865096092224,
-0.36864200234413147,
0.27433866262435913,
-0.08628299832344055,
0.14176759123802185,
-0.1396152824163437,
-0.07565691322088242,
-0.10405757278203964,
0.13589920103549957,
-0.06267052888870239,
0.5935589075088501,
-0.00011256099242018536,
-0.05337211862206459,
0.38519662618637085,
-0.05552645027637482,
-0.168535053730011,
0.0008868873119354248,
-0.38229021430015564,
-0.13980533182621002,
-0.11409398168325424,
0.13461440801620483,
-0.1703275442123413,
-0.12101902812719345,
-0.09308191388845444,
-0.2626064717769623,
0.4703156352043152,
0.19636739790439606,
0.1449541598558426,
0.1296473741531372,
0.01533425971865654,
-0.21871612966060638,
-0.06917940825223923,
0.10436766594648361,
0.10047871619462967,
-0.027423348277807236,
0.003599002957344055,
0.06038852781057358,
0.14226457476615906,
0.2294129878282547,
0.2239207625389099,
-0.2142152637243271,
0.08247602730989456,
-0.02458307147026062,
-0.33447009325027466,
-0.43238332867622375,
-0.016308564692735672,
0.2455865740776062,
0.5181224942207336,
0.07178030908107758,
-0.3148292601108551,
-0.056291788816452026,
0.04515567049384117,
-0.4314391613006592,
0.08546096086502075,
0.23171845078468323,
0.006292235106229782,
0.15483227372169495,
-0.4055887460708618,
-0.18022598326206207,
-0.173272505402565,
0.1594190001487732,
-0.19054631888866425,
0.6446738243103027,
0.10412685573101044,
0.0004586353898048401,
0.42376792430877686,
-0.06262950599193573,
0.2200251668691635,
-0.16504590213298798,
-0.2904287576675415,
0.06315425783395767,
-0.5540425777435303,
-0.009908221662044525,
-0.5134950280189514,
0.007384464144706726,
-0.02282526344060898,
0.2216821312904358,
-0.052005887031555176,
-0.0010559149086475372,
0.08250132203102112,
0.15565332770347595,
0.36290988326072693,
-0.042947955429553986,
-0.0551849827170372,
0.3106386065483093,
0.12034765630960464,
-0.09935534745454788,
0.17377318441867828,
-0.09290323406457901,
0.06003744155168533,
-0.34360501170158386,
-0.3987290859222412,
-0.1274547278881073,
-0.06977766752243042,
-0.14031122624874115,
-0.23214727640151978,
-0.2276914417743683,
-0.1819993257522583,
-0.07779167592525482,
0.03424521163105965,
0.14585578441619873,
-0.20708151161670685,
0.1917973756790161,
0.03710591793060303,
0.3811238408088684,
0.06927773356437683,
-0.3208361268043518,
-0.1522246152162552,
-0.047200579196214676,
-0.1979169249534607,
-0.12828722596168518,
0.18468815088272095,
-0.2713128626346588,
0.11940529197454453,
0.30578091740608215,
0.20191720128059387,
0.24560070037841797,
-0.20568840205669403,
-0.06263302266597748,
0.22263199090957642,
0.3771664500236511,
0.329932302236557,
-0.1700551062822342,
-0.08996817469596863,
0.3352242112159729,
0.3139716684818268,
0.013130996376276016,
-0.11696254462003708,
-0.3465157747268677,
-0.1226576566696167,
0.23542159795761108,
-0.009122549556195736,
-0.11933891475200653,
-0.2645202875137329,
0.43549254536628723,
0.12736624479293823,
-0.09872835874557495,
-0.21242597699165344,
-0.018250957131385803,
0.1254938840866089,
-0.14697256684303284,
0.36817827820777893,
0.05844694375991821,
-0.3482555150985718,
-0.0675770714879036,
-0.1972929835319519,
-0.2100483626127243,
0.3355329632759094,
0.4498904049396515,
-0.15133103728294373,
-0.09234357625246048,
-0.05103962868452072,
0.22185786068439484,
0.293373703956604,
-0.020574824884533882,
-0.029139207676053047,
0.269763320684433,
0.10499247908592224,
-0.000017466023564338684,
0.18375322222709656,
-0.19688819348812103,
0.13864685595035553,
0.08295378088951111,
0.2624959349632263,
0.6180752515792847,
-0.09657542407512665,
-0.2782829999923706,
-0.2148396521806717,
-0.005877204239368439,
0.3089490532875061,
0.18375836312770844,
0.3034750819206238,
-0.07218096405267715,
0.06780532002449036,
0.09175462275743484,
0.21663779020309448,
-0.1571415215730667,
0.1873718798160553,
0.09344454109668732,
0.08127996325492859,
-0.13789892196655273,
0.040117133408784866,
-0.02146941050887108,
-0.27876782417297363,
-0.07320988178253174,
-0.006395546719431877,
-0.16381239891052246,
0.38372617959976196,
-0.14079000055789948,
0.07310351729393005,
-0.2886977791786194,
-0.17754895985126495,
-0.01914283260703087,
0.12127074599266052,
-0.01599753648042679,
-0.02369200438261032,
-0.33902713656425476,
-0.38607487082481384,
0.24497370421886444,
-0.036053650081157684,
0.09001490473747253,
-0.08022090792655945,
0.44675394892692566,
-0.0708552822470665,
-0.16220863163471222,
0.017447777092456818,
0.20897597074508667,
0.19500640034675598,
-0.06761783361434937,
-0.11583756655454636,
0.6493936777114868,
-0.03343205153942108,
0.3664742112159729,
-0.10240451246500015,
-0.09800978004932404,
0.3751986026763916,
-0.19619861245155334,
-0.16697008907794952,
0.25605738162994385,
-0.09760025888681412,
-0.22483834624290466,
-0.4077681601047516,
0.10505612939596176,
-0.30702513456344604,
0.18529778718948364,
0.16190463304519653,
0.12227881699800491,
0.10598377883434296,
-0.04642017185688019,
-0.2725368142127991,
-0.0745588019490242,
0.2113826721906662,
-0.46431708335876465,
0.07449392974376678,
-0.08096619695425034,
-0.37261292338371277,
0.08870390802621841,
0.2502898871898651,
0.09705610573291779,
-0.2657729983329773,
-0.1305321455001831,
-0.1788007915019989,
0.010016821324825287,
0.13768385350704193,
0.29632943868637085,
0.5206238627433777,
0.2819538414478302,
0.24258451163768768,
0.24790838360786438,
0.012232906185090542,
-0.27678006887435913,
0.31883689761161804,
0.09231546521186829,
0.07702551037073135,
0.46318545937538147,
0.06857511401176453,
-0.09719065576791763,
-0.222402423620224,
0.130528524518013,
0.2740420699119568,
-0.08439525961875916,
-0.2754780650138855,
-0.11594156175851822,
-0.45208102464675903,
-0.2849065959453583,
-0.22429288923740387,
-0.2713433802127838,
-0.2728292644023895,
-0.5937477350234985,
0.022635705769062042,
0.26153621077537537,
-0.23364658653736115,
0.10375124216079712,
0.15033571422100067,
0.0037241727113723755,
-0.11756200343370438,
0.1644739806652069,
-0.12053694576025009,
0.10464312136173248,
0.02187383733689785,
0.2066437155008316,
0.15985675156116486,
0.06549737602472305,
0.19683410227298737,
0.0570661723613739,
-0.1622193306684494,
-0.1388763189315796,
-0.3326888680458069,
0.08201615512371063,
-0.17620530724525452,
-0.14260095357894897,
0.05256715044379234,
-0.05633731186389923,
0.25619518756866455,
-0.4806692600250244,
-0.004048784263432026,
0.0069881584495306015,
-0.022361962124705315,
-0.09917046874761581,
0.04653026536107063,
-0.12990310788154602,
-0.4845518171787262,
-0.5385473966598511,
-0.32812052965164185,
-0.5765060186386108,
0.1748502552509308,
-0.2703930735588074,
-0.12224514782428741,
0.04879598319530487,
-0.0027259932830929756,
-0.1358853131532669,
-0.009198810905218124,
-0.26481232047080994,
-0.28768354654312134,
-0.06441473960876465,
0.3437916338443756,
-0.3359910547733307,
-0.36623069643974304,
0.13329361379146576,
0.14793536067008972,
0.24299949407577515,
0.22666825354099274,
0.05708496272563934,
0.37187471985816956,
0.029892250895500183,
0.0029400773346424103,
-0.11937177181243896,
0.017907261848449707,
0.10057108849287033,
-0.11964643001556396,
0.01455659233033657,
-0.1971030831336975,
0.13631708920001984,
0.09188128262758255,
0.3087702989578247,
0.6106979250907898,
-0.1664438545703888,
0.16008877754211426,
0.004931211471557617,
0.7380473017692566,
0.2846682369709015,
-0.026814494282007217,
0.0280245840549469,
0.06059637665748596,
0.3080756962299347,
-0.013044290244579315,
-0.263256698846817,
0.07455579191446304,
-0.13581162691116333,
0.0621584877371788,
0.012152254581451416,
-0.0032606758177280426,
-0.16158975660800934,
-0.3142957091331482,
0.2166801244020462,
-0.04580479860305786,
-0.03844493255019188,
-0.010493697598576546,
-0.22927123308181763,
0.12777721881866455,
0.06872580945491791,
0.032978832721710205,
0.3792351186275482,
0.07798419892787933,
-0.049612123519182205,
0.1988208293914795,
0.25133320689201355,
-0.03322511166334152,
-0.29933178424835205,
-0.14986705780029297,
-0.3138536214828491,
0.04878503829240799,
-0.10765781253576279,
0.16305945813655853,
-0.20858938992023468,
-0.1503787636756897,
-0.12490776181221008,
-0.07999134063720703,
0.7101877331733704,
-0.46691811084747314,
-0.29787784814834595,
0.14883899688720703,
0.06748510897159576,
0.07049235701560974,
-0.30961716175079346,
-0.10912391543388367,
-0.02486998401582241,
0.5498676896095276,
0.34434452652931213,
-0.2458462119102478,
-0.03632979094982147,
0.3221140205860138,
-0.04350100830197334,
-0.006648089736700058,
-0.2573448419570923,
-0.13075454533100128,
0.21305546164512634,
-0.35271722078323364,
-0.12467657774686813,
0.2625780701637268,
0.09842187166213989,
-0.6071954965591431,
-0.132395938038826,
0.09368029981851578,
-0.2720193564891815,
0.2767102122306824,
0.10425256192684174,
0.41521915793418884,
-0.0786951407790184,
0.2561678886413574,
0.24941851198673248,
0.23557448387145996,
0.43497663736343384,
0.5161917209625244,
0.26862069964408875,
-0.35522812604904175,
0.21884846687316895,
-0.2507430613040924,
0.6465276479721069,
0.2318781614303589,
0.06159638613462448,
0.14042332768440247,
0.15089625120162964,
0.09423477202653885,
-0.02033274993300438,
0.37010085582733154,
0.2798168957233429,
-0.12389824539422989,
-0.36862629652023315,
-0.24375854432582855,
0.24038344621658325,
0.10463745892047882,
0.11138948798179626,
0.3320838510990143,
-0.24132944643497467,
-0.2969509959220886,
-0.1549645960330963,
-0.10321410745382309,
0.906123697757721,
0.2927570343017578,
0.039310023188591,
0.08604811131954193,
-0.3258371353149414,
0.12519516050815582,
-0.2902287244796753,
0.21422575414180756,
-0.09282910823822021,
-0.16706857085227966,
-0.0872708112001419,
-0.0958876982331276,
0.11583372205495834,
-0.09951965510845184,
-0.61776202917099,
0.30312758684158325,
-0.3352067470550537,
0.47274330258369446,
-0.17208369076251984,
0.23807987570762634,
-0.08829773962497711,
-0.2536146640777588,
-0.342553973197937,
0.14175806939601898,
0.02205396071076393,
-0.07316678762435913,
-0.07980482280254364,
-0.34131020307540894,
0.2264660894870758,
0.011475399136543274,
-0.17372678220272064,
0.41330429911613464,
0.1999705582857132,
0.1164466068148613,
-0.2493283748626709,
-0.08463739603757858,
0.09358441829681396,
0.1351984441280365,
0.11909051984548569,
0.03135000541806221,
-0.20796498656272888,
0.27826550602912903,
-0.04662790894508362,
-0.03542254492640495,
-0.3956879675388336,
-0.058956265449523926,
0.1491265743970871,
-0.26104089617729187,
-0.22249512374401093,
0.29453420639038086,
0.12287750840187073,
-0.3657229542732239,
-0.16977740824222565,
0.01832994818687439,
0.05278854817152023,
-0.19358903169631958,
0.06634034216403961,
0.4121111333370209,
-0.09193968772888184,
-0.23803827166557312,
0.12193785607814789,
-0.08839404582977295,
-0.3699061870574951,
0.21835649013519287,
0.0936187133193016,
-0.0570140965282917,
-0.2553706765174866,
0.4544883668422699,
0.12590110301971436,
-0.11718876659870148,
0.29999828338623047,
0.11751416325569153,
-0.03150758892297745,
-0.15322235226631165,
-0.23726198077201843,
0.14271685481071472,
-0.12927424907684326,
0.19313748180866241,
-0.21353991329669952,
-0.18154120445251465,
0.2200811207294464,
0.07584300637245178,
0.040179818868637085,
0.12470326572656631,
-0.23850181698799133,
-0.1985587626695633,
-0.20239664614200592,
0.1771591752767563,
-0.2507129907608032,
0.4231584668159485,
-0.14286527037620544,
0.41164153814315796,
0.07283023744821548,
0.2695707380771637,
-0.3071577548980713,
-0.10560521483421326,
0.15936344861984253,
0.1556166410446167,
-0.16685476899147034,
-0.29971006512641907,
0.06213654205203056,
-0.08112818002700806,
0.05899830162525177,
0.19807428121566772,
-0.12008489668369293,
-0.17572146654129028,
-0.022328030318021774,
0.08003934472799301,
0.37207353115081787,
-0.0525679737329483,
-0.16324558854103088,
-0.10257880389690399,
-0.3855835795402527,
0.01778893917798996,
0.1681811511516571,
-0.19087466597557068,
-0.004180558025836945,
-0.04073847457766533,
0.5705805420875549,
0.047666486352682114,
0.1451631337404251,
-0.10982328653335571,
0.22955963015556335,
0.07888109236955643,
-0.08291618525981903,
0.10597480833530426,
0.04575546458363533,
-0.1251544952392578,
-0.08955402672290802,
-0.048462726175785065,
0.4465572237968445,
0.028694167733192444,
0.3183688223361969,
-0.2322389930486679,
-0.15695229172706604,
-0.4284859001636505,
0.5518561601638794,
0.6167823076248169,
0.10290572792291641,
0.07440415769815445,
0.021158501505851746,
0.18610963225364685,
-0.17020611464977264,
-0.04331248253583908,
-0.06234819069504738,
0.25459226965904236,
0.0014830157160758972,
0.00534723699092865,
0.3736136257648468,
0.1535094529390335,
-0.18946649134159088,
0.38267695903778076,
-0.04832388088107109,
-0.03716307878494263,
0.6387742161750793,
0.4106842875480652,
-0.2072613686323166,
0.1806667000055313,
-0.007763853296637535,
-0.13058559596538544,
-0.055499739944934845,
0.012797713279724121,
-0.05122876912355423,
0.3911591172218323,
0.292112797498703,
-0.1136709600687027,
0.3499390482902527,
-0.1509891301393509,
-0.2404821366071701,
-0.071587935090065,
-0.17570650577545166,
0.30004552006721497,
0.2173130214214325,
0.1832944005727768,
-0.2557942867279053,
-0.6042996048927307,
-0.3127845823764801,
0.17164161801338196,
-0.03594157099723816,
-0.014146960340440273,
-0.0852922797203064,
-0.183695986866951,
-0.13057434558868408,
0.15725275874137878,
0.31637129187583923,
0.07832730561494827,
0.5740574598312378,
-0.026114076375961304,
0.13905978202819824,
-0.20281460881233215,
0.1930665373802185,
0.3250546157360077,
0.28758659958839417,
-0.1749439686536789,
-0.04265473783016205,
0.38614773750305176,
-0.21232032775878906,
0.4120912253856659,
0.14912763237953186,
0.4900630712509155,
0.24209125339984894,
-0.10773976147174835,
0.04860379919409752,
0.18654514849185944,
-0.11867044866085052,
0.14840392768383026,
0.30508920550346375,
0.3618984520435333,
-0.3039270043373108,
0.37243011593818665,
0.15372513234615326,
-0.09080381691455841,
0.22968438267707825,
-0.276267945766449,
0.33457034826278687,
-0.37418752908706665,
0.328922837972641,
0.227105513215065,
-0.046182699501514435,
0.005844816565513611,
-0.17263263463974,
-0.3891918361186981,
-0.1618676632642746,
0.3908950090408325,
-0.0000050710514187812805,
-0.003156364895403385,
-0.13738256692886353,
0.10408134013414383,
0.27783411741256714,
0.7071396708488464,
0.16419503092765808,
0.046888332813978195,
-0.26232802867889404,
-0.1777585744857788,
-0.39263516664505005,
-0.2546824812889099,
-0.06322240829467773,
0.31354713439941406,
-0.13349151611328125,
0.17957305908203125,
0.06969896703958511,
0.17993217706680298,
0.29892876744270325,
-0.25209614634513855,
0.18221941590309143,
-0.06111173331737518,
-0.38550475239753723,
0.004328835755586624,
0.18724273145198822,
0.07569275796413422,
0.01825198531150818,
-0.10278330743312836,
0.3617326021194458,
-0.004527122247964144,
0.005813345313072205,
0.16951875388622284,
-0.08386828005313873,
0.30229082703590393,
0.01876946911215782,
-0.20671454071998596,
0.23862554132938385,
0.3954058587551117,
-0.12898188829421997,
0.014098452404141426,
-0.20417889952659607,
-0.2567182779312134,
-0.42252999544143677,
-0.02698749303817749,
0.14589378237724304,
0.40948912501335144,
-0.0996432974934578,
-0.09915469586849213,
-0.11319003254175186,
0.334234356880188,
0.0933210551738739,
-0.13254055380821228,
-0.11007580906152725,
-0.03781875967979431,
0.032327137887477875,
0.04814479872584343,
0.198329359292984,
0.3545147478580475,
-0.19789600372314453,
-0.11507229506969452,
-0.10312142968177795,
-0.3238394558429718,
0.5170172452926636,
-0.22497928142547607,
-0.2571134865283966,
-0.43382033705711365,
-0.16068851947784424,
0.6405926942825317,
0.2815172076225281,
-0.6916134357452393,
-0.2966775596141815,
0.07424706965684891,
-0.44130823016166687,
0.1601858139038086,
0.4755840003490448,
0.22170500457286835,
-0.17491039633750916,
-0.1803501546382904,
-0.0878865122795105,
0.3168780207633972,
-0.3486126661300659,
0.1066330075263977,
-0.23497556149959564
] |
https://github.com/huggingface/datasets/issues/2695 | Cannot import load_dataset on Colab | I'm facing the same issue on Colab today too.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-5833ac0f5437> in <module>()
3
4 from ray import tune
----> 5 from datasets import DatasetDict, Dataset
6 from datasets import load_dataset, load_metric
7 from dataclasses import dataclass
7 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
``` | ## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
| 111 | Cannot import load_dataset on Colab
## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
I'm facing the same issue on Colab today too.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-5833ac0f5437> in <module>()
3
4 from ray import tune
----> 5 from datasets import DatasetDict, Dataset
6 from datasets import load_dataset, load_metric
7 from dataclasses import dataclass
7 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
``` | [
-0.4603254497051239,
-0.21482795476913452,
-0.024375079199671745,
0.2682138681411743,
0.13541308045387268,
0.05199464410543442,
0.49737706780433655,
-0.10748526453971863,
0.19837024807929993,
0.08495346456766129,
-0.32663074135780334,
0.475323349237442,
-0.17426961660385132,
0.1487492024898529,
-0.2584451735019684,
0.0984700620174408,
-0.06618606299161911,
0.05820351839065552,
-0.2907032370567322,
0.09561517834663391,
0.02029157429933548,
0.330888569355011,
-0.6335687637329102,
-0.34685730934143066,
-0.5786882042884827,
-0.21004165709018707,
-0.02774236351251602,
0.16879117488861084,
-0.2702188491821289,
-0.29201093316078186,
0.34782278537750244,
0.17705871164798737,
0.092189721763134,
0.5697177648544312,
-0.00011724026262527332,
0.07151348888874054,
0.39330899715423584,
-0.07875371724367142,
-0.2456897348165512,
-0.3918711543083191,
-0.3461531698703766,
-0.3291964828968048,
0.3686215877532959,
-0.10739240795373917,
0.10582707077264786,
0.40416616201400757,
-0.13573099672794342,
-0.13327544927597046,
0.2626950144767761,
0.1352795958518982,
0.19363412261009216,
0.5491975545883179,
0.1630605161190033,
-0.1924920529127121,
-0.1125868484377861,
-0.19337834417819977,
-0.2020828276872635,
0.7461525797843933,
0.4174177646636963,
0.0168561190366745,
-0.051024653017520905,
0.26049432158470154,
-0.09926725178956985,
0.2890874445438385,
0.18624109029769897,
-0.033422499895095825,
0.10510170459747314,
-0.48058298230171204,
0.10063758492469788,
0.17437754571437836,
0.4806719720363617,
-0.23342713713645935,
0.044390350580215454,
-0.12202461063861847,
0.2094733566045761,
-0.29246729612350464,
0.2619002163410187,
-0.09856998920440674,
-0.2118595391511917,
0.049008239060640335,
-0.02269667387008667,
-0.08961699903011322,
-0.012307368218898773,
0.01643751934170723,
-0.09338625520467758,
0.36550670862197876,
-0.1430073380470276,
-0.11182660609483719,
0.06986620277166367,
-0.10964168608188629,
0.50180983543396,
-0.016182541847229004,
-0.026867475360631943,
0.2063281387090683,
-0.468000590801239,
-0.009329818189144135,
-0.0988704189658165,
-0.14084923267364502,
-0.05169883370399475,
-0.10149483382701874,
-0.036186497658491135,
0.017466776072978973,
-0.11100880056619644,
0.30348339676856995,
0.18480242788791656,
0.14224998652935028,
0.03475850075483322,
0.018298126757144928,
0.12265411019325256,
0.28642815351486206,
-0.20076265931129456,
0.2273951768875122,
-0.2592823803424835,
-0.3118796646595001,
0.18450844287872314,
-0.029214031994342804,
0.2715785503387451,
-0.0037105008959770203,
-0.31906190514564514,
-0.18184557557106018,
0.009568456560373306,
0.10504240542650223,
0.044622644782066345,
0.3990533947944641,
0.05579594895243645,
0.10570908337831497,
-0.03462209552526474,
0.0016939155757427216,
-0.35665273666381836,
-0.23943829536437988,
-0.05384513735771179,
0.19369642436504364,
-0.0642799437046051,
-0.1152990534901619,
0.06780356168746948,
-0.15499933063983917,
0.26018691062927246,
-0.012420629151165485,
0.30920493602752686,
-0.05996038392186165,
0.10367397964000702,
-0.3025384843349457,
-0.06064523011445999,
0.33190804719924927,
0.12873533368110657,
0.0872022733092308,
-0.06231342628598213,
-0.20557798445224762,
-0.07788773626089096,
0.23551711440086365,
-0.4770621657371521,
-0.144236758351326,
-0.024314971640706062,
0.14294648170471191,
-0.1339145004749298,
-0.224430650472641,
-0.5850236415863037,
0.16483452916145325,
0.14476366341114044,
-0.08128127455711365,
-0.0849626287817955,
-0.30628299713134766,
-0.23307128250598907,
-0.1535833179950714,
0.12368800491094589,
0.44828343391418457,
-0.23092897236347198,
-0.14231428503990173,
-0.21769095957279205,
0.12052740156650543,
0.1272704154253006,
0.2348230928182602,
-0.20215435326099396,
0.1736087203025818,
-0.09626463800668716,
-0.11714209616184235,
0.49064773321151733,
-0.43263596296310425,
-0.4671248197555542,
-0.02034778706729412,
-0.26607635617256165,
-0.005255136638879776,
-0.08970671147108078,
0.04857930541038513,
0.3577233850955963,
-0.06694068759679794,
0.5458387732505798,
0.26293671131134033,
-0.1390327662229538,
-0.03660407289862633,
-0.16409073770046234,
-0.40990525484085083,
0.12942570447921753,
0.04181954637169838,
0.18346287310123444,
-0.21777111291885376,
0.20303314924240112,
-0.05337492376565933,
0.10123856365680695,
0.1859942227602005,
-0.12113017588853836,
0.38433337211608887,
0.2429012507200241,
-0.22237829864025116,
0.03727411851286888,
-0.18595731258392334,
-0.4775214195251465,
0.22404831647872925,
0.4092941880226135,
0.0799715518951416,
-0.06749898195266724,
0.05132502317428589,
-0.4381961226463318,
0.07910666614770889,
-0.2594435214996338,
0.0676424577832222,
0.0994124561548233,
-0.06667014956474304,
-0.17513036727905273,
0.08892622590065002,
-0.2604832947254181,
0.7403808236122131,
0.037707552313804626,
0.2175934761762619,
-0.31834137439727783,
0.21578837931156158,
-0.18590405583381653,
-0.30817949771881104,
0.1762927770614624,
0.13617143034934998,
0.0753253847360611,
-0.09227294474840164,
-0.23890742659568787,
0.1421213150024414,
0.2554139494895935,
0.17134107649326324,
0.06189204379916191,
-0.2776552438735962,
0.41236618161201477,
-0.27401185035705566,
0.012324916198849678,
-0.10668428242206573,
0.20857016742229462,
0.0058229342103004456,
0.2551184594631195,
0.15657126903533936,
-0.37070316076278687,
-0.041073404252529144,
-0.030512062832713127,
0.09053882211446762,
0.37264394760131836,
0.12399633228778839,
-0.005092286504805088,
-0.18564826250076294,
0.3251838982105255,
0.22229494154453278,
0.19247430562973022,
0.09374196827411652,
-0.12973177433013916,
0.28813523054122925,
0.3061753511428833,
0.24524396657943726,
0.03877895697951317,
-0.2685609757900238,
-0.2554308772087097,
0.06336478888988495,
0.1922871619462967,
0.25180909037590027,
0.4446455240249634,
0.18038888275623322,
0.10491904616355896,
0.031631387770175934,
0.031848106533288956,
-0.15611736476421356,
0.11511986702680588,
0.2919999361038208,
0.2558414340019226,
0.1311025470495224,
0.4120827317237854,
0.0967436358332634,
-0.07899824529886246,
-0.3894115686416626,
0.17532503604888916,
0.1503109484910965,
-0.33177265524864197,
0.07662636041641235,
-0.21460190415382385,
-0.11394704133272171,
-0.14194603264331818,
-0.42533934116363525,
-0.14645400643348694,
-0.19783495366573334,
-0.10580091178417206,
0.281025767326355,
0.26506248116493225,
0.19366209208965302,
-0.023993849754333496,
0.05001707375049591,
0.06250427663326263,
-0.14248353242874146,
-0.055817123502492905,
-0.2506767511367798,
-0.09258785098791122,
0.0015158746391534805,
0.32773950695991516,
0.2468111515045166,
0.36850541830062866,
-0.30383071303367615,
-0.06956242024898529,
0.1437004655599594,
-0.3320981562137604,
0.1763451248407364,
-0.005682744085788727,
0.29197993874549866,
-0.013443052768707275,
-0.07797102630138397,
-0.32062989473342896,
-0.19391734898090363,
0.02153596840798855,
-0.13462325930595398,
-0.1827462911605835,
0.047279685735702515,
-0.18002861738204956,
-0.22977414727210999,
-0.00199117511510849,
-0.2926877439022064,
-0.4344462454319,
-0.39985689520835876,
-0.3682097792625427,
0.04724642261862755,
-0.008903078734874725,
0.4603002965450287,
-0.04271594434976578,
0.2933923900127411,
0.2250700742006302,
0.05083802342414856,
0.017936130985617638,
-0.3330913484096527,
0.47338205575942993,
-0.28651130199432373,
-0.2936580777168274,
0.28012022376060486,
-0.26804643869400024,
0.38360875844955444,
0.01818278804421425,
-0.1104435846209526,
-0.21353083848953247,
-0.021479742601513863,
0.3837369680404663,
-0.10093992948532104,
0.04168277606368065,
0.0846359133720398,
0.11366160213947296,
0.07825841009616852,
-0.09240637719631195,
-0.1815529763698578,
-0.20405057072639465,
0.219632089138031,
0.19307851791381836,
-0.16571548581123352,
0.22659778594970703,
-0.03633569926023483,
0.8421133756637573,
0.07719875872135162,
-0.04005036875605583,
0.3015679717063904,
-0.061655618250370026,
0.3064921200275421,
-0.1064247116446495,
-0.5121491551399231,
-0.06968449056148529,
-0.10731109976768494,
-0.0392843522131443,
0.08197180926799774,
-0.18397533893585205,
-0.11122260242700577,
-0.2847861647605896,
-0.2727974057197571,
-0.3160189986228943,
-0.2918519675731659,
-0.11478531360626221,
-0.20039138197898865,
0.13085444271564484,
0.19867929816246033,
-0.06129159778356552,
-0.16200824081897736,
-0.11249669641256332,
0.0489826463162899,
0.4355244040489197,
-0.420803040266037,
-0.018614597618579865,
0.37955984473228455,
-0.0728553980588913,
-0.34649088978767395,
0.19865301251411438,
0.1317850798368454,
0.3303270637989044,
0.07662583887577057,
0.11820032447576523,
0.060140594840049744,
-0.0493251197040081,
0.11224575340747833,
0.05919665843248367,
-0.08000028133392334,
0.23661619424819946,
-0.01469402015209198,
-0.4012729227542877,
-0.05774392932653427,
-0.2255626767873764,
0.22409836947917938,
0.47931966185569763,
0.08615235239267349,
-0.26678410172462463,
0.21151795983314514,
0.23633165657520294,
0.1412736177444458,
-0.114222951233387,
-0.1485225111246109,
-0.43875184655189514,
-0.31343770027160645,
-0.37841033935546875,
-0.06004510074853897,
0.18504571914672852,
0.23917484283447266,
0.041669443249702454,
-0.07086975872516632,
-0.06402763724327087,
-0.21697339415550232,
0.06104177236557007,
0.35968974232673645,
0.1482841670513153,
0.2704477310180664,
0.5801547765731812,
0.12715129554271698,
-0.24735921621322632,
0.4470185935497284,
0.5865609645843506,
0.002833288162946701,
-0.5835174918174744,
-0.027999449521303177,
-0.17973949015140533,
0.234889417886734,
0.13151907920837402,
-0.0706736221909523,
0.01633010059595108,
0.05956580117344856,
-0.13585183024406433,
0.38487493991851807,
0.38126546144485474,
-0.0635429248213768,
0.12624815106391907,
-0.40266528725624084,
-0.1285913586616516,
0.09584801644086838,
0.0007424056529998779,
0.13769924640655518,
0.4601658582687378,
-0.37963783740997314,
-0.05982210487127304,
0.047099169343709946,
-0.1843537986278534,
0.6863648891448975,
-0.038188859820365906,
-0.23901581764221191,
0.27325332164764404,
-0.16150283813476562,
0.26525887846946716,
0.11319062113761902,
0.18576055765151978,
-0.27622297406196594,
-0.30762141942977905,
0.0923931896686554,
-0.22662214934825897,
0.19002622365951538,
-0.19458122551441193,
-0.3511311113834381,
0.25961413979530334,
0.05645580589771271,
-0.1498298943042755,
-0.018575873225927353,
0.040605075657367706,
0.0024130549281835556,
-0.293750137090683,
-0.3525201976299286,
0.05176926404237747,
-0.1905302256345749,
0.206171914935112,
-0.1972416639328003,
-0.18334625661373138,
-0.13894784450531006,
-0.1865321695804596,
-0.03310399129986763,
-0.10903533548116684,
-0.6445797085762024,
0.23709826171398163,
0.3314475417137146,
-0.3087448179721832,
0.20051714777946472,
-0.11113843321800232,
0.09509895741939545,
-0.029330309480428696,
-0.17394956946372986,
0.12651227414608002,
0.19933444261550903,
0.016686435788869858,
-0.11088839918375015,
-0.17295213043689728,
0.4197724163532257,
-0.08396579325199127,
0.005003899335861206,
0.05766652524471283,
0.036623042076826096,
-0.02253434807062149,
0.4702349305152893,
0.35126155614852905,
0.36815690994262695,
0.15069280564785004,
-0.0755755752325058,
0.18104739487171173,
0.2616753578186035,
-0.19587817788124084,
0.0780421793460846,
0.10197554528713226,
-0.15308479964733124,
0.25580665469169617,
-0.10751354694366455,
-0.10032457858324051,
-0.0019222572445869446,
0.33977261185646057,
0.12967148423194885,
-0.016100281849503517,
0.18322114646434784,
0.15517261624336243,
-0.255842387676239,
-0.08447596430778503,
0.16883522272109985,
-0.30879250168800354,
-0.30041366815567017,
0.24127712845802307,
-0.01991431973874569,
0.04912698268890381,
0.07449378818273544,
0.734095573425293,
0.24561496078968048,
-0.36856865882873535,
-0.13207833468914032,
-0.3772934377193451,
-0.5326017141342163,
0.14176875352859497,
-0.12052375078201294,
-0.09494319558143616,
0.2369500696659088,
0.3836897015571594,
0.12086884677410126,
0.12841123342514038,
-0.22089043259620667,
0.1052408441901207,
-0.15847575664520264,
0.15400396287441254,
0.2756514847278595,
-0.09605196863412857,
0.03729235380887985,
0.08598950505256653,
0.004241978749632835,
0.15297859907150269,
0.0671004131436348,
-0.2249542474746704,
-0.11465826630592346,
0.13268063962459564,
-0.10255298763513565,
0.04087104648351669,
-0.11802632361650467,
-0.1512853354215622,
-0.2300351858139038,
-0.17150266468524933,
0.15905159711837769,
0.035123445093631744,
-0.0818418562412262,
-0.13215580582618713,
0.2920054495334625,
-0.09662947803735733,
-0.2174021154642105,
0.40256765484809875,
0.1177951917052269,
0.08100780844688416,
0.07766681164503098,
0.166029691696167,
0.16654224693775177,
0.18327867984771729,
0.017529860138893127,
-0.22533968091011047,
-0.0916716605424881,
-0.17651280760765076,
0.09427809715270996,
-0.33208924531936646,
-0.014022953808307648,
0.06999486684799194,
-0.027507096529006958,
0.4203791916370392,
-0.128956601023674,
-0.20998455584049225,
0.04724174365401268,
0.08578071743249893,
-0.3888074457645416,
0.031113265082240105,
0.3042638897895813,
0.15485888719558716,
0.1754320114850998,
0.27228766679763794,
0.08177199959754944,
0.08188436925411224,
0.15440915524959564,
0.39525189995765686,
0.2447243481874466,
-0.022837109863758087,
0.26611125469207764,
-0.20580103993415833,
0.08578145503997803,
0.2306346297264099,
0.23610898852348328,
0.11843249201774597,
0.03810501843690872,
0.15266984701156616,
-0.1501828134059906,
0.2959784269332886,
0.1446436047554016,
-0.16727405786514282,
0.2365310788154602,
-0.3596031069755554,
0.24245662987232208,
-0.09867705404758453,
0.05690852925181389,
-0.13632839918136597,
0.14178615808486938,
0.3276461958885193,
-0.04918627813458443,
-0.08844708651304245,
-0.16085316240787506,
-0.003040887415409088,
-0.30019059777259827,
0.2709413766860962,
0.4638247489929199,
-0.09763093292713165,
-0.09312421828508377,
-0.043175533413887024,
0.2145777940750122,
0.21752794086933136,
0.5374794602394104,
0.31591182947158813,
-0.16690002381801605,
-0.489629328250885,
-0.12244055420160294,
0.5082061290740967,
-0.12667348980903625,
-0.1844530701637268,
0.4623728394508362,
-0.13487134873867035,
0.010012045502662659,
-0.16528068482875824,
0.3222152590751648,
0.488484263420105,
0.30063119530677795,
-0.13834798336029053,
-0.20752596855163574,
0.25662750005722046,
-0.18010485172271729,
-0.13837379217147827,
0.21072158217430115,
0.059683866798877716,
0.29416802525520325,
0.29817119240760803,
0.0842534527182579,
-0.16908764839172363,
-0.03203753009438515,
0.22073066234588623,
-0.33576101064682007,
-0.44092047214508057,
0.20642894506454468,
-0.1567063182592392,
-0.002659086138010025,
-0.1897852122783661,
0.09799989312887192,
-0.45638933777809143,
0.2288249135017395,
0.3156724274158478,
-0.2224389612674713,
-0.06700253486633301,
-0.14896303415298462,
0.04495935142040253,
-0.030799373984336853,
0.3605280816555023,
0.2467251718044281,
0.35621052980422974,
-0.20113010704517365,
-0.10377401113510132,
-0.8396959900856018,
0.31460079550743103,
0.033666618168354034,
-0.01172998920083046,
-0.03855297341942787,
0.1393253356218338,
-0.0011308714747428894,
0.3212938904762268,
0.4201124310493469,
0.04542933404445648,
0.1901208460330963,
0.0372287854552269,
-0.462015837430954,
-0.2717568278312683,
0.09004054218530655,
-0.445476233959198,
0.005056839436292648,
-0.39178943634033203,
-0.00409819558262825,
-0.28245243430137634,
-0.041468169540166855,
-0.02739773690700531,
-0.4465276002883911,
0.2701757848262787,
0.30223727226257324,
0.2959747314453125,
-0.0437554270029068,
0.6722484827041626,
-0.05365685001015663,
0.09963607043027878,
-0.06906504929065704,
-0.31764405965805054,
-0.026964489370584488,
0.15783056616783142,
0.39532241225242615,
0.21142791211605072,
-0.2491103559732437,
0.07488274574279785,
-0.1284850686788559,
0.1337045431137085,
0.13303227722644806,
0.012899909168481827,
-0.2782159149646759,
0.06854134798049927,
-0.16541364789009094,
0.4030524790287018,
-0.13011325895786285,
0.18237218260765076,
0.06379100680351257,
0.2705148458480835,
-0.3036563992500305,
-0.35715779662132263,
0.3911989629268646,
-0.34344911575317383,
-0.458597332239151,
-0.42767223715782166,
0.2904646694660187,
0.15982040762901306,
-0.20495738089084625,
-0.47420865297317505,
0.009303778409957886,
0.2549891769886017,
-0.15330877900123596,
-0.15550068020820618,
0.5398077964782715,
0.06995448470115662,
0.21426253020763397,
-0.12199623882770538,
0.20986321568489075,
0.004663361236453056,
-0.1189015731215477,
-0.11650463938713074,
-0.06436599791049957
] |
https://github.com/huggingface/datasets/issues/2695 | Cannot import load_dataset on Colab | @phosseini
I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq )
For now I just downgraded to 1.9.0 and it is working fine. | ## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
| 28 | Cannot import load_dataset on Colab
## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
@phosseini
I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq )
For now I just downgraded to 1.9.0 and it is working fine. | [
-0.4603254497051239,
-0.21482795476913452,
-0.024375079199671745,
0.2682138681411743,
0.13541308045387268,
0.05199464410543442,
0.49737706780433655,
-0.10748526453971863,
0.19837024807929993,
0.08495346456766129,
-0.32663074135780334,
0.475323349237442,
-0.17426961660385132,
0.1487492024898529,
-0.2584451735019684,
0.0984700620174408,
-0.06618606299161911,
0.05820351839065552,
-0.2907032370567322,
0.09561517834663391,
0.02029157429933548,
0.330888569355011,
-0.6335687637329102,
-0.34685730934143066,
-0.5786882042884827,
-0.21004165709018707,
-0.02774236351251602,
0.16879117488861084,
-0.2702188491821289,
-0.29201093316078186,
0.34782278537750244,
0.17705871164798737,
0.092189721763134,
0.5697177648544312,
-0.00011724026262527332,
0.07151348888874054,
0.39330899715423584,
-0.07875371724367142,
-0.2456897348165512,
-0.3918711543083191,
-0.3461531698703766,
-0.3291964828968048,
0.3686215877532959,
-0.10739240795373917,
0.10582707077264786,
0.40416616201400757,
-0.13573099672794342,
-0.13327544927597046,
0.2626950144767761,
0.1352795958518982,
0.19363412261009216,
0.5491975545883179,
0.1630605161190033,
-0.1924920529127121,
-0.1125868484377861,
-0.19337834417819977,
-0.2020828276872635,
0.7461525797843933,
0.4174177646636963,
0.0168561190366745,
-0.051024653017520905,
0.26049432158470154,
-0.09926725178956985,
0.2890874445438385,
0.18624109029769897,
-0.033422499895095825,
0.10510170459747314,
-0.48058298230171204,
0.10063758492469788,
0.17437754571437836,
0.4806719720363617,
-0.23342713713645935,
0.044390350580215454,
-0.12202461063861847,
0.2094733566045761,
-0.29246729612350464,
0.2619002163410187,
-0.09856998920440674,
-0.2118595391511917,
0.049008239060640335,
-0.02269667387008667,
-0.08961699903011322,
-0.012307368218898773,
0.01643751934170723,
-0.09338625520467758,
0.36550670862197876,
-0.1430073380470276,
-0.11182660609483719,
0.06986620277166367,
-0.10964168608188629,
0.50180983543396,
-0.016182541847229004,
-0.026867475360631943,
0.2063281387090683,
-0.468000590801239,
-0.009329818189144135,
-0.0988704189658165,
-0.14084923267364502,
-0.05169883370399475,
-0.10149483382701874,
-0.036186497658491135,
0.017466776072978973,
-0.11100880056619644,
0.30348339676856995,
0.18480242788791656,
0.14224998652935028,
0.03475850075483322,
0.018298126757144928,
0.12265411019325256,
0.28642815351486206,
-0.20076265931129456,
0.2273951768875122,
-0.2592823803424835,
-0.3118796646595001,
0.18450844287872314,
-0.029214031994342804,
0.2715785503387451,
-0.0037105008959770203,
-0.31906190514564514,
-0.18184557557106018,
0.009568456560373306,
0.10504240542650223,
0.044622644782066345,
0.3990533947944641,
0.05579594895243645,
0.10570908337831497,
-0.03462209552526474,
0.0016939155757427216,
-0.35665273666381836,
-0.23943829536437988,
-0.05384513735771179,
0.19369642436504364,
-0.0642799437046051,
-0.1152990534901619,
0.06780356168746948,
-0.15499933063983917,
0.26018691062927246,
-0.012420629151165485,
0.30920493602752686,
-0.05996038392186165,
0.10367397964000702,
-0.3025384843349457,
-0.06064523011445999,
0.33190804719924927,
0.12873533368110657,
0.0872022733092308,
-0.06231342628598213,
-0.20557798445224762,
-0.07788773626089096,
0.23551711440086365,
-0.4770621657371521,
-0.144236758351326,
-0.024314971640706062,
0.14294648170471191,
-0.1339145004749298,
-0.224430650472641,
-0.5850236415863037,
0.16483452916145325,
0.14476366341114044,
-0.08128127455711365,
-0.0849626287817955,
-0.30628299713134766,
-0.23307128250598907,
-0.1535833179950714,
0.12368800491094589,
0.44828343391418457,
-0.23092897236347198,
-0.14231428503990173,
-0.21769095957279205,
0.12052740156650543,
0.1272704154253006,
0.2348230928182602,
-0.20215435326099396,
0.1736087203025818,
-0.09626463800668716,
-0.11714209616184235,
0.49064773321151733,
-0.43263596296310425,
-0.4671248197555542,
-0.02034778706729412,
-0.26607635617256165,
-0.005255136638879776,
-0.08970671147108078,
0.04857930541038513,
0.3577233850955963,
-0.06694068759679794,
0.5458387732505798,
0.26293671131134033,
-0.1390327662229538,
-0.03660407289862633,
-0.16409073770046234,
-0.40990525484085083,
0.12942570447921753,
0.04181954637169838,
0.18346287310123444,
-0.21777111291885376,
0.20303314924240112,
-0.05337492376565933,
0.10123856365680695,
0.1859942227602005,
-0.12113017588853836,
0.38433337211608887,
0.2429012507200241,
-0.22237829864025116,
0.03727411851286888,
-0.18595731258392334,
-0.4775214195251465,
0.22404831647872925,
0.4092941880226135,
0.0799715518951416,
-0.06749898195266724,
0.05132502317428589,
-0.4381961226463318,
0.07910666614770889,
-0.2594435214996338,
0.0676424577832222,
0.0994124561548233,
-0.06667014956474304,
-0.17513036727905273,
0.08892622590065002,
-0.2604832947254181,
0.7403808236122131,
0.037707552313804626,
0.2175934761762619,
-0.31834137439727783,
0.21578837931156158,
-0.18590405583381653,
-0.30817949771881104,
0.1762927770614624,
0.13617143034934998,
0.0753253847360611,
-0.09227294474840164,
-0.23890742659568787,
0.1421213150024414,
0.2554139494895935,
0.17134107649326324,
0.06189204379916191,
-0.2776552438735962,
0.41236618161201477,
-0.27401185035705566,
0.012324916198849678,
-0.10668428242206573,
0.20857016742229462,
0.0058229342103004456,
0.2551184594631195,
0.15657126903533936,
-0.37070316076278687,
-0.041073404252529144,
-0.030512062832713127,
0.09053882211446762,
0.37264394760131836,
0.12399633228778839,
-0.005092286504805088,
-0.18564826250076294,
0.3251838982105255,
0.22229494154453278,
0.19247430562973022,
0.09374196827411652,
-0.12973177433013916,
0.28813523054122925,
0.3061753511428833,
0.24524396657943726,
0.03877895697951317,
-0.2685609757900238,
-0.2554308772087097,
0.06336478888988495,
0.1922871619462967,
0.25180909037590027,
0.4446455240249634,
0.18038888275623322,
0.10491904616355896,
0.031631387770175934,
0.031848106533288956,
-0.15611736476421356,
0.11511986702680588,
0.2919999361038208,
0.2558414340019226,
0.1311025470495224,
0.4120827317237854,
0.0967436358332634,
-0.07899824529886246,
-0.3894115686416626,
0.17532503604888916,
0.1503109484910965,
-0.33177265524864197,
0.07662636041641235,
-0.21460190415382385,
-0.11394704133272171,
-0.14194603264331818,
-0.42533934116363525,
-0.14645400643348694,
-0.19783495366573334,
-0.10580091178417206,
0.281025767326355,
0.26506248116493225,
0.19366209208965302,
-0.023993849754333496,
0.05001707375049591,
0.06250427663326263,
-0.14248353242874146,
-0.055817123502492905,
-0.2506767511367798,
-0.09258785098791122,
0.0015158746391534805,
0.32773950695991516,
0.2468111515045166,
0.36850541830062866,
-0.30383071303367615,
-0.06956242024898529,
0.1437004655599594,
-0.3320981562137604,
0.1763451248407364,
-0.005682744085788727,
0.29197993874549866,
-0.013443052768707275,
-0.07797102630138397,
-0.32062989473342896,
-0.19391734898090363,
0.02153596840798855,
-0.13462325930595398,
-0.1827462911605835,
0.047279685735702515,
-0.18002861738204956,
-0.22977414727210999,
-0.00199117511510849,
-0.2926877439022064,
-0.4344462454319,
-0.39985689520835876,
-0.3682097792625427,
0.04724642261862755,
-0.008903078734874725,
0.4603002965450287,
-0.04271594434976578,
0.2933923900127411,
0.2250700742006302,
0.05083802342414856,
0.017936130985617638,
-0.3330913484096527,
0.47338205575942993,
-0.28651130199432373,
-0.2936580777168274,
0.28012022376060486,
-0.26804643869400024,
0.38360875844955444,
0.01818278804421425,
-0.1104435846209526,
-0.21353083848953247,
-0.021479742601513863,
0.3837369680404663,
-0.10093992948532104,
0.04168277606368065,
0.0846359133720398,
0.11366160213947296,
0.07825841009616852,
-0.09240637719631195,
-0.1815529763698578,
-0.20405057072639465,
0.219632089138031,
0.19307851791381836,
-0.16571548581123352,
0.22659778594970703,
-0.03633569926023483,
0.8421133756637573,
0.07719875872135162,
-0.04005036875605583,
0.3015679717063904,
-0.061655618250370026,
0.3064921200275421,
-0.1064247116446495,
-0.5121491551399231,
-0.06968449056148529,
-0.10731109976768494,
-0.0392843522131443,
0.08197180926799774,
-0.18397533893585205,
-0.11122260242700577,
-0.2847861647605896,
-0.2727974057197571,
-0.3160189986228943,
-0.2918519675731659,
-0.11478531360626221,
-0.20039138197898865,
0.13085444271564484,
0.19867929816246033,
-0.06129159778356552,
-0.16200824081897736,
-0.11249669641256332,
0.0489826463162899,
0.4355244040489197,
-0.420803040266037,
-0.018614597618579865,
0.37955984473228455,
-0.0728553980588913,
-0.34649088978767395,
0.19865301251411438,
0.1317850798368454,
0.3303270637989044,
0.07662583887577057,
0.11820032447576523,
0.060140594840049744,
-0.0493251197040081,
0.11224575340747833,
0.05919665843248367,
-0.08000028133392334,
0.23661619424819946,
-0.01469402015209198,
-0.4012729227542877,
-0.05774392932653427,
-0.2255626767873764,
0.22409836947917938,
0.47931966185569763,
0.08615235239267349,
-0.26678410172462463,
0.21151795983314514,
0.23633165657520294,
0.1412736177444458,
-0.114222951233387,
-0.1485225111246109,
-0.43875184655189514,
-0.31343770027160645,
-0.37841033935546875,
-0.06004510074853897,
0.18504571914672852,
0.23917484283447266,
0.041669443249702454,
-0.07086975872516632,
-0.06402763724327087,
-0.21697339415550232,
0.06104177236557007,
0.35968974232673645,
0.1482841670513153,
0.2704477310180664,
0.5801547765731812,
0.12715129554271698,
-0.24735921621322632,
0.4470185935497284,
0.5865609645843506,
0.002833288162946701,
-0.5835174918174744,
-0.027999449521303177,
-0.17973949015140533,
0.234889417886734,
0.13151907920837402,
-0.0706736221909523,
0.01633010059595108,
0.05956580117344856,
-0.13585183024406433,
0.38487493991851807,
0.38126546144485474,
-0.0635429248213768,
0.12624815106391907,
-0.40266528725624084,
-0.1285913586616516,
0.09584801644086838,
0.0007424056529998779,
0.13769924640655518,
0.4601658582687378,
-0.37963783740997314,
-0.05982210487127304,
0.047099169343709946,
-0.1843537986278534,
0.6863648891448975,
-0.038188859820365906,
-0.23901581764221191,
0.27325332164764404,
-0.16150283813476562,
0.26525887846946716,
0.11319062113761902,
0.18576055765151978,
-0.27622297406196594,
-0.30762141942977905,
0.0923931896686554,
-0.22662214934825897,
0.19002622365951538,
-0.19458122551441193,
-0.3511311113834381,
0.25961413979530334,
0.05645580589771271,
-0.1498298943042755,
-0.018575873225927353,
0.040605075657367706,
0.0024130549281835556,
-0.293750137090683,
-0.3525201976299286,
0.05176926404237747,
-0.1905302256345749,
0.206171914935112,
-0.1972416639328003,
-0.18334625661373138,
-0.13894784450531006,
-0.1865321695804596,
-0.03310399129986763,
-0.10903533548116684,
-0.6445797085762024,
0.23709826171398163,
0.3314475417137146,
-0.3087448179721832,
0.20051714777946472,
-0.11113843321800232,
0.09509895741939545,
-0.029330309480428696,
-0.17394956946372986,
0.12651227414608002,
0.19933444261550903,
0.016686435788869858,
-0.11088839918375015,
-0.17295213043689728,
0.4197724163532257,
-0.08396579325199127,
0.005003899335861206,
0.05766652524471283,
0.036623042076826096,
-0.02253434807062149,
0.4702349305152893,
0.35126155614852905,
0.36815690994262695,
0.15069280564785004,
-0.0755755752325058,
0.18104739487171173,
0.2616753578186035,
-0.19587817788124084,
0.0780421793460846,
0.10197554528713226,
-0.15308479964733124,
0.25580665469169617,
-0.10751354694366455,
-0.10032457858324051,
-0.0019222572445869446,
0.33977261185646057,
0.12967148423194885,
-0.016100281849503517,
0.18322114646434784,
0.15517261624336243,
-0.255842387676239,
-0.08447596430778503,
0.16883522272109985,
-0.30879250168800354,
-0.30041366815567017,
0.24127712845802307,
-0.01991431973874569,
0.04912698268890381,
0.07449378818273544,
0.734095573425293,
0.24561496078968048,
-0.36856865882873535,
-0.13207833468914032,
-0.3772934377193451,
-0.5326017141342163,
0.14176875352859497,
-0.12052375078201294,
-0.09494319558143616,
0.2369500696659088,
0.3836897015571594,
0.12086884677410126,
0.12841123342514038,
-0.22089043259620667,
0.1052408441901207,
-0.15847575664520264,
0.15400396287441254,
0.2756514847278595,
-0.09605196863412857,
0.03729235380887985,
0.08598950505256653,
0.004241978749632835,
0.15297859907150269,
0.0671004131436348,
-0.2249542474746704,
-0.11465826630592346,
0.13268063962459564,
-0.10255298763513565,
0.04087104648351669,
-0.11802632361650467,
-0.1512853354215622,
-0.2300351858139038,
-0.17150266468524933,
0.15905159711837769,
0.035123445093631744,
-0.0818418562412262,
-0.13215580582618713,
0.2920054495334625,
-0.09662947803735733,
-0.2174021154642105,
0.40256765484809875,
0.1177951917052269,
0.08100780844688416,
0.07766681164503098,
0.166029691696167,
0.16654224693775177,
0.18327867984771729,
0.017529860138893127,
-0.22533968091011047,
-0.0916716605424881,
-0.17651280760765076,
0.09427809715270996,
-0.33208924531936646,
-0.014022953808307648,
0.06999486684799194,
-0.027507096529006958,
0.4203791916370392,
-0.128956601023674,
-0.20998455584049225,
0.04724174365401268,
0.08578071743249893,
-0.3888074457645416,
0.031113265082240105,
0.3042638897895813,
0.15485888719558716,
0.1754320114850998,
0.27228766679763794,
0.08177199959754944,
0.08188436925411224,
0.15440915524959564,
0.39525189995765686,
0.2447243481874466,
-0.022837109863758087,
0.26611125469207764,
-0.20580103993415833,
0.08578145503997803,
0.2306346297264099,
0.23610898852348328,
0.11843249201774597,
0.03810501843690872,
0.15266984701156616,
-0.1501828134059906,
0.2959784269332886,
0.1446436047554016,
-0.16727405786514282,
0.2365310788154602,
-0.3596031069755554,
0.24245662987232208,
-0.09867705404758453,
0.05690852925181389,
-0.13632839918136597,
0.14178615808486938,
0.3276461958885193,
-0.04918627813458443,
-0.08844708651304245,
-0.16085316240787506,
-0.003040887415409088,
-0.30019059777259827,
0.2709413766860962,
0.4638247489929199,
-0.09763093292713165,
-0.09312421828508377,
-0.043175533413887024,
0.2145777940750122,
0.21752794086933136,
0.5374794602394104,
0.31591182947158813,
-0.16690002381801605,
-0.489629328250885,
-0.12244055420160294,
0.5082061290740967,
-0.12667348980903625,
-0.1844530701637268,
0.4623728394508362,
-0.13487134873867035,
0.010012045502662659,
-0.16528068482875824,
0.3222152590751648,
0.488484263420105,
0.30063119530677795,
-0.13834798336029053,
-0.20752596855163574,
0.25662750005722046,
-0.18010485172271729,
-0.13837379217147827,
0.21072158217430115,
0.059683866798877716,
0.29416802525520325,
0.29817119240760803,
0.0842534527182579,
-0.16908764839172363,
-0.03203753009438515,
0.22073066234588623,
-0.33576101064682007,
-0.44092047214508057,
0.20642894506454468,
-0.1567063182592392,
-0.002659086138010025,
-0.1897852122783661,
0.09799989312887192,
-0.45638933777809143,
0.2288249135017395,
0.3156724274158478,
-0.2224389612674713,
-0.06700253486633301,
-0.14896303415298462,
0.04495935142040253,
-0.030799373984336853,
0.3605280816555023,
0.2467251718044281,
0.35621052980422974,
-0.20113010704517365,
-0.10377401113510132,
-0.8396959900856018,
0.31460079550743103,
0.033666618168354034,
-0.01172998920083046,
-0.03855297341942787,
0.1393253356218338,
-0.0011308714747428894,
0.3212938904762268,
0.4201124310493469,
0.04542933404445648,
0.1901208460330963,
0.0372287854552269,
-0.462015837430954,
-0.2717568278312683,
0.09004054218530655,
-0.445476233959198,
0.005056839436292648,
-0.39178943634033203,
-0.00409819558262825,
-0.28245243430137634,
-0.041468169540166855,
-0.02739773690700531,
-0.4465276002883911,
0.2701757848262787,
0.30223727226257324,
0.2959747314453125,
-0.0437554270029068,
0.6722484827041626,
-0.05365685001015663,
0.09963607043027878,
-0.06906504929065704,
-0.31764405965805054,
-0.026964489370584488,
0.15783056616783142,
0.39532241225242615,
0.21142791211605072,
-0.2491103559732437,
0.07488274574279785,
-0.1284850686788559,
0.1337045431137085,
0.13303227722644806,
0.012899909168481827,
-0.2782159149646759,
0.06854134798049927,
-0.16541364789009094,
0.4030524790287018,
-0.13011325895786285,
0.18237218260765076,
0.06379100680351257,
0.2705148458480835,
-0.3036563992500305,
-0.35715779662132263,
0.3911989629268646,
-0.34344911575317383,
-0.458597332239151,
-0.42767223715782166,
0.2904646694660187,
0.15982040762901306,
-0.20495738089084625,
-0.47420865297317505,
0.009303778409957886,
0.2549891769886017,
-0.15330877900123596,
-0.15550068020820618,
0.5398077964782715,
0.06995448470115662,
0.21426253020763397,
-0.12199623882770538,
0.20986321568489075,
0.004663361236453056,
-0.1189015731215477,
-0.11650463938713074,
-0.06436599791049957
] |
https://github.com/huggingface/datasets/issues/2695 | Cannot import load_dataset on Colab | > @phosseini
> I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq )
> For now I just downgraded to 1.9.0 and it is working fine.
Same here, downgraded to 1.9.0 for now and works fine. | ## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
| 41 | Cannot import load_dataset on Colab
## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
> @phosseini
> I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq )
> For now I just downgraded to 1.9.0 and it is working fine.
Same here, downgraded to 1.9.0 for now and works fine. | [
-0.4603254497051239,
-0.21482795476913452,
-0.024375079199671745,
0.2682138681411743,
0.13541308045387268,
0.05199464410543442,
0.49737706780433655,
-0.10748526453971863,
0.19837024807929993,
0.08495346456766129,
-0.32663074135780334,
0.475323349237442,
-0.17426961660385132,
0.1487492024898529,
-0.2584451735019684,
0.0984700620174408,
-0.06618606299161911,
0.05820351839065552,
-0.2907032370567322,
0.09561517834663391,
0.02029157429933548,
0.330888569355011,
-0.6335687637329102,
-0.34685730934143066,
-0.5786882042884827,
-0.21004165709018707,
-0.02774236351251602,
0.16879117488861084,
-0.2702188491821289,
-0.29201093316078186,
0.34782278537750244,
0.17705871164798737,
0.092189721763134,
0.5697177648544312,
-0.00011724026262527332,
0.07151348888874054,
0.39330899715423584,
-0.07875371724367142,
-0.2456897348165512,
-0.3918711543083191,
-0.3461531698703766,
-0.3291964828968048,
0.3686215877532959,
-0.10739240795373917,
0.10582707077264786,
0.40416616201400757,
-0.13573099672794342,
-0.13327544927597046,
0.2626950144767761,
0.1352795958518982,
0.19363412261009216,
0.5491975545883179,
0.1630605161190033,
-0.1924920529127121,
-0.1125868484377861,
-0.19337834417819977,
-0.2020828276872635,
0.7461525797843933,
0.4174177646636963,
0.0168561190366745,
-0.051024653017520905,
0.26049432158470154,
-0.09926725178956985,
0.2890874445438385,
0.18624109029769897,
-0.033422499895095825,
0.10510170459747314,
-0.48058298230171204,
0.10063758492469788,
0.17437754571437836,
0.4806719720363617,
-0.23342713713645935,
0.044390350580215454,
-0.12202461063861847,
0.2094733566045761,
-0.29246729612350464,
0.2619002163410187,
-0.09856998920440674,
-0.2118595391511917,
0.049008239060640335,
-0.02269667387008667,
-0.08961699903011322,
-0.012307368218898773,
0.01643751934170723,
-0.09338625520467758,
0.36550670862197876,
-0.1430073380470276,
-0.11182660609483719,
0.06986620277166367,
-0.10964168608188629,
0.50180983543396,
-0.016182541847229004,
-0.026867475360631943,
0.2063281387090683,
-0.468000590801239,
-0.009329818189144135,
-0.0988704189658165,
-0.14084923267364502,
-0.05169883370399475,
-0.10149483382701874,
-0.036186497658491135,
0.017466776072978973,
-0.11100880056619644,
0.30348339676856995,
0.18480242788791656,
0.14224998652935028,
0.03475850075483322,
0.018298126757144928,
0.12265411019325256,
0.28642815351486206,
-0.20076265931129456,
0.2273951768875122,
-0.2592823803424835,
-0.3118796646595001,
0.18450844287872314,
-0.029214031994342804,
0.2715785503387451,
-0.0037105008959770203,
-0.31906190514564514,
-0.18184557557106018,
0.009568456560373306,
0.10504240542650223,
0.044622644782066345,
0.3990533947944641,
0.05579594895243645,
0.10570908337831497,
-0.03462209552526474,
0.0016939155757427216,
-0.35665273666381836,
-0.23943829536437988,
-0.05384513735771179,
0.19369642436504364,
-0.0642799437046051,
-0.1152990534901619,
0.06780356168746948,
-0.15499933063983917,
0.26018691062927246,
-0.012420629151165485,
0.30920493602752686,
-0.05996038392186165,
0.10367397964000702,
-0.3025384843349457,
-0.06064523011445999,
0.33190804719924927,
0.12873533368110657,
0.0872022733092308,
-0.06231342628598213,
-0.20557798445224762,
-0.07788773626089096,
0.23551711440086365,
-0.4770621657371521,
-0.144236758351326,
-0.024314971640706062,
0.14294648170471191,
-0.1339145004749298,
-0.224430650472641,
-0.5850236415863037,
0.16483452916145325,
0.14476366341114044,
-0.08128127455711365,
-0.0849626287817955,
-0.30628299713134766,
-0.23307128250598907,
-0.1535833179950714,
0.12368800491094589,
0.44828343391418457,
-0.23092897236347198,
-0.14231428503990173,
-0.21769095957279205,
0.12052740156650543,
0.1272704154253006,
0.2348230928182602,
-0.20215435326099396,
0.1736087203025818,
-0.09626463800668716,
-0.11714209616184235,
0.49064773321151733,
-0.43263596296310425,
-0.4671248197555542,
-0.02034778706729412,
-0.26607635617256165,
-0.005255136638879776,
-0.08970671147108078,
0.04857930541038513,
0.3577233850955963,
-0.06694068759679794,
0.5458387732505798,
0.26293671131134033,
-0.1390327662229538,
-0.03660407289862633,
-0.16409073770046234,
-0.40990525484085083,
0.12942570447921753,
0.04181954637169838,
0.18346287310123444,
-0.21777111291885376,
0.20303314924240112,
-0.05337492376565933,
0.10123856365680695,
0.1859942227602005,
-0.12113017588853836,
0.38433337211608887,
0.2429012507200241,
-0.22237829864025116,
0.03727411851286888,
-0.18595731258392334,
-0.4775214195251465,
0.22404831647872925,
0.4092941880226135,
0.0799715518951416,
-0.06749898195266724,
0.05132502317428589,
-0.4381961226463318,
0.07910666614770889,
-0.2594435214996338,
0.0676424577832222,
0.0994124561548233,
-0.06667014956474304,
-0.17513036727905273,
0.08892622590065002,
-0.2604832947254181,
0.7403808236122131,
0.037707552313804626,
0.2175934761762619,
-0.31834137439727783,
0.21578837931156158,
-0.18590405583381653,
-0.30817949771881104,
0.1762927770614624,
0.13617143034934998,
0.0753253847360611,
-0.09227294474840164,
-0.23890742659568787,
0.1421213150024414,
0.2554139494895935,
0.17134107649326324,
0.06189204379916191,
-0.2776552438735962,
0.41236618161201477,
-0.27401185035705566,
0.012324916198849678,
-0.10668428242206573,
0.20857016742229462,
0.0058229342103004456,
0.2551184594631195,
0.15657126903533936,
-0.37070316076278687,
-0.041073404252529144,
-0.030512062832713127,
0.09053882211446762,
0.37264394760131836,
0.12399633228778839,
-0.005092286504805088,
-0.18564826250076294,
0.3251838982105255,
0.22229494154453278,
0.19247430562973022,
0.09374196827411652,
-0.12973177433013916,
0.28813523054122925,
0.3061753511428833,
0.24524396657943726,
0.03877895697951317,
-0.2685609757900238,
-0.2554308772087097,
0.06336478888988495,
0.1922871619462967,
0.25180909037590027,
0.4446455240249634,
0.18038888275623322,
0.10491904616355896,
0.031631387770175934,
0.031848106533288956,
-0.15611736476421356,
0.11511986702680588,
0.2919999361038208,
0.2558414340019226,
0.1311025470495224,
0.4120827317237854,
0.0967436358332634,
-0.07899824529886246,
-0.3894115686416626,
0.17532503604888916,
0.1503109484910965,
-0.33177265524864197,
0.07662636041641235,
-0.21460190415382385,
-0.11394704133272171,
-0.14194603264331818,
-0.42533934116363525,
-0.14645400643348694,
-0.19783495366573334,
-0.10580091178417206,
0.281025767326355,
0.26506248116493225,
0.19366209208965302,
-0.023993849754333496,
0.05001707375049591,
0.06250427663326263,
-0.14248353242874146,
-0.055817123502492905,
-0.2506767511367798,
-0.09258785098791122,
0.0015158746391534805,
0.32773950695991516,
0.2468111515045166,
0.36850541830062866,
-0.30383071303367615,
-0.06956242024898529,
0.1437004655599594,
-0.3320981562137604,
0.1763451248407364,
-0.005682744085788727,
0.29197993874549866,
-0.013443052768707275,
-0.07797102630138397,
-0.32062989473342896,
-0.19391734898090363,
0.02153596840798855,
-0.13462325930595398,
-0.1827462911605835,
0.047279685735702515,
-0.18002861738204956,
-0.22977414727210999,
-0.00199117511510849,
-0.2926877439022064,
-0.4344462454319,
-0.39985689520835876,
-0.3682097792625427,
0.04724642261862755,
-0.008903078734874725,
0.4603002965450287,
-0.04271594434976578,
0.2933923900127411,
0.2250700742006302,
0.05083802342414856,
0.017936130985617638,
-0.3330913484096527,
0.47338205575942993,
-0.28651130199432373,
-0.2936580777168274,
0.28012022376060486,
-0.26804643869400024,
0.38360875844955444,
0.01818278804421425,
-0.1104435846209526,
-0.21353083848953247,
-0.021479742601513863,
0.3837369680404663,
-0.10093992948532104,
0.04168277606368065,
0.0846359133720398,
0.11366160213947296,
0.07825841009616852,
-0.09240637719631195,
-0.1815529763698578,
-0.20405057072639465,
0.219632089138031,
0.19307851791381836,
-0.16571548581123352,
0.22659778594970703,
-0.03633569926023483,
0.8421133756637573,
0.07719875872135162,
-0.04005036875605583,
0.3015679717063904,
-0.061655618250370026,
0.3064921200275421,
-0.1064247116446495,
-0.5121491551399231,
-0.06968449056148529,
-0.10731109976768494,
-0.0392843522131443,
0.08197180926799774,
-0.18397533893585205,
-0.11122260242700577,
-0.2847861647605896,
-0.2727974057197571,
-0.3160189986228943,
-0.2918519675731659,
-0.11478531360626221,
-0.20039138197898865,
0.13085444271564484,
0.19867929816246033,
-0.06129159778356552,
-0.16200824081897736,
-0.11249669641256332,
0.0489826463162899,
0.4355244040489197,
-0.420803040266037,
-0.018614597618579865,
0.37955984473228455,
-0.0728553980588913,
-0.34649088978767395,
0.19865301251411438,
0.1317850798368454,
0.3303270637989044,
0.07662583887577057,
0.11820032447576523,
0.060140594840049744,
-0.0493251197040081,
0.11224575340747833,
0.05919665843248367,
-0.08000028133392334,
0.23661619424819946,
-0.01469402015209198,
-0.4012729227542877,
-0.05774392932653427,
-0.2255626767873764,
0.22409836947917938,
0.47931966185569763,
0.08615235239267349,
-0.26678410172462463,
0.21151795983314514,
0.23633165657520294,
0.1412736177444458,
-0.114222951233387,
-0.1485225111246109,
-0.43875184655189514,
-0.31343770027160645,
-0.37841033935546875,
-0.06004510074853897,
0.18504571914672852,
0.23917484283447266,
0.041669443249702454,
-0.07086975872516632,
-0.06402763724327087,
-0.21697339415550232,
0.06104177236557007,
0.35968974232673645,
0.1482841670513153,
0.2704477310180664,
0.5801547765731812,
0.12715129554271698,
-0.24735921621322632,
0.4470185935497284,
0.5865609645843506,
0.002833288162946701,
-0.5835174918174744,
-0.027999449521303177,
-0.17973949015140533,
0.234889417886734,
0.13151907920837402,
-0.0706736221909523,
0.01633010059595108,
0.05956580117344856,
-0.13585183024406433,
0.38487493991851807,
0.38126546144485474,
-0.0635429248213768,
0.12624815106391907,
-0.40266528725624084,
-0.1285913586616516,
0.09584801644086838,
0.0007424056529998779,
0.13769924640655518,
0.4601658582687378,
-0.37963783740997314,
-0.05982210487127304,
0.047099169343709946,
-0.1843537986278534,
0.6863648891448975,
-0.038188859820365906,
-0.23901581764221191,
0.27325332164764404,
-0.16150283813476562,
0.26525887846946716,
0.11319062113761902,
0.18576055765151978,
-0.27622297406196594,
-0.30762141942977905,
0.0923931896686554,
-0.22662214934825897,
0.19002622365951538,
-0.19458122551441193,
-0.3511311113834381,
0.25961413979530334,
0.05645580589771271,
-0.1498298943042755,
-0.018575873225927353,
0.040605075657367706,
0.0024130549281835556,
-0.293750137090683,
-0.3525201976299286,
0.05176926404237747,
-0.1905302256345749,
0.206171914935112,
-0.1972416639328003,
-0.18334625661373138,
-0.13894784450531006,
-0.1865321695804596,
-0.03310399129986763,
-0.10903533548116684,
-0.6445797085762024,
0.23709826171398163,
0.3314475417137146,
-0.3087448179721832,
0.20051714777946472,
-0.11113843321800232,
0.09509895741939545,
-0.029330309480428696,
-0.17394956946372986,
0.12651227414608002,
0.19933444261550903,
0.016686435788869858,
-0.11088839918375015,
-0.17295213043689728,
0.4197724163532257,
-0.08396579325199127,
0.005003899335861206,
0.05766652524471283,
0.036623042076826096,
-0.02253434807062149,
0.4702349305152893,
0.35126155614852905,
0.36815690994262695,
0.15069280564785004,
-0.0755755752325058,
0.18104739487171173,
0.2616753578186035,
-0.19587817788124084,
0.0780421793460846,
0.10197554528713226,
-0.15308479964733124,
0.25580665469169617,
-0.10751354694366455,
-0.10032457858324051,
-0.0019222572445869446,
0.33977261185646057,
0.12967148423194885,
-0.016100281849503517,
0.18322114646434784,
0.15517261624336243,
-0.255842387676239,
-0.08447596430778503,
0.16883522272109985,
-0.30879250168800354,
-0.30041366815567017,
0.24127712845802307,
-0.01991431973874569,
0.04912698268890381,
0.07449378818273544,
0.734095573425293,
0.24561496078968048,
-0.36856865882873535,
-0.13207833468914032,
-0.3772934377193451,
-0.5326017141342163,
0.14176875352859497,
-0.12052375078201294,
-0.09494319558143616,
0.2369500696659088,
0.3836897015571594,
0.12086884677410126,
0.12841123342514038,
-0.22089043259620667,
0.1052408441901207,
-0.15847575664520264,
0.15400396287441254,
0.2756514847278595,
-0.09605196863412857,
0.03729235380887985,
0.08598950505256653,
0.004241978749632835,
0.15297859907150269,
0.0671004131436348,
-0.2249542474746704,
-0.11465826630592346,
0.13268063962459564,
-0.10255298763513565,
0.04087104648351669,
-0.11802632361650467,
-0.1512853354215622,
-0.2300351858139038,
-0.17150266468524933,
0.15905159711837769,
0.035123445093631744,
-0.0818418562412262,
-0.13215580582618713,
0.2920054495334625,
-0.09662947803735733,
-0.2174021154642105,
0.40256765484809875,
0.1177951917052269,
0.08100780844688416,
0.07766681164503098,
0.166029691696167,
0.16654224693775177,
0.18327867984771729,
0.017529860138893127,
-0.22533968091011047,
-0.0916716605424881,
-0.17651280760765076,
0.09427809715270996,
-0.33208924531936646,
-0.014022953808307648,
0.06999486684799194,
-0.027507096529006958,
0.4203791916370392,
-0.128956601023674,
-0.20998455584049225,
0.04724174365401268,
0.08578071743249893,
-0.3888074457645416,
0.031113265082240105,
0.3042638897895813,
0.15485888719558716,
0.1754320114850998,
0.27228766679763794,
0.08177199959754944,
0.08188436925411224,
0.15440915524959564,
0.39525189995765686,
0.2447243481874466,
-0.022837109863758087,
0.26611125469207764,
-0.20580103993415833,
0.08578145503997803,
0.2306346297264099,
0.23610898852348328,
0.11843249201774597,
0.03810501843690872,
0.15266984701156616,
-0.1501828134059906,
0.2959784269332886,
0.1446436047554016,
-0.16727405786514282,
0.2365310788154602,
-0.3596031069755554,
0.24245662987232208,
-0.09867705404758453,
0.05690852925181389,
-0.13632839918136597,
0.14178615808486938,
0.3276461958885193,
-0.04918627813458443,
-0.08844708651304245,
-0.16085316240787506,
-0.003040887415409088,
-0.30019059777259827,
0.2709413766860962,
0.4638247489929199,
-0.09763093292713165,
-0.09312421828508377,
-0.043175533413887024,
0.2145777940750122,
0.21752794086933136,
0.5374794602394104,
0.31591182947158813,
-0.16690002381801605,
-0.489629328250885,
-0.12244055420160294,
0.5082061290740967,
-0.12667348980903625,
-0.1844530701637268,
0.4623728394508362,
-0.13487134873867035,
0.010012045502662659,
-0.16528068482875824,
0.3222152590751648,
0.488484263420105,
0.30063119530677795,
-0.13834798336029053,
-0.20752596855163574,
0.25662750005722046,
-0.18010485172271729,
-0.13837379217147827,
0.21072158217430115,
0.059683866798877716,
0.29416802525520325,
0.29817119240760803,
0.0842534527182579,
-0.16908764839172363,
-0.03203753009438515,
0.22073066234588623,
-0.33576101064682007,
-0.44092047214508057,
0.20642894506454468,
-0.1567063182592392,
-0.002659086138010025,
-0.1897852122783661,
0.09799989312887192,
-0.45638933777809143,
0.2288249135017395,
0.3156724274158478,
-0.2224389612674713,
-0.06700253486633301,
-0.14896303415298462,
0.04495935142040253,
-0.030799373984336853,
0.3605280816555023,
0.2467251718044281,
0.35621052980422974,
-0.20113010704517365,
-0.10377401113510132,
-0.8396959900856018,
0.31460079550743103,
0.033666618168354034,
-0.01172998920083046,
-0.03855297341942787,
0.1393253356218338,
-0.0011308714747428894,
0.3212938904762268,
0.4201124310493469,
0.04542933404445648,
0.1901208460330963,
0.0372287854552269,
-0.462015837430954,
-0.2717568278312683,
0.09004054218530655,
-0.445476233959198,
0.005056839436292648,
-0.39178943634033203,
-0.00409819558262825,
-0.28245243430137634,
-0.041468169540166855,
-0.02739773690700531,
-0.4465276002883911,
0.2701757848262787,
0.30223727226257324,
0.2959747314453125,
-0.0437554270029068,
0.6722484827041626,
-0.05365685001015663,
0.09963607043027878,
-0.06906504929065704,
-0.31764405965805054,
-0.026964489370584488,
0.15783056616783142,
0.39532241225242615,
0.21142791211605072,
-0.2491103559732437,
0.07488274574279785,
-0.1284850686788559,
0.1337045431137085,
0.13303227722644806,
0.012899909168481827,
-0.2782159149646759,
0.06854134798049927,
-0.16541364789009094,
0.4030524790287018,
-0.13011325895786285,
0.18237218260765076,
0.06379100680351257,
0.2705148458480835,
-0.3036563992500305,
-0.35715779662132263,
0.3911989629268646,
-0.34344911575317383,
-0.458597332239151,
-0.42767223715782166,
0.2904646694660187,
0.15982040762901306,
-0.20495738089084625,
-0.47420865297317505,
0.009303778409957886,
0.2549891769886017,
-0.15330877900123596,
-0.15550068020820618,
0.5398077964782715,
0.06995448470115662,
0.21426253020763397,
-0.12199623882770538,
0.20986321568489075,
0.004663361236453056,
-0.1189015731215477,
-0.11650463938713074,
-0.06436599791049957
] |
https://github.com/huggingface/datasets/issues/2695 | Cannot import load_dataset on Colab | Hi,
updating tqdm to the newest version resolves the issue for me. You can do this as follows in Colab:
```
!pip install tqdm --upgrade
``` | ## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
| 26 | Cannot import load_dataset on Colab
## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
Hi,
updating tqdm to the newest version resolves the issue for me. You can do this as follows in Colab:
```
!pip install tqdm --upgrade
``` | [
-0.4603254497051239,
-0.21482795476913452,
-0.024375079199671745,
0.2682138681411743,
0.13541308045387268,
0.05199464410543442,
0.49737706780433655,
-0.10748526453971863,
0.19837024807929993,
0.08495346456766129,
-0.32663074135780334,
0.475323349237442,
-0.17426961660385132,
0.1487492024898529,
-0.2584451735019684,
0.0984700620174408,
-0.06618606299161911,
0.05820351839065552,
-0.2907032370567322,
0.09561517834663391,
0.02029157429933548,
0.330888569355011,
-0.6335687637329102,
-0.34685730934143066,
-0.5786882042884827,
-0.21004165709018707,
-0.02774236351251602,
0.16879117488861084,
-0.2702188491821289,
-0.29201093316078186,
0.34782278537750244,
0.17705871164798737,
0.092189721763134,
0.5697177648544312,
-0.00011724026262527332,
0.07151348888874054,
0.39330899715423584,
-0.07875371724367142,
-0.2456897348165512,
-0.3918711543083191,
-0.3461531698703766,
-0.3291964828968048,
0.3686215877532959,
-0.10739240795373917,
0.10582707077264786,
0.40416616201400757,
-0.13573099672794342,
-0.13327544927597046,
0.2626950144767761,
0.1352795958518982,
0.19363412261009216,
0.5491975545883179,
0.1630605161190033,
-0.1924920529127121,
-0.1125868484377861,
-0.19337834417819977,
-0.2020828276872635,
0.7461525797843933,
0.4174177646636963,
0.0168561190366745,
-0.051024653017520905,
0.26049432158470154,
-0.09926725178956985,
0.2890874445438385,
0.18624109029769897,
-0.033422499895095825,
0.10510170459747314,
-0.48058298230171204,
0.10063758492469788,
0.17437754571437836,
0.4806719720363617,
-0.23342713713645935,
0.044390350580215454,
-0.12202461063861847,
0.2094733566045761,
-0.29246729612350464,
0.2619002163410187,
-0.09856998920440674,
-0.2118595391511917,
0.049008239060640335,
-0.02269667387008667,
-0.08961699903011322,
-0.012307368218898773,
0.01643751934170723,
-0.09338625520467758,
0.36550670862197876,
-0.1430073380470276,
-0.11182660609483719,
0.06986620277166367,
-0.10964168608188629,
0.50180983543396,
-0.016182541847229004,
-0.026867475360631943,
0.2063281387090683,
-0.468000590801239,
-0.009329818189144135,
-0.0988704189658165,
-0.14084923267364502,
-0.05169883370399475,
-0.10149483382701874,
-0.036186497658491135,
0.017466776072978973,
-0.11100880056619644,
0.30348339676856995,
0.18480242788791656,
0.14224998652935028,
0.03475850075483322,
0.018298126757144928,
0.12265411019325256,
0.28642815351486206,
-0.20076265931129456,
0.2273951768875122,
-0.2592823803424835,
-0.3118796646595001,
0.18450844287872314,
-0.029214031994342804,
0.2715785503387451,
-0.0037105008959770203,
-0.31906190514564514,
-0.18184557557106018,
0.009568456560373306,
0.10504240542650223,
0.044622644782066345,
0.3990533947944641,
0.05579594895243645,
0.10570908337831497,
-0.03462209552526474,
0.0016939155757427216,
-0.35665273666381836,
-0.23943829536437988,
-0.05384513735771179,
0.19369642436504364,
-0.0642799437046051,
-0.1152990534901619,
0.06780356168746948,
-0.15499933063983917,
0.26018691062927246,
-0.012420629151165485,
0.30920493602752686,
-0.05996038392186165,
0.10367397964000702,
-0.3025384843349457,
-0.06064523011445999,
0.33190804719924927,
0.12873533368110657,
0.0872022733092308,
-0.06231342628598213,
-0.20557798445224762,
-0.07788773626089096,
0.23551711440086365,
-0.4770621657371521,
-0.144236758351326,
-0.024314971640706062,
0.14294648170471191,
-0.1339145004749298,
-0.224430650472641,
-0.5850236415863037,
0.16483452916145325,
0.14476366341114044,
-0.08128127455711365,
-0.0849626287817955,
-0.30628299713134766,
-0.23307128250598907,
-0.1535833179950714,
0.12368800491094589,
0.44828343391418457,
-0.23092897236347198,
-0.14231428503990173,
-0.21769095957279205,
0.12052740156650543,
0.1272704154253006,
0.2348230928182602,
-0.20215435326099396,
0.1736087203025818,
-0.09626463800668716,
-0.11714209616184235,
0.49064773321151733,
-0.43263596296310425,
-0.4671248197555542,
-0.02034778706729412,
-0.26607635617256165,
-0.005255136638879776,
-0.08970671147108078,
0.04857930541038513,
0.3577233850955963,
-0.06694068759679794,
0.5458387732505798,
0.26293671131134033,
-0.1390327662229538,
-0.03660407289862633,
-0.16409073770046234,
-0.40990525484085083,
0.12942570447921753,
0.04181954637169838,
0.18346287310123444,
-0.21777111291885376,
0.20303314924240112,
-0.05337492376565933,
0.10123856365680695,
0.1859942227602005,
-0.12113017588853836,
0.38433337211608887,
0.2429012507200241,
-0.22237829864025116,
0.03727411851286888,
-0.18595731258392334,
-0.4775214195251465,
0.22404831647872925,
0.4092941880226135,
0.0799715518951416,
-0.06749898195266724,
0.05132502317428589,
-0.4381961226463318,
0.07910666614770889,
-0.2594435214996338,
0.0676424577832222,
0.0994124561548233,
-0.06667014956474304,
-0.17513036727905273,
0.08892622590065002,
-0.2604832947254181,
0.7403808236122131,
0.037707552313804626,
0.2175934761762619,
-0.31834137439727783,
0.21578837931156158,
-0.18590405583381653,
-0.30817949771881104,
0.1762927770614624,
0.13617143034934998,
0.0753253847360611,
-0.09227294474840164,
-0.23890742659568787,
0.1421213150024414,
0.2554139494895935,
0.17134107649326324,
0.06189204379916191,
-0.2776552438735962,
0.41236618161201477,
-0.27401185035705566,
0.012324916198849678,
-0.10668428242206573,
0.20857016742229462,
0.0058229342103004456,
0.2551184594631195,
0.15657126903533936,
-0.37070316076278687,
-0.041073404252529144,
-0.030512062832713127,
0.09053882211446762,
0.37264394760131836,
0.12399633228778839,
-0.005092286504805088,
-0.18564826250076294,
0.3251838982105255,
0.22229494154453278,
0.19247430562973022,
0.09374196827411652,
-0.12973177433013916,
0.28813523054122925,
0.3061753511428833,
0.24524396657943726,
0.03877895697951317,
-0.2685609757900238,
-0.2554308772087097,
0.06336478888988495,
0.1922871619462967,
0.25180909037590027,
0.4446455240249634,
0.18038888275623322,
0.10491904616355896,
0.031631387770175934,
0.031848106533288956,
-0.15611736476421356,
0.11511986702680588,
0.2919999361038208,
0.2558414340019226,
0.1311025470495224,
0.4120827317237854,
0.0967436358332634,
-0.07899824529886246,
-0.3894115686416626,
0.17532503604888916,
0.1503109484910965,
-0.33177265524864197,
0.07662636041641235,
-0.21460190415382385,
-0.11394704133272171,
-0.14194603264331818,
-0.42533934116363525,
-0.14645400643348694,
-0.19783495366573334,
-0.10580091178417206,
0.281025767326355,
0.26506248116493225,
0.19366209208965302,
-0.023993849754333496,
0.05001707375049591,
0.06250427663326263,
-0.14248353242874146,
-0.055817123502492905,
-0.2506767511367798,
-0.09258785098791122,
0.0015158746391534805,
0.32773950695991516,
0.2468111515045166,
0.36850541830062866,
-0.30383071303367615,
-0.06956242024898529,
0.1437004655599594,
-0.3320981562137604,
0.1763451248407364,
-0.005682744085788727,
0.29197993874549866,
-0.013443052768707275,
-0.07797102630138397,
-0.32062989473342896,
-0.19391734898090363,
0.02153596840798855,
-0.13462325930595398,
-0.1827462911605835,
0.047279685735702515,
-0.18002861738204956,
-0.22977414727210999,
-0.00199117511510849,
-0.2926877439022064,
-0.4344462454319,
-0.39985689520835876,
-0.3682097792625427,
0.04724642261862755,
-0.008903078734874725,
0.4603002965450287,
-0.04271594434976578,
0.2933923900127411,
0.2250700742006302,
0.05083802342414856,
0.017936130985617638,
-0.3330913484096527,
0.47338205575942993,
-0.28651130199432373,
-0.2936580777168274,
0.28012022376060486,
-0.26804643869400024,
0.38360875844955444,
0.01818278804421425,
-0.1104435846209526,
-0.21353083848953247,
-0.021479742601513863,
0.3837369680404663,
-0.10093992948532104,
0.04168277606368065,
0.0846359133720398,
0.11366160213947296,
0.07825841009616852,
-0.09240637719631195,
-0.1815529763698578,
-0.20405057072639465,
0.219632089138031,
0.19307851791381836,
-0.16571548581123352,
0.22659778594970703,
-0.03633569926023483,
0.8421133756637573,
0.07719875872135162,
-0.04005036875605583,
0.3015679717063904,
-0.061655618250370026,
0.3064921200275421,
-0.1064247116446495,
-0.5121491551399231,
-0.06968449056148529,
-0.10731109976768494,
-0.0392843522131443,
0.08197180926799774,
-0.18397533893585205,
-0.11122260242700577,
-0.2847861647605896,
-0.2727974057197571,
-0.3160189986228943,
-0.2918519675731659,
-0.11478531360626221,
-0.20039138197898865,
0.13085444271564484,
0.19867929816246033,
-0.06129159778356552,
-0.16200824081897736,
-0.11249669641256332,
0.0489826463162899,
0.4355244040489197,
-0.420803040266037,
-0.018614597618579865,
0.37955984473228455,
-0.0728553980588913,
-0.34649088978767395,
0.19865301251411438,
0.1317850798368454,
0.3303270637989044,
0.07662583887577057,
0.11820032447576523,
0.060140594840049744,
-0.0493251197040081,
0.11224575340747833,
0.05919665843248367,
-0.08000028133392334,
0.23661619424819946,
-0.01469402015209198,
-0.4012729227542877,
-0.05774392932653427,
-0.2255626767873764,
0.22409836947917938,
0.47931966185569763,
0.08615235239267349,
-0.26678410172462463,
0.21151795983314514,
0.23633165657520294,
0.1412736177444458,
-0.114222951233387,
-0.1485225111246109,
-0.43875184655189514,
-0.31343770027160645,
-0.37841033935546875,
-0.06004510074853897,
0.18504571914672852,
0.23917484283447266,
0.041669443249702454,
-0.07086975872516632,
-0.06402763724327087,
-0.21697339415550232,
0.06104177236557007,
0.35968974232673645,
0.1482841670513153,
0.2704477310180664,
0.5801547765731812,
0.12715129554271698,
-0.24735921621322632,
0.4470185935497284,
0.5865609645843506,
0.002833288162946701,
-0.5835174918174744,
-0.027999449521303177,
-0.17973949015140533,
0.234889417886734,
0.13151907920837402,
-0.0706736221909523,
0.01633010059595108,
0.05956580117344856,
-0.13585183024406433,
0.38487493991851807,
0.38126546144485474,
-0.0635429248213768,
0.12624815106391907,
-0.40266528725624084,
-0.1285913586616516,
0.09584801644086838,
0.0007424056529998779,
0.13769924640655518,
0.4601658582687378,
-0.37963783740997314,
-0.05982210487127304,
0.047099169343709946,
-0.1843537986278534,
0.6863648891448975,
-0.038188859820365906,
-0.23901581764221191,
0.27325332164764404,
-0.16150283813476562,
0.26525887846946716,
0.11319062113761902,
0.18576055765151978,
-0.27622297406196594,
-0.30762141942977905,
0.0923931896686554,
-0.22662214934825897,
0.19002622365951538,
-0.19458122551441193,
-0.3511311113834381,
0.25961413979530334,
0.05645580589771271,
-0.1498298943042755,
-0.018575873225927353,
0.040605075657367706,
0.0024130549281835556,
-0.293750137090683,
-0.3525201976299286,
0.05176926404237747,
-0.1905302256345749,
0.206171914935112,
-0.1972416639328003,
-0.18334625661373138,
-0.13894784450531006,
-0.1865321695804596,
-0.03310399129986763,
-0.10903533548116684,
-0.6445797085762024,
0.23709826171398163,
0.3314475417137146,
-0.3087448179721832,
0.20051714777946472,
-0.11113843321800232,
0.09509895741939545,
-0.029330309480428696,
-0.17394956946372986,
0.12651227414608002,
0.19933444261550903,
0.016686435788869858,
-0.11088839918375015,
-0.17295213043689728,
0.4197724163532257,
-0.08396579325199127,
0.005003899335861206,
0.05766652524471283,
0.036623042076826096,
-0.02253434807062149,
0.4702349305152893,
0.35126155614852905,
0.36815690994262695,
0.15069280564785004,
-0.0755755752325058,
0.18104739487171173,
0.2616753578186035,
-0.19587817788124084,
0.0780421793460846,
0.10197554528713226,
-0.15308479964733124,
0.25580665469169617,
-0.10751354694366455,
-0.10032457858324051,
-0.0019222572445869446,
0.33977261185646057,
0.12967148423194885,
-0.016100281849503517,
0.18322114646434784,
0.15517261624336243,
-0.255842387676239,
-0.08447596430778503,
0.16883522272109985,
-0.30879250168800354,
-0.30041366815567017,
0.24127712845802307,
-0.01991431973874569,
0.04912698268890381,
0.07449378818273544,
0.734095573425293,
0.24561496078968048,
-0.36856865882873535,
-0.13207833468914032,
-0.3772934377193451,
-0.5326017141342163,
0.14176875352859497,
-0.12052375078201294,
-0.09494319558143616,
0.2369500696659088,
0.3836897015571594,
0.12086884677410126,
0.12841123342514038,
-0.22089043259620667,
0.1052408441901207,
-0.15847575664520264,
0.15400396287441254,
0.2756514847278595,
-0.09605196863412857,
0.03729235380887985,
0.08598950505256653,
0.004241978749632835,
0.15297859907150269,
0.0671004131436348,
-0.2249542474746704,
-0.11465826630592346,
0.13268063962459564,
-0.10255298763513565,
0.04087104648351669,
-0.11802632361650467,
-0.1512853354215622,
-0.2300351858139038,
-0.17150266468524933,
0.15905159711837769,
0.035123445093631744,
-0.0818418562412262,
-0.13215580582618713,
0.2920054495334625,
-0.09662947803735733,
-0.2174021154642105,
0.40256765484809875,
0.1177951917052269,
0.08100780844688416,
0.07766681164503098,
0.166029691696167,
0.16654224693775177,
0.18327867984771729,
0.017529860138893127,
-0.22533968091011047,
-0.0916716605424881,
-0.17651280760765076,
0.09427809715270996,
-0.33208924531936646,
-0.014022953808307648,
0.06999486684799194,
-0.027507096529006958,
0.4203791916370392,
-0.128956601023674,
-0.20998455584049225,
0.04724174365401268,
0.08578071743249893,
-0.3888074457645416,
0.031113265082240105,
0.3042638897895813,
0.15485888719558716,
0.1754320114850998,
0.27228766679763794,
0.08177199959754944,
0.08188436925411224,
0.15440915524959564,
0.39525189995765686,
0.2447243481874466,
-0.022837109863758087,
0.26611125469207764,
-0.20580103993415833,
0.08578145503997803,
0.2306346297264099,
0.23610898852348328,
0.11843249201774597,
0.03810501843690872,
0.15266984701156616,
-0.1501828134059906,
0.2959784269332886,
0.1446436047554016,
-0.16727405786514282,
0.2365310788154602,
-0.3596031069755554,
0.24245662987232208,
-0.09867705404758453,
0.05690852925181389,
-0.13632839918136597,
0.14178615808486938,
0.3276461958885193,
-0.04918627813458443,
-0.08844708651304245,
-0.16085316240787506,
-0.003040887415409088,
-0.30019059777259827,
0.2709413766860962,
0.4638247489929199,
-0.09763093292713165,
-0.09312421828508377,
-0.043175533413887024,
0.2145777940750122,
0.21752794086933136,
0.5374794602394104,
0.31591182947158813,
-0.16690002381801605,
-0.489629328250885,
-0.12244055420160294,
0.5082061290740967,
-0.12667348980903625,
-0.1844530701637268,
0.4623728394508362,
-0.13487134873867035,
0.010012045502662659,
-0.16528068482875824,
0.3222152590751648,
0.488484263420105,
0.30063119530677795,
-0.13834798336029053,
-0.20752596855163574,
0.25662750005722046,
-0.18010485172271729,
-0.13837379217147827,
0.21072158217430115,
0.059683866798877716,
0.29416802525520325,
0.29817119240760803,
0.0842534527182579,
-0.16908764839172363,
-0.03203753009438515,
0.22073066234588623,
-0.33576101064682007,
-0.44092047214508057,
0.20642894506454468,
-0.1567063182592392,
-0.002659086138010025,
-0.1897852122783661,
0.09799989312887192,
-0.45638933777809143,
0.2288249135017395,
0.3156724274158478,
-0.2224389612674713,
-0.06700253486633301,
-0.14896303415298462,
0.04495935142040253,
-0.030799373984336853,
0.3605280816555023,
0.2467251718044281,
0.35621052980422974,
-0.20113010704517365,
-0.10377401113510132,
-0.8396959900856018,
0.31460079550743103,
0.033666618168354034,
-0.01172998920083046,
-0.03855297341942787,
0.1393253356218338,
-0.0011308714747428894,
0.3212938904762268,
0.4201124310493469,
0.04542933404445648,
0.1901208460330963,
0.0372287854552269,
-0.462015837430954,
-0.2717568278312683,
0.09004054218530655,
-0.445476233959198,
0.005056839436292648,
-0.39178943634033203,
-0.00409819558262825,
-0.28245243430137634,
-0.041468169540166855,
-0.02739773690700531,
-0.4465276002883911,
0.2701757848262787,
0.30223727226257324,
0.2959747314453125,
-0.0437554270029068,
0.6722484827041626,
-0.05365685001015663,
0.09963607043027878,
-0.06906504929065704,
-0.31764405965805054,
-0.026964489370584488,
0.15783056616783142,
0.39532241225242615,
0.21142791211605072,
-0.2491103559732437,
0.07488274574279785,
-0.1284850686788559,
0.1337045431137085,
0.13303227722644806,
0.012899909168481827,
-0.2782159149646759,
0.06854134798049927,
-0.16541364789009094,
0.4030524790287018,
-0.13011325895786285,
0.18237218260765076,
0.06379100680351257,
0.2705148458480835,
-0.3036563992500305,
-0.35715779662132263,
0.3911989629268646,
-0.34344911575317383,
-0.458597332239151,
-0.42767223715782166,
0.2904646694660187,
0.15982040762901306,
-0.20495738089084625,
-0.47420865297317505,
0.009303778409957886,
0.2549891769886017,
-0.15330877900123596,
-0.15550068020820618,
0.5398077964782715,
0.06995448470115662,
0.21426253020763397,
-0.12199623882770538,
0.20986321568489075,
0.004663361236453056,
-0.1189015731215477,
-0.11650463938713074,
-0.06436599791049957
] |
https://github.com/huggingface/datasets/issues/2695 | Cannot import load_dataset on Colab | Hi @bayartsogt-ya and @phosseini, thanks for reporting.
We are fixing this critical issue and making an urgent patch release of the `datasets` library today.
In the meantime, as pointed out by @mariosasko, you can circumvent this issue by updating the `tqdm` library:
```
!pip install -U tqdm
``` | ## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
| 48 | Cannot import load_dataset on Colab
## Describe the bug
Got tqdm concurrent module not found error during importing load_dataset from datasets.
## Steps to reproduce the bug
Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error
On colab:
```python
!pip install datasets
from datasets import load_dataset
```
## Expected results
Works without error
## Actual results
Specify the actual results or traceback.
```
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-8cc7de4c69eb> in <module>()
----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value
2 from sklearn.metrics import mean_squared_error
/usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>()
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>()
40 from tqdm.auto import tqdm
41
---> 42 from datasets.tasks.text_classification import TextClassification
43
44 from . import config, utils
/usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>()
1 from typing import Optional
2
----> 3 from ..utils.logging import get_logger
4 from .automatic_speech_recognition import AutomaticSpeechRecognition
5 from .base import TaskTemplate
/usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>()
19
20 from . import logging
---> 21 from .download_manager import DownloadManager, GenerateMode
22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed
23 from .mock_download_manager import MockDownloadManager
/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>()
24
25 from .. import config
---> 26 from .file_utils import (
27 DownloadConfig,
28 cached_path,
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>()
25 import posixpath
26 import requests
---> 27 from tqdm.contrib.concurrent import thread_map
28
29 from .. import __version__, config, utils
ModuleNotFoundError: No module named 'tqdm.contrib.concurrent'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.0
- Platform: Colab
- Python version: 3.7.11
- PyArrow version: 3.0.0
Hi @bayartsogt-ya and @phosseini, thanks for reporting.
We are fixing this critical issue and making an urgent patch release of the `datasets` library today.
In the meantime, as pointed out by @mariosasko, you can circumvent this issue by updating the `tqdm` library:
```
!pip install -U tqdm
``` | [
-0.4603254497051239,
-0.21482795476913452,
-0.024375079199671745,
0.2682138681411743,
0.13541308045387268,
0.05199464410543442,
0.49737706780433655,
-0.10748526453971863,
0.19837024807929993,
0.08495346456766129,
-0.32663074135780334,
0.475323349237442,
-0.17426961660385132,
0.1487492024898529,
-0.2584451735019684,
0.0984700620174408,
-0.06618606299161911,
0.05820351839065552,
-0.2907032370567322,
0.09561517834663391,
0.02029157429933548,
0.330888569355011,
-0.6335687637329102,
-0.34685730934143066,
-0.5786882042884827,
-0.21004165709018707,
-0.02774236351251602,
0.16879117488861084,
-0.2702188491821289,
-0.29201093316078186,
0.34782278537750244,
0.17705871164798737,
0.092189721763134,
0.5697177648544312,
-0.00011724026262527332,
0.07151348888874054,
0.39330899715423584,
-0.07875371724367142,
-0.2456897348165512,
-0.3918711543083191,
-0.3461531698703766,
-0.3291964828968048,
0.3686215877532959,
-0.10739240795373917,
0.10582707077264786,
0.40416616201400757,
-0.13573099672794342,
-0.13327544927597046,
0.2626950144767761,
0.1352795958518982,
0.19363412261009216,
0.5491975545883179,
0.1630605161190033,
-0.1924920529127121,
-0.1125868484377861,
-0.19337834417819977,
-0.2020828276872635,
0.7461525797843933,
0.4174177646636963,
0.0168561190366745,
-0.051024653017520905,
0.26049432158470154,
-0.09926725178956985,
0.2890874445438385,
0.18624109029769897,
-0.033422499895095825,
0.10510170459747314,
-0.48058298230171204,
0.10063758492469788,
0.17437754571437836,
0.4806719720363617,
-0.23342713713645935,
0.044390350580215454,
-0.12202461063861847,
0.2094733566045761,
-0.29246729612350464,
0.2619002163410187,
-0.09856998920440674,
-0.2118595391511917,
0.049008239060640335,
-0.02269667387008667,
-0.08961699903011322,
-0.012307368218898773,
0.01643751934170723,
-0.09338625520467758,
0.36550670862197876,
-0.1430073380470276,
-0.11182660609483719,
0.06986620277166367,
-0.10964168608188629,
0.50180983543396,
-0.016182541847229004,
-0.026867475360631943,
0.2063281387090683,
-0.468000590801239,
-0.009329818189144135,
-0.0988704189658165,
-0.14084923267364502,
-0.05169883370399475,
-0.10149483382701874,
-0.036186497658491135,
0.017466776072978973,
-0.11100880056619644,
0.30348339676856995,
0.18480242788791656,
0.14224998652935028,
0.03475850075483322,
0.018298126757144928,
0.12265411019325256,
0.28642815351486206,
-0.20076265931129456,
0.2273951768875122,
-0.2592823803424835,
-0.3118796646595001,
0.18450844287872314,
-0.029214031994342804,
0.2715785503387451,
-0.0037105008959770203,
-0.31906190514564514,
-0.18184557557106018,
0.009568456560373306,
0.10504240542650223,
0.044622644782066345,
0.3990533947944641,
0.05579594895243645,
0.10570908337831497,
-0.03462209552526474,
0.0016939155757427216,
-0.35665273666381836,
-0.23943829536437988,
-0.05384513735771179,
0.19369642436504364,
-0.0642799437046051,
-0.1152990534901619,
0.06780356168746948,
-0.15499933063983917,
0.26018691062927246,
-0.012420629151165485,
0.30920493602752686,
-0.05996038392186165,
0.10367397964000702,
-0.3025384843349457,
-0.06064523011445999,
0.33190804719924927,
0.12873533368110657,
0.0872022733092308,
-0.06231342628598213,
-0.20557798445224762,
-0.07788773626089096,
0.23551711440086365,
-0.4770621657371521,
-0.144236758351326,
-0.024314971640706062,
0.14294648170471191,
-0.1339145004749298,
-0.224430650472641,
-0.5850236415863037,
0.16483452916145325,
0.14476366341114044,
-0.08128127455711365,
-0.0849626287817955,
-0.30628299713134766,
-0.23307128250598907,
-0.1535833179950714,
0.12368800491094589,
0.44828343391418457,
-0.23092897236347198,
-0.14231428503990173,
-0.21769095957279205,
0.12052740156650543,
0.1272704154253006,
0.2348230928182602,
-0.20215435326099396,
0.1736087203025818,
-0.09626463800668716,
-0.11714209616184235,
0.49064773321151733,
-0.43263596296310425,
-0.4671248197555542,
-0.02034778706729412,
-0.26607635617256165,
-0.005255136638879776,
-0.08970671147108078,
0.04857930541038513,
0.3577233850955963,
-0.06694068759679794,
0.5458387732505798,
0.26293671131134033,
-0.1390327662229538,
-0.03660407289862633,
-0.16409073770046234,
-0.40990525484085083,
0.12942570447921753,
0.04181954637169838,
0.18346287310123444,
-0.21777111291885376,
0.20303314924240112,
-0.05337492376565933,
0.10123856365680695,
0.1859942227602005,
-0.12113017588853836,
0.38433337211608887,
0.2429012507200241,
-0.22237829864025116,
0.03727411851286888,
-0.18595731258392334,
-0.4775214195251465,
0.22404831647872925,
0.4092941880226135,
0.0799715518951416,
-0.06749898195266724,
0.05132502317428589,
-0.4381961226463318,
0.07910666614770889,
-0.2594435214996338,
0.0676424577832222,
0.0994124561548233,
-0.06667014956474304,
-0.17513036727905273,
0.08892622590065002,
-0.2604832947254181,
0.7403808236122131,
0.037707552313804626,
0.2175934761762619,
-0.31834137439727783,
0.21578837931156158,
-0.18590405583381653,
-0.30817949771881104,
0.1762927770614624,
0.13617143034934998,
0.0753253847360611,
-0.09227294474840164,
-0.23890742659568787,
0.1421213150024414,
0.2554139494895935,
0.17134107649326324,
0.06189204379916191,
-0.2776552438735962,
0.41236618161201477,
-0.27401185035705566,
0.012324916198849678,
-0.10668428242206573,
0.20857016742229462,
0.0058229342103004456,
0.2551184594631195,
0.15657126903533936,
-0.37070316076278687,
-0.041073404252529144,
-0.030512062832713127,
0.09053882211446762,
0.37264394760131836,
0.12399633228778839,
-0.005092286504805088,
-0.18564826250076294,
0.3251838982105255,
0.22229494154453278,
0.19247430562973022,
0.09374196827411652,
-0.12973177433013916,
0.28813523054122925,
0.3061753511428833,
0.24524396657943726,
0.03877895697951317,
-0.2685609757900238,
-0.2554308772087097,
0.06336478888988495,
0.1922871619462967,
0.25180909037590027,
0.4446455240249634,
0.18038888275623322,
0.10491904616355896,
0.031631387770175934,
0.031848106533288956,
-0.15611736476421356,
0.11511986702680588,
0.2919999361038208,
0.2558414340019226,
0.1311025470495224,
0.4120827317237854,
0.0967436358332634,
-0.07899824529886246,
-0.3894115686416626,
0.17532503604888916,
0.1503109484910965,
-0.33177265524864197,
0.07662636041641235,
-0.21460190415382385,
-0.11394704133272171,
-0.14194603264331818,
-0.42533934116363525,
-0.14645400643348694,
-0.19783495366573334,
-0.10580091178417206,
0.281025767326355,
0.26506248116493225,
0.19366209208965302,
-0.023993849754333496,
0.05001707375049591,
0.06250427663326263,
-0.14248353242874146,
-0.055817123502492905,
-0.2506767511367798,
-0.09258785098791122,
0.0015158746391534805,
0.32773950695991516,
0.2468111515045166,
0.36850541830062866,
-0.30383071303367615,
-0.06956242024898529,
0.1437004655599594,
-0.3320981562137604,
0.1763451248407364,
-0.005682744085788727,
0.29197993874549866,
-0.013443052768707275,
-0.07797102630138397,
-0.32062989473342896,
-0.19391734898090363,
0.02153596840798855,
-0.13462325930595398,
-0.1827462911605835,
0.047279685735702515,
-0.18002861738204956,
-0.22977414727210999,
-0.00199117511510849,
-0.2926877439022064,
-0.4344462454319,
-0.39985689520835876,
-0.3682097792625427,
0.04724642261862755,
-0.008903078734874725,
0.4603002965450287,
-0.04271594434976578,
0.2933923900127411,
0.2250700742006302,
0.05083802342414856,
0.017936130985617638,
-0.3330913484096527,
0.47338205575942993,
-0.28651130199432373,
-0.2936580777168274,
0.28012022376060486,
-0.26804643869400024,
0.38360875844955444,
0.01818278804421425,
-0.1104435846209526,
-0.21353083848953247,
-0.021479742601513863,
0.3837369680404663,
-0.10093992948532104,
0.04168277606368065,
0.0846359133720398,
0.11366160213947296,
0.07825841009616852,
-0.09240637719631195,
-0.1815529763698578,
-0.20405057072639465,
0.219632089138031,
0.19307851791381836,
-0.16571548581123352,
0.22659778594970703,
-0.03633569926023483,
0.8421133756637573,
0.07719875872135162,
-0.04005036875605583,
0.3015679717063904,
-0.061655618250370026,
0.3064921200275421,
-0.1064247116446495,
-0.5121491551399231,
-0.06968449056148529,
-0.10731109976768494,
-0.0392843522131443,
0.08197180926799774,
-0.18397533893585205,
-0.11122260242700577,
-0.2847861647605896,
-0.2727974057197571,
-0.3160189986228943,
-0.2918519675731659,
-0.11478531360626221,
-0.20039138197898865,
0.13085444271564484,
0.19867929816246033,
-0.06129159778356552,
-0.16200824081897736,
-0.11249669641256332,
0.0489826463162899,
0.4355244040489197,
-0.420803040266037,
-0.018614597618579865,
0.37955984473228455,
-0.0728553980588913,
-0.34649088978767395,
0.19865301251411438,
0.1317850798368454,
0.3303270637989044,
0.07662583887577057,
0.11820032447576523,
0.060140594840049744,
-0.0493251197040081,
0.11224575340747833,
0.05919665843248367,
-0.08000028133392334,
0.23661619424819946,
-0.01469402015209198,
-0.4012729227542877,
-0.05774392932653427,
-0.2255626767873764,
0.22409836947917938,
0.47931966185569763,
0.08615235239267349,
-0.26678410172462463,
0.21151795983314514,
0.23633165657520294,
0.1412736177444458,
-0.114222951233387,
-0.1485225111246109,
-0.43875184655189514,
-0.31343770027160645,
-0.37841033935546875,
-0.06004510074853897,
0.18504571914672852,
0.23917484283447266,
0.041669443249702454,
-0.07086975872516632,
-0.06402763724327087,
-0.21697339415550232,
0.06104177236557007,
0.35968974232673645,
0.1482841670513153,
0.2704477310180664,
0.5801547765731812,
0.12715129554271698,
-0.24735921621322632,
0.4470185935497284,
0.5865609645843506,
0.002833288162946701,
-0.5835174918174744,
-0.027999449521303177,
-0.17973949015140533,
0.234889417886734,
0.13151907920837402,
-0.0706736221909523,
0.01633010059595108,
0.05956580117344856,
-0.13585183024406433,
0.38487493991851807,
0.38126546144485474,
-0.0635429248213768,
0.12624815106391907,
-0.40266528725624084,
-0.1285913586616516,
0.09584801644086838,
0.0007424056529998779,
0.13769924640655518,
0.4601658582687378,
-0.37963783740997314,
-0.05982210487127304,
0.047099169343709946,
-0.1843537986278534,
0.6863648891448975,
-0.038188859820365906,
-0.23901581764221191,
0.27325332164764404,
-0.16150283813476562,
0.26525887846946716,
0.11319062113761902,
0.18576055765151978,
-0.27622297406196594,
-0.30762141942977905,
0.0923931896686554,
-0.22662214934825897,
0.19002622365951538,
-0.19458122551441193,
-0.3511311113834381,
0.25961413979530334,
0.05645580589771271,
-0.1498298943042755,
-0.018575873225927353,
0.040605075657367706,
0.0024130549281835556,
-0.293750137090683,
-0.3525201976299286,
0.05176926404237747,
-0.1905302256345749,
0.206171914935112,
-0.1972416639328003,
-0.18334625661373138,
-0.13894784450531006,
-0.1865321695804596,
-0.03310399129986763,
-0.10903533548116684,
-0.6445797085762024,
0.23709826171398163,
0.3314475417137146,
-0.3087448179721832,
0.20051714777946472,
-0.11113843321800232,
0.09509895741939545,
-0.029330309480428696,
-0.17394956946372986,
0.12651227414608002,
0.19933444261550903,
0.016686435788869858,
-0.11088839918375015,
-0.17295213043689728,
0.4197724163532257,
-0.08396579325199127,
0.005003899335861206,
0.05766652524471283,
0.036623042076826096,
-0.02253434807062149,
0.4702349305152893,
0.35126155614852905,
0.36815690994262695,
0.15069280564785004,
-0.0755755752325058,
0.18104739487171173,
0.2616753578186035,
-0.19587817788124084,
0.0780421793460846,
0.10197554528713226,
-0.15308479964733124,
0.25580665469169617,
-0.10751354694366455,
-0.10032457858324051,
-0.0019222572445869446,
0.33977261185646057,
0.12967148423194885,
-0.016100281849503517,
0.18322114646434784,
0.15517261624336243,
-0.255842387676239,
-0.08447596430778503,
0.16883522272109985,
-0.30879250168800354,
-0.30041366815567017,
0.24127712845802307,
-0.01991431973874569,
0.04912698268890381,
0.07449378818273544,
0.734095573425293,
0.24561496078968048,
-0.36856865882873535,
-0.13207833468914032,
-0.3772934377193451,
-0.5326017141342163,
0.14176875352859497,
-0.12052375078201294,
-0.09494319558143616,
0.2369500696659088,
0.3836897015571594,
0.12086884677410126,
0.12841123342514038,
-0.22089043259620667,
0.1052408441901207,
-0.15847575664520264,
0.15400396287441254,
0.2756514847278595,
-0.09605196863412857,
0.03729235380887985,
0.08598950505256653,
0.004241978749632835,
0.15297859907150269,
0.0671004131436348,
-0.2249542474746704,
-0.11465826630592346,
0.13268063962459564,
-0.10255298763513565,
0.04087104648351669,
-0.11802632361650467,
-0.1512853354215622,
-0.2300351858139038,
-0.17150266468524933,
0.15905159711837769,
0.035123445093631744,
-0.0818418562412262,
-0.13215580582618713,
0.2920054495334625,
-0.09662947803735733,
-0.2174021154642105,
0.40256765484809875,
0.1177951917052269,
0.08100780844688416,
0.07766681164503098,
0.166029691696167,
0.16654224693775177,
0.18327867984771729,
0.017529860138893127,
-0.22533968091011047,
-0.0916716605424881,
-0.17651280760765076,
0.09427809715270996,
-0.33208924531936646,
-0.014022953808307648,
0.06999486684799194,
-0.027507096529006958,
0.4203791916370392,
-0.128956601023674,
-0.20998455584049225,
0.04724174365401268,
0.08578071743249893,
-0.3888074457645416,
0.031113265082240105,
0.3042638897895813,
0.15485888719558716,
0.1754320114850998,
0.27228766679763794,
0.08177199959754944,
0.08188436925411224,
0.15440915524959564,
0.39525189995765686,
0.2447243481874466,
-0.022837109863758087,
0.26611125469207764,
-0.20580103993415833,
0.08578145503997803,
0.2306346297264099,
0.23610898852348328,
0.11843249201774597,
0.03810501843690872,
0.15266984701156616,
-0.1501828134059906,
0.2959784269332886,
0.1446436047554016,
-0.16727405786514282,
0.2365310788154602,
-0.3596031069755554,
0.24245662987232208,
-0.09867705404758453,
0.05690852925181389,
-0.13632839918136597,
0.14178615808486938,
0.3276461958885193,
-0.04918627813458443,
-0.08844708651304245,
-0.16085316240787506,
-0.003040887415409088,
-0.30019059777259827,
0.2709413766860962,
0.4638247489929199,
-0.09763093292713165,
-0.09312421828508377,
-0.043175533413887024,
0.2145777940750122,
0.21752794086933136,
0.5374794602394104,
0.31591182947158813,
-0.16690002381801605,
-0.489629328250885,
-0.12244055420160294,
0.5082061290740967,
-0.12667348980903625,
-0.1844530701637268,
0.4623728394508362,
-0.13487134873867035,
0.010012045502662659,
-0.16528068482875824,
0.3222152590751648,
0.488484263420105,
0.30063119530677795,
-0.13834798336029053,
-0.20752596855163574,
0.25662750005722046,
-0.18010485172271729,
-0.13837379217147827,
0.21072158217430115,
0.059683866798877716,
0.29416802525520325,
0.29817119240760803,
0.0842534527182579,
-0.16908764839172363,
-0.03203753009438515,
0.22073066234588623,
-0.33576101064682007,
-0.44092047214508057,
0.20642894506454468,
-0.1567063182592392,
-0.002659086138010025,
-0.1897852122783661,
0.09799989312887192,
-0.45638933777809143,
0.2288249135017395,
0.3156724274158478,
-0.2224389612674713,
-0.06700253486633301,
-0.14896303415298462,
0.04495935142040253,
-0.030799373984336853,
0.3605280816555023,
0.2467251718044281,
0.35621052980422974,
-0.20113010704517365,
-0.10377401113510132,
-0.8396959900856018,
0.31460079550743103,
0.033666618168354034,
-0.01172998920083046,
-0.03855297341942787,
0.1393253356218338,
-0.0011308714747428894,
0.3212938904762268,
0.4201124310493469,
0.04542933404445648,
0.1901208460330963,
0.0372287854552269,
-0.462015837430954,
-0.2717568278312683,
0.09004054218530655,
-0.445476233959198,
0.005056839436292648,
-0.39178943634033203,
-0.00409819558262825,
-0.28245243430137634,
-0.041468169540166855,
-0.02739773690700531,
-0.4465276002883911,
0.2701757848262787,
0.30223727226257324,
0.2959747314453125,
-0.0437554270029068,
0.6722484827041626,
-0.05365685001015663,
0.09963607043027878,
-0.06906504929065704,
-0.31764405965805054,
-0.026964489370584488,
0.15783056616783142,
0.39532241225242615,
0.21142791211605072,
-0.2491103559732437,
0.07488274574279785,
-0.1284850686788559,
0.1337045431137085,
0.13303227722644806,
0.012899909168481827,
-0.2782159149646759,
0.06854134798049927,
-0.16541364789009094,
0.4030524790287018,
-0.13011325895786285,
0.18237218260765076,
0.06379100680351257,
0.2705148458480835,
-0.3036563992500305,
-0.35715779662132263,
0.3911989629268646,
-0.34344911575317383,
-0.458597332239151,
-0.42767223715782166,
0.2904646694660187,
0.15982040762901306,
-0.20495738089084625,
-0.47420865297317505,
0.009303778409957886,
0.2549891769886017,
-0.15330877900123596,
-0.15550068020820618,
0.5398077964782715,
0.06995448470115662,
0.21426253020763397,
-0.12199623882770538,
0.20986321568489075,
0.004663361236453056,
-0.1189015731215477,
-0.11650463938713074,
-0.06436599791049957
] |
https://github.com/huggingface/datasets/issues/2691 | xtreme / pan-x cannot be downloaded | Hi @severo, thanks for reporting.
However I have not been able to reproduce this issue. Could you please confirm if the problem persists for you?
Maybe Dropbox (where the data source is hosted) was temporarily unavailable when you tried. | ## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 39 | xtreme / pan-x cannot be downloaded
## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, thanks for reporting.
However I have not been able to reproduce this issue. Could you please confirm if the problem persists for you?
Maybe Dropbox (where the data source is hosted) was temporarily unavailable when you tried. | [
-0.35268670320510864,
-0.3867754340171814,
-0.051064882427453995,
0.2910824120044708,
0.20721064507961273,
0.04866735637187958,
-0.11699274182319641,
0.2295711785554886,
0.145072340965271,
0.07490820437669754,
-0.20717734098434448,
0.2856614887714386,
0.0034072911366820335,
0.08608532696962357,
0.19648969173431396,
-0.24455326795578003,
0.07021927833557129,
0.11961011588573456,
0.0714937224984169,
-0.03953505679965019,
-0.09413017332553864,
0.13154898583889008,
-0.2260095626115799,
0.07776810228824615,
-0.2466469705104828,
0.12610915303230286,
0.09169401228427887,
0.20669260621070862,
-0.32367199659347534,
-0.402915358543396,
0.6594856381416321,
-0.0882716029882431,
0.2548997700214386,
0.6138737797737122,
-0.00010954503522953019,
0.04444196820259094,
0.2389015108346939,
-0.0772668793797493,
0.00857914425432682,
-0.5894993543624878,
-0.34422066807746887,
-0.4234595000743866,
-0.06812839210033417,
-0.18224745988845825,
-0.031780730932950974,
-0.13605904579162598,
-0.11955994367599487,
-0.12697596848011017,
0.304120808839798,
0.2758350670337677,
0.25640809535980225,
0.42371612787246704,
0.20488367974758148,
-0.18922960758209229,
0.42425376176834106,
0.009091682732105255,
-0.30907320976257324,
0.25384658575057983,
0.4219307601451874,
0.16500848531723022,
0.4848669171333313,
0.20824240148067474,
-0.06955401599407196,
0.04207872599363327,
0.1297948658466339,
0.06795559078454971,
-0.11171957105398178,
-0.47205695509910583,
0.059661898761987686,
0.3128012716770172,
0.457790344953537,
-0.2595134675502777,
-0.3999505043029785,
-0.1368681788444519,
0.11104854941368103,
-0.2919362485408783,
0.3227856755256653,
0.24038200080394745,
-0.011217499151825905,
0.061995670199394226,
0.04640650004148483,
-0.05168658122420311,
-0.038623109459877014,
0.15139779448509216,
-0.042721524834632874,
0.25688180327415466,
-0.2622480094432831,
-0.007769696414470673,
0.10310274362564087,
-0.04652544856071472,
0.3317073583602905,
-0.00039071403443813324,
-0.07215376198291779,
0.18081256747245789,
-0.29715344309806824,
0.033614687621593475,
-0.08123401552438736,
-0.10326883941888809,
0.3259281516075134,
-0.0659448653459549,
-0.15249687433242798,
-0.05523562431335449,
-0.18486981093883514,
0.06460365653038025,
0.20718957483768463,
0.20514839887619019,
0.04988149553537369,
0.06477545201778412,
0.20261459052562714,
0.19577667117118835,
0.06564943492412567,
-0.06469085067510605,
-0.18101800978183746,
-0.027958884835243225,
0.09639640152454376,
-0.09407130628824234,
0.45403945446014404,
-0.38077422976493835,
-0.34516918659210205,
-0.010212657041847706,
-0.003937683999538422,
0.0608343705534935,
0.12192149460315704,
0.14745759963989258,
-0.09689951688051224,
0.38713979721069336,
-0.1044137179851532,
0.3990936279296875,
-0.23336909711360931,
-0.042110033333301544,
-0.1832316517829895,
0.353789746761322,
-0.2850382626056671,
-0.20128560066223145,
0.25249648094177246,
-0.22338849306106567,
0.36178699135780334,
0.10004854947328568,
0.31332117319107056,
-0.20624910295009613,
0.04280432313680649,
-0.02483600750565529,
-0.3530000150203705,
0.4104742109775543,
0.18017980456352234,
0.23402445018291473,
-0.14645707607269287,
0.07824234664440155,
-0.12965135276317596,
0.1654406487941742,
-0.6251093149185181,
-0.08751805126667023,
-0.09848986566066742,
0.19422361254692078,
-0.20819991827011108,
-0.1046869158744812,
-0.6656979918479919,
-0.1676555573940277,
-0.09001263231039047,
0.1431579291820526,
0.0834210216999054,
-0.2053963989019394,
0.15429602563381195,
-0.17904923856258392,
0.20058785378932953,
0.24114422500133514,
-0.2552346885204315,
0.06099270284175873,
-0.15332119166851044,
-0.26475831866264343,
-0.07657862454652786,
0.12627534568309784,
-0.2085569053888321,
0.010368205606937408,
-0.34221118688583374,
0.3232126235961914,
0.4552654027938843,
-0.6140804886817932,
-0.5974394679069519,
-0.10523200780153275,
-0.26225197315216064,
0.08987855911254883,
-0.061728335916996,
0.10772331804037094,
-0.0357164591550827,
-0.07880035042762756,
0.10143314301967621,
0.2451176792383194,
0.06928141415119171,
-0.06313802301883698,
-0.1651223748922348,
-0.20464186370372772,
-0.36259227991104126,
0.35299035906791687,
0.20832175016403198,
-0.05789630860090256,
0.0786108523607254,
0.07613349705934525,
0.08778185397386551,
-0.0318487249314785,
-0.030623579397797585,
0.4155047535896301,
0.3037108778953552,
-0.00013387203216552734,
-0.14926619827747345,
-0.36823198199272156,
-0.36478108167648315,
0.31553924083709717,
-0.005126373842358589,
-0.226624995470047,
-0.0161961168050766,
-0.08621735870838165,
-0.45008549094200134,
0.19822224974632263,
-0.22092793881893158,
-0.0606527216732502,
0.07694818079471588,
0.00733889639377594,
0.22018659114837646,
0.08367981016635895,
-0.2290256768465042,
0.1458616852760315,
0.01632240228354931,
0.14315523207187653,
-0.42044636607170105,
0.31511497497558594,
-0.048910483717918396,
-0.15537793934345245,
0.07026109099388123,
0.05262404680252075,
0.25888338685035706,
-0.20407718420028687,
-0.15415632724761963,
0.2960609793663025,
-0.11717066913843155,
0.054653726518154144,
0.24518826603889465,
0.11211224645376205,
0.14074693620204926,
-0.5683166980743408,
0.2428395301103592,
0.05683339759707451,
0.004801694303750992,
0.13280194997787476,
-0.08019474893808365,
0.3285501301288605,
0.07428774982690811,
-0.1284790337085724,
-0.1443326473236084,
0.1246475800871849,
0.37017643451690674,
-0.17427121102809906,
0.06231673061847687,
-0.03869739547371864,
0.37989285588264465,
-0.15709754824638367,
0.2001880556344986,
-0.18170206248760223,
-0.3316306471824646,
0.09807561337947845,
0.2502303123474121,
-0.1069730669260025,
0.18609558045864105,
0.1444752812385559,
-0.10264090448617935,
0.15932875871658325,
-0.09661354124546051,
0.16764093935489655,
0.5179622173309326,
0.12853270769119263,
-0.0067952536046504974,
0.06414717435836792,
0.008288453333079815,
-0.11846428364515305,
0.059054531157016754,
0.10467806458473206,
-0.3239888846874237,
0.08276188373565674,
0.16127480566501617,
0.10360322892665863,
-0.22502344846725464,
-0.1348782181739807,
-0.1345207393169403,
0.0970059409737587,
-0.1478445827960968,
-0.025735903531312943,
-0.193574920296669,
-0.10623897612094879,
-0.023561477661132812,
-0.06275942921638489,
-0.2630923390388489,
-0.1395762413740158,
-0.06246505677700043,
0.32165488600730896,
0.3296007513999939,
0.15250273048877716,
-0.39042165875434875,
-0.09540005028247833,
0.03527729958295822,
-0.3149363696575165,
-0.2127217948436737,
0.3404077887535095,
-0.047472089529037476,
0.0662848949432373,
0.0962962731719017,
0.08081435412168503,
0.23569723963737488,
-0.3708004355430603,
0.2722429037094116,
-0.4419667422771454,
-0.20299428701400757,
0.09664228558540344,
-0.24105150997638702,
0.46961620450019836,
0.11202403157949448,
0.12654425203800201,
-0.03220495581626892,
0.22294016182422638,
0.3095311224460602,
-0.404367595911026,
-0.003924768418073654,
0.030790384858846664,
0.026059379801154137,
-0.17586062848567963,
0.03693405166268349,
-0.1270144283771515,
-0.36183398962020874,
-0.33960258960723877,
0.028349436819553375,
0.08013761043548584,
-0.02215562015771866,
0.010163201950490475,
0.07570429891347885,
-0.029958676546812057,
-0.10440371930599213,
-0.15335893630981445,
-0.21709753572940826,
-0.7377811670303345,
0.5196611881256104,
-0.2019713819026947,
-0.44700831174850464,
0.30164697766304016,
0.055651284754276276,
0.2421494722366333,
0.04314233362674713,
-0.5795802474021912,
-0.3328720033168793,
-0.20937371253967285,
0.38576364517211914,
0.026241477578878403,
0.17258897423744202,
0.17988458275794983,
-0.3582761585712433,
0.024979284033179283,
-0.20732837915420532,
-0.24073603749275208,
-0.3274489641189575,
0.1376800835132599,
0.3069245517253876,
0.061608001589775085,
0.16857537627220154,
-0.1148674488067627,
0.44803768396377563,
0.14030607044696808,
0.1453651636838913,
0.5500606894493103,
-0.022529931738972664,
0.3252842128276825,
-0.1545572280883789,
-0.3528733551502228,
-0.1701274961233139,
0.09418234974145889,
0.11933642625808716,
-0.01955629140138626,
0.2615586519241333,
0.06131970137357712,
-0.30549919605255127,
-0.13161151111125946,
-0.03870711475610733,
-0.08326509594917297,
-0.03145343065261841,
0.1191355437040329,
0.11375296860933304,
0.08111172914505005,
0.22966456413269043,
-0.14880651235580444,
-0.1825036108493805,
0.02212848886847496,
0.41565775871276855,
0.16010195016860962,
0.28351670503616333,
-0.5198414325714111,
0.16279077529907227,
-0.3463421165943146,
0.218043714761734,
-0.005147051066160202,
0.3751683533191681,
0.000597931444644928,
0.1822768747806549,
0.25261324644088745,
0.019084423780441284,
0.33654820919036865,
-0.18747742474079132,
0.26267117261886597,
0.15674270689487457,
-0.18845228850841522,
-0.26434335112571716,
-0.18348030745983124,
-0.08804702758789062,
0.15104852616786957,
0.2219390571117401,
0.43197986483573914,
-0.2872440814971924,
-0.21122805774211884,
0.22684861719608307,
0.206793412566185,
0.02413778379559517,
-0.17011618614196777,
-0.24351708590984344,
-0.5633919835090637,
-0.14768652617931366,
-0.12003771215677261,
0.2404225915670395,
0.0556022934615612,
0.16018839180469513,
0.003776051104068756,
-0.24642403423786163,
-0.08841575682163239,
0.14636851847171783,
0.17059093713760376,
0.33957964181900024,
-0.13379600644111633,
0.3536370098590851,
0.14351069927215576,
-0.32970210909843445,
0.2670310139656067,
0.7374873161315918,
0.005828645080327988,
-0.4494509696960449,
0.07186800241470337,
-0.018718134611845016,
-0.07819422334432602,
0.11433638632297516,
-0.20377466082572937,
-0.09733537584543228,
-0.2186993509531021,
0.0812801867723465,
0.025736499577760696,
0.1539979875087738,
0.3771668076515198,
0.06257283687591553,
-0.5213451385498047,
-0.32200998067855835,
0.5426340103149414,
0.2666310966014862,
0.11965247988700867,
0.22630853950977325,
-0.08638931810855865,
0.04703551530838013,
-0.22560358047485352,
-0.08381407707929611,
0.9448816776275635,
-0.011238142848014832,
0.03393395245075226,
0.12457060068845749,
0.014549069106578827,
0.1615135371685028,
-0.19247831404209137,
0.06991109251976013,
-0.15221598744392395,
-0.4263072907924652,
-0.1463763266801834,
-0.18818965554237366,
0.1286134421825409,
-0.05776321142911911,
0.06214342638850212,
0.22552043199539185,
-0.0726001113653183,
0.11925975978374481,
0.06481894850730896,
0.07233468443155289,
-0.15269599854946136,
-0.17077824473381042,
-0.5171347260475159,
0.1991242617368698,
-0.06974738836288452,
0.4064852297306061,
-0.1388292908668518,
-0.1040901318192482,
-0.19832316040992737,
-0.09594306349754333,
-0.12185123562812805,
0.29168233275413513,
0.0023226323537528515,
0.071559838950634,
0.057902153581380844,
-0.6102402210235596,
0.03858043998479843,
0.05268671363592148,
0.016224946826696396,
0.10115594416856766,
-0.2659350633621216,
0.35331764817237854,
-0.00211479514837265,
-0.2266721874475479,
0.14729702472686768,
-0.13593585789203644,
-0.15312246978282928,
-0.09447243809700012,
-0.10863089561462402,
0.17624154686927795,
-0.0828937441110611,
-0.19283771514892578,
-0.25002166628837585,
0.09915433079004288,
-0.16479545831680298,
-0.09874055534601212,
-0.177494078874588,
-0.1970982849597931,
0.3366284966468811,
-0.20214585959911346,
0.15160229802131653,
0.296896755695343,
0.05587182566523552,
0.06312102824449539,
0.03861875459551811,
-0.25680965185165405,
-0.14739985764026642,
0.4189605414867401,
-0.08218727260828018,
-0.08379969000816345,
0.11377855390310287,
0.12573927640914917,
0.00021996349096298218,
-0.13328978419303894,
0.1391725242137909,
0.05861085280776024,
-0.6309769153594971,
0.04412040859460831,
-0.1751822978258133,
0.08802475035190582,
-0.11304619163274765,
0.3112157881259918,
0.2554553747177124,
-0.3791322708129883,
0.24184550344944,
-0.6552190780639648,
-0.06975164264440536,
0.09456612169742584,
0.022735534235835075,
0.20296621322631836,
0.013427402824163437,
0.07662661373615265,
0.12920382618904114,
-0.2599194645881653,
-0.31665661931037903,
0.17486079037189484,
-0.09047070890665054,
-0.13869519531726837,
0.24893386662006378,
0.15426889061927795,
0.27993619441986084,
-0.0008409842848777771,
0.1445418894290924,
0.07905995100736618,
-0.3133639097213745,
-0.16963639855384827,
-0.03908826410770416,
0.09756020456552505,
0.0073129646480083466,
-0.1443006992340088,
0.02509566769003868,
-0.1934472620487213,
-0.2018471360206604,
-0.016270475462079048,
0.07147718966007233,
0.21286582946777344,
0.054810184985399246,
-0.17678989470005035,
-0.1202126145362854,
0.05240020900964737,
-0.27127742767333984,
0.3782562017440796,
0.15261024236679077,
0.1362900733947754,
-0.07072164863348007,
0.16988947987556458,
-0.004589421674609184,
0.037781670689582825,
-0.35075443983078003,
-0.15372318029403687,
-0.009987443685531616,
0.3234339952468872,
0.31731364130973816,
-0.23383508622646332,
0.33995214104652405,
0.5180970430374146,
0.25893715023994446,
0.35060110688209534,
-0.3326708972454071,
0.22881874442100525,
0.20446783304214478,
0.26696252822875977,
-0.34210819005966187,
-0.19727858901023865,
0.3491126596927643,
0.338157594203949,
-0.022210687398910522,
0.333465576171875,
0.2860366106033325,
0.09993515908718109,
0.29361492395401,
0.18924608826637268,
0.7017913460731506,
0.14830011129379272,
0.3616814911365509,
0.48796749114990234,
0.04534038528800011,
0.05475478246808052,
0.40471959114074707,
0.2209102213382721,
0.0589069202542305,
0.5563642978668213,
-0.15010887384414673,
0.37051889300346375,
0.027699680998921394,
0.14107339084148407,
-0.17363417148590088,
-0.291946679353714,
-0.2292749136686325,
-0.030001983046531677,
0.03284408897161484,
0.006614252924919128,
-0.10244004428386688,
0.07175055146217346,
-0.3785606920719147,
-0.044216714799404144,
-0.3720661997795105,
0.2042669653892517,
-0.10739249736070633,
0.16281968355178833,
0.10050052404403687,
-0.20544078946113586,
-0.0019087865948677063,
0.0046278610825538635,
-0.010632447898387909,
0.02367701753973961,
0.20688456296920776,
0.05980049818754196,
-0.20067058503627777,
-0.2601110637187958,
0.014614282175898552,
0.3534214198589325,
-0.025885656476020813,
-0.10442087054252625,
0.41607150435447693,
0.09790322929620743,
-0.15582944452762604,
0.01149844378232956,
0.35316771268844604,
0.3471854329109192,
0.15516825020313263,
0.13553036749362946,
-0.04552924633026123,
0.0878983587026596,
-0.06547035276889801,
-0.0037284260615706444,
0.23003292083740234,
0.03255452588200569,
0.37879642844200134,
0.2136470526456833,
0.2474651038646698,
-0.2060372531414032,
0.21662911772727966,
-0.17801518738269806,
0.10442273318767548,
-0.31611356139183044,
0.02765699476003647,
-0.307552695274353,
-0.10171744227409363,
-0.2598288357257843,
-0.21140486001968384,
-0.12914973497390747,
0.08093351125717163,
0.2977319061756134,
0.019351473078131676,
0.00423102080821991,
-0.3231407701969147,
0.07377307116985321,
-0.11022019386291504,
0.13803842663764954,
0.434713751077652,
-0.05410490930080414,
-0.18879234790802002,
-0.1329209804534912,
-0.8249322772026062,
0.20490095019340515,
-0.3134782016277313,
-0.35932713747024536,
0.2230779230594635,
-0.19670598208904266,
-0.1337316930294037,
0.2950108051300049,
0.3823511004447937,
0.19866427779197693,
0.14175580441951752,
0.2696790397167206,
-0.37864625453948975,
-0.17550088465213776,
0.11647559702396393,
0.08052250742912292,
0.15503481030464172,
-0.19661015272140503,
0.0020440034568309784,
-0.06050654873251915,
0.029626600444316864,
-0.1787051111459732,
-0.10147951543331146,
-0.15460121631622314,
-0.27308139204978943,
0.7128178477287292,
-0.02658216841518879,
0.1818774789571762,
0.008935011923313141,
-0.14159534871578217,
-0.3479330539703369,
-0.33599045872688293,
-0.17175069451332092,
0.1654936522245407,
0.03805667161941528,
0.22719281911849976,
-0.18519486486911774,
0.04543071985244751,
-0.4097549021244049,
0.11654016375541687,
0.01900476962327957,
-0.031389620155096054,
-0.1484309434890747,
0.16175991296768188,
-0.3718982934951782,
0.12413182109594345,
0.27023112773895264,
0.20670923590660095,
-0.0751156359910965,
0.20496715605258942,
-0.13714006543159485,
-0.40074706077575684,
0.39415085315704346,
-0.06304939091205597,
-0.2641804814338684,
-0.03380238264799118,
0.09102761745452881,
-0.01750648021697998,
-0.2228858917951584,
-0.20463646948337555,
0.3222982883453369,
0.3259676396846771,
0.04176495224237442,
-0.07421039789915085,
0.18011032044887543,
-0.15938898921012878,
-0.005548026412725449,
0.16678476333618164,
0.5679104328155518,
-0.052946776151657104,
-0.16625405848026276,
0.47791168093681335,
0.06449898332357407
] |
https://github.com/huggingface/datasets/issues/2691 | xtreme / pan-x cannot be downloaded | Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case? | ## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 34 | xtreme / pan-x cannot be downloaded
## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case? | [
-0.26797425746917725,
-0.44181710481643677,
-0.11762630939483643,
0.26365137100219727,
0.2272869348526001,
0.10944075137376785,
-0.18489323556423187,
0.23797081410884857,
0.10634978115558624,
0.14721688628196716,
-0.15637584030628204,
0.2612074315547943,
0.034030117094516754,
0.005481259897351265,
0.1887654811143875,
-0.2929278612136841,
-0.02311328798532486,
0.15719318389892578,
0.08548058569431305,
-0.012771889567375183,
-0.04482591152191162,
0.16231165826320648,
-0.17775839567184448,
0.166057288646698,
-0.23470532894134521,
0.06105882674455643,
0.0814339816570282,
0.17186444997787476,
-0.34542033076286316,
-0.41898640990257263,
0.5661597847938538,
-0.09494622051715851,
0.2182052731513977,
0.719515323638916,
-0.00010372389806434512,
0.029213257133960724,
0.21765971183776855,
-0.026194782927632332,
0.05660158023238182,
-0.43363529443740845,
-0.31205102801322937,
-0.26808321475982666,
-0.054717570543289185,
-0.21745267510414124,
-0.14002899825572968,
-0.10075312107801437,
-0.08805595338344574,
-0.17501398921012878,
0.25051093101501465,
0.3105108439922333,
0.32321372628211975,
0.38031911849975586,
0.17699368298053741,
-0.20664075016975403,
0.3996107876300812,
-0.0941898375749588,
-0.31724467873573303,
0.08905936777591705,
0.29125064611434937,
0.17611093819141388,
0.5273688435554504,
0.32375237345695496,
-0.03599042817950249,
0.015475721098482609,
0.14387038350105286,
0.04106913134455681,
-0.062305159866809845,
-0.4709230363368988,
0.061265166848897934,
0.3000103533267975,
0.42715615034103394,
-0.23912066221237183,
-0.3885630965232849,
-0.10545798391103745,
0.10490256547927856,
-0.40781301259994507,
0.24442961812019348,
0.17993614077568054,
-0.01627819985151291,
0.10524997115135193,
0.009664574638009071,
-0.09781454503536224,
-0.04193440079689026,
0.06196014583110809,
-0.07766937464475632,
0.22211943566799164,
-0.2184874415397644,
-0.06830251961946487,
0.05880957469344139,
-0.07597687840461731,
0.20788416266441345,
0.051151782274246216,
-0.02758156880736351,
0.12765315175056458,
-0.24529381096363068,
0.06006511300802231,
0.06321930885314941,
-0.129156231880188,
0.20962750911712646,
-0.07913921773433685,
-0.08923720568418503,
0.011494357138872147,
-0.14732417464256287,
0.06197596341371536,
0.06594762206077576,
0.2439478486776352,
0.03832973912358284,
0.02375933527946472,
0.20913352072238922,
0.18620523810386658,
0.08141560852527618,
-0.10257571190595627,
-0.17370550334453583,
0.011305400170385838,
0.19545966386795044,
-0.02946184203028679,
0.395926296710968,
-0.35294973850250244,
-0.2808385491371155,
0.022182049229741096,
0.039759814739227295,
0.040806617587804794,
0.08661339432001114,
0.2145690619945526,
-0.08242949098348618,
0.40113160014152527,
-0.15014958381652832,
0.34400951862335205,
-0.2506440281867981,
0.07704608142375946,
-0.2169535607099533,
0.2924671471118927,
-0.29314208030700684,
-0.15263772010803223,
0.19205594062805176,
-0.08127598464488983,
0.34817957878112793,
-0.03503793478012085,
0.3502662777900696,
-0.16961753368377686,
0.15936841070652008,
0.06126977875828743,
-0.2728767991065979,
0.42044520378112793,
0.17265494167804718,
0.16748125851154327,
-0.08565205335617065,
0.0686989426612854,
-0.158420592546463,
0.059449538588523865,
-0.5414464473724365,
-0.21241459250450134,
-0.02918989025056362,
0.2986307144165039,
-0.12435358762741089,
-0.029221825301647186,
-0.5017436742782593,
-0.24244071543216705,
-0.0926838144659996,
0.20012405514717102,
0.06880562752485275,
-0.23659934103488922,
0.1697007566690445,
-0.20659437775611877,
0.12182287126779556,
0.1404038816690445,
-0.18714849650859833,
0.06829436123371124,
-0.07627357542514801,
-0.2601472735404968,
-0.12810847163200378,
0.08467646688222885,
-0.18926313519477844,
0.05384679511189461,
-0.32122668623924255,
0.27980613708496094,
0.5203266143798828,
-0.660707414150238,
-0.5881971716880798,
-0.1088324710726738,
-0.3328568935394287,
0.03814084827899933,
-0.03290005773305893,
0.11681824177503586,
-0.09820213913917542,
0.002660550642758608,
0.22063618898391724,
0.20922130346298218,
0.07293238490819931,
-0.045918162912130356,
-0.14698922634124756,
-0.19961236417293549,
-0.3954460620880127,
0.28898537158966064,
0.21859249472618103,
-0.11555715650320053,
0.06307243555784225,
0.00868366938084364,
0.12666699290275574,
-0.08673414587974548,
-0.05698374658823013,
0.4788995385169983,
0.30955612659454346,
0.08653885871171951,
-0.07928837835788727,
-0.3216751515865326,
-0.2247873842716217,
0.2472706437110901,
-0.07057274878025055,
-0.09634722769260406,
-0.03274175524711609,
-0.18870465457439423,
-0.4533221423625946,
0.14310844242572784,
-0.3158527612686157,
-0.12302808463573456,
0.17520594596862793,
0.1260690987110138,
0.24196958541870117,
0.013847395777702332,
-0.24117347598075867,
0.05915283411741257,
0.11692290008068085,
0.1251554638147354,
-0.43203189969062805,
0.22130365669727325,
-0.14918753504753113,
-0.10530432313680649,
0.0922812968492508,
0.1673106998205185,
0.24370011687278748,
-0.2250935435295105,
-0.09084680676460266,
0.32467105984687805,
-0.09670264273881912,
0.035516444593667984,
0.3533543348312378,
0.09784314036369324,
0.08451642096042633,
-0.5908097624778748,
0.23348668217658997,
0.10352113842964172,
-0.018788553774356842,
0.13006573915481567,
-0.04315181076526642,
0.302426815032959,
0.15142865478992462,
-0.11505169421434402,
-0.04870554059743881,
0.07426181435585022,
0.42988255620002747,
-0.1736489087343216,
0.07141318917274475,
-0.13068030774593353,
0.28477492928504944,
-0.14198072254657745,
0.10406656563282013,
-0.22998012602329254,
-0.29760628938674927,
0.23261970281600952,
0.3081136643886566,
-0.12776461243629456,
0.18269798159599304,
0.056287702172994614,
-0.06403348594903946,
0.1722058355808258,
-0.05512155592441559,
0.11231681704521179,
0.39238154888153076,
0.1955980509519577,
0.07839314639568329,
0.09048710763454437,
0.02513401210308075,
-0.07450713962316513,
0.05145985260605812,
0.030950434505939484,
-0.27356329560279846,
0.007225599139928818,
0.1577756106853485,
0.055133141577243805,
-0.22447678446769714,
-0.21987617015838623,
-0.1738976091146469,
0.12657853960990906,
-0.05643012002110481,
-0.09230859577655792,
-0.28254762291908264,
-0.15875573456287384,
-0.0015432173386216164,
-0.06702958792448044,
-0.25263679027557373,
-0.22269758582115173,
0.04910700023174286,
0.2205241471529007,
0.29093027114868164,
0.1391826570034027,
-0.4456437826156616,
-0.15868283808231354,
0.12052550911903381,
-0.30130723118782043,
-0.1710585504770279,
0.24451863765716553,
-0.0701964795589447,
0.13093781471252441,
-0.04957466199994087,
-0.014770247042179108,
0.2298835813999176,
-0.4031028151512146,
0.2660708427429199,
-0.42108067870140076,
-0.2356019914150238,
0.14199189841747284,
-0.2103908807039261,
0.2974477708339691,
0.14244920015335083,
0.09106630086898804,
-0.018968012183904648,
0.16502675414085388,
0.3228319585323334,
-0.4411509335041046,
-0.046685390174388885,
0.040226154029369354,
0.05519359931349754,
-0.22431866824626923,
0.014607034623622894,
-0.18939438462257385,
-0.32841384410858154,
-0.3596838116645813,
-0.04067438095808029,
0.15064680576324463,
0.03442522883415222,
-0.01850670576095581,
0.08033832162618637,
0.08852504938840866,
-0.06856123358011246,
-0.05118793994188309,
-0.2514696419239044,
-0.7017877697944641,
0.463675856590271,
-0.2644919753074646,
-0.4040009677410126,
0.4038114845752716,
0.03437519818544388,
0.28747665882110596,
0.028160355985164642,
-0.6414681077003479,
-0.4265076220035553,
-0.20814304053783417,
0.405719518661499,
0.0910307765007019,
0.16230520606040955,
0.24888861179351807,
-0.19399690628051758,
-0.08049838989973068,
-0.12964850664138794,
-0.27319806814193726,
-0.33932340145111084,
0.12310773879289627,
0.35141852498054504,
0.004900621250271797,
0.16939035058021545,
-0.05665317922830582,
0.47976237535476685,
0.14117054641246796,
0.26604899764060974,
0.4828196167945862,
0.007464684545993805,
0.41045477986335754,
-0.17219960689544678,
-0.2594890594482422,
-0.11807648092508316,
0.05536734312772751,
0.0891868993639946,
-0.005733564496040344,
0.3468688726425171,
0.0325024276971817,
-0.3200867176055908,
-0.0823817029595375,
-0.1269822120666504,
-0.11694709956645966,
-0.13468006253242493,
0.16198888421058655,
0.08263631165027618,
0.10315097868442535,
0.26717397570610046,
-0.21685807406902313,
-0.05690721049904823,
0.10093094408512115,
0.41935449838638306,
0.058378465473651886,
0.24100284278392792,
-0.6325910687446594,
0.15310004353523254,
-0.5051285028457642,
0.245870903134346,
-0.011550149880349636,
0.2705220580101013,
0.02156836912035942,
0.09080206602811813,
0.23920594155788422,
-0.02943611517548561,
0.2986410856246948,
-0.2792758345603943,
0.21417053043842316,
0.22150522470474243,
-0.17756867408752441,
-0.15948832035064697,
-0.17939400672912598,
-0.10528776049613953,
0.11015072464942932,
0.2103470414876938,
0.3577738404273987,
-0.29092901945114136,
-0.20928964018821716,
0.20810212194919586,
0.11214704066514969,
-0.03648211061954498,
-0.11052360385656357,
-0.26149338483810425,
-0.6037283539772034,
-0.13079702854156494,
-0.1397307813167572,
0.1818608194589615,
0.06382924318313599,
0.1908944547176361,
0.009821657091379166,
-0.204360693693161,
-0.08113235235214233,
0.2022412121295929,
0.21325978636741638,
0.3442695438861847,
-0.13253839313983917,
0.12477238476276398,
0.08891985565423965,
-0.2817152142524719,
0.18702387809753418,
0.6367660760879517,
-0.10250668227672577,
-0.3539465069770813,
0.10426349937915802,
-0.07600747793912888,
-0.020128734409809113,
0.1653686761856079,
-0.11589061468839645,
-0.06526082009077072,
-0.20036602020263672,
0.19658511877059937,
0.03419731184840202,
0.2208954095840454,
0.3908568322658539,
0.015487710945308208,
-0.42926397919654846,
-0.29443418979644775,
0.408549964427948,
0.24116270244121552,
0.09592355787754059,
0.21094083786010742,
-0.03550393879413605,
-0.010892007499933243,
-0.12197944521903992,
-0.06402695924043655,
0.9632135033607483,
-0.03136085718870163,
0.03398830443620682,
0.16077831387519836,
0.026024319231510162,
0.14425566792488098,
-0.1871310919523239,
0.22870291769504547,
-0.11232056468725204,
-0.4142070412635803,
-0.11586890369653702,
-0.1293540745973587,
0.01891961321234703,
-0.06649595499038696,
0.04764341935515404,
0.33106449246406555,
-0.0027625784277915955,
0.1432362049818039,
0.06295253336429596,
0.05800490081310272,
-0.13062319159507751,
-0.1149517297744751,
-0.5382691025733948,
0.2539910078048706,
0.025472162291407585,
0.37905263900756836,
-0.16564279794692993,
-0.10758377611637115,
-0.19456516206264496,
-0.12653690576553345,
-0.03948068618774414,
0.2701868712902069,
0.04652361199259758,
0.07250048220157623,
-0.00015131011605262756,
-0.562929630279541,
-0.17863328754901886,
0.020746689289808273,
0.03138440102338791,
0.12407806515693665,
-0.22929498553276062,
0.33829978108406067,
0.03635319694876671,
-0.256144255399704,
0.08993701636791229,
-0.1675926148891449,
-0.12276501953601837,
-0.13485105335712433,
-0.16968820989131927,
0.26846015453338623,
-0.042885154485702515,
-0.20326486229896545,
-0.22382640838623047,
0.07836252450942993,
-0.11643286049365997,
-0.05438734218478203,
-0.09399434924125671,
-0.12663064897060394,
0.21960651874542236,
-0.21418818831443787,
0.20093508064746857,
0.18666721880435944,
-0.07296444475650787,
0.05758580565452576,
0.029468143358826637,
-0.2769972085952759,
-0.15531404316425323,
0.30606454610824585,
-0.004522152245044708,
-0.12933817505836487,
0.0959785133600235,
0.11445653438568115,
-0.08687068521976471,
-0.18448424339294434,
-0.04741069674491882,
0.12272334843873978,
-0.4821637272834778,
-0.028245776891708374,
-0.1865503340959549,
-0.006932273507118225,
0.0028719629626721144,
0.18745385110378265,
0.2820071578025818,
-0.36442264914512634,
0.16173721849918365,
-0.5957936644554138,
-0.13182075321674347,
0.13251176476478577,
0.02346140146255493,
0.2270471602678299,
0.031679168343544006,
0.04672188311815262,
0.11960642039775848,
-0.23797592520713806,
-0.4012409448623657,
0.12365862727165222,
-0.14981913566589355,
-0.09826222062110901,
0.14784426987171173,
0.006422962993383408,
0.2935065031051636,
0.02758493274450302,
0.2196456491947174,
0.06001944839954376,
-0.39987367391586304,
-0.2403431534767151,
0.05520680919289589,
0.06278246641159058,
-0.038305558264255524,
-0.11964425444602966,
0.018598929047584534,
-0.12851452827453613,
-0.1325446367263794,
-0.03987959027290344,
0.08919617533683777,
0.19254282116889954,
0.09865296632051468,
-0.18370120227336884,
-0.06929455697536469,
0.016742512583732605,
-0.16425183415412903,
0.32584115862846375,
0.1398630291223526,
0.2318580001592636,
-0.014497755095362663,
0.13237501680850983,
-0.08561059832572937,
0.006634697318077087,
-0.18700654804706573,
-0.14577266573905945,
0.05460482835769653,
0.3340921700000763,
0.29173707962036133,
-0.25574761629104614,
0.2778267562389374,
0.5029014945030212,
0.28459087014198303,
0.28827202320098877,
-0.26159438490867615,
0.20064157247543335,
0.18766531348228455,
0.34328916668891907,
-0.2725107669830322,
-0.21512986719608307,
0.4091148376464844,
0.33772996068000793,
0.02343045547604561,
0.3495352566242218,
0.22787436842918396,
0.09652408957481384,
0.3864114284515381,
0.2378535270690918,
0.7002608776092529,
0.01092144288122654,
0.3064975142478943,
0.39678001403808594,
0.02978118136525154,
0.027974359691143036,
0.4111219346523285,
0.245327427983284,
0.057196758687496185,
0.5404456257820129,
-0.1116679236292839,
0.38120442628860474,
0.050844840705394745,
0.15161223709583282,
-0.20212247967720032,
-0.18425431847572327,
-0.2625831365585327,
-0.05384601652622223,
0.11766991019248962,
0.05690149962902069,
-0.02048613876104355,
-0.04045308381319046,
-0.3588009476661682,
-0.017703557386994362,
-0.3818138837814331,
0.19524537026882172,
-0.10122110694646835,
0.144365593791008,
0.11841009557247162,
-0.20163048803806305,
0.03957363963127136,
-0.03014945238828659,
0.06569372862577438,
0.027810968458652496,
0.15147390961647034,
-0.02157837152481079,
-0.11752644181251526,
-0.26326045393943787,
-0.00969754159450531,
0.232989102602005,
0.03197833150625229,
-0.0951242744922638,
0.3985486328601837,
0.13746985793113708,
-0.051978953182697296,
-0.04334435239434242,
0.34608614444732666,
0.3359355330467224,
0.1591625064611435,
0.02254955656826496,
-0.040208276361227036,
0.09299170970916748,
-0.12294946610927582,
-0.08612966537475586,
0.15117698907852173,
-0.034975990653038025,
0.32150912284851074,
0.23485596477985382,
0.3064636290073395,
-0.2580748200416565,
0.18450872600078583,
-0.23942802846431732,
0.1145101934671402,
-0.24633030593395233,
0.0031751245260238647,
-0.27018502354621887,
-0.09753171354532242,
-0.2701835036277771,
-0.128282368183136,
-0.25905945897102356,
0.04861115291714668,
0.29654476046562195,
-0.07215221226215363,
0.0045255012810230255,
-0.3530625104904175,
0.10898761451244354,
-0.11539003252983093,
0.13042932748794556,
0.42157527804374695,
0.029853492975234985,
-0.14191722869873047,
-0.09968894720077515,
-0.8327546119689941,
0.2654561698436737,
-0.3724474608898163,
-0.33706188201904297,
0.17449688911437988,
-0.10680083930492401,
-0.18518710136413574,
0.25560685992240906,
0.466251015663147,
0.15342043340206146,
0.164230078458786,
0.25085461139678955,
-0.3839322626590729,
-0.09464362263679504,
0.22546596825122833,
0.03524075448513031,
0.17363320291042328,
-0.24990081787109375,
0.005757872015237808,
-0.07231998443603516,
0.1074136421084404,
-0.15097953379154205,
-0.09821349382400513,
-0.1745833158493042,
-0.22460997104644775,
0.7090950012207031,
0.041595011949539185,
0.04966597259044647,
-0.014484193176031113,
-0.27299433946609497,
-0.3072064220905304,
-0.2880757451057434,
-0.1513742059469223,
0.08444411307573318,
0.061601199209690094,
0.22247856855392456,
-0.18813560903072357,
0.044570405036211014,
-0.42477479577064514,
0.2465496063232422,
0.10286945104598999,
-0.04794485867023468,
-0.09123046696186066,
0.23598048090934753,
-0.37803786993026733,
0.1200849711894989,
0.2901975214481354,
0.15471817553043365,
0.040420420467853546,
0.18297939002513885,
-0.0811455026268959,
-0.4246266186237335,
0.5179016590118408,
-0.017821427434682846,
-0.2735966145992279,
-0.03817819431424141,
0.10458828508853912,
0.07301825284957886,
-0.2387005090713501,
-0.24715670943260193,
0.3185579180717468,
0.25810232758522034,
0.12043818831443787,
-0.1316840648651123,
0.1669016182422638,
-0.23022805154323578,
-0.04358702152967453,
0.12296131253242493,
0.5427104234695435,
-0.09237612038850784,
-0.12143512815237045,
0.3414207398891449,
0.00965578481554985
] |
https://github.com/huggingface/datasets/issues/2691 | xtreme / pan-x cannot be downloaded | Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out.
Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4
I have also contacted the maintainer by email.
I'll keep you informed with their answer. | ## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 62 | xtreme / pan-x cannot be downloaded
## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out.
Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4
I have also contacted the maintainer by email.
I'll keep you informed with their answer. | [
-0.3182065188884735,
-0.327289342880249,
-0.11037573218345642,
0.28357940912246704,
0.23289591073989868,
0.0658765360713005,
-0.09190866351127625,
0.1860671490430832,
0.046390097588300705,
0.24007032811641693,
-0.2260717749595642,
0.20973283052444458,
-0.03433850407600403,
-0.14891034364700317,
0.14115363359451294,
-0.2330801784992218,
-0.023975305259227753,
0.06493120640516281,
0.0869288444519043,
-0.0030199550092220306,
-0.04355084151029587,
0.09998875111341476,
-0.1346055120229721,
0.16274255514144897,
-0.28168785572052,
0.1641903966665268,
0.1339258998632431,
0.15280549228191376,
-0.3610312044620514,
-0.5697409510612488,
0.5499165058135986,
-0.0718996524810791,
0.21623389422893524,
0.6330671310424805,
-0.00010452626156620681,
0.027429968118667603,
0.2513790726661682,
-0.07012414187192917,
0.021965522319078445,
-0.3303214907646179,
-0.17031264305114746,
-0.33266717195510864,
-0.05591851472854614,
-0.23264214396476746,
-0.04928494989871979,
-0.16108569502830505,
-0.04300159960985184,
-0.27366364002227783,
0.18779459595680237,
0.3142366111278534,
0.3028452694416046,
0.34071001410484314,
0.19742123782634735,
-0.18405435979366302,
0.41776546835899353,
-0.1173001229763031,
-0.29150688648223877,
0.0986318290233612,
0.2888225317001343,
0.2544908821582794,
0.33583906292915344,
0.34670427441596985,
-0.06246659904718399,
0.13617552816867828,
0.11522263288497925,
0.11143425852060318,
0.035921238362789154,
-0.4036877453327179,
0.10345458984375,
0.3053646385669708,
0.36687371134757996,
-0.22575709223747253,
-0.3703780770301819,
-0.1280193030834198,
-0.0011328416876494884,
-0.41359591484069824,
0.2864314913749695,
0.18856023252010345,
-0.061445124447345734,
0.048733942210674286,
0.05901309847831726,
-0.06409499049186707,
-0.009462885558605194,
0.08222963660955429,
-0.23675528168678284,
0.30455225706100464,
-0.23986591398715973,
-0.08100862056016922,
0.06117767468094826,
-0.09763282537460327,
0.42668771743774414,
0.10552223026752472,
-0.04986194893717766,
0.18945340812206268,
-0.19107042253017426,
0.08615511655807495,
0.09162585437297821,
-0.03131601959466934,
0.18795102834701538,
-0.09396764636039734,
-0.08703809231519699,
0.021232889965176582,
-0.12130428850650787,
0.053342439234256744,
-0.023664560168981552,
0.22360514104366302,
0.013699904084205627,
0.01236057374626398,
0.3364657163619995,
0.1675426959991455,
-0.025204069912433624,
-0.10390881448984146,
-0.06105191260576248,
0.0210203118622303,
0.34712255001068115,
0.015183706767857075,
0.2679441571235657,
-0.4040788412094116,
-0.14627842605113983,
0.10883607715368271,
0.08115673810243607,
0.00406208960339427,
0.07536827027797699,
0.26962292194366455,
-0.13104380667209625,
0.5004308819770813,
-0.1439536213874817,
0.2774462103843689,
-0.178613543510437,
-0.0545942448079586,
-0.23051385581493378,
0.28752776980400085,
-0.3185656666755676,
-0.16405336558818817,
0.26813995838165283,
-0.08859476447105408,
0.3424464464187622,
0.019303500652313232,
0.44857263565063477,
-0.22766603529453278,
0.14555932581424713,
-0.039132505655288696,
-0.15679439902305603,
0.3950020968914032,
0.2186506986618042,
0.2417789250612259,
-0.05708600953221321,
0.10700979828834534,
-0.13983137905597687,
0.054743923246860504,
-0.5332156419754028,
-0.14451949298381805,
0.04843640327453613,
0.2813413441181183,
-0.11093290150165558,
0.04434612765908241,
-0.46152612566947937,
-0.2585163414478302,
0.018441282212734222,
0.036847684532403946,
0.06547046452760696,
-0.2370758205652237,
0.1036679744720459,
-0.27275198698043823,
0.1194804236292839,
0.1861197054386139,
-0.1496269553899765,
0.08114014565944672,
-0.15082179009914398,
-0.18407253921031952,
-0.10368864983320236,
0.09497629106044769,
-0.23242543637752533,
-0.028053097426891327,
-0.3431359827518463,
0.17889519035816193,
0.49666351079940796,
-0.5603689551353455,
-0.6766207814216614,
-0.19450192153453827,
-0.21672473847866058,
0.10571832209825516,
0.05224039405584335,
0.12844471633434296,
-0.11958533525466919,
-0.0755692645907402,
0.11651305854320526,
0.23148490488529205,
0.06893374025821686,
-0.04319644719362259,
-0.20294903218746185,
-0.15801401436328888,
-0.3941798210144043,
0.298628568649292,
0.33048978447914124,
-0.08664420992136002,
0.12136604636907578,
-0.04638393595814705,
0.05001812428236008,
-0.17774905264377594,
0.0538884699344635,
0.4001023769378662,
0.08763200044631958,
0.049962058663368225,
-0.10794790089130402,
-0.3960915803909302,
-0.26929032802581787,
0.3049808740615845,
-0.231489896774292,
-0.09010142087936401,
0.042286451905965805,
-0.16579686105251312,
-0.3381282389163971,
0.12523490190505981,
-0.2549581229686737,
-0.13805165886878967,
0.19801943004131317,
0.21799422800540924,
0.21073386073112488,
0.043291326612234116,
-0.18562930822372437,
0.2093694806098938,
0.13472656905651093,
0.04546546936035156,
-0.3934731185436249,
0.09887789189815521,
-0.1647420972585678,
-0.08480238169431686,
-0.01860877312719822,
0.031833454966545105,
0.22331872582435608,
-0.11318935453891754,
-0.13132533431053162,
0.2966015934944153,
-0.14107435941696167,
0.1947292685508728,
0.17668074369430542,
0.12903428077697754,
0.06987617909908295,
-0.5461267828941345,
0.37111806869506836,
0.08369837701320648,
0.013775509782135487,
0.12920713424682617,
-0.12382740527391434,
0.3975924849510193,
0.2258637547492981,
-0.10468287020921707,
-0.007353037595748901,
0.05747588723897934,
0.40072107315063477,
-0.18396522104740143,
0.13768139481544495,
-0.20096032321453094,
0.322316437959671,
-0.07788574695587158,
0.08909067511558533,
-0.14088745415210724,
-0.36186784505844116,
0.22394409775733948,
0.2993718683719635,
-0.07305248081684113,
0.27456992864608765,
0.05135534703731537,
-0.23277252912521362,
0.100651316344738,
-0.16562910377979279,
0.13454574346542358,
0.40024876594543457,
0.1655014604330063,
0.15854083001613617,
0.11279761791229248,
0.03032790496945381,
-0.1219315379858017,
0.06401807814836502,
0.07981279492378235,
-0.3082917034626007,
0.1386445164680481,
0.22006440162658691,
0.04781804978847504,
-0.25842365622520447,
-0.0435236394405365,
-0.17599257826805115,
0.08691737055778503,
-0.12906743586063385,
-0.054928213357925415,
-0.28915831446647644,
-0.018709206953644753,
-0.021273508667945862,
-0.129685178399086,
-0.32679590582847595,
-0.28940409421920776,
0.083314448595047,
0.3019232749938965,
0.31823790073394775,
0.07388745993375778,
-0.47916650772094727,
-0.10916309058666229,
-0.025845814496278763,
-0.1513308435678482,
-0.2301005721092224,
0.18495601415634155,
-0.08721346408128738,
0.12949027121067047,
-0.012882107868790627,
-0.03194956108927727,
0.20241008698940277,
-0.38100412487983704,
0.29932355880737305,
-0.3908237814903259,
-0.239547461271286,
0.12278403341770172,
-0.09641990065574646,
0.36632904410362244,
0.12421824783086777,
0.007155314087867737,
0.04959014058113098,
0.29099005460739136,
0.31444329023361206,
-0.5699629187583923,
-0.059917643666267395,
-0.025148972868919373,
-0.010381268337368965,
-0.11314431577920914,
-0.0026947855949401855,
-0.21321964263916016,
-0.40268704295158386,
-0.358548104763031,
-0.12872314453125,
0.22208259999752045,
0.08458362519741058,
-0.13633184134960175,
-0.03532927483320236,
-0.02346014603972435,
-0.052817292511463165,
0.01328736450523138,
-0.3657122850418091,
-0.7164647579193115,
0.5234925746917725,
-0.36667168140411377,
-0.3437449038028717,
0.3153213560581207,
0.04939569532871246,
0.32500219345092773,
0.02667764388024807,
-0.594079852104187,
-0.41595491766929626,
-0.1920965164899826,
0.24970191717147827,
0.07498956471681595,
0.19580616056919098,
0.2518181800842285,
-0.20472952723503113,
-0.11693686991930008,
-0.17701098322868347,
-0.19275127351284027,
-0.32998040318489075,
-0.01041426882147789,
0.27486735582351685,
-0.048665039241313934,
0.21048641204833984,
-0.020536402240395546,
0.5043944716453552,
-0.004031263291835785,
0.292192667722702,
0.51389479637146,
-0.015721125528216362,
0.38786301016807556,
-0.1739788055419922,
-0.22701963782310486,
-0.10054995119571686,
0.035963281989097595,
0.11801283061504364,
-0.08140617609024048,
0.3046615719795227,
-0.029774436727166176,
-0.3115224540233612,
0.0018652230501174927,
0.07538848370313644,
-0.10004602372646332,
-0.02017856575548649,
0.22383780777454376,
0.13908123970031738,
0.11914780735969543,
0.2177918255329132,
-0.3337516188621521,
-0.16474395990371704,
0.06461764872074127,
0.28604257106781006,
0.07199681550264359,
0.22177231311798096,
-0.6987008452415466,
0.2945082187652588,
-0.3549473285675049,
0.2589455842971802,
0.13313190639019012,
0.2972767949104309,
0.08919025957584381,
-0.0356934554874897,
0.24967920780181885,
-0.03142840415239334,
0.29285022616386414,
-0.27535682916641235,
0.19246506690979004,
0.24880796670913696,
-0.189014732837677,
-0.25779440999031067,
-0.14766523241996765,
-0.06078704074025154,
0.09505224972963333,
0.07411161065101624,
0.22068583965301514,
-0.2511306405067444,
-0.20981168746948242,
0.19762824475765228,
0.16686704754829407,
-0.1227128654718399,
-0.05756979063153267,
-0.2543337941169739,
-0.3855946362018585,
-0.21997734904289246,
-0.100928895175457,
0.16314809024333954,
0.024085141718387604,
0.18364299833774567,
0.13391634821891785,
-0.28186801075935364,
0.022678721696138382,
0.21829833090305328,
0.22947286069393158,
0.40410375595092773,
-0.17795369029045105,
0.08621717989444733,
0.13543826341629028,
-0.25171715021133423,
0.2359965741634369,
0.6561264395713806,
-0.0692821741104126,
-0.19752496480941772,
0.23362872004508972,
-0.023096248507499695,
-0.11562154442071915,
0.17394636571407318,
-0.13965876400470734,
-0.09927236288785934,
-0.23163866996765137,
0.1636510044336319,
0.03458232432603836,
0.23794503509998322,
0.2754206955432892,
0.021460335701704025,
-0.44277095794677734,
-0.2652614116668701,
0.41335001587867737,
0.29957258701324463,
0.08543163537979126,
0.11069010198116302,
-0.17490942776203156,
-0.009616687893867493,
-0.23603996634483337,
0.05759643763303757,
1.0173084735870361,
0.05723479762673378,
0.21757188439369202,
0.02901143580675125,
0.06341300159692764,
0.05655230954289436,
-0.24853400886058807,
0.2046526074409485,
-0.12233211100101471,
-0.3878815174102783,
-0.1455356329679489,
-0.191526398062706,
0.014589037746191025,
-0.1603749394416809,
0.07106848061084747,
0.34864896535873413,
-0.05868183821439743,
0.21973320841789246,
0.1215183362364769,
0.05306719243526459,
-0.21795590221881866,
-0.17735616862773895,
-0.47430574893951416,
0.23524019122123718,
0.02482418715953827,
0.34449219703674316,
-0.11604281514883041,
-0.03816426917910576,
-0.18437375128269196,
-0.02782810665667057,
0.04439781606197357,
0.2960233688354492,
-0.04698393866419792,
0.1254892647266388,
0.014809973537921906,
-0.5127177238464355,
-0.17163601517677307,
-0.012647967785596848,
0.0856180265545845,
0.09798586368560791,
-0.1677839607000351,
0.35723114013671875,
0.06229420378804207,
-0.14300432801246643,
0.12598301470279694,
-0.12414808571338654,
-0.0142249446362257,
-0.1708565056324005,
-0.08811557292938232,
0.3363654613494873,
-0.05105843022465706,
-0.26989758014678955,
-0.3379272222518921,
0.10861343145370483,
-0.0641646608710289,
-0.03677362576127052,
-0.09968139231204987,
-0.18450266122817993,
0.2647097408771515,
-0.19556677341461182,
0.19588330388069153,
0.2199278026819229,
-0.05144316703081131,
0.07630270719528198,
-0.023475419729948044,
-0.2715892493724823,
-0.12406428158283234,
0.44348326325416565,
0.13636177778244019,
-0.1830367147922516,
0.15230122208595276,
0.13238762319087982,
-0.07473452389240265,
-0.16107691824436188,
-0.07924625277519226,
0.1676332652568817,
-0.5585588812828064,
0.059103094041347504,
-0.2398994117975235,
-0.08129346370697021,
0.06038317084312439,
0.15776664018630981,
0.2505897283554077,
-0.2583158612251282,
0.07150478661060333,
-0.5780913233757019,
-0.2697538435459137,
0.02959400787949562,
-0.05869603529572487,
0.18199145793914795,
0.004593871533870697,
0.013816188089549541,
0.01330086775124073,
-0.14909523725509644,
-0.39931413531303406,
0.23200133442878723,
-0.10903580486774445,
-0.10811740159988403,
0.08736185729503632,
-0.007823348045349121,
0.2728000283241272,
0.06367428600788116,
0.17237257957458496,
0.11194828152656555,
-0.4826047718524933,
-0.2258475124835968,
-0.006813123822212219,
0.09103213250637054,
-0.0355650894343853,
-0.14361825585365295,
-0.007247695699334145,
-0.09986244142055511,
-0.11021879315376282,
-0.008454985916614532,
0.11707717180252075,
0.20975109934806824,
0.04129684716463089,
-0.20901010930538177,
-0.11594612896442413,
0.011297013610601425,
-0.15041983127593994,
0.36458203196525574,
0.13421280682086945,
0.04996024817228317,
-0.0004251631908118725,
0.19253982603549957,
-0.135970801115036,
-0.012997284531593323,
-0.11214003711938858,
-0.08918149024248123,
0.06123669072985649,
0.2666781544685364,
0.39839494228363037,
-0.21411044895648956,
0.2144773006439209,
0.5816687941551208,
0.2518545687198639,
0.22961381077766418,
-0.2959103286266327,
0.16073745489120483,
0.14130595326423645,
0.32879528403282166,
-0.3148748576641083,
-0.27815893292427063,
0.41954442858695984,
0.269915908575058,
0.06077421084046364,
0.34578537940979004,
0.3644164502620697,
0.12672023475170135,
0.4909853935241699,
0.24108988046646118,
0.707395076751709,
-0.09043599665164948,
0.3090631365776062,
0.33320358395576477,
-0.031115008518099785,
0.08852265775203705,
0.5610821843147278,
0.26463648676872253,
0.10687844455242157,
0.5835366249084473,
-0.07246550172567368,
0.4266374707221985,
0.09149771928787231,
0.05570463091135025,
-0.14978772401809692,
-0.17353513836860657,
-0.2629806101322174,
0.09684612601995468,
0.12158308923244476,
0.15933126211166382,
-0.11357079446315765,
-0.10258731991052628,
-0.27673792839050293,
-0.07490841299295425,
-0.41282856464385986,
0.20288771390914917,
-0.157640278339386,
0.009831221774220467,
0.07022261619567871,
-0.2928047180175781,
-0.062226079404354095,
0.0822266936302185,
0.025967858731746674,
0.08877462893724442,
0.10943230241537094,
0.04198697209358215,
-0.1684214025735855,
-0.27362900972366333,
-0.15726366639137268,
0.24129748344421387,
0.08170926570892334,
-0.1552295833826065,
0.3693654239177704,
0.1513487547636032,
-0.10859179496765137,
-0.02057291567325592,
0.30774495005607605,
0.3604055643081665,
0.11557449400424957,
0.06116626411676407,
-0.05243546515703201,
0.09796054661273956,
-0.07908332347869873,
-0.15986375510692596,
0.12522611021995544,
0.05049273744225502,
0.30377817153930664,
0.18883942067623138,
0.2769694924354553,
-0.2973168194293976,
0.2524166405200958,
-0.2654283940792084,
0.1609305888414383,
-0.27562764286994934,
-0.13004988431930542,
-0.1435505449771881,
-0.08330705016851425,
-0.2492133378982544,
-0.10994132608175278,
-0.24493083357810974,
-0.016088474541902542,
0.2885900139808655,
-0.10560048371553421,
0.020326048135757446,
-0.409527987241745,
0.10320800542831421,
-0.02760959044098854,
0.21060922741889954,
0.4602035880088806,
-0.09421839565038681,
-0.11565908044576645,
-0.17806196212768555,
-0.9365276098251343,
0.30669790506362915,
-0.2836110293865204,
-0.20834442973136902,
0.162220299243927,
-0.11185652017593384,
-0.06829877942800522,
0.2574862241744995,
0.4689860939979553,
0.1569056212902069,
0.2140834927558899,
0.2086201012134552,
-0.3969551622867584,
-0.0938301682472229,
0.3109644949436188,
0.011094879359006882,
0.16616465151309967,
-0.2809453010559082,
-0.03256614878773689,
-0.1328878402709961,
0.14131969213485718,
-0.15115685760974884,
-0.09384859353303909,
-0.10223366320133209,
-0.07180764526128769,
0.7232590913772583,
0.06363554298877716,
0.04949747025966644,
0.006365515291690826,
-0.3130989968776703,
-0.37352436780929565,
-0.2301965206861496,
-0.18442626297473907,
-0.006504766643047333,
0.09046056866645813,
0.3327547311782837,
-0.22017766535282135,
-0.02831556275486946,
-0.4172605574131012,
0.189425528049469,
0.11888046562671661,
-0.029696283861994743,
-0.13132040202617645,
0.18387924134731293,
-0.3572979271411896,
0.1247301772236824,
0.3231869041919708,
0.20142284035682678,
0.04413817077875137,
0.24644999206066132,
-0.1630648672580719,
-0.391891747713089,
0.4560483396053314,
0.03839896619319916,
-0.27262255549430847,
-0.15722352266311646,
0.0500917062163353,
0.020419064909219742,
-0.19614925980567932,
-0.2693956196308136,
0.27298998832702637,
0.24591311812400818,
0.11814093589782715,
-0.12393109500408173,
0.1538916677236557,
-0.20613731443881989,
-0.019059978425502777,
0.03741654381155968,
0.49051883816719055,
0.026259105652570724,
-0.13666149973869324,
0.24945950508117676,
0.00278284028172493
] |
https://github.com/huggingface/datasets/issues/2691 | xtreme / pan-x cannot be downloaded | Reply from the author/maintainer:
> Will fix the issue and let you know during the weekend. | ## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 16 | xtreme / pan-x cannot be downloaded
## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
Reply from the author/maintainer:
> Will fix the issue and let you know during the weekend. | [
-0.35082054138183594,
-0.4881742000579834,
-0.1012573093175888,
0.2679370045661926,
0.24242718517780304,
0.07438788563013077,
-0.13321925699710846,
0.2452753633260727,
0.14426979422569275,
0.11871425062417984,
-0.24366484582424164,
0.2646329998970032,
0.046161897480487823,
0.04650153964757919,
0.191726952791214,
-0.3267594277858734,
0.044765446335077286,
0.12794221937656403,
0.011156454682350159,
-0.03764478117227554,
-0.1420016884803772,
0.16778264939785004,
-0.20663265883922577,
0.12029999494552612,
-0.22432026267051697,
0.10204838961362839,
0.07733603566884995,
0.1569075882434845,
-0.31002572178840637,
-0.458151638507843,
0.6455734968185425,
-0.06338159739971161,
0.26817724108695984,
0.6048036813735962,
-0.00010537995694903657,
0.021037667989730835,
0.26430925726890564,
-0.046451762318611145,
0.1647488921880722,
-0.43619900941848755,
-0.2859497666358948,
-0.35662585496902466,
-0.030167190358042717,
-0.22491440176963806,
-0.04071209579706192,
-0.22274444997310638,
-0.10895948112010956,
-0.11490187048912048,
0.25390470027923584,
0.2242107391357422,
0.29445481300354004,
0.3886256814002991,
0.15306782722473145,
-0.21500158309936523,
0.4348987340927124,
-0.07211032509803772,
-0.3141879141330719,
0.1084875762462616,
0.3806249797344208,
0.18384164571762085,
0.4640986919403076,
0.2748146057128906,
-0.041343361139297485,
0.05878453701734543,
0.15891507267951965,
0.0977327823638916,
-0.0495261549949646,
-0.46378007531166077,
0.038880493491888046,
0.32811999320983887,
0.3879864513874054,
-0.2812049388885498,
-0.3449711501598358,
-0.0700664222240448,
0.06340256333351135,
-0.37152954936027527,
0.2863733470439911,
0.18026302754878998,
-0.013923314400017262,
0.04063129425048828,
0.018126796931028366,
-0.0481523796916008,
-0.05538250133395195,
0.11070146411657333,
-0.0341184176504612,
0.2764595150947571,
-0.22529928386211395,
-0.033171623945236206,
0.10915821045637131,
-0.037476882338523865,
0.23858745396137238,
0.08675222098827362,
-0.05558494105935097,
0.1689654290676117,
-0.2702016234397888,
0.0684051588177681,
0.007478371262550354,
-0.0838782861828804,
0.3481558561325073,
-0.07770582288503647,
-0.19825351238250732,
0.0007953215390443802,
-0.1292143613100052,
0.062253762036561966,
0.09460674226284027,
0.14081990718841553,
0.08070077002048492,
0.032402679324150085,
0.20747146010398865,
0.16733267903327942,
0.08492261171340942,
-0.0790967345237732,
-0.1301610916852951,
-0.035224489867687225,
0.15702427923679352,
-0.041583068668842316,
0.37306880950927734,
-0.39321762323379517,
-0.2654044032096863,
0.05481056869029999,
0.08347039669752121,
0.06911274045705795,
0.07208161056041718,
0.2562321722507477,
-0.10466843098402023,
0.3372240662574768,
-0.14892223477363586,
0.4322536587715149,
-0.2205554097890854,
0.03844643756747246,
-0.20848307013511658,
0.301918625831604,
-0.2957865595817566,
-0.25600212812423706,
0.20965860784053802,
-0.150461807847023,
0.39131203293800354,
0.07291930168867111,
0.38507968187332153,
-0.19971537590026855,
0.06149205565452576,
0.008467808365821838,
-0.309230238199234,
0.38157203793525696,
0.19174237549304962,
0.18782004714012146,
-0.12229977548122406,
0.15635891258716583,
-0.15462440252304077,
0.09938067942857742,
-0.5259683132171631,
-0.06680060923099518,
-0.04676777869462967,
0.26076409220695496,
-0.12343694269657135,
-0.06805749237537384,
-0.5894213318824768,
-0.14135007560253143,
-0.055317558348178864,
0.18391598761081696,
0.1050051599740982,
-0.23989079892635345,
0.11463628709316254,
-0.20363549888134003,
0.23717480897903442,
0.18735778331756592,
-0.21377307176589966,
-0.02684938535094261,
-0.018271712586283684,
-0.3518373668193817,
-0.09156105667352676,
0.1520218402147293,
-0.1924155354499817,
-0.0190139040350914,
-0.2748943567276001,
0.3359985947608948,
0.47564882040023804,
-0.559196949005127,
-0.5651317238807678,
-0.09633185714483261,
-0.21804390847682953,
0.0007038228213787079,
-0.020007014274597168,
0.09620541334152222,
-0.11177143454551697,
-0.0004896444734185934,
0.09948714077472687,
0.24887318909168243,
0.06312180310487747,
-0.02262645587325096,
-0.17686818540096283,
-0.22660057246685028,
-0.3862451910972595,
0.3425413966178894,
0.25187948346138,
-0.09440895169973373,
0.06631571799516678,
-0.00023461412638425827,
0.15955288708209991,
-0.08313179016113281,
-0.04865805804729462,
0.3730817437171936,
0.22867219150066376,
0.04472552239894867,
-0.10366950184106827,
-0.3814467787742615,
-0.35567766427993774,
0.2895233929157257,
-0.09283220767974854,
-0.15574198961257935,
0.04682748019695282,
-0.15422895550727844,
-0.4698527455329895,
0.20622731745243073,
-0.25095152854919434,
-0.08038300275802612,
0.1326969861984253,
0.08986784517765045,
0.20556432008743286,
0.03268938884139061,
-0.23760713636875153,
0.07682729512453079,
0.052643805742263794,
0.11502699553966522,
-0.3940128982067108,
0.23547594249248505,
-0.0872812271118164,
-0.16352057456970215,
0.0684080570936203,
0.0649869367480278,
0.2122332751750946,
-0.23789186775684357,
-0.1321239471435547,
0.31392568349838257,
-0.09635426104068756,
0.14059345424175262,
0.24120885133743286,
0.03670516610145569,
0.06820037215948105,
-0.6196573376655579,
0.22082404792308807,
0.07193531841039658,
-0.010689252987504005,
0.13093611598014832,
-0.08789842575788498,
0.3659493923187256,
0.0959126353263855,
-0.11232887953519821,
-0.07867550849914551,
0.09644192457199097,
0.3741544187068939,
-0.18692271411418915,
0.12587854266166687,
-0.07702360302209854,
0.35278627276420593,
-0.08772282302379608,
0.13059943914413452,
-0.218817338347435,
-0.3352217674255371,
0.09510163217782974,
0.24392549693584442,
-0.08090910315513611,
0.20463985204696655,
0.08712556958198547,
-0.1089676097035408,
0.16965904831886292,
-0.08366436511278152,
0.05866094306111336,
0.4200649857521057,
0.19100606441497803,
0.022282131016254425,
0.10966986417770386,
-0.012607584707438946,
-0.11495545506477356,
0.05228555202484131,
0.06968078017234802,
-0.2818589210510254,
0.054543811827898026,
0.11045922338962555,
0.0407710075378418,
-0.307677298784256,
-0.13452506065368652,
-0.1521245390176773,
0.11308929324150085,
-0.11949971318244934,
-0.11159642040729523,
-0.17416787147521973,
-0.09300071001052856,
-0.006721756421029568,
-0.04418420046567917,
-0.22301411628723145,
-0.18070447444915771,
-0.0032341033220291138,
0.25088122487068176,
0.30063655972480774,
0.18570546805858612,
-0.4258008599281311,
-0.17678092420101166,
0.0492321252822876,
-0.3311210870742798,
-0.24144361913204193,
0.2739623486995697,
-0.06484656035900116,
0.1281392127275467,
0.0012626321986317635,
0.1026066467165947,
0.2570173144340515,
-0.3908739686012268,
0.28349244594573975,
-0.37801435589790344,
-0.212953120470047,
0.08740367740392685,
-0.260873019695282,
0.39516931772232056,
0.16707348823547363,
0.06188349425792694,
-0.10022654384374619,
0.23853908479213715,
0.3719346225261688,
-0.48952516913414,
-0.02499682642519474,
0.031134676188230515,
0.011685325764119625,
-0.20288978517055511,
0.001299239695072174,
-0.22913166880607605,
-0.3406861126422882,
-0.33328109979629517,
0.02517535910010338,
0.16010184586048126,
0.05426235869526863,
-0.032099656760692596,
0.08464280515909195,
0.01278048288077116,
-0.15032579004764557,
-0.12153130769729614,
-0.24920998513698578,
-0.6595410704612732,
0.4708841145038605,
-0.2177615761756897,
-0.442634254693985,
0.28589025139808655,
0.06933797895908356,
0.27427348494529724,
0.07972180098295212,
-0.5939112901687622,
-0.3438005745410919,
-0.20705026388168335,
0.42230796813964844,
0.048591021448373795,
0.21060766279697418,
0.19162717461585999,
-0.2807764708995819,
-0.0558229461312294,
-0.1982802152633667,
-0.22542396187782288,
-0.3088792562484741,
0.03966601565480232,
0.24598395824432373,
-0.017733342945575714,
0.2006804347038269,
-0.14119680225849152,
0.45592522621154785,
0.15665318071842194,
0.225050151348114,
0.5607686638832092,
-0.0784538984298706,
0.2969379425048828,
-0.17818373441696167,
-0.3331461548805237,
-0.07799763232469559,
0.13338570296764374,
0.13934564590454102,
0.0049038901925086975,
0.26217740774154663,
0.0415850467979908,
-0.27196815609931946,
-0.06843174993991852,
-0.008797109127044678,
-0.07614664733409882,
-0.05517785996198654,
0.19337618350982666,
0.07456963509321213,
0.01789303869009018,
0.2722100019454956,
-0.16370940208435059,
-0.10977625846862793,
0.07795299589633942,
0.3760087490081787,
0.06090926006436348,
0.254228413105011,
-0.6363359689712524,
0.1994328796863556,
-0.42255571484565735,
0.2633746266365051,
0.02293580211699009,
0.30328497290611267,
0.02714502438902855,
0.12756139039993286,
0.22689278423786163,
0.01739589497447014,
0.37386590242385864,
-0.21157945692539215,
0.23560389876365662,
0.1690296232700348,
-0.15637019276618958,
-0.30377644300460815,
-0.12200844287872314,
-0.15560555458068848,
0.08489814400672913,
0.184972882270813,
0.42610421776771545,
-0.292320191860199,
-0.2029687613248825,
0.24188455939292908,
0.1523057520389557,
0.03013904020190239,
-0.13695284724235535,
-0.30142292380332947,
-0.556659996509552,
-0.19767577946186066,
-0.06412545591592789,
0.2056795209646225,
0.06415059417486191,
0.18856358528137207,
-0.02878553979098797,
-0.234207883477211,
-0.0634591355919838,
0.18248456716537476,
0.2650253474712372,
0.3496653139591217,
-0.15817342698574066,
0.20699697732925415,
0.08872672915458679,
-0.34613272547721863,
0.2118750810623169,
0.671253502368927,
-0.03439528867602348,
-0.4521390199661255,
0.09676989912986755,
-0.03727170079946518,
-0.004940688610076904,
0.062956802546978,
-0.17537696659564972,
-0.05804190784692764,
-0.22229383885860443,
0.1522693932056427,
0.056397322565317154,
0.24177542328834534,
0.3856702744960785,
0.07680939882993698,
-0.4572801887989044,
-0.2930099666118622,
0.5171844959259033,
0.27595922350883484,
0.11061045527458191,
0.22640827298164368,
-0.07557018101215363,
0.005940670147538185,
-0.1686212420463562,
-0.03679536283016205,
0.8605219125747681,
-0.020094282925128937,
-0.00904775783419609,
0.2049696147441864,
0.023419685661792755,
0.1926705241203308,
-0.10321472585201263,
0.08583097159862518,
-0.1676979809999466,
-0.43185797333717346,
-0.12421521544456482,
-0.18551994860172272,
0.14400020241737366,
-0.058412984013557434,
-0.011207491159439087,
0.2490837424993515,
-0.017395123839378357,
0.10418075323104858,
0.07067122310400009,
0.07292914390563965,
-0.1568388193845749,
-0.18701428174972534,
-0.592032790184021,
0.22917520999908447,
-0.01891867071390152,
0.3568812608718872,
-0.16453948616981506,
-0.0627131536602974,
-0.1835574358701706,
-0.1184021458029747,
-0.005898244678974152,
0.33216729760169983,
-0.016996415331959724,
0.06669770926237106,
0.03307176008820534,
-0.5403260588645935,
-0.04950501024723053,
0.06615288555622101,
0.06495406478643417,
0.1241135448217392,
-0.23675286769866943,
0.3196365535259247,
0.005638100206851959,
-0.24709342420101166,
0.11954484134912491,
-0.1384114772081375,
-0.18627367913722992,
-0.1169377788901329,
-0.18020856380462646,
0.19751742482185364,
-0.047387734055519104,
-0.21741387248039246,
-0.22882312536239624,
0.03654869273304939,
-0.10863001644611359,
-0.11266136914491653,
-0.14594772458076477,
-0.2184642255306244,
0.27612432837486267,
-0.22774921357631683,
0.18006640672683716,
0.24619747698307037,
-0.014883715659379959,
0.11215263605117798,
0.08978964388370514,
-0.3175097107887268,
-0.18006575107574463,
0.34807613492012024,
-0.03944491595029831,
-0.12059177458286285,
0.12185423821210861,
0.19297249615192413,
-0.03525703772902489,
-0.19409754872322083,
0.046047143638134,
0.20119409263134003,
-0.6195080280303955,
0.020856188610196114,
-0.13739901781082153,
0.014248013496398926,
-0.05306563153862953,
0.27016088366508484,
0.24818187952041626,
-0.354440838098526,
0.24667008221149445,
-0.5972569584846497,
-0.20119978487491608,
0.14331290125846863,
-0.012975011020898819,
0.2136298418045044,
0.10110964626073837,
0.0865783542394638,
0.11632052063941956,
-0.2084699422121048,
-0.3718104064464569,
0.14842723309993744,
-0.08513333648443222,
-0.09411624819040298,
0.14082114398479462,
0.09268444031476974,
0.28205904364585876,
0.03647872060537338,
0.19129246473312378,
0.09035511314868927,
-0.37323829531669617,
-0.2340143620967865,
-0.03996821120381355,
0.07093534618616104,
-0.026769254356622696,
-0.15225976705551147,
0.0009427308104932308,
-0.06217917427420616,
-0.20293386280536652,
-0.04877545312047005,
0.1483900398015976,
0.1990872323513031,
0.047179028391838074,
-0.11445365846157074,
0.008383739739656448,
0.03039810061454773,
-0.23314453661441803,
0.2854089140892029,
0.1517047882080078,
0.0903530865907669,
-0.10036634653806686,
0.14426106214523315,
-0.05904101952910423,
-0.04323967173695564,
-0.21947482228279114,
-0.10265729576349258,
0.1456826627254486,
0.28541457653045654,
0.25018614530563354,
-0.19645090401172638,
0.312825471162796,
0.5136573314666748,
0.26909273862838745,
0.3190072774887085,
-0.2770460247993469,
0.21854795515537262,
0.15709400177001953,
0.3223167061805725,
-0.34028351306915283,
-0.16490155458450317,
0.37434738874435425,
0.3258279860019684,
0.028295841068029404,
0.3628848195075989,
0.2453300952911377,
0.16051679849624634,
0.33009451627731323,
0.186207115650177,
0.6517945528030396,
0.048082880675792694,
0.33175837993621826,
0.49079108238220215,
-0.009580366313457489,
0.06816235184669495,
0.46288228034973145,
0.25847774744033813,
0.06249347701668739,
0.5506415963172913,
-0.12201271206140518,
0.38237959146499634,
0.010941864922642708,
0.1227223128080368,
-0.14260250329971313,
-0.23840013146400452,
-0.29245275259017944,
-0.014076724648475647,
0.07631578296422958,
0.04642745107412338,
-0.051743775606155396,
0.10193650424480438,
-0.3627051115036011,
-0.07678493112325668,
-0.40855732560157776,
0.1955699920654297,
-0.1277138888835907,
0.0611221082508564,
0.08159465342760086,
-0.1939544975757599,
-0.024851616472005844,
0.00037046894431114197,
-0.039614129811525345,
-0.018350690603256226,
0.2154417335987091,
0.003796093165874481,
-0.18776138126850128,
-0.29623231291770935,
0.007255690172314644,
0.34063345193862915,
-0.02161838859319687,
-0.11001451313495636,
0.38683751225471497,
0.07007738202810287,
-0.09094882011413574,
-0.020203612744808197,
0.3841654062271118,
0.3209083676338196,
0.18812347948551178,
0.10014320909976959,
-0.06892664730548859,
0.10084880888462067,
-0.05254613608121872,
-0.0626370906829834,
0.1833418756723404,
0.01944071054458618,
0.40598607063293457,
0.219933420419693,
0.2920584976673126,
-0.26019206643104553,
0.1627615988254547,
-0.17336158454418182,
0.12740445137023926,
-0.2675950825214386,
0.0019143223762512207,
-0.32403984665870667,
-0.11664073169231415,
-0.21535517275333405,
-0.15643087029457092,
-0.18796318769454956,
0.03998148813843727,
0.2971614897251129,
-0.008156757801771164,
0.044036779552698135,
-0.3504025936126709,
0.09831307828426361,
-0.1131950169801712,
0.191817045211792,
0.39567676186561584,
0.022183384746313095,
-0.23519346117973328,
-0.11023226380348206,
-0.8148161768913269,
0.2829459607601166,
-0.2405502200126648,
-0.35485556721687317,
0.2154843658208847,
-0.16331590712070465,
-0.10390379279851913,
0.32334601879119873,
0.40293246507644653,
0.15406061708927155,
0.2269129604101181,
0.24292707443237305,
-0.3643997311592102,
-0.10511617362499237,
0.1346459686756134,
0.06780551373958588,
0.18774399161338806,
-0.27484583854675293,
0.021661169826984406,
-0.07156646251678467,
0.07031816989183426,
-0.217780202627182,
-0.11807791888713837,
-0.12925566732883453,
-0.23973584175109863,
0.7350842356681824,
0.020961057394742966,
0.16433314979076385,
-0.06894750893115997,
-0.15079261362552643,
-0.33297109603881836,
-0.3756679594516754,
-0.19210126996040344,
0.1744668185710907,
0.0068289972841739655,
0.24602293968200684,
-0.14615437388420105,
0.015409404411911964,
-0.387299120426178,
0.17980414628982544,
0.07976312935352325,
-0.05879925191402435,
-0.10461743921041489,
0.18209974467754364,
-0.3372634947299957,
0.058262165635824203,
0.2378583401441574,
0.16923242807388306,
-0.013563081622123718,
0.2319486290216446,
-0.1146036684513092,
-0.44294023513793945,
0.44286295771598816,
0.018866244703531265,
-0.27325233817100525,
-0.07015113532543182,
0.06074817106127739,
0.078819140791893,
-0.285561203956604,
-0.3377627730369568,
0.33958420157432556,
0.2811836004257202,
0.11688084900379181,
-0.09601078927516937,
0.16937048733234406,
-0.19903941452503204,
-0.033439747989177704,
0.11445990204811096,
0.5657110214233398,
-0.0420866385102272,
-0.1423904001712799,
0.40526607632637024,
-0.009842414408922195
] |
https://github.com/huggingface/datasets/issues/2691 | xtreme / pan-x cannot be downloaded | The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset. | ## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 31 | xtreme / pan-x cannot be downloaded
## Describe the bug
Dataset xtreme / pan-x cannot be loaded
Seems related to https://github.com/huggingface/datasets/pull/2326
## Steps to reproduce the bug
```python
dataset = load_dataset("xtreme", "PAN-X.fr")
```
## Expected results
Load the dataset
## Actual results
```
FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1
```
## Environment info
- `datasets` version: 1.9.0
- Platform: macOS-11.4-x86_64-i386-64bit
- Python version: 3.8.11
- PyArrow version: 4.0.1
The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset. | [
-0.27593696117401123,
-0.34803736209869385,
-0.059366580098867416,
0.3470790386199951,
0.10864152014255524,
0.05548512190580368,
0.021438341587781906,
0.21326704323291779,
0.3107883334159851,
0.06811362504959106,
-0.23722703754901886,
0.21728748083114624,
-0.07426756620407104,
0.18293972313404083,
0.2306467741727829,
-0.16709934175014496,
0.01820729672908783,
0.03839598596096039,
0.10407426953315735,
-0.10596661269664764,
-0.006804943084716797,
0.06880595535039902,
-0.23525288701057434,
0.034151479601860046,
-0.2067684382200241,
-0.028732607141137123,
0.09267725050449371,
0.3318830728530884,
-0.3699330687522888,
-0.37519487738609314,
0.6139097809791565,
-0.08424253761768341,
0.18517577648162842,
0.5841585993766785,
-0.0001120174492825754,
0.06529627740383148,
0.1374397575855255,
-0.10217434912919998,
-0.0775005966424942,
-0.5789527297019958,
-0.34726494550704956,
-0.4007541239261627,
-0.0861782431602478,
-0.1636049747467041,
-0.05116693302989006,
-0.11172828078269958,
-0.01501999981701374,
-0.17295166850090027,
0.5082501173019409,
0.3695925176143646,
0.2240835428237915,
0.5469493865966797,
0.17208069562911987,
-0.1378317028284073,
0.36112433671951294,
0.1562042534351349,
-0.2377883791923523,
0.4367510676383972,
0.32167741656303406,
0.11576344072818756,
0.41128823161125183,
0.1775459498167038,
-0.09967596083879471,
-0.1689162701368332,
0.1308136284351349,
0.013355851173400879,
-0.22667059302330017,
-0.4470199942588806,
0.07840248942375183,
0.2077764868736267,
0.3536137342453003,
-0.13388526439666748,
-0.4127599596977234,
-0.36149874329566956,
0.11086659133434296,
-0.1548256129026413,
0.2727958858013153,
0.1956167221069336,
-0.03594549372792244,
0.14487800002098083,
0.059941597282886505,
-0.10143236070871353,
-0.012918736785650253,
0.05937885865569115,
0.01730930060148239,
0.3373425006866455,
-0.2577696144580841,
0.014400769025087357,
0.10922347009181976,
-0.07515234500169754,
0.39787349104881287,
0.05320829525589943,
-0.04792875424027443,
0.12322242558002472,
-0.1411842703819275,
0.0053741708397865295,
-0.05404462665319443,
0.013752993196249008,
0.24823972582817078,
0.01940232515335083,
-0.0785556435585022,
-0.0808856338262558,
-0.20069092512130737,
0.024139314889907837,
0.18486185371875763,
0.3048696517944336,
0.1491406410932541,
-0.1033322885632515,
0.17457829415798187,
0.33127498626708984,
0.19600333273410797,
-0.04345901310443878,
-0.2963784337043762,
0.04456662759184837,
-0.07223265618085861,
-0.1512656807899475,
0.5243732929229736,
-0.2715310752391815,
-0.3970921039581299,
-0.019527189433574677,
0.020042479038238525,
-0.08854521065950394,
0.13400833308696747,
0.2182939350605011,
-0.10686463862657547,
0.25497913360595703,
-0.07606875896453857,
0.25548529624938965,
-0.16305051743984222,
-0.15157736837863922,
-0.1914503276348114,
0.4051414430141449,
-0.23432593047618866,
-0.16036558151245117,
0.1848151981830597,
-0.24350464344024658,
0.41868525743484497,
0.12886501848697662,
0.3946617841720581,
-0.1500294804573059,
0.10271073132753372,
0.09227600693702698,
-0.1681753396987915,
0.34510013461112976,
0.15615294873714447,
0.1269649863243103,
-0.014146532863378525,
-0.23485501110553741,
-0.11575277894735336,
0.057150889188051224,
-0.5933466553688049,
-0.14030557870864868,
-0.199374720454216,
0.16793136298656464,
-0.22497250139713287,
-0.13070142269134521,
-0.4889054000377655,
-0.1503002792596817,
-0.1152253970503807,
0.041369643062353134,
0.1745772659778595,
-0.09398330748081207,
0.22784855961799622,
-0.12942436337471008,
0.18803821504116058,
0.4361650347709656,
-0.23277364671230316,
0.03340941667556763,
-0.17923793196678162,
-0.09939448535442352,
-0.07308671623468399,
0.09469923377037048,
-0.2904943823814392,
-0.052045054733753204,
-0.44833898544311523,
0.19978536665439606,
0.28936928510665894,
-0.7500989437103271,
-0.5598575472831726,
-0.08986087888479233,
-0.4706421494483948,
0.23300693929195404,
0.004725851118564606,
0.09293917566537857,
-0.025756925344467163,
-0.1167188286781311,
0.18439479172229767,
0.09555143862962723,
0.16993343830108643,
-0.12243139743804932,
-0.2045544981956482,
-0.24447806179523468,
-0.26241040229797363,
0.2842632830142975,
0.0622711218893528,
0.06812125444412231,
0.09109368175268173,
0.28272151947021484,
0.20982223749160767,
-0.022855814546346664,
-0.09339409321546555,
0.3326900005340576,
0.29237237572669983,
0.023374583572149277,
-0.2868403196334839,
-0.2477785348892212,
-0.4232821762561798,
0.33093753457069397,
0.0280761681497097,
-0.10510261356830597,
-0.0007369667291641235,
-0.22657698392868042,
-0.5678088665008545,
0.16133253276348114,
-0.18888917565345764,
-0.17854410409927368,
0.06777346879243851,
0.12396897375583649,
0.1513994038105011,
0.049658555537462234,
-0.24743303656578064,
0.22337909042835236,
0.0188435185700655,
0.15436071157455444,
-0.5641945004463196,
0.2311493307352066,
-0.11551182717084885,
-0.06040915846824646,
0.03526919335126877,
0.04663900285959244,
0.2501817047595978,
-0.20047800242900848,
-0.05564654618501663,
0.38031238317489624,
-0.1920132040977478,
0.015970095992088318,
0.2529330849647522,
0.05224211513996124,
0.19395554065704346,
-0.49884307384490967,
0.24358868598937988,
0.05465954542160034,
0.023515775799751282,
0.16728392243385315,
-0.22052893042564392,
0.44482874870300293,
0.030579715967178345,
-0.23731568455696106,
-0.14011994004249573,
0.126251220703125,
0.22308287024497986,
-0.13060595095157623,
-0.027224790304899216,
-0.147364541888237,
0.2565689980983734,
-0.29585567116737366,
0.44287073612213135,
-0.19185838103294373,
-0.3940778970718384,
0.09244315326213837,
0.25510454177856445,
-0.09547127783298492,
0.16345298290252686,
0.10629791766405106,
0.0065809860825538635,
0.07547906786203384,
0.0918332114815712,
0.17481574416160583,
0.4484557509422302,
0.12878422439098358,
0.04552323371171951,
0.12200765311717987,
0.11265309154987335,
-0.18755961954593658,
0.1822134405374527,
-0.05994763970375061,
-0.41532230377197266,
0.05256934091448784,
0.2299787849187851,
0.07144694775342941,
-0.35452812910079956,
-0.2406417280435562,
-0.1877218335866928,
0.030026771128177643,
-0.24943575263023376,
-0.017914030700922012,
-0.12863366305828094,
-0.26128897070884705,
-0.028374269604682922,
-0.005691990256309509,
-0.39947324991226196,
-0.1412363499403,
-0.14873149991035461,
0.2708367705345154,
0.24932867288589478,
0.0064038438722491264,
-0.35846561193466187,
0.11851979792118073,
-0.007516076788306236,
-0.13675664365291595,
-0.31219857931137085,
0.3624313175678253,
-0.028594307601451874,
0.04847732558846474,
0.11055401712656021,
-0.029361087828874588,
0.2358981966972351,
-0.4157184362411499,
0.10523279011249542,
-0.3573944866657257,
-0.3269349932670593,
0.045169904828071594,
-0.2162962406873703,
0.4289376437664032,
0.1453780084848404,
0.22179217636585236,
-0.0008090659976005554,
0.05298522114753723,
0.20600754022598267,
-0.21674779057502747,
-0.029997866600751877,
-0.2100406289100647,
0.08075963705778122,
-0.14605166018009186,
0.006058875471353531,
-0.02652832120656967,
-0.40589940547943115,
-0.37755683064460754,
0.20127487182617188,
0.14822931587696075,
-0.03480304032564163,
0.20053480565547943,
0.009733048267662525,
0.11228542774915695,
-0.1734449565410614,
-0.14913173019886017,
-0.1994178593158722,
-0.8692611455917358,
0.4091036915779114,
-0.20428478717803955,
-0.39791083335876465,
0.2263699769973755,
0.19632892310619354,
0.17211943864822388,
-0.1776607483625412,
-0.5201550722122192,
-0.419613778591156,
-0.221833273768425,
0.4353307783603668,
-0.0021961890161037445,
0.13793379068374634,
0.2515823543071747,
-0.28240352869033813,
0.007737034931778908,
-0.13846467435359955,
-0.2788476049900055,
-0.2825561761856079,
0.22684574127197266,
0.1722356677055359,
-0.001518208533525467,
0.022435754537582397,
-0.049885667860507965,
0.37948471307754517,
0.13088850677013397,
0.1611362248659134,
0.5610559582710266,
-0.07442869246006012,
0.43978169560432434,
-0.17662987112998962,
-0.4628419876098633,
-0.1886909306049347,
0.09637764096260071,
0.03230350464582443,
-0.05443592369556427,
0.22658401727676392,
0.2790607511997223,
-0.35622638463974,
-0.19950243830680847,
-0.07672344148159027,
-0.06453633308410645,
-0.1105736643075943,
0.009363554418087006,
-0.00444599986076355,
0.07964709401130676,
0.25703850388526917,
-0.18332475423812866,
-0.15097260475158691,
-0.02365303784608841,
0.4484080672264099,
0.2238720953464508,
0.24059569835662842,
-0.5096654295921326,
0.2740636169910431,
-0.37806862592697144,
0.1887895166873932,
-0.03187265247106552,
0.334870845079422,
-0.14445830881595612,
0.08457465469837189,
0.22955986857414246,
0.01338263601064682,
0.4435727596282959,
-0.07757122814655304,
0.3544701337814331,
0.07104349136352539,
-0.12260056287050247,
-0.2085137814283371,
-0.10542066395282745,
-0.04352659732103348,
0.07709664106369019,
0.19538189470767975,
0.5760684013366699,
-0.29339951276779175,
-0.1664155125617981,
0.24041223526000977,
0.129815936088562,
0.03648793324828148,
0.037740785628557205,
-0.22540472447872162,
-0.6075825095176697,
-0.15736982226371765,
-0.044491998851299286,
0.2579655051231384,
-0.02996484749019146,
0.10444378107786179,
0.11273318529129028,
-0.15937137603759766,
-0.01898033358156681,
0.18711544573307037,
0.15398655831813812,
0.25594496726989746,
-0.024743471294641495,
0.2165156900882721,
0.19080586731433868,
-0.1383114606142044,
0.26497283577919006,
0.834339439868927,
0.010611312463879585,
-0.3429010510444641,
0.04274997115135193,
0.06391261518001556,
0.0057262033224105835,
0.3877794146537781,
-0.12119756639003754,
-0.08534439653158188,
0.00481819361448288,
0.1961672604084015,
-0.023345891386270523,
0.23013733327388763,
0.3775057792663574,
-0.014942743815481663,
-0.4949692487716675,
-0.33805203437805176,
0.5363488793373108,
0.13028237223625183,
0.0742519348859787,
0.19043171405792236,
0.13293001055717468,
0.005733305122703314,
-0.10689548403024673,
-0.09717219322919846,
1.171979546546936,
0.05622550845146179,
0.24920915067195892,
0.2455011010169983,
-0.0852784812450409,
0.25620901584625244,
-0.08846011757850647,
-0.016800031065940857,
-0.10136844217777252,
-0.4164632558822632,
-0.14298208057880402,
-0.11638616770505905,
0.14113926887512207,
-0.09018309414386749,
0.0010767057538032532,
0.13745997846126556,
-0.1716614067554474,
0.17395921051502228,
0.11532199382781982,
0.1687586009502411,
-0.24119791388511658,
-0.06120408698916435,
-0.4733584225177765,
0.14260992407798767,
-0.0069745928049087524,
0.3821437954902649,
-0.20109689235687256,
-0.2299172729253769,
-0.20837537944316864,
-0.11662173271179199,
-0.06601245701313019,
0.2327333688735962,
0.1083543598651886,
-0.012381106615066528,
-0.0692911446094513,
-0.5590741038322449,
0.08887515962123871,
0.07135267555713654,
0.0060642436146736145,
0.1797235906124115,
-0.32322388887405396,
0.3109990358352661,
-0.06928455084562302,
-0.20359955728054047,
0.1290311962366104,
-0.13624484837055206,
-0.11403121054172516,
-0.03521153703331947,
-0.12585683166980743,
0.09298431873321533,
-0.14366140961647034,
-0.13943177461624146,
-0.38568705320358276,
0.25108420848846436,
-0.2772890329360962,
-0.22686128318309784,
-0.1644974797964096,
-0.18353694677352905,
0.35954320430755615,
-0.2530410885810852,
0.10408756136894226,
0.14854572713375092,
0.10786580294370651,
-0.2641802132129669,
0.15316320955753326,
-0.2987476587295532,
-0.15215741097927094,
0.5257739424705505,
-0.1988992989063263,
0.03345470130443573,
0.17151010036468506,
0.013075996190309525,
0.02041688933968544,
-0.1379290074110031,
0.14128223061561584,
0.061683978885412216,
-0.6248799562454224,
0.11882969737052917,
-0.2430005967617035,
0.022716328501701355,
-0.22952255606651306,
0.346809446811676,
0.3823339343070984,
-0.26651450991630554,
0.28666821122169495,
-0.5378332138061523,
-0.07704322785139084,
0.12761428952217102,
0.08791045844554901,
0.09761757403612137,
0.09595964103937149,
0.12194155156612396,
0.10616646707057953,
-0.15980836749076843,
-0.31321728229522705,
0.1700587272644043,
-0.12199509888887405,
-0.18988215923309326,
0.34546154737472534,
0.043237488716840744,
0.375203937292099,
-0.016101311892271042,
0.14678147435188293,
0.053329821676015854,
-0.2933900058269501,
-0.1397867500782013,
-0.050471045076847076,
0.14103519916534424,
0.052102506160736084,
-0.2471044510602951,
0.05494174361228943,
-0.1684378683567047,
-0.16050292551517487,
0.013201534748077393,
0.03670137748122215,
0.23606404662132263,
0.11743602901697159,
-0.14498981833457947,
-0.16024360060691833,
0.19506800174713135,
-0.2450072169303894,
0.3418947160243988,
0.2247638702392578,
0.03405255079269409,
-0.10053039342164993,
0.17875684797763824,
-0.12208464741706848,
0.018327683210372925,
-0.26118114590644836,
-0.08566183596849442,
0.07760300487279892,
0.3909323215484619,
0.3376341760158539,
-0.13468337059020996,
0.23933181166648865,
0.3750912845134735,
0.26699525117874146,
0.3125606179237366,
-0.26610466837882996,
0.17914678156375885,
0.15097996592521667,
0.20225104689598083,
-0.3251587450504303,
-0.18439915776252747,
0.28958240151405334,
0.28453731536865234,
0.00792798399925232,
0.2907941937446594,
0.2425779402256012,
0.14553150534629822,
0.010319650173187256,
0.13365012407302856,
0.808954119682312,
0.279360830783844,
0.36729830503463745,
0.5459696054458618,
-0.11140847951173782,
-0.023929689079523087,
0.41426610946655273,
0.2047232985496521,
0.18806086480617523,
0.46599334478378296,
-0.19042161107063293,
0.3810589909553528,
0.003854837268590927,
0.17149436473846436,
-0.13262870907783508,
-0.32778042554855347,
0.0001667700707912445,
0.021436303853988647,
0.13995370268821716,
0.03847808390855789,
-0.015021950006484985,
0.13346095383167267,
-0.4537135362625122,
-0.05773898959159851,
-0.26502808928489685,
0.2728067636489868,
-0.1544533669948578,
0.10550080239772797,
0.07804743200540543,
-0.3082312345504761,
-0.04167185723781586,
0.029684972018003464,
-0.08328719437122345,
-0.1457926630973816,
0.21159541606903076,
0.03862740099430084,
-0.13418929278850555,
-0.20178566873073578,
-0.11250462383031845,
0.34623831510543823,
0.0870194286108017,
-0.19626806676387787,
0.42368587851524353,
0.2718045711517334,
-0.15687255561351776,
0.049809474498033524,
0.35234764218330383,
0.4650506377220154,
0.0559387132525444,
0.2656495273113251,
0.06472166627645493,
0.06830358505249023,
-0.10310537368059158,
-0.08045746386051178,
0.23124951124191284,
0.03518398478627205,
0.43707236647605896,
0.23584066331386566,
0.2388891577720642,
-0.23836128413677216,
0.24023471772670746,
-0.20121125876903534,
0.01603674329817295,
-0.44596946239471436,
-0.004108995199203491,
-0.3592950701713562,
-0.19207623600959778,
-0.2463410496711731,
-0.18671414256095886,
-0.16153720021247864,
0.10502616316080093,
0.1937413364648819,
0.05228922888636589,
0.07899460941553116,
-0.3036748170852661,
0.06306092441082001,
-0.005830654874444008,
0.21796268224716187,
0.4620444178581238,
-0.08861703425645828,
-0.08662552386522293,
-0.17590129375457764,
-0.8899641036987305,
0.2022518515586853,
-0.17494042217731476,
-0.3776005208492279,
0.10363397002220154,
-0.2651176452636719,
-0.05219053477048874,
0.1655716449022293,
0.22131530940532684,
0.2603113055229187,
0.14729580283164978,
0.12785860896110535,
-0.23244066536426544,
-0.08360888063907623,
0.18633437156677246,
0.13791720569133759,
0.1272398680448532,
-0.15802079439163208,
0.15139959752559662,
0.07856939733028412,
0.01999840885400772,
-0.058415696024894714,
-0.06052830442786217,
-0.17887724936008453,
-0.332924485206604,
0.6669129133224487,
0.0348968468606472,
0.18830928206443787,
-0.11016996949911118,
-0.2008664458990097,
-0.3298524022102356,
-0.1550644487142563,
-0.17849723994731903,
0.2253372073173523,
0.13516922295093536,
0.33869636058807373,
-0.08277511596679688,
-0.031057748943567276,
-0.3715769946575165,
0.3031170070171356,
0.0216149240732193,
-0.03533834218978882,
-0.280981183052063,
0.06849150359630585,
-0.3736383020877838,
0.06309492886066437,
0.248787060379982,
0.23793178796768188,
-0.06996184587478638,
0.05898149311542511,
-0.18784692883491516,
-0.4683721363544464,
0.5749186277389526,
-0.1280219405889511,
-0.24617692828178406,
0.07783855497837067,
0.1704559475183487,
-0.004245400428771973,
-0.29911431670188904,
-0.08877349644899368,
0.2385408580303192,
0.31785714626312256,
-0.031788457185029984,
-0.047527015209198,
0.17783698439598083,
-0.27206262946128845,
-0.03164859116077423,
0.10307742655277252,
0.7202533483505249,
0.06735619902610779,
-0.22547052800655365,
0.5698357224464417,
0.023549430072307587
] |
https://github.com/huggingface/datasets/issues/2689 | cannot save the dataset to disk after rename_column | Hi ! That's because you are trying to overwrite a file that is already open and being used.
Indeed `foo/dataset.arrow` is open and used by your `dataset` object.
When you do `rename_column`, the resulting dataset reads the data from the same arrow file.
In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform.
Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same). | ## Describe the bug
If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk`
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
In [1]: from datasets import Dataset, load_from_disk
In [5]: dataset=Dataset.from_dict({'foo': [0]})
In [7]: dataset.save_to_disk('foo')
In [8]: dataset=load_from_disk('foo')
In [10]: dataset=dataset.rename_column('foo', 'bar')
In [11]: dataset.save_to_disk('foo')
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-11-a3bc0d4fc339> in <module>
----> 1 dataset.save_to_disk('foo')
/mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path
, fs)
597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths:
598 raise PermissionError(
--> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself."
600 )
601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths:
PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself.
```
N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 102 | cannot save the dataset to disk after rename_column
## Describe the bug
If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk`
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
In [1]: from datasets import Dataset, load_from_disk
In [5]: dataset=Dataset.from_dict({'foo': [0]})
In [7]: dataset.save_to_disk('foo')
In [8]: dataset=load_from_disk('foo')
In [10]: dataset=dataset.rename_column('foo', 'bar')
In [11]: dataset.save_to_disk('foo')
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-11-a3bc0d4fc339> in <module>
----> 1 dataset.save_to_disk('foo')
/mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path
, fs)
597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths:
598 raise PermissionError(
--> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself."
600 )
601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths:
PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself.
```
N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core
- Python version: 3.7.10
- PyArrow version: 3.0.0
Hi ! That's because you are trying to overwrite a file that is already open and being used.
Indeed `foo/dataset.arrow` is open and used by your `dataset` object.
When you do `rename_column`, the resulting dataset reads the data from the same arrow file.
In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform.
Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same). | [
-0.052322305738925934,
0.23420995473861694,
-0.02316787652671337,
-0.013347141444683075,
0.3893553614616394,
0.27079543471336365,
0.4929152727127075,
0.24630151689052582,
0.02195959910750389,
0.12010955810546875,
-0.08146554231643677,
0.4607100188732147,
-0.17199505865573883,
-0.1512238085269928,
-0.013640870340168476,
-0.07142192870378494,
0.29882198572158813,
-0.109815314412117,
-0.007108531892299652,
0.158094123005867,
-0.429767906665802,
-0.016797134652733803,
-0.06327933818101883,
0.05253157019615173,
-0.1448872834444046,
-0.1060149148106575,
-0.01914871484041214,
0.06997871398925781,
-0.010761506855487823,
-0.24626898765563965,
0.09018038958311081,
-0.05551324412226677,
0.17500203847885132,
0.3935281038284302,
-0.0001104695547837764,
-0.11744798719882965,
0.016952406615018845,
-0.025437597185373306,
-0.3840668201446533,
-0.16772641241550446,
-0.27940118312835693,
-0.2232084572315216,
-0.15346546471118927,
-0.5357640981674194,
0.2765214443206787,
-0.00221286341547966,
-0.12286104261875153,
-0.3125070035457611,
0.17969462275505066,
0.2632052004337311,
0.2940931022167206,
0.10835675895214081,
0.2733328938484192,
-0.16357363760471344,
0.07361960411071777,
0.09863276034593582,
-0.37880828976631165,
0.26853933930397034,
-0.2693730890750885,
-0.09110888093709946,
0.12269967794418335,
0.29151567816734314,
-0.10827886313199997,
-0.06901045143604279,
0.10180801153182983,
0.04682442918419838,
0.11523991823196411,
-0.24159970879554749,
0.2724040448665619,
-0.1015000119805336,
0.41599899530410767,
-0.5450061559677124,
-0.4493021070957184,
-0.0069590285420417786,
0.23864257335662842,
-0.3515316843986511,
0.24363109469413757,
0.11555086076259613,
0.024603452533483505,
0.133538156747818,
0.039322540163993835,
-0.26816314458847046,
-0.19276563823223114,
0.0060167089104652405,
0.030040279030799866,
-0.2012544572353363,
-0.1730903685092926,
0.18610532581806183,
0.025239331647753716,
-0.12778303027153015,
0.3110419511795044,
-0.06184273958206177,
-0.055818017572164536,
0.06762092560529709,
-0.4282255470752716,
-0.044142525643110275,
-0.07651407271623611,
-0.10827348381280899,
-0.14327695965766907,
0.23413491249084473,
-0.06290335208177567,
-0.1409241259098053,
0.2153322696685791,
0.27297723293304443,
-0.03867993876338005,
0.22389450669288635,
-0.002631165087223053,
0.4684866666793823,
0.35185784101486206,
0.11973381787538528,
0.003254517912864685,
-0.10482101887464523,
0.07833770662546158,
0.048247963190078735,
0.6009222269058228,
-0.047897711396217346,
0.46251094341278076,
-0.060351792722940445,
-0.3091146945953369,
0.3789651095867157,
0.10445956140756607,
-0.03429882973432541,
0.001284601166844368,
0.24470284581184387,
0.15515592694282532,
0.035665374249219894,
0.09884099662303925,
0.33003830909729004,
0.1512354016304016,
0.16735681891441345,
-0.1845286637544632,
-0.023599643260240555,
-0.07707719504833221,
0.12052198499441147,
0.1922730654478073,
0.21343258023262024,
0.0603947713971138,
0.14189007878303528,
-0.12969380617141724,
-0.08187045156955719,
0.06382224708795547,
-0.1976364254951477,
0.03163892403244972,
0.3230941891670227,
0.08128729462623596,
0.24178238213062286,
0.13322332501411438,
-0.2870064973831177,
0.047301359474658966,
0.21957367658615112,
-0.12574267387390137,
-0.1329016536474228,
-0.4467061161994934,
0.23658707737922668,
0.12731169164180756,
0.1414910852909088,
-0.442139595746994,
-0.28937700390815735,
0.43439796566963196,
-0.09662427008152008,
0.23201218247413635,
-0.01828939840197563,
0.08114880323410034,
-0.40903493762016296,
0.05210906267166138,
0.22159874439239502,
-0.1067451536655426,
0.22335398197174072,
-0.31368550658226013,
0.1113036572933197,
0.12216901034116745,
0.15857583284378052,
0.07593583315610886,
-0.07611925154924393,
-0.13437047600746155,
0.038126781582832336,
0.45853713154792786,
-0.37724873423576355,
-0.4912678897380829,
-0.1910640299320221,
-0.15871983766555786,
-0.027712063863873482,
0.03773169964551926,
0.05757733806967735,
0.200111985206604,
-0.19364134967327118,
-0.03504440188407898,
0.15370364487171173,
0.15324540436267853,
0.038659848272800446,
-0.2126656025648117,
-0.014591621235013008,
-0.015180118381977081,
-0.10222198069095612,
-0.08539022505283356,
0.13328701257705688,
0.17471808195114136,
-0.007196717895567417,
0.1526000201702118,
-0.08989611268043518,
0.2490469217300415,
0.29588741064071655,
0.4298882782459259,
0.03850184381008148,
-0.01662030816078186,
-0.2765229046344757,
-0.601997971534729,
0.10725527256727219,
0.2519676685333252,
-0.2931174337863922,
-0.3241819143295288,
-0.07735876739025116,
-0.2935066223144531,
0.014902455732226372,
-0.22054444253444672,
0.00911892019212246,
0.16364681720733643,
0.2512085437774658,
0.01418996974825859,
-0.02009686268866062,
-0.24523204565048218,
0.26765716075897217,
-0.31953516602516174,
0.19486798346042633,
-0.2083371877670288,
0.2012101262807846,
-0.22177989780902863,
-0.2969251871109009,
-0.18047039210796356,
0.14209973812103271,
0.27231165766716003,
0.09250133484601974,
-0.299799382686615,
0.4652598798274994,
0.005930312909185886,
0.06988169997930527,
-0.12980365753173828,
-0.03260752558708191,
-0.1389695256948471,
-0.14735622704029083,
0.0775984600186348,
-0.004706399515271187,
0.24196316301822662,
0.06903346627950668,
-0.36229586601257324,
0.09007447212934494,
-0.0637703686952591,
0.22058291733264923,
0.030165843665599823,
0.11507850140333176,
0.17081542313098907,
-0.11709491908550262,
-0.006445208564400673,
-0.29513224959373474,
0.00904279574751854,
0.0664554089307785,
0.21988724172115326,
-0.2932218909263611,
-0.12163940072059631,
0.05609293282032013,
0.4650208055973053,
0.064876988530159,
0.1760997176170349,
0.18614250421524048,
-0.0901377722620964,
0.01989833638072014,
-0.01218409650027752,
0.6143773794174194,
0.3814360499382019,
0.009005197323858738,
-0.05812620744109154,
-0.029316546395421028,
-0.14477930963039398,
-0.053123392164707184,
0.19782450795173645,
0.010228164494037628,
0.19767645001411438,
0.13353687524795532,
0.3363485336303711,
0.020910831168293953,
-0.14989101886749268,
-0.11658485233783722,
0.17405958473682404,
0.37044909596443176,
-0.3543182909488678,
0.026349829509854317,
-0.1302931010723114,
0.14597240090370178,
0.00573703832924366,
-0.27002573013305664,
-0.13905954360961914,
-0.3707582950592041,
-0.3373607397079468,
0.6752129197120667,
0.0063466839492321014,
0.08448740839958191,
-0.11346203088760376,
-0.12328092753887177,
0.026684289798140526,
0.12290119379758835,
-0.37916046380996704,
-0.04389648884534836,
0.05528665706515312,
0.04477420076727867,
0.07632201910018921,
-0.22862966358661652,
0.5205157399177551,
-0.0397292822599411,
0.051286451518535614,
-0.5295774936676025,
-0.15215587615966797,
-0.2153199017047882,
-0.12796971201896667,
0.30627840757369995,
0.11742047965526581,
0.3138973116874695,
-0.14502322673797607,
-0.2756849229335785,
0.24031217396259308,
0.11215643584728241,
-0.1098954826593399,
0.17848719656467438,
0.1534111201763153,
-0.030276808887720108,
-0.048984378576278687,
-0.14329281449317932,
-0.28089386224746704,
-0.3785195052623749,
0.3248313069343567,
-0.06423830986022949,
0.1248253583908081,
0.09864401072263718,
-0.1798856556415558,
0.11139998584985733,
0.08958287537097931,
0.08789310604333878,
-0.26454946398735046,
-0.19452117383480072,
0.43659675121307373,
-0.23899976909160614,
-0.22034548223018646,
0.03303675726056099,
0.15416963398456573,
0.13763488829135895,
-0.0165131576359272,
-0.24844887852668762,
-0.06537407636642456,
-0.2481311410665512,
0.4719095826148987,
-0.30349719524383545,
0.13039971888065338,
0.29348915815353394,
0.3040732145309448,
-0.0327984057366848,
-0.07504924386739731,
-0.2942448556423187,
-0.06985905021429062,
0.29080015420913696,
0.27318674325942993,
-0.1038845106959343,
0.4481266736984253,
-0.10904034972190857,
0.25520414113998413,
0.10940839350223541,
0.17020747065544128,
0.390241414308548,
0.017050456255674362,
0.17148670554161072,
-0.27357566356658936,
-0.5204057693481445,
-0.009663114324212074,
-0.28132468461990356,
-0.057693321257829666,
-0.22827370464801788,
-0.10181643813848495,
0.001525653526186943,
0.012026071548461914,
0.029493141919374466,
-0.14310741424560547,
-0.2657013535499573,
-0.09985938668251038,
-0.21312522888183594,
0.2652599513530731,
0.04998156800866127,
0.0722988024353981,
-0.24056194722652435,
-0.09927568584680557,
0.002741933800280094,
0.33895063400268555,
0.1410216987133026,
-0.08701236546039581,
-0.37478312849998474,
-0.02906414121389389,
-0.41433051228523254,
0.21668796241283417,
-0.08478841185569763,
0.5215465426445007,
0.05126048997044563,
-0.08714751899242401,
0.09380893409252167,
-0.011224301531910896,
0.5587119460105896,
-0.1291038691997528,
-0.007969565689563751,
0.2835010886192322,
0.33712509274482727,
-0.44983893632888794,
-0.07150793820619583,
0.05951179936528206,
0.25700339674949646,
-0.07824817299842834,
0.5526582598686218,
-0.089255690574646,
0.02651022933423519,
0.1315527856349945,
0.27332478761672974,
-0.2038501799106598,
-0.09626615047454834,
-0.24847115576267242,
-0.23620083928108215,
-0.427841454744339,
0.016236796975135803,
-0.096954844892025,
0.055377788841724396,
-0.02052067406475544,
0.18086059391498566,
-0.2027258276939392,
-0.2500329911708832,
-0.1371493637561798,
0.10488182306289673,
0.34595927596092224,
-0.1031089648604393,
0.29912111163139343,
-0.026797734200954437,
0.04924416169524193,
0.1733396351337433,
0.23782230913639069,
-0.32259270548820496,
-0.3099874258041382,
0.13733258843421936,
-0.09731198102235794,
0.2458062469959259,
-0.03127707540988922,
-0.1000332236289978,
0.16952787339687347,
-0.14430297911167145,
0.0795341432094574,
-0.18887892365455627,
-0.11261434108018875,
0.1532745212316513,
-0.048041943460702896,
-0.29477375745773315,
-0.2696515917778015,
0.5598940253257751,
0.1521374136209488,
-0.02565162628889084,
0.3724632263183594,
0.39680248498916626,
-0.2268083244562149,
0.29943424463272095,
-0.02493133395910263,
0.8441891074180603,
0.06682760268449783,
0.13037753105163574,
0.14751887321472168,
-0.46045297384262085,
0.18100488185882568,
0.1492481529712677,
0.11740425229072571,
-0.45218390226364136,
-0.12117259204387665,
0.06082307547330856,
-0.07660458981990814,
0.23744383454322815,
-0.09636466205120087,
-0.29028740525245667,
0.19609688222408295,
-0.4051041603088379,
0.1026284247636795,
0.022263480350375175,
-0.042374156415462494,
-0.40038296580314636,
-0.3322468400001526,
-0.06421717256307602,
0.20727136731147766,
-0.09535884857177734,
-0.03291456773877144,
0.09672047197818756,
0.17447170615196228,
-0.16753871738910675,
-0.04881562665104866,
-0.2289152890443802,
0.0024298224598169327,
-0.03307829424738884,
0.36842137575149536,
-0.31951576471328735,
-0.5360773205757141,
0.08699929714202881,
0.04261317849159241,
0.3537868857383728,
0.175617054104805,
-0.1451903134584427,
0.042650215327739716,
0.1901017725467682,
0.3062264621257782,
0.08305257558822632,
-0.06590066850185394,
0.23517045378684998,
0.021959420293569565,
-0.11835838109254837,
-0.04416634887456894,
-0.04098016768693924,
-0.3000876307487488,
-0.15200179815292358,
0.1203669011592865,
0.39286351203918457,
-0.30563148856163025,
-0.18393999338150024,
-0.13246208429336548,
-0.1315966099500656,
-0.5064848065376282,
0.20508919656276703,
-0.061900898814201355,
-0.056843437254428864,
0.43007004261016846,
-0.4037240147590637,
-0.15849855542182922,
0.026249956339597702,
0.530127763748169,
-0.04586692899465561,
0.25938886404037476,
0.49737557768821716,
-0.19791749119758606,
-0.1586867868900299,
-0.19093233346939087,
0.24718141555786133,
-0.09295880049467087,
-0.37244829535484314,
0.29277196526527405,
-0.10329332202672958,
0.16134895384311676,
-0.1380387544631958,
-0.18584294617176056,
-0.03418116271495819,
-0.07350408285856247,
-0.07384173572063446,
-0.4374043047428131,
-0.5035831332206726,
-0.04592280834913254,
0.20806176960468292,
0.12268747389316559,
0.018689420074224472,
-0.07171982526779175,
-0.24176162481307983,
-0.11532486975193024,
-0.33875638246536255,
0.033313121646642685,
-0.20505620539188385,
0.22012262046337128,
0.3785303235054016,
-0.0623287558555603,
0.0490257553756237,
-0.31516456604003906,
0.2734018564224243,
0.2116336077451706,
0.17346057295799255,
-0.2822258174419403,
-0.29616376757621765,
0.061923861503601074,
0.003019023686647415,
-0.17570102214813232,
-0.14917948842048645,
-0.41681593656539917,
-0.02763175591826439,
-0.08999409526586533,
-0.19160181283950806,
0.34275251626968384,
0.0935615599155426,
0.1535220742225647,
-0.11126409471035004,
0.16433265805244446,
0.17695468664169312,
0.05092944949865341,
-0.134540393948555,
-0.09258140623569489,
-0.1850498765707016,
0.3565358817577362,
-0.029032276943325996,
0.029155626893043518,
-0.628036379814148,
-0.15322577953338623,
-0.1658823937177658,
0.07374383509159088,
0.2543138265609741,
-0.19663463532924652,
-0.13228806853294373,
0.05639725923538208,
0.27294453978538513,
0.3071061372756958,
-0.23027241230010986,
-0.33565881848335266,
0.3239761292934418,
0.23711933195590973,
-0.19027844071388245,
-0.10960535705089569,
0.08421695232391357,
-0.25136134028434753,
-0.04195592552423477,
0.042619891464710236,
-0.12560543417930603,
-0.0768943503499031,
-0.4428113102912903,
0.04011132940649986,
0.3885585069656372,
-0.4339446425437927,
0.16909706592559814,
0.6197513937950134,
0.004332400858402252,
0.1773359179496765,
0.38907498121261597,
0.11327746510505676,
0.013830162584781647,
0.6791504621505737,
0.02654355764389038,
0.32086747884750366,
0.3201982378959656,
-0.11896373331546783,
0.09293325990438461,
-0.09435391426086426,
0.07580271363258362,
-0.2698482871055603,
-0.2856898903846741,
0.2321782112121582,
0.08914383500814438,
-0.006661050021648407,
-0.3313007950782776,
-0.05999479815363884,
0.006547058001160622,
0.3166712820529938,
-0.24911105632781982,
-0.07740187644958496,
-0.05085331201553345,
-0.056309495121240616,
0.19673705101013184,
-0.05537853389978409,
-0.251625657081604,
-0.10578599572181702,
0.4781983196735382,
0.1616421937942505,
0.048096418380737305,
-0.21938633918762207,
-0.05508244037628174,
0.21410876512527466,
0.2809603214263916,
-0.2896917462348938,
0.060171350836753845,
0.29711008071899414,
-0.1570807546377182,
-0.2346583604812622,
0.1563752442598343,
0.3924591839313507,
0.15102896094322205,
0.12923239171504974,
0.14918695390224457,
0.04692091792821884,
-0.215508371591568,
0.1399225890636444,
0.1967819780111313,
-0.057277947664260864,
0.06299552321434021,
0.1710461676120758,
0.1972791701555252,
-0.18511831760406494,
0.07999174296855927,
0.18096478283405304,
0.27027323842048645,
-0.09439697861671448,
0.49316754937171936,
-0.14642800390720367,
-0.4655367136001587,
0.004909772425889969,
0.08173532783985138,
-0.04880315437912941,
-0.011434595100581646,
0.4544948637485504,
0.03912375494837761,
0.07215219736099243,
-0.1666640192270279,
0.11946062743663788,
0.10832434892654419,
0.343827486038208,
0.3730084002017975,
-0.4471423923969269,
-0.37820717692375183,
-0.08310149610042572,
-0.4274824559688568,
-0.051516883075237274,
-0.010502208024263382,
-0.0757494643330574,
-0.0498400516808033,
-0.015898143872618675,
-0.07845485955476761,
-0.07171109318733215,
0.28252989053726196,
-0.07656797766685486,
0.031772587448358536,
0.49282699823379517,
-0.17429763078689575,
-0.07816827297210693,
0.22102661430835724,
0.05407239496707916,
0.08433561027050018,
-0.4384554624557495,
0.3879522383213043,
0.3464072048664093,
0.12487632781267166,
-0.28082388639450073,
0.09618999063968658,
0.20243579149246216,
0.1928015649318695,
0.4804943799972534,
0.0663614273071289,
0.027349762618541718,
-0.06691576540470123,
-0.33719274401664734,
-0.015191640704870224,
-0.047307826578617096,
-0.09021005779504776,
0.07538072764873505,
0.09147427976131439,
0.42266783118247986,
0.023997219279408455,
-0.19419360160827637,
-0.33096957206726074,
0.21396462619304657,
-0.24417367577552795,
0.14770065248012543,
-0.22380785644054413,
0.11571940034627914,
0.2566613256931305,
0.07305701822042465,
0.08291290700435638,
0.05591246858239174,
-0.026504896581172943,
0.6643058061599731,
-0.44868534803390503,
-0.44179537892341614,
0.5646383762359619,
-0.05267459154129028,
-0.5221442580223083,
0.05836547166109085,
0.4157535135746002,
-0.10478968173265457,
-0.0768280178308487,
-0.4792670011520386,
-0.13390420377254486,
0.33356693387031555,
-0.13860058784484863,
-0.24728542566299438,
0.37738868594169617,
-0.15689235925674438,
0.21295170485973358,
0.08694198727607727,
0.7443242073059082,
-0.019681017845869064,
-0.21628549695014954,
0.21120873093605042,
-0.09522785991430283
] |
https://github.com/huggingface/datasets/issues/2689 | cannot save the dataset to disk after rename_column | so what would be the right way to read a dataset, then change something and then overwrite it with the new version? | ## Describe the bug
If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk`
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
In [1]: from datasets import Dataset, load_from_disk
In [5]: dataset=Dataset.from_dict({'foo': [0]})
In [7]: dataset.save_to_disk('foo')
In [8]: dataset=load_from_disk('foo')
In [10]: dataset=dataset.rename_column('foo', 'bar')
In [11]: dataset.save_to_disk('foo')
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-11-a3bc0d4fc339> in <module>
----> 1 dataset.save_to_disk('foo')
/mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path
, fs)
597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths:
598 raise PermissionError(
--> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself."
600 )
601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths:
PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself.
```
N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 22 | cannot save the dataset to disk after rename_column
## Describe the bug
If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk`
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
In [1]: from datasets import Dataset, load_from_disk
In [5]: dataset=Dataset.from_dict({'foo': [0]})
In [7]: dataset.save_to_disk('foo')
In [8]: dataset=load_from_disk('foo')
In [10]: dataset=dataset.rename_column('foo', 'bar')
In [11]: dataset.save_to_disk('foo')
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-11-a3bc0d4fc339> in <module>
----> 1 dataset.save_to_disk('foo')
/mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path
, fs)
597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths:
598 raise PermissionError(
--> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself."
600 )
601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths:
PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself.
```
N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core
- Python version: 3.7.10
- PyArrow version: 3.0.0
so what would be the right way to read a dataset, then change something and then overwrite it with the new version? | [
-0.052322305738925934,
0.23420995473861694,
-0.02316787652671337,
-0.013347141444683075,
0.3893553614616394,
0.27079543471336365,
0.4929152727127075,
0.24630151689052582,
0.02195959910750389,
0.12010955810546875,
-0.08146554231643677,
0.4607100188732147,
-0.17199505865573883,
-0.1512238085269928,
-0.013640870340168476,
-0.07142192870378494,
0.29882198572158813,
-0.109815314412117,
-0.007108531892299652,
0.158094123005867,
-0.429767906665802,
-0.016797134652733803,
-0.06327933818101883,
0.05253157019615173,
-0.1448872834444046,
-0.1060149148106575,
-0.01914871484041214,
0.06997871398925781,
-0.010761506855487823,
-0.24626898765563965,
0.09018038958311081,
-0.05551324412226677,
0.17500203847885132,
0.3935281038284302,
-0.0001104695547837764,
-0.11744798719882965,
0.016952406615018845,
-0.025437597185373306,
-0.3840668201446533,
-0.16772641241550446,
-0.27940118312835693,
-0.2232084572315216,
-0.15346546471118927,
-0.5357640981674194,
0.2765214443206787,
-0.00221286341547966,
-0.12286104261875153,
-0.3125070035457611,
0.17969462275505066,
0.2632052004337311,
0.2940931022167206,
0.10835675895214081,
0.2733328938484192,
-0.16357363760471344,
0.07361960411071777,
0.09863276034593582,
-0.37880828976631165,
0.26853933930397034,
-0.2693730890750885,
-0.09110888093709946,
0.12269967794418335,
0.29151567816734314,
-0.10827886313199997,
-0.06901045143604279,
0.10180801153182983,
0.04682442918419838,
0.11523991823196411,
-0.24159970879554749,
0.2724040448665619,
-0.1015000119805336,
0.41599899530410767,
-0.5450061559677124,
-0.4493021070957184,
-0.0069590285420417786,
0.23864257335662842,
-0.3515316843986511,
0.24363109469413757,
0.11555086076259613,
0.024603452533483505,
0.133538156747818,
0.039322540163993835,
-0.26816314458847046,
-0.19276563823223114,
0.0060167089104652405,
0.030040279030799866,
-0.2012544572353363,
-0.1730903685092926,
0.18610532581806183,
0.025239331647753716,
-0.12778303027153015,
0.3110419511795044,
-0.06184273958206177,
-0.055818017572164536,
0.06762092560529709,
-0.4282255470752716,
-0.044142525643110275,
-0.07651407271623611,
-0.10827348381280899,
-0.14327695965766907,
0.23413491249084473,
-0.06290335208177567,
-0.1409241259098053,
0.2153322696685791,
0.27297723293304443,
-0.03867993876338005,
0.22389450669288635,
-0.002631165087223053,
0.4684866666793823,
0.35185784101486206,
0.11973381787538528,
0.003254517912864685,
-0.10482101887464523,
0.07833770662546158,
0.048247963190078735,
0.6009222269058228,
-0.047897711396217346,
0.46251094341278076,
-0.060351792722940445,
-0.3091146945953369,
0.3789651095867157,
0.10445956140756607,
-0.03429882973432541,
0.001284601166844368,
0.24470284581184387,
0.15515592694282532,
0.035665374249219894,
0.09884099662303925,
0.33003830909729004,
0.1512354016304016,
0.16735681891441345,
-0.1845286637544632,
-0.023599643260240555,
-0.07707719504833221,
0.12052198499441147,
0.1922730654478073,
0.21343258023262024,
0.0603947713971138,
0.14189007878303528,
-0.12969380617141724,
-0.08187045156955719,
0.06382224708795547,
-0.1976364254951477,
0.03163892403244972,
0.3230941891670227,
0.08128729462623596,
0.24178238213062286,
0.13322332501411438,
-0.2870064973831177,
0.047301359474658966,
0.21957367658615112,
-0.12574267387390137,
-0.1329016536474228,
-0.4467061161994934,
0.23658707737922668,
0.12731169164180756,
0.1414910852909088,
-0.442139595746994,
-0.28937700390815735,
0.43439796566963196,
-0.09662427008152008,
0.23201218247413635,
-0.01828939840197563,
0.08114880323410034,
-0.40903493762016296,
0.05210906267166138,
0.22159874439239502,
-0.1067451536655426,
0.22335398197174072,
-0.31368550658226013,
0.1113036572933197,
0.12216901034116745,
0.15857583284378052,
0.07593583315610886,
-0.07611925154924393,
-0.13437047600746155,
0.038126781582832336,
0.45853713154792786,
-0.37724873423576355,
-0.4912678897380829,
-0.1910640299320221,
-0.15871983766555786,
-0.027712063863873482,
0.03773169964551926,
0.05757733806967735,
0.200111985206604,
-0.19364134967327118,
-0.03504440188407898,
0.15370364487171173,
0.15324540436267853,
0.038659848272800446,
-0.2126656025648117,
-0.014591621235013008,
-0.015180118381977081,
-0.10222198069095612,
-0.08539022505283356,
0.13328701257705688,
0.17471808195114136,
-0.007196717895567417,
0.1526000201702118,
-0.08989611268043518,
0.2490469217300415,
0.29588741064071655,
0.4298882782459259,
0.03850184381008148,
-0.01662030816078186,
-0.2765229046344757,
-0.601997971534729,
0.10725527256727219,
0.2519676685333252,
-0.2931174337863922,
-0.3241819143295288,
-0.07735876739025116,
-0.2935066223144531,
0.014902455732226372,
-0.22054444253444672,
0.00911892019212246,
0.16364681720733643,
0.2512085437774658,
0.01418996974825859,
-0.02009686268866062,
-0.24523204565048218,
0.26765716075897217,
-0.31953516602516174,
0.19486798346042633,
-0.2083371877670288,
0.2012101262807846,
-0.22177989780902863,
-0.2969251871109009,
-0.18047039210796356,
0.14209973812103271,
0.27231165766716003,
0.09250133484601974,
-0.299799382686615,
0.4652598798274994,
0.005930312909185886,
0.06988169997930527,
-0.12980365753173828,
-0.03260752558708191,
-0.1389695256948471,
-0.14735622704029083,
0.0775984600186348,
-0.004706399515271187,
0.24196316301822662,
0.06903346627950668,
-0.36229586601257324,
0.09007447212934494,
-0.0637703686952591,
0.22058291733264923,
0.030165843665599823,
0.11507850140333176,
0.17081542313098907,
-0.11709491908550262,
-0.006445208564400673,
-0.29513224959373474,
0.00904279574751854,
0.0664554089307785,
0.21988724172115326,
-0.2932218909263611,
-0.12163940072059631,
0.05609293282032013,
0.4650208055973053,
0.064876988530159,
0.1760997176170349,
0.18614250421524048,
-0.0901377722620964,
0.01989833638072014,
-0.01218409650027752,
0.6143773794174194,
0.3814360499382019,
0.009005197323858738,
-0.05812620744109154,
-0.029316546395421028,
-0.14477930963039398,
-0.053123392164707184,
0.19782450795173645,
0.010228164494037628,
0.19767645001411438,
0.13353687524795532,
0.3363485336303711,
0.020910831168293953,
-0.14989101886749268,
-0.11658485233783722,
0.17405958473682404,
0.37044909596443176,
-0.3543182909488678,
0.026349829509854317,
-0.1302931010723114,
0.14597240090370178,
0.00573703832924366,
-0.27002573013305664,
-0.13905954360961914,
-0.3707582950592041,
-0.3373607397079468,
0.6752129197120667,
0.0063466839492321014,
0.08448740839958191,
-0.11346203088760376,
-0.12328092753887177,
0.026684289798140526,
0.12290119379758835,
-0.37916046380996704,
-0.04389648884534836,
0.05528665706515312,
0.04477420076727867,
0.07632201910018921,
-0.22862966358661652,
0.5205157399177551,
-0.0397292822599411,
0.051286451518535614,
-0.5295774936676025,
-0.15215587615966797,
-0.2153199017047882,
-0.12796971201896667,
0.30627840757369995,
0.11742047965526581,
0.3138973116874695,
-0.14502322673797607,
-0.2756849229335785,
0.24031217396259308,
0.11215643584728241,
-0.1098954826593399,
0.17848719656467438,
0.1534111201763153,
-0.030276808887720108,
-0.048984378576278687,
-0.14329281449317932,
-0.28089386224746704,
-0.3785195052623749,
0.3248313069343567,
-0.06423830986022949,
0.1248253583908081,
0.09864401072263718,
-0.1798856556415558,
0.11139998584985733,
0.08958287537097931,
0.08789310604333878,
-0.26454946398735046,
-0.19452117383480072,
0.43659675121307373,
-0.23899976909160614,
-0.22034548223018646,
0.03303675726056099,
0.15416963398456573,
0.13763488829135895,
-0.0165131576359272,
-0.24844887852668762,
-0.06537407636642456,
-0.2481311410665512,
0.4719095826148987,
-0.30349719524383545,
0.13039971888065338,
0.29348915815353394,
0.3040732145309448,
-0.0327984057366848,
-0.07504924386739731,
-0.2942448556423187,
-0.06985905021429062,
0.29080015420913696,
0.27318674325942993,
-0.1038845106959343,
0.4481266736984253,
-0.10904034972190857,
0.25520414113998413,
0.10940839350223541,
0.17020747065544128,
0.390241414308548,
0.017050456255674362,
0.17148670554161072,
-0.27357566356658936,
-0.5204057693481445,
-0.009663114324212074,
-0.28132468461990356,
-0.057693321257829666,
-0.22827370464801788,
-0.10181643813848495,
0.001525653526186943,
0.012026071548461914,
0.029493141919374466,
-0.14310741424560547,
-0.2657013535499573,
-0.09985938668251038,
-0.21312522888183594,
0.2652599513530731,
0.04998156800866127,
0.0722988024353981,
-0.24056194722652435,
-0.09927568584680557,
0.002741933800280094,
0.33895063400268555,
0.1410216987133026,
-0.08701236546039581,
-0.37478312849998474,
-0.02906414121389389,
-0.41433051228523254,
0.21668796241283417,
-0.08478841185569763,
0.5215465426445007,
0.05126048997044563,
-0.08714751899242401,
0.09380893409252167,
-0.011224301531910896,
0.5587119460105896,
-0.1291038691997528,
-0.007969565689563751,
0.2835010886192322,
0.33712509274482727,
-0.44983893632888794,
-0.07150793820619583,
0.05951179936528206,
0.25700339674949646,
-0.07824817299842834,
0.5526582598686218,
-0.089255690574646,
0.02651022933423519,
0.1315527856349945,
0.27332478761672974,
-0.2038501799106598,
-0.09626615047454834,
-0.24847115576267242,
-0.23620083928108215,
-0.427841454744339,
0.016236796975135803,
-0.096954844892025,
0.055377788841724396,
-0.02052067406475544,
0.18086059391498566,
-0.2027258276939392,
-0.2500329911708832,
-0.1371493637561798,
0.10488182306289673,
0.34595927596092224,
-0.1031089648604393,
0.29912111163139343,
-0.026797734200954437,
0.04924416169524193,
0.1733396351337433,
0.23782230913639069,
-0.32259270548820496,
-0.3099874258041382,
0.13733258843421936,
-0.09731198102235794,
0.2458062469959259,
-0.03127707540988922,
-0.1000332236289978,
0.16952787339687347,
-0.14430297911167145,
0.0795341432094574,
-0.18887892365455627,
-0.11261434108018875,
0.1532745212316513,
-0.048041943460702896,
-0.29477375745773315,
-0.2696515917778015,
0.5598940253257751,
0.1521374136209488,
-0.02565162628889084,
0.3724632263183594,
0.39680248498916626,
-0.2268083244562149,
0.29943424463272095,
-0.02493133395910263,
0.8441891074180603,
0.06682760268449783,
0.13037753105163574,
0.14751887321472168,
-0.46045297384262085,
0.18100488185882568,
0.1492481529712677,
0.11740425229072571,
-0.45218390226364136,
-0.12117259204387665,
0.06082307547330856,
-0.07660458981990814,
0.23744383454322815,
-0.09636466205120087,
-0.29028740525245667,
0.19609688222408295,
-0.4051041603088379,
0.1026284247636795,
0.022263480350375175,
-0.042374156415462494,
-0.40038296580314636,
-0.3322468400001526,
-0.06421717256307602,
0.20727136731147766,
-0.09535884857177734,
-0.03291456773877144,
0.09672047197818756,
0.17447170615196228,
-0.16753871738910675,
-0.04881562665104866,
-0.2289152890443802,
0.0024298224598169327,
-0.03307829424738884,
0.36842137575149536,
-0.31951576471328735,
-0.5360773205757141,
0.08699929714202881,
0.04261317849159241,
0.3537868857383728,
0.175617054104805,
-0.1451903134584427,
0.042650215327739716,
0.1901017725467682,
0.3062264621257782,
0.08305257558822632,
-0.06590066850185394,
0.23517045378684998,
0.021959420293569565,
-0.11835838109254837,
-0.04416634887456894,
-0.04098016768693924,
-0.3000876307487488,
-0.15200179815292358,
0.1203669011592865,
0.39286351203918457,
-0.30563148856163025,
-0.18393999338150024,
-0.13246208429336548,
-0.1315966099500656,
-0.5064848065376282,
0.20508919656276703,
-0.061900898814201355,
-0.056843437254428864,
0.43007004261016846,
-0.4037240147590637,
-0.15849855542182922,
0.026249956339597702,
0.530127763748169,
-0.04586692899465561,
0.25938886404037476,
0.49737557768821716,
-0.19791749119758606,
-0.1586867868900299,
-0.19093233346939087,
0.24718141555786133,
-0.09295880049467087,
-0.37244829535484314,
0.29277196526527405,
-0.10329332202672958,
0.16134895384311676,
-0.1380387544631958,
-0.18584294617176056,
-0.03418116271495819,
-0.07350408285856247,
-0.07384173572063446,
-0.4374043047428131,
-0.5035831332206726,
-0.04592280834913254,
0.20806176960468292,
0.12268747389316559,
0.018689420074224472,
-0.07171982526779175,
-0.24176162481307983,
-0.11532486975193024,
-0.33875638246536255,
0.033313121646642685,
-0.20505620539188385,
0.22012262046337128,
0.3785303235054016,
-0.0623287558555603,
0.0490257553756237,
-0.31516456604003906,
0.2734018564224243,
0.2116336077451706,
0.17346057295799255,
-0.2822258174419403,
-0.29616376757621765,
0.061923861503601074,
0.003019023686647415,
-0.17570102214813232,
-0.14917948842048645,
-0.41681593656539917,
-0.02763175591826439,
-0.08999409526586533,
-0.19160181283950806,
0.34275251626968384,
0.0935615599155426,
0.1535220742225647,
-0.11126409471035004,
0.16433265805244446,
0.17695468664169312,
0.05092944949865341,
-0.134540393948555,
-0.09258140623569489,
-0.1850498765707016,
0.3565358817577362,
-0.029032276943325996,
0.029155626893043518,
-0.628036379814148,
-0.15322577953338623,
-0.1658823937177658,
0.07374383509159088,
0.2543138265609741,
-0.19663463532924652,
-0.13228806853294373,
0.05639725923538208,
0.27294453978538513,
0.3071061372756958,
-0.23027241230010986,
-0.33565881848335266,
0.3239761292934418,
0.23711933195590973,
-0.19027844071388245,
-0.10960535705089569,
0.08421695232391357,
-0.25136134028434753,
-0.04195592552423477,
0.042619891464710236,
-0.12560543417930603,
-0.0768943503499031,
-0.4428113102912903,
0.04011132940649986,
0.3885585069656372,
-0.4339446425437927,
0.16909706592559814,
0.6197513937950134,
0.004332400858402252,
0.1773359179496765,
0.38907498121261597,
0.11327746510505676,
0.013830162584781647,
0.6791504621505737,
0.02654355764389038,
0.32086747884750366,
0.3201982378959656,
-0.11896373331546783,
0.09293325990438461,
-0.09435391426086426,
0.07580271363258362,
-0.2698482871055603,
-0.2856898903846741,
0.2321782112121582,
0.08914383500814438,
-0.006661050021648407,
-0.3313007950782776,
-0.05999479815363884,
0.006547058001160622,
0.3166712820529938,
-0.24911105632781982,
-0.07740187644958496,
-0.05085331201553345,
-0.056309495121240616,
0.19673705101013184,
-0.05537853389978409,
-0.251625657081604,
-0.10578599572181702,
0.4781983196735382,
0.1616421937942505,
0.048096418380737305,
-0.21938633918762207,
-0.05508244037628174,
0.21410876512527466,
0.2809603214263916,
-0.2896917462348938,
0.060171350836753845,
0.29711008071899414,
-0.1570807546377182,
-0.2346583604812622,
0.1563752442598343,
0.3924591839313507,
0.15102896094322205,
0.12923239171504974,
0.14918695390224457,
0.04692091792821884,
-0.215508371591568,
0.1399225890636444,
0.1967819780111313,
-0.057277947664260864,
0.06299552321434021,
0.1710461676120758,
0.1972791701555252,
-0.18511831760406494,
0.07999174296855927,
0.18096478283405304,
0.27027323842048645,
-0.09439697861671448,
0.49316754937171936,
-0.14642800390720367,
-0.4655367136001587,
0.004909772425889969,
0.08173532783985138,
-0.04880315437912941,
-0.011434595100581646,
0.4544948637485504,
0.03912375494837761,
0.07215219736099243,
-0.1666640192270279,
0.11946062743663788,
0.10832434892654419,
0.343827486038208,
0.3730084002017975,
-0.4471423923969269,
-0.37820717692375183,
-0.08310149610042572,
-0.4274824559688568,
-0.051516883075237274,
-0.010502208024263382,
-0.0757494643330574,
-0.0498400516808033,
-0.015898143872618675,
-0.07845485955476761,
-0.07171109318733215,
0.28252989053726196,
-0.07656797766685486,
0.031772587448358536,
0.49282699823379517,
-0.17429763078689575,
-0.07816827297210693,
0.22102661430835724,
0.05407239496707916,
0.08433561027050018,
-0.4384554624557495,
0.3879522383213043,
0.3464072048664093,
0.12487632781267166,
-0.28082388639450073,
0.09618999063968658,
0.20243579149246216,
0.1928015649318695,
0.4804943799972534,
0.0663614273071289,
0.027349762618541718,
-0.06691576540470123,
-0.33719274401664734,
-0.015191640704870224,
-0.047307826578617096,
-0.09021005779504776,
0.07538072764873505,
0.09147427976131439,
0.42266783118247986,
0.023997219279408455,
-0.19419360160827637,
-0.33096957206726074,
0.21396462619304657,
-0.24417367577552795,
0.14770065248012543,
-0.22380785644054413,
0.11571940034627914,
0.2566613256931305,
0.07305701822042465,
0.08291290700435638,
0.05591246858239174,
-0.026504896581172943,
0.6643058061599731,
-0.44868534803390503,
-0.44179537892341614,
0.5646383762359619,
-0.05267459154129028,
-0.5221442580223083,
0.05836547166109085,
0.4157535135746002,
-0.10478968173265457,
-0.0768280178308487,
-0.4792670011520386,
-0.13390420377254486,
0.33356693387031555,
-0.13860058784484863,
-0.24728542566299438,
0.37738868594169617,
-0.15689235925674438,
0.21295170485973358,
0.08694198727607727,
0.7443242073059082,
-0.019681017845869064,
-0.21628549695014954,
0.21120873093605042,
-0.09522785991430283
] |
https://github.com/huggingface/datasets/issues/2689 | cannot save the dataset to disk after rename_column | You have to write to a new directory, then delete the former directory, and finally rename the new directory. | ## Describe the bug
If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk`
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
In [1]: from datasets import Dataset, load_from_disk
In [5]: dataset=Dataset.from_dict({'foo': [0]})
In [7]: dataset.save_to_disk('foo')
In [8]: dataset=load_from_disk('foo')
In [10]: dataset=dataset.rename_column('foo', 'bar')
In [11]: dataset.save_to_disk('foo')
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-11-a3bc0d4fc339> in <module>
----> 1 dataset.save_to_disk('foo')
/mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path
, fs)
597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths:
598 raise PermissionError(
--> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself."
600 )
601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths:
PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself.
```
N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 19 | cannot save the dataset to disk after rename_column
## Describe the bug
If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk`
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
In [1]: from datasets import Dataset, load_from_disk
In [5]: dataset=Dataset.from_dict({'foo': [0]})
In [7]: dataset.save_to_disk('foo')
In [8]: dataset=load_from_disk('foo')
In [10]: dataset=dataset.rename_column('foo', 'bar')
In [11]: dataset.save_to_disk('foo')
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-11-a3bc0d4fc339> in <module>
----> 1 dataset.save_to_disk('foo')
/mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path
, fs)
597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths:
598 raise PermissionError(
--> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself."
600 )
601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths:
PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself.
```
N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core
- Python version: 3.7.10
- PyArrow version: 3.0.0
You have to write to a new directory, then delete the former directory, and finally rename the new directory. | [
-0.052322305738925934,
0.23420995473861694,
-0.02316787652671337,
-0.013347141444683075,
0.3893553614616394,
0.27079543471336365,
0.4929152727127075,
0.24630151689052582,
0.02195959910750389,
0.12010955810546875,
-0.08146554231643677,
0.4607100188732147,
-0.17199505865573883,
-0.1512238085269928,
-0.013640870340168476,
-0.07142192870378494,
0.29882198572158813,
-0.109815314412117,
-0.007108531892299652,
0.158094123005867,
-0.429767906665802,
-0.016797134652733803,
-0.06327933818101883,
0.05253157019615173,
-0.1448872834444046,
-0.1060149148106575,
-0.01914871484041214,
0.06997871398925781,
-0.010761506855487823,
-0.24626898765563965,
0.09018038958311081,
-0.05551324412226677,
0.17500203847885132,
0.3935281038284302,
-0.0001104695547837764,
-0.11744798719882965,
0.016952406615018845,
-0.025437597185373306,
-0.3840668201446533,
-0.16772641241550446,
-0.27940118312835693,
-0.2232084572315216,
-0.15346546471118927,
-0.5357640981674194,
0.2765214443206787,
-0.00221286341547966,
-0.12286104261875153,
-0.3125070035457611,
0.17969462275505066,
0.2632052004337311,
0.2940931022167206,
0.10835675895214081,
0.2733328938484192,
-0.16357363760471344,
0.07361960411071777,
0.09863276034593582,
-0.37880828976631165,
0.26853933930397034,
-0.2693730890750885,
-0.09110888093709946,
0.12269967794418335,
0.29151567816734314,
-0.10827886313199997,
-0.06901045143604279,
0.10180801153182983,
0.04682442918419838,
0.11523991823196411,
-0.24159970879554749,
0.2724040448665619,
-0.1015000119805336,
0.41599899530410767,
-0.5450061559677124,
-0.4493021070957184,
-0.0069590285420417786,
0.23864257335662842,
-0.3515316843986511,
0.24363109469413757,
0.11555086076259613,
0.024603452533483505,
0.133538156747818,
0.039322540163993835,
-0.26816314458847046,
-0.19276563823223114,
0.0060167089104652405,
0.030040279030799866,
-0.2012544572353363,
-0.1730903685092926,
0.18610532581806183,
0.025239331647753716,
-0.12778303027153015,
0.3110419511795044,
-0.06184273958206177,
-0.055818017572164536,
0.06762092560529709,
-0.4282255470752716,
-0.044142525643110275,
-0.07651407271623611,
-0.10827348381280899,
-0.14327695965766907,
0.23413491249084473,
-0.06290335208177567,
-0.1409241259098053,
0.2153322696685791,
0.27297723293304443,
-0.03867993876338005,
0.22389450669288635,
-0.002631165087223053,
0.4684866666793823,
0.35185784101486206,
0.11973381787538528,
0.003254517912864685,
-0.10482101887464523,
0.07833770662546158,
0.048247963190078735,
0.6009222269058228,
-0.047897711396217346,
0.46251094341278076,
-0.060351792722940445,
-0.3091146945953369,
0.3789651095867157,
0.10445956140756607,
-0.03429882973432541,
0.001284601166844368,
0.24470284581184387,
0.15515592694282532,
0.035665374249219894,
0.09884099662303925,
0.33003830909729004,
0.1512354016304016,
0.16735681891441345,
-0.1845286637544632,
-0.023599643260240555,
-0.07707719504833221,
0.12052198499441147,
0.1922730654478073,
0.21343258023262024,
0.0603947713971138,
0.14189007878303528,
-0.12969380617141724,
-0.08187045156955719,
0.06382224708795547,
-0.1976364254951477,
0.03163892403244972,
0.3230941891670227,
0.08128729462623596,
0.24178238213062286,
0.13322332501411438,
-0.2870064973831177,
0.047301359474658966,
0.21957367658615112,
-0.12574267387390137,
-0.1329016536474228,
-0.4467061161994934,
0.23658707737922668,
0.12731169164180756,
0.1414910852909088,
-0.442139595746994,
-0.28937700390815735,
0.43439796566963196,
-0.09662427008152008,
0.23201218247413635,
-0.01828939840197563,
0.08114880323410034,
-0.40903493762016296,
0.05210906267166138,
0.22159874439239502,
-0.1067451536655426,
0.22335398197174072,
-0.31368550658226013,
0.1113036572933197,
0.12216901034116745,
0.15857583284378052,
0.07593583315610886,
-0.07611925154924393,
-0.13437047600746155,
0.038126781582832336,
0.45853713154792786,
-0.37724873423576355,
-0.4912678897380829,
-0.1910640299320221,
-0.15871983766555786,
-0.027712063863873482,
0.03773169964551926,
0.05757733806967735,
0.200111985206604,
-0.19364134967327118,
-0.03504440188407898,
0.15370364487171173,
0.15324540436267853,
0.038659848272800446,
-0.2126656025648117,
-0.014591621235013008,
-0.015180118381977081,
-0.10222198069095612,
-0.08539022505283356,
0.13328701257705688,
0.17471808195114136,
-0.007196717895567417,
0.1526000201702118,
-0.08989611268043518,
0.2490469217300415,
0.29588741064071655,
0.4298882782459259,
0.03850184381008148,
-0.01662030816078186,
-0.2765229046344757,
-0.601997971534729,
0.10725527256727219,
0.2519676685333252,
-0.2931174337863922,
-0.3241819143295288,
-0.07735876739025116,
-0.2935066223144531,
0.014902455732226372,
-0.22054444253444672,
0.00911892019212246,
0.16364681720733643,
0.2512085437774658,
0.01418996974825859,
-0.02009686268866062,
-0.24523204565048218,
0.26765716075897217,
-0.31953516602516174,
0.19486798346042633,
-0.2083371877670288,
0.2012101262807846,
-0.22177989780902863,
-0.2969251871109009,
-0.18047039210796356,
0.14209973812103271,
0.27231165766716003,
0.09250133484601974,
-0.299799382686615,
0.4652598798274994,
0.005930312909185886,
0.06988169997930527,
-0.12980365753173828,
-0.03260752558708191,
-0.1389695256948471,
-0.14735622704029083,
0.0775984600186348,
-0.004706399515271187,
0.24196316301822662,
0.06903346627950668,
-0.36229586601257324,
0.09007447212934494,
-0.0637703686952591,
0.22058291733264923,
0.030165843665599823,
0.11507850140333176,
0.17081542313098907,
-0.11709491908550262,
-0.006445208564400673,
-0.29513224959373474,
0.00904279574751854,
0.0664554089307785,
0.21988724172115326,
-0.2932218909263611,
-0.12163940072059631,
0.05609293282032013,
0.4650208055973053,
0.064876988530159,
0.1760997176170349,
0.18614250421524048,
-0.0901377722620964,
0.01989833638072014,
-0.01218409650027752,
0.6143773794174194,
0.3814360499382019,
0.009005197323858738,
-0.05812620744109154,
-0.029316546395421028,
-0.14477930963039398,
-0.053123392164707184,
0.19782450795173645,
0.010228164494037628,
0.19767645001411438,
0.13353687524795532,
0.3363485336303711,
0.020910831168293953,
-0.14989101886749268,
-0.11658485233783722,
0.17405958473682404,
0.37044909596443176,
-0.3543182909488678,
0.026349829509854317,
-0.1302931010723114,
0.14597240090370178,
0.00573703832924366,
-0.27002573013305664,
-0.13905954360961914,
-0.3707582950592041,
-0.3373607397079468,
0.6752129197120667,
0.0063466839492321014,
0.08448740839958191,
-0.11346203088760376,
-0.12328092753887177,
0.026684289798140526,
0.12290119379758835,
-0.37916046380996704,
-0.04389648884534836,
0.05528665706515312,
0.04477420076727867,
0.07632201910018921,
-0.22862966358661652,
0.5205157399177551,
-0.0397292822599411,
0.051286451518535614,
-0.5295774936676025,
-0.15215587615966797,
-0.2153199017047882,
-0.12796971201896667,
0.30627840757369995,
0.11742047965526581,
0.3138973116874695,
-0.14502322673797607,
-0.2756849229335785,
0.24031217396259308,
0.11215643584728241,
-0.1098954826593399,
0.17848719656467438,
0.1534111201763153,
-0.030276808887720108,
-0.048984378576278687,
-0.14329281449317932,
-0.28089386224746704,
-0.3785195052623749,
0.3248313069343567,
-0.06423830986022949,
0.1248253583908081,
0.09864401072263718,
-0.1798856556415558,
0.11139998584985733,
0.08958287537097931,
0.08789310604333878,
-0.26454946398735046,
-0.19452117383480072,
0.43659675121307373,
-0.23899976909160614,
-0.22034548223018646,
0.03303675726056099,
0.15416963398456573,
0.13763488829135895,
-0.0165131576359272,
-0.24844887852668762,
-0.06537407636642456,
-0.2481311410665512,
0.4719095826148987,
-0.30349719524383545,
0.13039971888065338,
0.29348915815353394,
0.3040732145309448,
-0.0327984057366848,
-0.07504924386739731,
-0.2942448556423187,
-0.06985905021429062,
0.29080015420913696,
0.27318674325942993,
-0.1038845106959343,
0.4481266736984253,
-0.10904034972190857,
0.25520414113998413,
0.10940839350223541,
0.17020747065544128,
0.390241414308548,
0.017050456255674362,
0.17148670554161072,
-0.27357566356658936,
-0.5204057693481445,
-0.009663114324212074,
-0.28132468461990356,
-0.057693321257829666,
-0.22827370464801788,
-0.10181643813848495,
0.001525653526186943,
0.012026071548461914,
0.029493141919374466,
-0.14310741424560547,
-0.2657013535499573,
-0.09985938668251038,
-0.21312522888183594,
0.2652599513530731,
0.04998156800866127,
0.0722988024353981,
-0.24056194722652435,
-0.09927568584680557,
0.002741933800280094,
0.33895063400268555,
0.1410216987133026,
-0.08701236546039581,
-0.37478312849998474,
-0.02906414121389389,
-0.41433051228523254,
0.21668796241283417,
-0.08478841185569763,
0.5215465426445007,
0.05126048997044563,
-0.08714751899242401,
0.09380893409252167,
-0.011224301531910896,
0.5587119460105896,
-0.1291038691997528,
-0.007969565689563751,
0.2835010886192322,
0.33712509274482727,
-0.44983893632888794,
-0.07150793820619583,
0.05951179936528206,
0.25700339674949646,
-0.07824817299842834,
0.5526582598686218,
-0.089255690574646,
0.02651022933423519,
0.1315527856349945,
0.27332478761672974,
-0.2038501799106598,
-0.09626615047454834,
-0.24847115576267242,
-0.23620083928108215,
-0.427841454744339,
0.016236796975135803,
-0.096954844892025,
0.055377788841724396,
-0.02052067406475544,
0.18086059391498566,
-0.2027258276939392,
-0.2500329911708832,
-0.1371493637561798,
0.10488182306289673,
0.34595927596092224,
-0.1031089648604393,
0.29912111163139343,
-0.026797734200954437,
0.04924416169524193,
0.1733396351337433,
0.23782230913639069,
-0.32259270548820496,
-0.3099874258041382,
0.13733258843421936,
-0.09731198102235794,
0.2458062469959259,
-0.03127707540988922,
-0.1000332236289978,
0.16952787339687347,
-0.14430297911167145,
0.0795341432094574,
-0.18887892365455627,
-0.11261434108018875,
0.1532745212316513,
-0.048041943460702896,
-0.29477375745773315,
-0.2696515917778015,
0.5598940253257751,
0.1521374136209488,
-0.02565162628889084,
0.3724632263183594,
0.39680248498916626,
-0.2268083244562149,
0.29943424463272095,
-0.02493133395910263,
0.8441891074180603,
0.06682760268449783,
0.13037753105163574,
0.14751887321472168,
-0.46045297384262085,
0.18100488185882568,
0.1492481529712677,
0.11740425229072571,
-0.45218390226364136,
-0.12117259204387665,
0.06082307547330856,
-0.07660458981990814,
0.23744383454322815,
-0.09636466205120087,
-0.29028740525245667,
0.19609688222408295,
-0.4051041603088379,
0.1026284247636795,
0.022263480350375175,
-0.042374156415462494,
-0.40038296580314636,
-0.3322468400001526,
-0.06421717256307602,
0.20727136731147766,
-0.09535884857177734,
-0.03291456773877144,
0.09672047197818756,
0.17447170615196228,
-0.16753871738910675,
-0.04881562665104866,
-0.2289152890443802,
0.0024298224598169327,
-0.03307829424738884,
0.36842137575149536,
-0.31951576471328735,
-0.5360773205757141,
0.08699929714202881,
0.04261317849159241,
0.3537868857383728,
0.175617054104805,
-0.1451903134584427,
0.042650215327739716,
0.1901017725467682,
0.3062264621257782,
0.08305257558822632,
-0.06590066850185394,
0.23517045378684998,
0.021959420293569565,
-0.11835838109254837,
-0.04416634887456894,
-0.04098016768693924,
-0.3000876307487488,
-0.15200179815292358,
0.1203669011592865,
0.39286351203918457,
-0.30563148856163025,
-0.18393999338150024,
-0.13246208429336548,
-0.1315966099500656,
-0.5064848065376282,
0.20508919656276703,
-0.061900898814201355,
-0.056843437254428864,
0.43007004261016846,
-0.4037240147590637,
-0.15849855542182922,
0.026249956339597702,
0.530127763748169,
-0.04586692899465561,
0.25938886404037476,
0.49737557768821716,
-0.19791749119758606,
-0.1586867868900299,
-0.19093233346939087,
0.24718141555786133,
-0.09295880049467087,
-0.37244829535484314,
0.29277196526527405,
-0.10329332202672958,
0.16134895384311676,
-0.1380387544631958,
-0.18584294617176056,
-0.03418116271495819,
-0.07350408285856247,
-0.07384173572063446,
-0.4374043047428131,
-0.5035831332206726,
-0.04592280834913254,
0.20806176960468292,
0.12268747389316559,
0.018689420074224472,
-0.07171982526779175,
-0.24176162481307983,
-0.11532486975193024,
-0.33875638246536255,
0.033313121646642685,
-0.20505620539188385,
0.22012262046337128,
0.3785303235054016,
-0.0623287558555603,
0.0490257553756237,
-0.31516456604003906,
0.2734018564224243,
0.2116336077451706,
0.17346057295799255,
-0.2822258174419403,
-0.29616376757621765,
0.061923861503601074,
0.003019023686647415,
-0.17570102214813232,
-0.14917948842048645,
-0.41681593656539917,
-0.02763175591826439,
-0.08999409526586533,
-0.19160181283950806,
0.34275251626968384,
0.0935615599155426,
0.1535220742225647,
-0.11126409471035004,
0.16433265805244446,
0.17695468664169312,
0.05092944949865341,
-0.134540393948555,
-0.09258140623569489,
-0.1850498765707016,
0.3565358817577362,
-0.029032276943325996,
0.029155626893043518,
-0.628036379814148,
-0.15322577953338623,
-0.1658823937177658,
0.07374383509159088,
0.2543138265609741,
-0.19663463532924652,
-0.13228806853294373,
0.05639725923538208,
0.27294453978538513,
0.3071061372756958,
-0.23027241230010986,
-0.33565881848335266,
0.3239761292934418,
0.23711933195590973,
-0.19027844071388245,
-0.10960535705089569,
0.08421695232391357,
-0.25136134028434753,
-0.04195592552423477,
0.042619891464710236,
-0.12560543417930603,
-0.0768943503499031,
-0.4428113102912903,
0.04011132940649986,
0.3885585069656372,
-0.4339446425437927,
0.16909706592559814,
0.6197513937950134,
0.004332400858402252,
0.1773359179496765,
0.38907498121261597,
0.11327746510505676,
0.013830162584781647,
0.6791504621505737,
0.02654355764389038,
0.32086747884750366,
0.3201982378959656,
-0.11896373331546783,
0.09293325990438461,
-0.09435391426086426,
0.07580271363258362,
-0.2698482871055603,
-0.2856898903846741,
0.2321782112121582,
0.08914383500814438,
-0.006661050021648407,
-0.3313007950782776,
-0.05999479815363884,
0.006547058001160622,
0.3166712820529938,
-0.24911105632781982,
-0.07740187644958496,
-0.05085331201553345,
-0.056309495121240616,
0.19673705101013184,
-0.05537853389978409,
-0.251625657081604,
-0.10578599572181702,
0.4781983196735382,
0.1616421937942505,
0.048096418380737305,
-0.21938633918762207,
-0.05508244037628174,
0.21410876512527466,
0.2809603214263916,
-0.2896917462348938,
0.060171350836753845,
0.29711008071899414,
-0.1570807546377182,
-0.2346583604812622,
0.1563752442598343,
0.3924591839313507,
0.15102896094322205,
0.12923239171504974,
0.14918695390224457,
0.04692091792821884,
-0.215508371591568,
0.1399225890636444,
0.1967819780111313,
-0.057277947664260864,
0.06299552321434021,
0.1710461676120758,
0.1972791701555252,
-0.18511831760406494,
0.07999174296855927,
0.18096478283405304,
0.27027323842048645,
-0.09439697861671448,
0.49316754937171936,
-0.14642800390720367,
-0.4655367136001587,
0.004909772425889969,
0.08173532783985138,
-0.04880315437912941,
-0.011434595100581646,
0.4544948637485504,
0.03912375494837761,
0.07215219736099243,
-0.1666640192270279,
0.11946062743663788,
0.10832434892654419,
0.343827486038208,
0.3730084002017975,
-0.4471423923969269,
-0.37820717692375183,
-0.08310149610042572,
-0.4274824559688568,
-0.051516883075237274,
-0.010502208024263382,
-0.0757494643330574,
-0.0498400516808033,
-0.015898143872618675,
-0.07845485955476761,
-0.07171109318733215,
0.28252989053726196,
-0.07656797766685486,
0.031772587448358536,
0.49282699823379517,
-0.17429763078689575,
-0.07816827297210693,
0.22102661430835724,
0.05407239496707916,
0.08433561027050018,
-0.4384554624557495,
0.3879522383213043,
0.3464072048664093,
0.12487632781267166,
-0.28082388639450073,
0.09618999063968658,
0.20243579149246216,
0.1928015649318695,
0.4804943799972534,
0.0663614273071289,
0.027349762618541718,
-0.06691576540470123,
-0.33719274401664734,
-0.015191640704870224,
-0.047307826578617096,
-0.09021005779504776,
0.07538072764873505,
0.09147427976131439,
0.42266783118247986,
0.023997219279408455,
-0.19419360160827637,
-0.33096957206726074,
0.21396462619304657,
-0.24417367577552795,
0.14770065248012543,
-0.22380785644054413,
0.11571940034627914,
0.2566613256931305,
0.07305701822042465,
0.08291290700435638,
0.05591246858239174,
-0.026504896581172943,
0.6643058061599731,
-0.44868534803390503,
-0.44179537892341614,
0.5646383762359619,
-0.05267459154129028,
-0.5221442580223083,
0.05836547166109085,
0.4157535135746002,
-0.10478968173265457,
-0.0768280178308487,
-0.4792670011520386,
-0.13390420377254486,
0.33356693387031555,
-0.13860058784484863,
-0.24728542566299438,
0.37738868594169617,
-0.15689235925674438,
0.21295170485973358,
0.08694198727607727,
0.7443242073059082,
-0.019681017845869064,
-0.21628549695014954,
0.21120873093605042,
-0.09522785991430283
] |
https://github.com/huggingface/datasets/issues/2688 | hebrew language codes he and iw should be treated as aliases | Hi @eyaler, thanks for reporting.
While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4). | https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. | 46 | hebrew language codes he and iw should be treated as aliases
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
Hi @eyaler, thanks for reporting.
While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4). | [
-0.1847829818725586,
-0.0222233384847641,
-0.15432126820087433,
0.03292042016983032,
0.02828647755086422,
0.07203570753335953,
0.550944447517395,
0.31172338128089905,
0.052216824144124985,
0.10430482029914856,
-0.34079548716545105,
-0.26254117488861084,
0.017813192680478096,
0.009818604215979576,
0.17780624330043793,
0.10359227657318115,
0.07632701843976974,
0.0028082653880119324,
0.03070254623889923,
-0.25993502140045166,
-0.24830177426338196,
0.16670985519886017,
0.03564249724149704,
0.23090234398841858,
-0.3309552073478699,
0.07476740330457687,
0.23507988452911377,
-0.0006582364439964294,
0.09454401582479477,
-0.260038286447525,
-0.05056428536772728,
-0.02181481570005417,
-0.11512015014886856,
0.4908219277858734,
-0.00010460459452588111,
0.2001447230577469,
0.3720235228538513,
-0.1461259126663208,
-0.2577265501022339,
-0.4023934602737427,
0.04965825378894806,
-0.06524992734193802,
-0.34109482169151306,
-0.1979907751083374,
-0.3883952498435974,
-0.20930057764053345,
-0.08249034732580185,
-0.42586076259613037,
-0.02391451597213745,
0.21440842747688293,
0.21118982136249542,
0.46984270215034485,
-0.13914360105991364,
0.10683790594339371,
-0.019965440034866333,
-0.21264244616031647,
-0.0785035490989685,
0.21423199772834778,
0.05358041450381279,
0.5240817070007324,
0.2998705804347992,
0.5605413317680359,
0.21119892597198486,
-0.07978442311286926,
-0.12257956713438034,
0.24120627343654633,
-0.11610514670610428,
-0.15452031791210175,
0.2309415638446808,
0.29403752088546753,
0.36403709650039673,
-0.3231702148914337,
-0.10783059149980545,
0.0924713984131813,
-0.05159382522106171,
-0.2096339911222458,
0.48786792159080505,
0.1322401762008667,
-0.08334234356880188,
0.27224382758140564,
-0.016274845227599144,
-0.29009178280830383,
0.025776349008083344,
0.255477637052536,
-0.23943662643432617,
0.5161862373352051,
0.1004750058054924,
0.047917671501636505,
0.10231982171535492,
-0.2073661834001541,
0.24903099238872528,
-0.2282046675682068,
0.15345124900341034,
0.09446198493242264,
0.0936850756406784,
-0.26201480627059937,
-0.2162768542766571,
0.014502797275781631,
-0.340613454580307,
-0.3154469132423401,
0.07597318291664124,
0.2595084607601166,
-0.18257160484790802,
0.042056676000356674,
-0.3105461299419403,
0.05594338849186897,
0.43051838874816895,
-0.26734936237335205,
0.4529971480369568,
-0.2308996170759201,
0.002623770385980606,
-0.14282694458961487,
-0.037915728986263275,
-0.06012651324272156,
-0.31481215357780457,
-0.14796048402786255,
-0.005595516413450241,
0.29824286699295044,
0.02293587289750576,
-0.049145787954330444,
-0.4983116388320923,
-0.5706425905227661,
-0.030425716191530228,
0.3789435625076294,
0.1616673469543457,
-0.3083956837654114,
-0.14611518383026123,
-0.039629027247428894,
-0.32005763053894043,
-0.5419686436653137,
-0.20431123673915863,
0.10960741341114044,
-0.14667797088623047,
-0.08252522349357605,
0.08077892661094666,
-0.18208499252796173,
0.30798378586769104,
-0.09467612206935883,
0.031420573592185974,
0.16003887355327606,
-0.24208316206932068,
0.0018398743122816086,
0.3078254163265228,
0.06600088626146317,
-0.12639687955379486,
0.08215169608592987,
-0.0706283301115036,
-0.2200494408607483,
-0.1961161494255066,
0.13257715106010437,
-0.3130846321582794,
0.11749568581581116,
0.24772100150585175,
0.20299388468265533,
-0.1501322090625763,
-0.004774004220962524,
0.06287088245153427,
0.2855406105518341,
-0.014290548861026764,
0.06296941637992859,
0.3462482988834381,
-0.05151458829641342,
0.0772700160741806,
-0.10474437475204468,
-0.10492236167192459,
0.27858462929725647,
-0.48335471749305725,
-0.44567665457725525,
0.11262193322181702,
-0.03399641811847687,
-0.0810493603348732,
0.5016025304794312,
-0.29188063740730286,
0.17239701747894287,
-0.174690380692482,
0.37073153257369995,
0.29215508699417114,
-0.3053906559944153,
-0.31079715490341187,
-0.0459153912961483,
0.044210828840732574,
-0.058015111833810806,
-0.16853243112564087,
-0.1529695987701416,
0.0498177744448185,
-0.14014343917369843,
0.07990303635597229,
-0.06562846899032593,
0.20237526297569275,
-0.1784927248954773,
-0.05079507827758789,
0.037785179913043976,
0.3984747529029846,
-0.012750695459544659,
0.1060541421175003,
-0.02192293107509613,
0.11212467402219772,
-0.009024566039443016,
0.25457271933555603,
-0.15081466734409332,
0.2193586379289627,
0.06149550527334213,
0.04006410017609596,
0.10596691071987152,
0.18416649103164673,
-0.010976629331707954,
-0.19527986645698547,
0.07958725094795227,
-0.12081964313983917,
0.261523962020874,
-0.06321468949317932,
0.06690625101327896,
0.07041165232658386,
-0.13752320408821106,
-0.14282260835170746,
-0.12687693536281586,
0.23770803213119507,
0.03594726696610451,
-0.12610189616680145,
0.25917115807533264,
-0.2723129093647003,
0.09403214603662491,
-0.32694342732429504,
0.02854474075138569,
-0.1553587168455124,
0.162870854139328,
-0.12213655561208725,
0.03931757062673569,
-0.21293622255325317,
0.3802618682384491,
0.12436677515506744,
-0.46716752648353577,
-0.09332117438316345,
0.08448193967342377,
-0.2620692253112793,
0.1656300127506256,
0.11117912083864212,
0.510831892490387,
0.5489291548728943,
-0.3658972382545471,
0.31552016735076904,
0.18581156432628632,
-0.051041338592767715,
-0.10899172723293304,
0.23493388295173645,
0.2308352291584015,
0.3495798707008362,
0.11669977009296417,
0.1217740923166275,
-0.22671370208263397,
0.4270852506160736,
0.035843100398778915,
-0.14118461310863495,
-0.3088139295578003,
-0.09274545311927795,
0.11466553807258606,
0.5891357660293579,
0.25243234634399414,
-0.1919257938861847,
0.08646857738494873,
1.0686200857162476,
-0.2139691710472107,
-0.07196729630231857,
0.09561686217784882,
-0.28672879934310913,
0.10481282323598862,
0.034709349274635315,
-0.11564157158136368,
0.05913437902927399,
0.13227404654026031,
0.29811760783195496,
0.18102410435676575,
0.19423556327819824,
-0.27482870221138,
0.3244129419326782,
0.2057235687971115,
0.00291146757081151,
-0.0032605864107608795,
0.08014360815286636,
-0.18539506196975708,
-0.427756130695343,
0.1569378525018692,
0.058292679488658905,
-0.19040435552597046,
-0.22719645500183105,
0.2576307952404022,
-0.4687191843986511,
-0.10345253348350525,
-0.3631170988082886,
-0.42768242955207825,
-0.5842370986938477,
-0.07407715916633606,
0.0689162015914917,
-0.23834919929504395,
-0.010095199570059776,
0.2999586760997772,
0.3809865415096283,
0.16389454901218414,
-0.342934787273407,
0.055786602199077606,
-0.2732776403427124,
-0.18711088597774506,
-0.2862940728664398,
0.14061887562274933,
0.11635436117649078,
-0.30613815784454346,
0.27843111753463745,
-0.37964287400245667,
-0.2748766541481018,
-0.18655690550804138,
-0.4455602765083313,
0.4134852886199951,
-0.16880953311920166,
-0.11801829934120178,
-0.11873343586921692,
-0.027259163558483124,
-0.04759589582681656,
-0.08130590617656708,
-0.0034810910001397133,
-0.27977171540260315,
-0.2955232262611389,
-0.27350959181785583,
-0.054481592029333115,
0.038749344646930695,
-0.08339841663837433,
-0.5276795625686646,
-0.6048946976661682,
-0.047169655561447144,
0.00812409445643425,
-0.1959528625011444,
-0.027698755264282227,
0.124163918197155,
-0.23776501417160034,
-0.1558341681957245,
0.2911195755004883,
-0.20685744285583496,
-0.3472428023815155,
-0.09257492423057556,
0.203681081533432,
-0.4344358742237091,
-0.09207908809185028,
0.1560341864824295,
0.02181844413280487,
0.47030386328697205,
0.07393459230661392,
-0.024965040385723114,
0.38927945494651794,
0.02562061883509159,
0.2439538836479187,
0.2953721582889557,
-0.05416884273290634,
0.2268235981464386,
0.005541010294109583,
-0.10261204093694687,
-0.3346845209598541,
0.034510429948568344,
0.27233821153640747,
0.05606894940137863,
0.34729740023612976,
0.45921704173088074,
0.11060893535614014,
0.10231524705886841,
0.433211088180542,
0.13357453048229218,
-0.3373230993747711,
0.31719157099723816,
0.1943787783384323,
0.32832837104797363,
-0.22449222207069397,
-0.043506473302841187,
0.1524137705564499,
0.08910565823316574,
0.24029479920864105,
0.3073195815086365,
-0.05827781558036804,
-0.11261221021413803,
-0.015106651932001114,
-0.06891541182994843,
-0.41283780336380005,
-0.19738265872001648,
0.08300095796585083,
0.1685197353363037,
0.31297728419303894,
0.4733051061630249,
0.06576784700155258,
-0.1082371175289154,
-0.19082960486412048,
0.3424510359764099,
0.18064993619918823,
-0.14936259388923645,
0.14261700212955475,
-0.39244401454925537,
-0.2826724946498871,
-0.5756275057792664,
0.11832506209611893,
0.12055757641792297,
0.2156468778848648,
-0.024203293025493622,
0.06320980936288834,
0.12141437828540802,
0.12165988236665726,
0.43903088569641113,
-0.3354901075363159,
-0.057870008051395416,
0.10016226768493652,
-0.0477772057056427,
0.11524731665849686,
-0.08922556042671204,
-0.4080404043197632,
0.1072462648153305,
0.5992041826248169,
0.25950050354003906,
-0.312233030796051,
-0.32054397463798523,
-0.004613097757101059,
-0.12596110999584198,
-0.24762044847011566,
-0.27671921253204346,
-0.057068001478910446,
-0.13513398170471191,
-0.13763196766376495,
-0.3238416314125061,
0.13893739879131317,
-0.10936924815177917,
-0.1388464868068695,
0.10050395131111145,
0.3756709098815918,
-0.17481940984725952,
0.26265496015548706,
0.17233027517795563,
0.16976621747016907,
0.3030054271221161,
-0.2415594756603241,
0.4288000464439392,
0.3547993302345276,
0.4820901155471802,
0.39266857504844666,
-0.10906457901000977,
-0.3789316713809967,
-0.08148748427629471,
-0.26883602142333984,
0.2420610785484314,
0.4999496340751648,
0.13798700273036957,
0.06858503818511963,
0.03407863527536392,
-0.12369927763938904,
-0.11908970028162003,
0.18127433955669403,
0.24222847819328308,
0.3162495195865631,
-0.2268507480621338,
-0.4142288267612457,
0.21508687734603882,
-0.34164726734161377,
-0.008280351758003235,
0.27259284257888794,
0.30269700288772583,
-0.33498966693878174,
0.043440110981464386,
0.09654034674167633,
1.0030601024627686,
0.12500536441802979,
-0.043285589665174484,
0.14594021439552307,
-0.12848225235939026,
0.265216201543808,
-0.4718647599220276,
-0.026832755655050278,
-0.05502089112997055,
0.3103029131889343,
-0.13043898344039917,
-0.017136190086603165,
-0.07885933667421341,
0.4574534296989441,
0.07109546661376953,
0.35847797989845276,
0.012664690613746643,
0.20631985366344452,
0.24660126864910126,
0.10022984445095062,
0.09536962956190109,
-0.19745609164237976,
-0.10752074420452118,
0.12766651809215546,
-0.0016971491277217865,
0.2657643258571625,
-0.16747063398361206,
-0.25537192821502686,
-0.0706624835729599,
0.08189558237791061,
0.05573800206184387,
-0.12312553822994232,
-0.28675347566604614,
0.3074188828468323,
0.0006252266466617584,
-0.27951693534851074,
0.23783859610557556,
-0.04106701537966728,
0.8017967343330383,
-0.0641525536775589,
-0.1351790726184845,
0.34637704491615295,
0.103981614112854,
0.04795295000076294,
-0.15430428087711334,
-0.01860036328434944,
0.18502986431121826,
-0.14754393696784973,
-0.44317203760147095,
0.12059254944324493,
0.053284503519535065,
-0.27495813369750977,
-0.28681832551956177,
-0.0032011941075325012,
-0.2513623833656311,
0.2532126307487488,
0.2322181612253189,
0.2417043298482895,
-0.08406089246273041,
-0.15915554761886597,
0.146456778049469,
-0.3185129165649414,
0.058534279465675354,
-0.31144005060195923,
0.29338809847831726,
-0.19855591654777527,
-0.33023759722709656,
0.08317407965660095,
0.2927168011665344,
-0.07695935666561127,
0.3099733591079712,
0.06493940949440002,
-0.3664093613624573,
-0.12309618294239044,
-0.26811546087265015,
0.39064255356788635,
-0.11100999265909195,
-0.07927649468183517,
0.08778899163007736,
-0.09826765954494476,
-0.41581904888153076,
0.19062292575836182,
0.025019120424985886,
0.11569033563137054,
-0.3648861348628998,
-0.018026843667030334,
-0.01664954237639904,
0.25286486744880676,
-0.22554410994052887,
-0.08736731112003326,
0.104865662753582,
0.5610264539718628,
-0.06586017459630966,
-0.0028842762112617493,
-0.3408401608467102,
0.04991638660430908,
0.08088325709104538,
0.016620831564068794,
0.1480219066143036,
-0.1096230074763298,
0.20107585191726685,
0.05782819911837578,
0.0989101231098175,
0.03251003846526146,
-0.34312379360198975,
-0.20320501923561096,
-0.18244820833206177,
0.06596808135509491,
-0.03711812198162079,
-0.020119599997997284,
-0.01069930661469698,
0.022533338516950607,
0.20199407637119293,
-0.24637606739997864,
0.13905338943004608,
0.14083725214004517,
0.2217385470867157,
0.4221210181713104,
0.3345206081867218,
-0.11490609496831894,
0.11290618777275085,
-0.05549325793981552,
0.20610928535461426,
0.4034079909324646,
0.15212535858154297,
0.023726515471935272,
-0.005210758186876774,
0.04826073348522186,
0.02131536789238453,
0.19400674104690552,
0.016373135149478912,
0.16171270608901978,
0.20074623823165894,
-0.3083592653274536,
0.19750013947486877,
0.03983451426029205,
0.15420325100421906,
0.12450313568115234,
-0.35962894558906555,
-0.3416133224964142,
0.19547730684280396,
0.22104252874851227,
-0.34054601192474365,
-0.25116389989852905,
0.23237229883670807,
0.15888214111328125,
0.24423325061798096,
0.24020633101463318,
0.6543262600898743,
0.2860359251499176,
0.1946173906326294,
-0.09122791141271591,
0.4273206889629364,
-0.4784703850746155,
0.024070480838418007,
-0.19361601769924164,
0.014433588832616806,
0.289408802986145,
0.5641236305236816,
0.006003376096487045,
-0.07564794272184372,
0.5502740740776062,
0.09726071357727051,
0.18816161155700684,
0.17056316137313843,
0.2047501504421234,
0.03708506375551224,
-0.16479544341564178,
-0.13292734324932098,
0.023648567497730255,
-0.12424851953983307,
0.3433172106742859,
0.11488758772611618,
-0.18670177459716797,
0.2773750424385071,
-0.32521387934684753,
-0.001471240073442459,
-0.02786528691649437,
-0.2706684470176697,
-0.05553390830755234,
-0.11099164932966232,
-0.12493157386779785,
-0.0332508310675621,
0.19421783089637756,
0.11142332851886749,
-0.0464758574962616,
0.07968749850988388,
0.15886491537094116,
-0.12168887257575989,
0.08063405752182007,
-0.10100414603948593,
-0.29852625727653503,
0.0116502046585083,
-0.09982646256685257,
0.25142163038253784,
0.07647185027599335,
-0.10488426685333252,
0.09954391419887543,
-0.05043435096740723,
0.08873383700847626,
-0.17288990318775177,
0.1524938941001892,
0.21567153930664062,
-0.23036156594753265,
-0.19269005954265594,
-0.1122017502784729,
0.05102257803082466,
0.31615161895751953,
-0.12403121590614319,
0.09321320056915283,
0.1494019478559494,
-0.13092263042926788,
-0.16433191299438477,
0.3775976896286011,
0.1715942770242691,
-0.19050496816635132,
-0.023326419293880463,
-0.27052041888237,
-0.030778273940086365,
-0.3539094924926758,
0.005744904279708862,
-0.41285440325737,
0.3363724648952484,
0.4712306559085846,
-0.30974188446998596,
-0.0023273201659321785,
-0.0018184171058237553,
0.11367951333522797,
0.03904734551906586,
0.4614466726779938,
-0.07123947143554688,
-0.04011215269565582,
0.010814697481691837,
-0.3932802081108093,
-0.31231141090393066,
-0.04989033192396164,
-0.2666437029838562,
0.7237251996994019,
-0.2092272937297821,
0.15341536700725555,
0.47594037652015686,
-0.12840762734413147,
0.5029773712158203,
0.029253283515572548,
-0.09311770647764206,
-0.32358941435813904,
-0.3461981415748596,
-0.043154027312994,
0.031019221991300583,
0.32632461190223694,
0.07891511917114258,
0.1403752863407135,
0.10001295804977417,
-0.27650967240333557,
-0.00007034093141555786,
-0.2109871655702591,
0.19741854071617126,
0.4074781835079193,
-0.04485245794057846,
0.26846522092819214,
0.13919633626937866,
0.40695714950561523,
-0.223152756690979,
-0.10189139097929001,
0.12561939656734467,
-0.02640819363296032,
-0.25765106081962585,
0.47381922602653503,
-0.03135637566447258,
0.06708738952875137,
-0.13279759883880615,
-0.39894673228263855,
-0.1315801441669464,
0.4251702129840851,
0.11499319970607758,
0.10584092140197754,
-0.2703820466995239,
-0.030484803020954132,
-0.3385734558105469,
0.015402911230921745,
0.09254495054483414,
0.3840616047382355,
0.008444365113973618,
-0.19052551686763763,
0.00917740911245346,
-0.2055167406797409,
0.4161728620529175,
-0.28876742720603943,
-0.18608418107032776,
-0.17037616670131683,
0.13274361193180084,
0.11813181638717651,
0.11678718030452728,
-0.31958064436912537,
-0.047924790531396866,
0.3436790406703949,
-0.09135622531175613,
-0.3525879681110382,
0.2031984180212021,
0.022765548899769783,
-0.04068613797426224,
-0.03986597806215286,
0.01405445858836174,
0.2593044340610504,
-0.3928059935569763,
-0.037773653864860535,
-0.1988813877105713
] |
https://github.com/huggingface/datasets/issues/2688 | hebrew language codes he and iw should be treated as aliases | For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37
Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
| https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. | 30 | hebrew language codes he and iw should be treated as aliases
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37
Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
| [
-0.1667790412902832,
-0.08356913179159164,
-0.08920267224311829,
0.06112174317240715,
0.2324797660112381,
-0.01803595945239067,
0.2219809591770172,
0.4122386574745178,
-0.01588456891477108,
-0.018412411212921143,
-0.314092755317688,
-0.16981220245361328,
0.003346863202750683,
0.2545406222343445,
0.19325339794158936,
0.19753487408161163,
0.016377724707126617,
-0.04768367111682892,
-0.09808652102947235,
-0.11507904529571533,
-0.16931164264678955,
0.2598113715648651,
0.021297939121723175,
0.10309760272502899,
-0.3453691303730011,
0.18143963813781738,
0.09315365552902222,
0.22526085376739502,
-0.19601203501224518,
-0.3190946578979492,
-0.018225358799099922,
0.09396582841873169,
-0.0006312569603323936,
0.4357661008834839,
-0.00010592045146040618,
0.03304430842399597,
0.38002467155456543,
-0.19922812283039093,
-0.376278817653656,
-0.2892414331436157,
0.020963869988918304,
-0.23936602473258972,
-0.25597649812698364,
-0.08116187900304794,
-0.4343549907207489,
-0.1628270298242569,
-0.1122971922159195,
-0.43392127752304077,
0.10440530627965927,
0.19892090559005737,
0.2612396478652954,
0.35634517669677734,
-0.03299431875348091,
-0.035164933651685715,
-0.1176437959074974,
0.022888123989105225,
-0.11342020332813263,
0.17921464145183563,
0.15805000066757202,
0.34892287850379944,
0.14830122888088226,
0.5432710647583008,
0.2903342545032501,
-0.07641234993934631,
-0.1122618094086647,
0.11476428061723709,
0.0032074078917503357,
0.05725892633199692,
0.32403436303138733,
0.14874911308288574,
0.31665316224098206,
-0.24158957600593567,
-0.15542781352996826,
-0.056817639619112015,
-0.1319238692522049,
0.024327656254172325,
0.5333499908447266,
0.17463397979736328,
-0.16490894556045532,
0.25876498222351074,
-0.296187162399292,
-0.3384999930858612,
0.15532822906970978,
0.24982893466949463,
-0.07719478011131287,
0.42428913712501526,
-0.08886329084634781,
-0.09679441899061203,
0.25409558415412903,
-0.37602299451828003,
0.23491285741329193,
-0.08906372636556625,
0.06638894975185394,
0.11926113814115524,
0.11986248195171356,
-0.1865350306034088,
-0.02332809567451477,
0.4402766525745392,
-0.06545985490083694,
-0.1952182501554489,
-0.020640820264816284,
0.44892147183418274,
0.028277359902858734,
-0.12216470390558243,
-0.21540530025959015,
0.01958194375038147,
0.4062904715538025,
-0.29216518998146057,
0.4357166290283203,
0.17941914498806,
0.029978271573781967,
-0.12225870043039322,
-0.0275854654610157,
0.009977945126593113,
-0.34330442547798157,
-0.15357068181037903,
0.003357561305165291,
-0.015800748020410538,
0.05647106468677521,
-0.23618850111961365,
-0.33660829067230225,
-0.5890080332756042,
0.06294204294681549,
0.5665410757064819,
0.13119298219680786,
-0.3434547483921051,
-0.13096188008785248,
0.02670523151755333,
-0.37444695830345154,
-0.5479009747505188,
-0.18467332422733307,
0.0057194046676158905,
-0.27936825156211853,
0.08022964000701904,
0.22987566888332367,
-0.026113122701644897,
0.24470189213752747,
-0.05600642040371895,
0.04258834198117256,
0.14333078265190125,
-0.20350335538387299,
0.2507776916027069,
0.1929474025964737,
-0.0188651941716671,
-0.051100119948387146,
0.09143532067537308,
0.07679011672735214,
-0.09555793553590775,
-0.11638347059488297,
-0.21181762218475342,
-0.08287153393030167,
-0.03787470608949661,
0.3168014585971832,
0.2138490527868271,
-0.09610185027122498,
0.0332692414522171,
0.12874381244182587,
0.28744786977767944,
-0.244208425283432,
-0.05018666386604309,
0.08779188990592957,
0.11123726516962051,
0.13603609800338745,
0.01658587157726288,
0.10651137679815292,
0.5581032633781433,
-0.15082675218582153,
-0.4534163475036621,
0.005912608001381159,
0.06847774237394333,
-0.05261682718992233,
0.21695907413959503,
-0.26502731442451477,
-0.03961838781833649,
-0.27802571654319763,
0.19990457594394684,
0.22167235612869263,
-0.261160671710968,
-0.3147503733634949,
0.1042899340391159,
-0.0508711040019989,
0.07835780084133148,
-0.058268316090106964,
-0.2508696913719177,
-0.09137117862701416,
-0.03128782659769058,
0.14336279034614563,
-0.025013834238052368,
0.21209533512592316,
-0.14666108787059784,
-0.16139577329158783,
0.009155312553048134,
0.10786115378141403,
0.03102290630340576,
0.05633966624736786,
0.03327497839927673,
0.29917100071907043,
0.03291505202651024,
0.3045867383480072,
-0.14292840659618378,
0.3440972566604614,
0.10782156139612198,
0.10124432295560837,
0.10821925848722458,
0.1702219843864441,
0.027600005269050598,
-0.1284167468547821,
-0.013359317556023598,
-0.12664714455604553,
0.44527724385261536,
-0.3261273503303528,
0.0027912259101867676,
-0.08439268916845322,
-0.16437870264053345,
-0.2925623059272766,
-0.247625470161438,
0.28042250871658325,
0.2389826625585556,
0.13203102350234985,
0.24330519139766693,
-0.04123375564813614,
0.2225048989057541,
-0.04792580008506775,
0.04273542761802673,
-0.177330881357193,
0.1300031989812851,
-0.17181913554668427,
0.08895318955183029,
-0.05050009489059448,
0.3366716802120209,
0.2604978382587433,
-0.4208654761314392,
-0.03334861621260643,
0.19787999987602234,
-0.22655482590198517,
0.018190406262874603,
0.42229509353637695,
0.34691691398620605,
0.46151718497276306,
-0.4829177260398865,
0.24790918827056885,
0.2108456790447235,
-0.01701335795223713,
-0.054895248264074326,
0.1468934416770935,
0.27380383014678955,
0.19131335616111755,
0.17750227451324463,
0.2302999049425125,
0.031356580555438995,
0.539722740650177,
0.08329595625400543,
-0.11530646681785583,
-0.5012763738632202,
0.07007011771202087,
-0.1024852842092514,
0.5470173358917236,
0.04932559281587601,
-0.22173479199409485,
0.22882860898971558,
0.5540848970413208,
-0.07128266990184784,
-0.002407267689704895,
0.0742134228348732,
-0.31269437074661255,
0.034273963421583176,
0.10633192956447601,
-0.014678064733743668,
-0.011430695652961731,
0.26965394616127014,
0.1796232908964157,
0.17941470444202423,
0.1878887414932251,
-0.28129133582115173,
0.34737494587898254,
0.10715015977621078,
-0.06310652941465378,
-0.032603271305561066,
0.13926595449447632,
-0.2676078677177429,
-0.5354726910591125,
0.05884866043925285,
-0.11642903834581375,
-0.24010351300239563,
-0.24076735973358154,
0.15072940289974213,
-0.49245816469192505,
-0.27974870800971985,
-0.32699325680732727,
-0.4875524938106537,
-0.5873593091964722,
-0.12755638360977173,
0.12733694911003113,
-0.22874504327774048,
-0.03040193021297455,
0.2408621609210968,
0.10119040310382843,
0.05555424094200134,
-0.3660438060760498,
0.09106449037790298,
-0.25256645679473877,
-0.11768772453069687,
-0.2850549817085266,
0.15810561180114746,
0.2618583142757416,
-0.14136996865272522,
0.3274267613887787,
-0.5285532474517822,
-0.10046668350696564,
-0.4033679962158203,
-0.5248309969902039,
0.45199403166770935,
-0.050759851932525635,
0.08642829954624176,
0.10220539569854736,
0.06596491485834122,
-0.10339149832725525,
-0.06350094079971313,
0.3658277094364166,
-0.2740927040576935,
-0.25762438774108887,
-0.04715682193636894,
-0.03313014283776283,
-0.011717323213815689,
-0.10120469331741333,
-0.451506108045578,
-0.4519302546977997,
-0.13686776161193848,
-0.07349503040313721,
0.030394505709409714,
-0.06782884895801544,
0.05358007922768593,
-0.19673295319080353,
-0.11933767795562744,
-0.021013665944337845,
-0.09749402850866318,
-0.33913490176200867,
-0.06350375711917877,
0.38065969944000244,
-0.49071845412254333,
-0.2501941919326782,
0.0935726910829544,
0.08472301065921783,
0.33257466554641724,
-0.07344023138284683,
-0.010787371546030045,
0.2763570249080658,
-0.05866670608520508,
0.12567834556102753,
0.24470430612564087,
0.1293506771326065,
0.22931993007659912,
0.19690467417240143,
-0.19861146807670593,
-0.28332632780075073,
-0.07693932950496674,
0.18198999762535095,
-0.22171476483345032,
0.508034884929657,
0.2685968279838562,
0.07530152052640915,
0.05917936936020851,
0.2819244861602783,
0.23166221380233765,
-0.03144718334078789,
0.5248017311096191,
0.09785652160644531,
0.390888512134552,
-0.10251794010400772,
-0.18204045295715332,
0.06403902918100357,
0.08608180284500122,
0.26434510946273804,
0.38467341661453247,
0.15787285566329956,
0.09935817122459412,
-0.2987895607948303,
-0.08008743077516556,
-0.5482739806175232,
-0.21853536367416382,
-0.04319899529218674,
0.10957875102758408,
0.259834349155426,
0.4453328847885132,
0.09547968953847885,
-0.08525204658508301,
-0.16594097018241882,
0.3163279592990875,
0.21111056208610535,
-0.20774918794631958,
0.26653507351875305,
-0.4891829490661621,
-0.15793317556381226,
-0.48866379261016846,
0.2576249837875366,
0.06156432628631592,
0.17764604091644287,
-0.08521203696727753,
-0.09917893260717392,
0.23099380731582642,
-0.02147047594189644,
0.4347791075706482,
-0.3138706088066101,
-0.07235103845596313,
0.016222983598709106,
-0.1698952466249466,
0.040079787373542786,
0.06437160074710846,
-0.29644688963890076,
0.18765024840831757,
0.5032923221588135,
0.20435990393161774,
-0.4638079106807709,
-0.2545907199382782,
-0.014585986733436584,
-0.16794148087501526,
-0.13087186217308044,
-0.24496053159236908,
-0.08606772124767303,
-0.10806995630264282,
-0.1544160395860672,
-0.28141215443611145,
-0.010272125713527203,
0.16952234506607056,
-0.0051582008600234985,
0.04540424421429634,
0.39107415080070496,
-0.17134219408035278,
0.21341443061828613,
0.4395766258239746,
0.3315402865409851,
0.10936009883880615,
-0.14358626306056976,
0.5581196546554565,
0.4516914486885071,
0.4931235909461975,
0.5625644326210022,
0.03715408220887184,
-0.22617706656455994,
-0.12746316194534302,
-0.20548100769519806,
0.14982545375823975,
0.4963572323322296,
0.18814705312252045,
-0.0026741698384284973,
0.2085568904876709,
0.0794466957449913,
-0.1160137876868248,
0.004847268108278513,
0.08488841354846954,
0.15997712314128876,
-0.3092437982559204,
-0.2858946919441223,
0.19674351811408997,
-0.4800972044467926,
0.022712342441082,
0.13603490591049194,
0.5112379789352417,
-0.3989124596118927,
-0.05604847893118858,
0.03883340209722519,
1.0443204641342163,
0.08342692255973816,
-0.0888737291097641,
-0.038005925714969635,
-0.10198855400085449,
0.17080898582935333,
-0.31624478101730347,
-0.0056049879640340805,
-0.01451822742819786,
0.496267706155777,
-0.054018616676330566,
0.026561517268419266,
0.02366563305258751,
0.3065558671951294,
-0.1433667093515396,
0.3628177046775818,
-0.026665791869163513,
0.20555633306503296,
0.1672714650630951,
0.08930151164531708,
-0.11651932448148727,
-0.13108505308628082,
-0.40018758177757263,
0.20693910121917725,
0.002755414694547653,
0.30165356397628784,
-0.14202159643173218,
-0.3613627552986145,
-0.20127733051776886,
-0.19890975952148438,
0.08409978449344635,
-0.0700172632932663,
-0.3903968930244446,
0.1370287984609604,
0.041674528270959854,
-0.17351599037647247,
0.1987258493900299,
-0.12131248414516449,
0.6124117374420166,
0.03383353725075722,
-0.33748099207878113,
0.28116780519485474,
0.058902617543935776,
-0.026648113504052162,
-0.16972607374191284,
0.006277570500969887,
0.018707051873207092,
-0.14438436925411224,
-0.44610828161239624,
0.03889838606119156,
0.06954359263181686,
-0.20948967337608337,
-0.20253145694732666,
-0.11526492238044739,
-0.2897151708602905,
0.16326993703842163,
0.09551316499710083,
0.06334629654884338,
0.05018549785017967,
-0.2919590473175049,
0.16024574637413025,
-0.3013710379600525,
0.023059429600834846,
-0.3883059322834015,
0.5311198234558105,
-0.004613906145095825,
-0.3006284534931183,
0.18694627285003662,
-0.02463853731751442,
-0.15381893515586853,
0.11079282313585281,
0.16922686994075775,
-0.38295120000839233,
-0.19937390089035034,
-0.22656115889549255,
0.35005179047584534,
-0.13629625737667084,
-0.1332390010356903,
0.18161696195602417,
-0.14823129773139954,
-0.21149177849292755,
0.3260599374771118,
0.0872611403465271,
-0.00835573673248291,
-0.1710878163576126,
-0.11185197532176971,
0.018998077139258385,
0.34216731786727905,
-0.15684683620929718,
-0.15719471871852875,
0.050859466195106506,
0.4591532051563263,
0.04871773719787598,
0.0771263912320137,
-0.3621399700641632,
-0.0012984168715775013,
-0.05753007531166077,
-0.06817926466464996,
0.07790018618106842,
0.0007971562445163727,
0.24967554211616516,
0.04480072110891342,
0.12849488854408264,
0.062114499509334564,
-0.4078616201877594,
-0.18528997898101807,
0.01125406101346016,
0.09064202755689621,
0.01798306219279766,
-0.20813918113708496,
-0.09242996573448181,
0.12494319677352905,
0.192003071308136,
-0.2983667850494385,
0.04131655767560005,
0.07881080359220505,
0.14412757754325867,
0.08696480095386505,
0.3329896628856659,
-0.438847154378891,
0.012805931270122528,
-0.09859184920787811,
0.16813910007476807,
0.19853675365447998,
0.17895899713039398,
-0.07088524848222733,
-0.08859997987747192,
-0.0354587621986866,
0.2975752651691437,
0.29213523864746094,
0.04178198426961899,
0.22763121128082275,
0.18885642290115356,
-0.2756192088127136,
0.18841873109340668,
0.28389421105384827,
0.32518529891967773,
0.16745494306087494,
-0.22086024284362793,
-0.1551877111196518,
0.1859317123889923,
0.2292255014181137,
-0.42455214262008667,
-0.2475096732378006,
0.27097460627555847,
-0.012471281923353672,
0.24133247137069702,
0.20417094230651855,
0.6218899488449097,
0.11915583908557892,
0.20239970088005066,
0.04921822249889374,
0.35674136877059937,
-0.284753680229187,
0.03348024934530258,
-0.12816517055034637,
0.07521864771842957,
0.298056423664093,
0.5230848789215088,
-0.17819638550281525,
-0.131415456533432,
0.5701141357421875,
-0.24489152431488037,
0.16408728063106537,
0.052740875631570816,
0.20454560220241547,
-0.1392393708229065,
-0.13264010846614838,
0.17637723684310913,
-0.040070146322250366,
0.08640774339437485,
0.22473794221878052,
-0.0004768446087837219,
0.1777471899986267,
0.05880661681294441,
-0.22872349619865417,
-0.1411401927471161,
-0.04801131412386894,
-0.21957382559776306,
-0.045709822326898575,
0.09105093777179718,
-0.37842315435409546,
-0.11719919741153717,
0.05762654170393944,
0.0785728320479393,
-0.11440625786781311,
0.2686808109283447,
-0.017896711826324463,
0.007978424429893494,
-0.432769238948822,
-0.04891088604927063,
-0.09541953355073929,
0.03957908973097801,
-0.13795296847820282,
0.2741236090660095,
0.17329831421375275,
-0.09634512662887573,
0.21652719378471375,
-0.018226252868771553,
0.215412437915802,
-0.05600053817033768,
0.11538983881473541,
0.0815468356013298,
-0.27196887135505676,
-0.22066308557987213,
-0.2305668592453003,
0.1775818020105362,
0.28135946393013,
-0.16584038734436035,
0.03419439122080803,
0.1749117374420166,
-0.1940271556377411,
-0.20475323498249054,
0.2067917287349701,
0.15733161568641663,
0.07713909447193146,
-0.07485539466142654,
-0.3715397119522095,
0.12322870641946793,
-0.2839224338531494,
-0.047447510063648224,
-0.43461161851882935,
0.4222891330718994,
0.33085212111473083,
-0.341086208820343,
-0.02607887051999569,
-0.20937654376029968,
0.12318107485771179,
0.2381916493177414,
0.4040839374065399,
-0.11322009563446045,
-0.12609660625457764,
0.03944199159741402,
-0.5264501571655273,
-0.5373830795288086,
-0.10350137203931808,
-0.21647611260414124,
0.4150046110153198,
-0.24933847784996033,
0.1059722751379013,
0.508851945400238,
-0.10906773805618286,
0.5761895775794983,
0.1663048416376114,
0.050690971314907074,
-0.30683666467666626,
-0.37913110852241516,
0.0902082547545433,
0.16998106241226196,
0.3119496703147888,
0.0322108156979084,
0.0636635348200798,
0.2861621677875519,
-0.2917150855064392,
0.05440342426300049,
-0.04957936704158783,
0.2915842831134796,
0.06949746608734131,
-0.34892866015434265,
0.19766724109649658,
0.2845185399055481,
0.4594613313674927,
-0.359226256608963,
-0.12852095067501068,
-0.10301069915294647,
-0.12031684815883636,
-0.03907269611954689,
0.4512983560562134,
0.02792169526219368,
0.22934246063232422,
-0.16790743172168732,
-0.4276466965675354,
-0.22773851454257965,
0.5062934160232544,
0.16060103476047516,
0.22747346758842468,
-0.12857341766357422,
0.05816391855478287,
-0.27751901745796204,
-0.06094801798462868,
-0.010172286070883274,
0.25178050994873047,
-0.029296956956386566,
-0.16795049607753754,
-0.02507653832435608,
-0.36888131499290466,
0.427546888589859,
-0.26792895793914795,
-0.21365495026111603,
0.0051193274557590485,
0.13107337057590485,
0.14382585883140564,
-0.13548626005649567,
-0.48224565386772156,
0.07070980221033096,
0.17727722227573395,
0.060700301080942154,
-0.21887992322444916,
0.33694905042648315,
-0.16136178374290466,
-0.11167015135288239,
-0.061789870262145996,
0.09237229824066162,
0.30874842405319214,
-0.22689682245254517,
0.015100385993719101,
-0.05352109298110008
] |
https://github.com/huggingface/datasets/issues/2681 | 5 duplicate datasets | Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix
For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion | ## Describe the bug
In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are:
- https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch
<img width="838" alt="Capture dβeΜcran 2021-07-20 aΜ 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png">
- https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2
- https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual
- https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive
- https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli
Possible solutions:
- don't fix (it works)
- for each pair of duplicate datasets, remove one, and create an alias to the other.
## Steps to reproduce the bug
Visit the Paperswithcode links, and look at the "Dataset Loaders" section
## Expected results
There should only be one reference to a Hugging Face dataset loader
## Actual results
Two Hugging Face dataset loaders
| 45 | 5 duplicate datasets
## Describe the bug
In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are:
- https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch
<img width="838" alt="Capture dβeΜcran 2021-07-20 aΜ 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png">
- https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2
- https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual
- https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive
- https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli
Possible solutions:
- don't fix (it works)
- for each pair of duplicate datasets, remove one, and create an alias to the other.
## Steps to reproduce the bug
Visit the Paperswithcode links, and look at the "Dataset Loaders" section
## Expected results
There should only be one reference to a Hugging Face dataset loader
## Actual results
Two Hugging Face dataset loaders
Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix
For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion | [
0.07028897106647491,
-0.030392520129680634,
0.00026492029428482056,
0.3026074469089508,
0.16153466701507568,
0.02248731255531311,
0.3812556862831116,
0.14873215556144714,
0.06321421265602112,
0.20608042180538177,
-0.14543543756008148,
0.058572378009557724,
0.13281553983688354,
-0.06307192891836166,
0.07194040715694427,
-0.00629701092839241,
0.2474248707294464,
-0.1418853998184204,
-0.22753086686134338,
-0.08221891522407532,
-0.14616389572620392,
0.2783467173576355,
-0.009433217346668243,
-0.14673486351966858,
-0.3533270061016083,
0.06876363605260849,
-0.08586148172616959,
0.4032171368598938,
-0.08312340825796127,
-0.21526718139648438,
0.384534627199173,
0.25883814692497253,
-0.1833365261554718,
0.3635750114917755,
-0.0001085839030565694,
0.13274991512298584,
0.11915448307991028,
0.15207713842391968,
-0.3095710575580597,
0.06150592118501663,
0.10821216553449631,
-0.01257565338164568,
0.017313633114099503,
-0.01100882887840271,
0.08298736065626144,
-0.3159564733505249,
0.09177552908658981,
-0.2431761473417282,
0.4125823378562927,
0.14126676321029663,
0.24768546223640442,
0.2306789755821228,
0.02865659072995186,
-0.15980452299118042,
0.3622327446937561,
0.012787453830242157,
-0.06770582497119904,
0.12477001547813416,
0.17059803009033203,
0.025871416553854942,
-0.0382998064160347,
0.5596491694450378,
0.0059262048453092575,
-0.10497331619262695,
0.03516938537359238,
0.181407168507576,
-0.03396113961935043,
-0.0845704972743988,
0.07112517207860947,
0.09556014835834503,
-0.0416179820895195,
-0.26653730869293213,
-0.29616788029670715,
-0.38107049465179443,
-0.07982917875051498,
0.15124477446079254,
0.33468493819236755,
-0.1314777135848999,
0.07322537899017334,
-0.10041506588459015,
-0.1617499440908432,
0.11536988615989685,
0.10036355257034302,
-0.03747507929801941,
0.053910672664642334,
-0.018183685839176178,
0.024516496807336807,
0.14577320218086243,
0.27915745973587036,
-0.09567283093929291,
0.04126335680484772,
-0.09639763087034225,
-0.2437048852443695,
0.12515881657600403,
-0.31862595677375793,
0.18476194143295288,
0.07415193319320679,
-0.014167241752147675,
0.450522780418396,
0.17456740140914917,
0.1664845049381256,
-0.12772318720817566,
-0.16611550748348236,
0.00628923624753952,
0.2641851603984833,
0.11394889652729034,
-0.2039259374141693,
0.17810580134391785,
0.17408013343811035,
0.2517188787460327,
-0.028144672513008118,
0.05426611006259918,
0.15935540199279785,
-0.19008482992649078,
0.006515976041555405,
-0.26852965354919434,
0.21321387588977814,
-0.268727570772171,
-0.3383702337741852,
0.15184643864631653,
-0.045143865048885345,
0.0742843896150589,
-0.22101785242557526,
0.23518913984298706,
0.22905178368091583,
0.13245020806789398,
0.16394437849521637,
-0.009107578545808792,
-0.2775208652019501,
-0.2676825225353241,
-0.3610760271549225,
0.03772512823343277,
-0.16983884572982788,
-0.013306759297847748,
0.05015743151307106,
-0.38854482769966125,
0.2597258687019348,
0.34442710876464844,
0.2077883630990982,
-0.20499438047409058,
0.08521697670221329,
0.018267812207341194,
-0.046519793570041656,
0.15205618739128113,
0.027193713933229446,
0.17768122255802155,
0.10240636020898819,
-0.28499388694763184,
0.07870376855134964,
-0.08898109942674637,
-0.08253202587366104,
-0.015492912381887436,
-0.2907680869102478,
0.25221261382102966,
0.007711891084909439,
0.06480409950017929,
-0.019112512469291687,
0.10383954644203186,
0.04207796975970268,
-0.1259654015302658,
0.0561729371547699,
0.003783736377954483,
-0.048553336411714554,
-0.0468565933406353,
0.05245325714349747,
0.5406347513198853,
0.12147565186023712,
-0.3457823693752289,
0.263302206993103,
-0.1628335416316986,
0.18128256499767303,
0.28038814663887024,
-0.21483778953552246,
-0.04443802684545517,
-0.46850740909576416,
-0.2270386517047882,
-0.037050046026706696,
-0.38877567648887634,
-0.4229963421821594,
0.1572687029838562,
-0.2734948992729187,
0.3648281395435333,
0.2113611251115799,
0.08954715728759766,
-0.06697014719247818,
-0.025857234373688698,
-0.11108340322971344,
0.027750862762331963,
0.0342649482190609,
0.10075142234563828,
-0.4402086138725281,
-0.3214188516139984,
0.07690843939781189,
0.15788660943508148,
-0.0070324912667274475,
-0.04005665332078934,
0.2076917141675949,
0.013901644386351109,
0.30164778232574463,
-0.07795725762844086,
-0.025600433349609375,
0.19172771275043488,
0.1942148059606552,
-0.05337360501289368,
0.31694328784942627,
0.11185962706804276,
-0.5789571404457092,
0.17407172918319702,
-0.25828468799591064,
0.08222635835409164,
0.12658536434173584,
-0.3745347261428833,
-0.12606452405452728,
-0.08620940893888474,
-0.4764726459980011,
-0.5406155586242676,
0.1560220867395401,
0.28490355610847473,
-0.04913832247257233,
-0.10527309775352478,
-0.24039460718631744,
0.551244854927063,
-0.2626473307609558,
0.21512556076049805,
-0.4765312969684601,
0.1979447901248932,
-0.07497958093881607,
0.15279199182987213,
0.11726900935173035,
0.10102759301662445,
0.0043882206082344055,
0.11118224263191223,
0.047326985746622086,
0.25894269347190857,
0.055244822055101395,
0.33315539360046387,
0.19391772150993347,
-0.01559266448020935,
0.3004573583602905,
-0.17417407035827637,
-0.1487468034029007,
0.11297917366027832,
0.08856875449419022,
0.06013065576553345,
-0.3865845203399658,
0.2396647185087204,
-0.20319655537605286,
0.0032816082239151,
-0.054834358394145966,
-0.13082410395145416,
0.29239964485168457,
-0.14161144196987152,
-0.0034339698031544685,
-0.5109376907348633,
0.25353145599365234,
0.08865223824977875,
0.4695347547531128,
0.19722552597522736,
-0.2442837655544281,
0.19277043640613556,
0.040799371898174286,
0.14078307151794434,
-0.1942286491394043,
-0.016259200870990753,
-0.14127492904663086,
-0.13492050766944885,
-0.0798632875084877,
0.1790764033794403,
0.36966729164123535,
0.28519898653030396,
-0.10356880724430084,
0.15104050934314728,
-0.13237802684307098,
-0.19445237517356873,
0.2456226646900177,
-0.23505814373493195,
-0.07997361570596695,
0.20352065563201904,
0.3219786584377289,
0.13787254691123962,
-0.6552866697311401,
-0.06861961632966995,
0.012459231540560722,
-0.003052128478884697,
-0.48601779341697693,
-0.16353169083595276,
-0.1157720759510994,
-0.3308979868888855,
-0.4506737291812897,
0.193776473402977,
-0.3726770877838135,
-0.2968257963657379,
0.21773380041122437,
0.18442727625370026,
-0.29092928767204285,
0.05593769997358322,
-0.17731568217277527,
0.5094555616378784,
-0.1905316710472107,
0.15088483691215515,
-0.10499221086502075,
0.1799396127462387,
-0.3306487202644348,
0.1656583994626999,
0.08999411761760712,
-0.12119875103235245,
0.35238754749298096,
-0.03895091637969017,
-0.21157416701316833,
-0.547298789024353,
-0.5236175060272217,
0.20843002200126648,
0.13915592432022095,
0.36966413259506226,
0.3066103458404541,
-0.1280011087656021,
-0.05712258443236351,
-0.29248934984207153,
0.027307478711009026,
0.1066737174987793,
-0.34920966625213623,
-0.09586775302886963,
-0.3238351345062256,
0.1498926281929016,
-0.14760006964206696,
-0.1449313461780548,
0.06351781636476517,
-0.20537880063056946,
0.060659151524305344,
-0.13722367584705353,
0.08459928631782532,
0.30500277876853943,
-0.15389685332775116,
0.06029190495610237,
-0.3173985779285431,
-0.038875117897987366,
-0.4645874798297882,
-0.43545907735824585,
-0.010894324630498886,
-0.18292547762393951,
-0.29206007719039917,
-0.15871049463748932,
0.09715074300765991,
-0.0411650650203228,
0.1423523724079132,
-0.6871283054351807,
-0.4630126655101776,
-0.10583488643169403,
0.0027165375649929047,
0.02821546606719494,
0.18613426387310028,
0.2162628471851349,
0.14209789037704468,
-0.20226742327213287,
-0.19532659649848938,
-0.011418642476201057,
0.38290029764175415,
-0.16362974047660828,
0.30353862047195435,
-0.11524748057126999,
0.10260829329490662,
0.07643593847751617,
0.31375381350517273,
0.8434224128723145,
-0.0014698542654514313,
0.43388062715530396,
-0.06739119440317154,
0.31241101026535034,
-0.020849086344242096,
-0.1881706416606903,
0.14424392580986023,
-0.07555560767650604,
0.15858161449432373,
0.4018269181251526,
-0.04632078483700752,
-0.036436036229133606,
0.028763651847839355,
-0.14630240201950073,
-0.2654138207435608,
-0.22836440801620483,
-0.07893108576536179,
0.05482785403728485,
0.07165280729532242,
0.09206533432006836,
-0.2884061336517334,
-0.033186785876750946,
-0.15154406428337097,
0.15729518234729767,
0.037092775106430054,
0.14509440958499908,
0.1348903328180313,
-0.24685703217983246,
0.26025474071502686,
-0.2389465868473053,
0.1679646223783493,
0.1347389966249466,
0.15145762264728546,
-0.01581408455967903,
-0.05773553624749184,
0.013693489134311676,
-0.0228132177144289,
0.7903946042060852,
-0.03403313457965851,
0.20426683127880096,
0.027810338884592056,
-0.146022766828537,
-0.17567138373851776,
-0.13851004838943481,
0.05382600799202919,
-0.13235601782798767,
0.04210914671421051,
0.4128994643688202,
-0.34167152643203735,
0.07112991809844971,
0.4328721761703491,
-0.04431760311126709,
-0.15703421831130981,
-0.14973138272762299,
-0.1578304022550583,
-0.3200148642063141,
-0.15701517462730408,
0.027146585285663605,
-0.023990454152226448,
0.13756003975868225,
-0.06738956272602081,
-0.18924739956855774,
-0.1364290714263916,
-0.2950669229030609,
0.08589884638786316,
0.06670838594436646,
0.3032993972301483,
0.2618996798992157,
0.4669042229652405,
0.47086334228515625,
0.3350967466831207,
0.1465926617383957,
1.0519514083862305,
-0.14418496191501617,
-0.5197616219520569,
0.021676307544112206,
-0.09264277666807175,
-0.005140580236911774,
0.4899059236049652,
0.08962735533714294,
0.12154427170753479,
0.06473774462938309,
0.04679751396179199,
0.05084557458758354,
-0.019328074529767036,
0.27047058939933777,
-0.0013515027239918709,
-0.1833830624818802,
-0.1507112681865692,
0.4275880753993988,
0.14615528285503387,
-0.1242990642786026,
0.42061030864715576,
0.21074137091636658,
-0.3146688640117645,
0.2819366455078125,
0.040413808077573776,
0.9385849237442017,
0.15588103234767914,
0.21497617661952972,
0.03755614534020424,
-0.26921048760414124,
0.5875099897384644,
-0.028938783332705498,
-0.14189700782299042,
-0.21764229238033295,
-0.4918927848339081,
0.14328816533088684,
-0.010148219764232635,
-0.03415306657552719,
-0.09360764920711517,
0.04850030317902565,
0.09052827954292297,
-0.05717813968658447,
0.27108776569366455,
0.07207038253545761,
0.08792828023433685,
-0.20316509902477264,
-0.13663291931152344,
-0.1881473958492279,
0.12767313420772552,
-0.025396160781383514,
0.010432777926325798,
0.021656889468431473,
0.060093313455581665,
-0.03224266320466995,
-0.38472437858581543,
-0.1123054102063179,
0.16744431853294373,
-0.5221056938171387,
0.14157778024673462,
0.09156113117933273,
0.017728328704833984,
-0.03064700774848461,
0.09668996930122375,
0.4413726329803467,
-0.12224838137626648,
-0.058591052889823914,
0.22680924832820892,
0.24961122870445251,
0.2676345705986023,
-0.10773763060569763,
-0.19873178005218506,
0.3762799799442291,
-0.16056160628795624,
-0.08390539139509201,
-0.10933563858270645,
0.15930414199829102,
-0.21356621384620667,
-0.4714789092540741,
0.07618642598390579,
-0.4596889615058899,
-0.045473482459783554,
-0.010232699103653431,
0.03267449885606766,
0.20393003523349762,
-0.28110286593437195,
0.14036309719085693,
-0.0378480926156044,
-0.013037308119237423,
-0.09098663181066513,
0.08146519958972931,
-0.32861143350601196,
-0.13540352880954742,
0.5333235263824463,
0.28659385442733765,
-0.2705763578414917,
0.1788005232810974,
0.11921125650405884,
-0.037722326815128326,
-0.07700835168361664,
-0.22537153959274292,
0.5069452524185181,
-0.6518533229827881,
0.19817852973937988,
-0.3616856336593628,
-0.0053391605615615845,
-0.0027534274850040674,
0.4223928451538086,
0.1842181384563446,
0.03925308585166931,
0.13211281597614288,
-0.3254235088825226,
-0.04983269423246384,
0.2862563133239746,
-0.13084441423416138,
0.33406582474708557,
0.16721367835998535,
0.28033870458602905,
-0.1923379749059677,
0.17968542873859406,
-0.3889954686164856,
0.080132856965065,
-0.0645376592874527,
0.010260256007313728,
0.1012524738907814,
-0.015119589865207672,
0.15575502812862396,
-0.0029583717696368694,
0.1402815282344818,
0.27218306064605713,
-0.12523211538791656,
-0.2485208511352539,
-0.39043402671813965,
0.13174457848072052,
-0.12100089341402054,
-0.07050459086894989,
0.003876900300383568,
-0.028161246329545975,
0.1299734264612198,
-0.04256414622068405,
0.5148792862892151,
0.057757601141929626,
0.008961457759141922,
-0.20921529829502106,
-0.005176138132810593,
-0.029119335114955902,
0.07348676770925522,
0.04269799217581749,
-0.038006581366062164,
0.08418384194374084,
0.30890288949012756,
0.0767984390258789,
-0.34393206238746643,
-0.13981398940086365,
0.27054986357688904,
0.134327232837677,
0.1485644280910492,
0.18327423930168152,
-0.01671496033668518,
-0.2120535522699356,
-0.23113568127155304,
0.2464071661233902,
0.33079344034194946,
0.24528364837169647,
-0.46380308270454407,
-0.18860040605068207,
-0.19902509450912476,
0.26187166571617126,
-0.43655380606651306,
-0.4500627815723419,
-0.04005071148276329,
0.016951709985733032,
-0.02795073203742504,
0.15929658710956573,
0.43906521797180176,
-0.20719435811042786,
0.017079100012779236,
0.09628017991781235,
0.5881932973861694,
-0.22515423595905304,
0.19439971446990967,
-0.18354079127311707,
-0.10259393602609634,
-0.09284141659736633,
-0.10024770349264145,
0.07914049178361893,
0.20359651744365692,
0.20972594618797302,
-0.15402209758758545,
0.3255162835121155,
0.009820220991969109,
0.3314208686351776,
0.2330663502216339,
-0.22103287279605865,
0.15763956308364868,
0.485961377620697,
-0.24273404479026794,
0.3098111152648926,
0.07935306429862976,
0.15409868955612183,
0.11075334995985031,
-0.11085310578346252,
-0.2532786726951599,
0.30329927802085876,
-0.010629978030920029,
-0.09717978537082672,
-0.1020238921046257,
-0.3589637577533722,
-0.5747911930084229,
0.23608329892158508,
-0.20802626013755798,
-0.14386515319347382,
0.39556968212127686,
-0.048891372978687286,
-0.352239191532135,
-0.5194406509399414,
-0.1329229474067688,
0.28538262844085693,
0.34959742426872253,
-0.4062211215496063,
0.3400547206401825,
0.6960605382919312,
-0.28675681352615356,
0.23092296719551086,
0.5722976326942444,
0.435029000043869,
0.10019366443157196,
0.3267894685268402,
0.007667895872145891,
-0.06825171411037445,
0.10638874769210815,
-0.28504422307014465,
0.17400291562080383,
-0.1171882301568985,
-0.2777266204357147,
0.32499396800994873,
0.15360963344573975,
-0.25020715594291687,
-0.3245692551136017,
0.022323433309793472,
0.3017277717590332,
-0.46905049681663513,
0.12863712012767792,
-0.3570266664028168,
0.27636483311653137,
-0.003168359398841858,
0.07533404231071472,
-0.4512563943862915,
-0.23825107514858246,
0.3177058696746826,
-0.020225169137120247,
0.15218883752822876,
-0.06548593193292618,
0.11481302976608276,
0.1379261016845703,
0.4535549283027649,
0.20496191084384918,
-0.024589352309703827,
-0.04048914834856987,
-0.49244439601898193,
-0.5506693720817566,
0.34236088395118713,
-0.11473152041435242,
0.2573935091495514,
0.10160303115844727,
0.10143942385911942,
-0.06900540739297867,
-0.08478756248950958,
0.20855334401130676,
0.21211504936218262,
-0.045935604721307755,
0.17737677693367004,
-0.3282058835029602,
-0.009974386543035507,
-0.10703231394290924,
-0.1118798702955246,
0.08954735845327377,
-0.2577894330024719,
0.26685136556625366,
-0.004097729921340942,
0.03997648507356644,
0.04813961684703827,
0.05663308501243591,
0.19338953495025635,
-0.28510209918022156,
0.20231212675571442,
0.3519155979156494,
0.27697592973709106,
-0.12716129422187805,
-0.34844014048576355,
-0.29693102836608887,
-0.1960517168045044,
-0.3339644968509674,
0.2065485715866089,
0.16902586817741394,
0.31205883622169495,
0.006532251834869385,
-0.4518444538116455,
-0.023073289543390274,
0.15626996755599976,
0.2045670598745346,
0.151356503367424,
-0.5145586133003235,
0.158146932721138,
-0.07080770283937454,
0.013727041892707348,
0.14193294942378998,
0.4631642997264862,
0.025792401283979416,
0.08709095418453217,
-0.007262669503688812,
-0.5874008536338806,
0.20395471155643463,
-0.5411153435707092,
0.061073172837495804,
-0.018231771886348724,
0.28442299365997314,
0.04513106122612953,
-0.05109652876853943,
-0.538796603679657,
0.015392675995826721,
0.3055504560470581,
0.006349686533212662,
-0.06911160051822662,
0.30098041892051697,
0.11689858138561249,
0.015401933342218399,
-0.00798022374510765,
0.08619128167629242,
0.31582877039909363,
-0.20340372622013092,
0.357343465089798,
-0.2383291870355606
] |
https://github.com/huggingface/datasets/issues/2679 | Cannot load the blog_authorship_corpus due to codec errors | Hi @izaskr, thanks for reporting.
However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback...
I'm going to have a look at the dataset anyway... | ## Describe the bug
A codec error is raised while loading the blog_authorship_corpus.
## Steps to reproduce the bug
```
from datasets import load_dataset
raw_datasets = load_dataset("blog_authorship_corpus")
```
## Expected results
Loading the dataset without errors.
## Actual results
An error similar to the one below was raised for (what seems like) every XML file.
/home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset
builder_instance.download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare
self._download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyArrow version: 4.0.1
| 43 | Cannot load the blog_authorship_corpus due to codec errors
## Describe the bug
A codec error is raised while loading the blog_authorship_corpus.
## Steps to reproduce the bug
```
from datasets import load_dataset
raw_datasets = load_dataset("blog_authorship_corpus")
```
## Expected results
Loading the dataset without errors.
## Actual results
An error similar to the one below was raised for (what seems like) every XML file.
/home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset
builder_instance.download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare
self._download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyArrow version: 4.0.1
Hi @izaskr, thanks for reporting.
However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback...
I'm going to have a look at the dataset anyway... | [
-0.20848923921585083,
0.4780822992324829,
-0.05400768667459488,
0.3998488783836365,
0.36171388626098633,
0.22684058547019958,
0.07851707190275192,
0.4288442134857178,
-0.1586732268333435,
0.24357502162456512,
0.046828508377075195,
0.26792746782302856,
-0.06666465848684311,
-0.21087239682674408,
0.04908357933163643,
0.01756390929222107,
-0.08829950541257858,
0.14268307387828827,
0.22823062539100647,
-0.2342812865972519,
-0.20547457039356232,
0.18188102543354034,
-0.19302593171596527,
0.07302796840667725,
-0.21082672476768494,
-0.07893259078264236,
0.14611051976680756,
0.6233423948287964,
-0.17660878598690033,
-0.6049425005912781,
0.1305890828371048,
0.021140072494745255,
0.1271798312664032,
0.3438813388347626,
-0.00011290808470221236,
-0.08402027189731598,
0.560915470123291,
-0.09088139235973358,
-0.20776748657226562,
-0.24286006391048431,
-0.2933349311351776,
0.08937689661979675,
-0.18769991397857666,
-0.2272578775882721,
0.05193936079740524,
0.17077922821044922,
0.04398910701274872,
-0.5675261616706848,
0.31527650356292725,
0.5750635266304016,
0.22179239988327026,
-0.09192679077386856,
0.033109117299318314,
-0.08004947006702423,
0.377860426902771,
0.04546159878373146,
0.11142385751008987,
0.4461229145526886,
0.40498197078704834,
-0.10606954991817474,
-0.06456213444471359,
0.3080865442752838,
-0.3914482891559601,
-0.09315197169780731,
0.08107908815145493,
-0.11042862385511398,
0.24682849645614624,
-0.314790815114975,
0.6316778063774109,
0.16827473044395447,
0.7650756239891052,
-0.21637260913848877,
-0.08185737580060959,
0.010954469442367554,
0.19510549306869507,
-0.2739401161670685,
0.18894833326339722,
0.38462233543395996,
-0.3076026439666748,
0.0981164500117302,
-0.04377089440822601,
-0.017862381413578987,
-0.24402594566345215,
-0.03023877739906311,
-0.1594139039516449,
0.06866338104009628,
-0.097854845225811,
0.030989795923233032,
-0.24858082830905914,
0.08318907022476196,
0.34313079714775085,
-0.08795350044965744,
-0.2779462933540344,
0.3806447684764862,
0.03563493490219116,
0.17545132339000702,
0.17778652906417847,
0.029998965561389923,
-0.06236981227993965,
0.17347213625907898,
-0.09294265508651733,
0.18983927369117737,
0.15818646550178528,
0.24506330490112305,
0.09535929560661316,
-0.052051786333322525,
0.11899130791425705,
0.34990307688713074,
0.2957800030708313,
-0.009253868833184242,
-0.06258389353752136,
-0.08848290890455246,
-0.3842273950576782,
-0.3853069543838501,
-0.11336065828800201,
0.24777507781982422,
0.21318379044532776,
-0.3699796795845032,
-0.4927608072757721,
0.32127466797828674,
-0.07401156425476074,
0.019471874460577965,
-0.06075514480471611,
0.48518651723861694,
0.12763819098472595,
0.04700542986392975,
0.24081362783908844,
0.24301113188266754,
-0.18959948420524597,
-0.07867640256881714,
-0.18977390229701996,
0.1530003547668457,
-0.048587631434202194,
-0.04386776685714722,
0.13170647621154785,
-0.5761971473693848,
0.11765411496162415,
-0.018441706895828247,
0.35534632205963135,
-0.320559024810791,
-0.3360755741596222,
-0.06480126827955246,
-0.10945429652929306,
0.08054254949092865,
-0.055990010499954224,
0.007181271910667419,
0.18018054962158203,
-0.32100123167037964,
-0.06188875436782837,
-0.02600850909948349,
-0.15899762511253357,
-0.3241133391857147,
-0.04794841259717941,
0.21770250797271729,
0.03250489756464958,
0.12401629984378815,
-0.2615480422973633,
0.09874968230724335,
0.45696669816970825,
-0.1838756948709488,
0.012119859457015991,
-0.03662729263305664,
-0.1992596834897995,
-0.11160662025213242,
0.06852836161851883,
0.7190663814544678,
0.09271809458732605,
0.06175592541694641,
0.44702064990997314,
0.22045108675956726,
0.23966720700263977,
-0.03465745970606804,
-0.030301377177238464,
0.19475874304771423,
-0.21614378690719604,
0.1940477341413498,
0.17385031282901764,
-0.6035786271095276,
-0.0017287824302911758,
0.19102557003498077,
0.04417775571346283,
0.1295309066772461,
0.05473606660962105,
-0.399557888507843,
0.42233020067214966,
-0.35315218567848206,
0.18093502521514893,
0.40035587549209595,
-0.007808966562151909,
0.04223386198282242,
-0.20970004796981812,
-0.00949131790548563,
-0.05929379165172577,
0.14079076051712036,
0.09565500915050507,
0.037147361785173416,
0.44472888112068176,
0.019530881196260452,
0.5081379413604736,
-0.22710248827934265,
-0.04350926727056503,
0.20446473360061646,
-0.06371119618415833,
0.005708798766136169,
-0.015800071880221367,
-0.2292628288269043,
-0.10089720040559769,
0.2268029749393463,
-0.038544949144124985,
-0.018679790198802948,
-0.30475276708602905,
-0.12036728113889694,
-0.3363897502422333,
0.0941973626613617,
-0.17248964309692383,
-0.009601924568414688,
0.14682766795158386,
0.08250560611486435,
0.12274885177612305,
0.2111048400402069,
-0.24854730069637299,
0.2506256699562073,
-0.3510066270828247,
0.129438579082489,
-0.5143996477127075,
0.29016295075416565,
0.03663850575685501,
-0.18028096854686737,
0.39105120301246643,
0.5273908376693726,
0.20637401938438416,
-0.1315862387418747,
-0.24504080414772034,
0.32957369089126587,
-0.2906774580478668,
0.6357579231262207,
-0.36843082308769226,
-0.21028892695903778,
0.15563663840293884,
-0.3921349048614502,
0.19127137959003448,
0.1315569281578064,
0.29197049140930176,
-0.10651233792304993,
0.2268299162387848,
0.1296587884426117,
0.0019444860517978668,
0.06161819398403168,
0.15708760917186737,
-0.012436136603355408,
0.3217044472694397,
-0.0014809630811214447,
-0.1980578601360321,
-0.30633559823036194,
0.6450026035308838,
0.21857409179210663,
0.15654098987579346,
-0.10520534217357635,
-0.2416180819272995,
0.059361543506383896,
0.49939191341400146,
-0.09960183501243591,
-0.026761241257190704,
0.03570215031504631,
-0.01072230190038681,
0.023422744125127792,
0.012714779004454613,
-0.14616268873214722,
0.14719578623771667,
0.021703626960515976,
-0.1039545089006424,
0.03235436975955963,
0.07160770893096924,
-0.3352048695087433,
0.3919106423854828,
-0.1687845140695572,
0.014202147722244263,
0.4510240852832794,
0.028291931375861168,
0.012383992783725262,
-0.3308025002479553,
-0.1881508231163025,
0.04717497527599335,
0.08899083733558655,
-0.5186880826950073,
0.08404576033353806,
-0.2582148313522339,
-0.272869348526001,
-0.2343660444021225,
-0.34810787439346313,
-0.05881650373339653,
-0.10133369266986847,
-0.06128145009279251,
0.14182226359844208,
-0.07657217979431152,
0.06146993488073349,
-0.3226082921028137,
0.13849186897277832,
-0.16227146983146667,
0.1579314023256302,
-0.16137385368347168,
-0.16258297860622406,
-0.195257306098938,
-0.03746328502893448,
0.41069313883781433,
0.2090355008840561,
0.1456121951341629,
-0.3906175196170807,
0.07566823065280914,
-0.15502923727035522,
-0.19672474265098572,
0.19226153194904327,
-0.007284265011548996,
0.044500987976789474,
-0.09627605974674225,
-0.10302548110485077,
0.6314198970794678,
-0.18735229969024658,
0.0774795264005661,
0.040375836193561554,
-0.009592401795089245,
0.41204747557640076,
0.10204967856407166,
-0.43084716796875,
-0.07132592797279358,
-0.2392788529396057,
-0.38404393196105957,
-0.5113673806190491,
-0.2183597832918167,
0.08914922177791595,
0.26314911246299744,
0.40021324157714844,
-0.21252283453941345,
-0.04718693718314171,
-0.029674062505364418,
0.33166369795799255,
-0.12996913492679596,
-0.22950296103954315,
0.20376023650169373,
-0.29097381234169006,
-0.3221517503261566,
0.10637810826301575,
0.06827621906995773,
0.39788326621055603,
-0.02667916938662529,
-0.29908573627471924,
0.2009897232055664,
0.07369208335876465,
0.08079607784748077,
-0.1829187124967575,
-0.032664939761161804,
0.16819623112678528,
0.06594516336917877,
0.00742289237678051,
-0.07654385268688202,
0.03371894732117653,
-0.3264494240283966,
-0.025369148701429367,
-0.1287386119365692,
-0.05596272647380829,
0.20268869400024414,
-0.17251265048980713,
0.061919257044792175,
0.4852903485298157,
0.09820036590099335,
0.28679460287094116,
0.05151224136352539,
0.2136230170726776,
0.014720790088176727,
-0.24608328938484192,
0.4707970917224884,
-0.1930656135082245,
-0.2243303656578064,
0.3553861379623413,
0.05292053893208504,
-0.1348503679037094,
-0.21529372036457062,
0.07238799333572388,
-0.12091189622879028,
-0.29521384835243225,
0.05248106271028519,
-0.38988587260246277,
0.24858799576759338,
0.06683845818042755,
0.3902975618839264,
0.07654856145381927,
-0.20692592859268188,
-0.008462716825306416,
0.35202330350875854,
0.15688396990299225,
-0.12519891560077667,
0.014238279312849045,
0.13121937215328217,
-0.48014670610427856,
0.3448662757873535,
0.21024811267852783,
-0.06401722878217697,
-0.043295718729496,
0.26088079810142517,
0.05872846022248268,
-0.15146076679229736,
0.09130429476499557,
-0.2261163294315338,
0.2672911286354065,
0.20792505145072937,
0.3854581117630005,
-0.2534741759300232,
-0.0441586971282959,
-0.0180205125361681,
0.4818538725376129,
-0.08010131120681763,
-0.04596859961748123,
-0.09827473014593124,
0.12115902453660965,
0.07315687835216522,
0.12247540056705475,
-0.08885198831558228,
-0.1877182126045227,
-0.2884792983531952,
-0.35917070508003235,
-0.31031057238578796,
-0.23352313041687012,
0.06878147274255753,
0.3102969229221344,
-0.1312476545572281,
-0.11986058950424194,
-0.0953507050871849,
-0.0344557911157608,
0.19424626231193542,
0.08230012655258179,
0.09218800812959671,
-0.07522483170032501,
0.11568734049797058,
-0.013179030269384384,
-0.13460706174373627,
0.37683674693107605,
0.7526928782463074,
-0.13343827426433563,
-0.5529474020004272,
-0.11591217666864395,
-0.3700481057167053,
0.07848970592021942,
0.4450318515300751,
-0.21247538924217224,
-0.1339324414730072,
0.05934574082493782,
-0.05054676532745361,
-0.3437485098838806,
-0.29927077889442444,
0.05047471821308136,
0.09934380650520325,
-0.2784160375595093,
-0.5206422209739685,
0.46235471963882446,
-0.12712299823760986,
0.031139865517616272,
0.14684969186782837,
0.04181727021932602,
-0.34736132621765137,
0.13728579878807068,
0.006452023983001709,
0.9900813102722168,
0.21408188343048096,
-0.13579297065734863,
0.07534182071685791,
-0.21749085187911987,
0.05287323147058487,
-0.22489552199840546,
0.19801896810531616,
-0.28433850407600403,
0.022239990532398224,
-0.15183545649051666,
0.20459052920341492,
0.2688501179218292,
0.062128059566020966,
-0.2158525586128235,
0.19955042004585266,
-0.07140041142702103,
-0.23757225275039673,
-0.0485023558139801,
0.0031609460711479187,
-0.4199109375476837,
-0.2580132782459259,
-0.5787040591239929,
0.11728216707706451,
-0.1179327666759491,
0.11924660205841064,
-0.1189102753996849,
0.03592963144183159,
0.045507948845624924,
-0.3266946077346802,
-0.4608325958251953,
0.3758397102355957,
-0.2024473249912262,
-0.1504066288471222,
-0.05775163695216179,
-0.38144218921661377,
0.3199536204338074,
0.05619063228368759,
0.25048673152923584,
0.03919783607125282,
-0.04294196516275406,
0.14526252448558807,
0.1981220245361328,
-0.03390655294060707,
-0.024359021335840225,
0.08548761159181595,
0.2385648936033249,
-0.06631892174482346,
-0.11321199685335159,
0.26583629846572876,
-0.04365888237953186,
-0.18375468254089355,
0.25565338134765625,
0.06612946093082428,
-0.0826185792684555,
-0.03951714560389519,
-0.04328154772520065,
0.09551862627267838,
0.18098057806491852,
-0.06299825012683868,
0.14030620455741882,
0.12768888473510742,
-0.2898816466331482,
-0.054411597549915314,
-0.1107429563999176,
-0.2697611153125763,
0.08129072189331055,
0.2204323410987854,
-0.03618534654378891,
-0.08389534801244736,
0.4614356458187103,
0.4005640745162964,
-0.2099895030260086,
-0.1176222562789917,
-0.3479478359222412,
0.1872602105140686,
-0.5638505220413208,
0.03685737028717995,
-0.0007267624605447054,
0.006248161196708679,
-0.15869000554084778,
0.41700243949890137,
-0.13921964168548584,
-0.09379749745130539,
0.06255462765693665,
-0.5232266783714294,
-0.03873060271143913,
0.1154572069644928,
-0.01035044714808464,
0.03293158486485481,
-0.04875224083662033,
0.00014431774616241455,
-0.23697532713413239,
0.11447912454605103,
-0.3007834553718567,
0.10386241972446442,
-0.20777612924575806,
0.1372835636138916,
0.42963674664497375,
-0.034013532102108,
-0.1030203178524971,
-0.20394788682460785,
0.13359114527702332,
0.3360125422477722,
-0.11274943500757217,
-0.1500057578086853,
-0.008557133376598358,
0.13779231905937195,
0.03241635113954544,
-0.08051211386919022,
0.08954963833093643,
-0.05017683282494545,
-0.10576353967189789,
-0.19346432387828827,
0.21797959506511688,
0.14748123288154602,
0.026141569018363953,
-0.027722585946321487,
-0.4482199251651764,
0.2940061688423157,
-0.000667184591293335,
0.2398100346326828,
-0.1485024094581604,
0.43024390935897827,
-0.1185305193066597,
0.12390360236167908,
-0.2088456153869629,
-0.03537367284297943,
-0.1150486171245575,
0.25618281960487366,
-0.09613628685474396,
0.06558677554130554,
0.43631500005722046,
-0.24515487253665924,
0.3256571888923645,
0.48719310760498047,
-0.08354740589857101,
0.34451889991760254,
-0.40915554761886597,
0.02811933495104313,
0.02626204863190651,
0.21024487912654877,
-0.18367645144462585,
-0.01811477169394493,
-0.49608954787254333,
-0.0479392483830452,
-0.09000445902347565,
0.22974847257137299,
0.11052313446998596,
-0.3707813322544098,
-0.23056311905384064,
0.09063810855150223,
0.4767548739910126,
-0.006316535174846649,
0.21916313469409943,
0.023104649037122726,
0.049314532428979874,
-0.0192851684987545,
-0.07030007243156433,
0.21881096065044403,
0.04618683457374573,
0.2720300257205963,
-0.4646317958831787,
0.30939266085624695,
0.24947312474250793,
0.1801019012928009,
-0.008531235158443451,
-0.44116321206092834,
0.04823656380176544,
0.21039599180221558,
0.08522003889083862,
0.40027907490730286,
0.16099101305007935,
0.1586000919342041,
-0.14752492308616638,
-0.12593410909175873,
-0.16134682297706604,
0.0410662442445755,
-0.05831800401210785,
0.047253433614969254,
-0.3145267367362976,
-0.2136666178703308,
-0.1724199503660202,
-0.10437791049480438,
-0.16978244483470917,
0.11930122971534729,
0.07531849294900894,
0.15568970143795013,
-0.34762781858444214,
-0.346391886472702,
0.13774195313453674,
-0.2096368670463562,
0.24470308423042297,
-0.12532804906368256,
0.5787798166275024,
0.43821340799331665,
0.08463583886623383,
0.4258899688720703,
0.30174720287323,
0.7615883350372314,
0.30584192276000977,
0.05350543558597565,
0.19278058409690857,
-0.18105532228946686,
-0.1250639259815216,
0.1044054850935936,
0.3984234035015106,
0.04488105699419975,
0.3953418731689453,
0.043962180614471436,
0.18636585772037506,
-0.13800561428070068,
0.1443946808576584,
0.2655775845050812,
0.4306207001209259,
-0.19145922362804413,
0.2662213444709778,
-0.17390921711921692,
-0.05721855163574219,
-0.4198784828186035,
-0.09465422481298447,
-0.3771164119243622,
0.13632731139659882,
0.26998451352119446,
-0.09206447005271912,
0.0951404795050621,
-0.008360397070646286,
0.10252704471349716,
0.07400406897068024,
0.3087224066257477,
0.40343716740608215,
0.1357364058494568,
0.025536322966217995,
-0.2081611454486847,
-0.42976444959640503,
0.32478034496307373,
-0.09087271988391876,
-0.37412911653518677,
-0.0666041374206543,
0.08240718394517899,
0.19193480908870697,
0.11558332294225693,
0.12382204085588455,
-0.04322154447436333,
0.38333290815353394,
0.05972385033965111,
-0.1724216639995575,
-0.01460975781083107,
0.24141421914100647,
-0.06203272193670273,
-0.30258554220199585,
-0.3642931282520294,
0.03257334977388382,
-0.22731922566890717,
0.07015597075223923,
0.04827544093132019,
-0.03996293991804123,
-0.09225976467132568,
-0.2646710276603699,
0.37221789360046387,
0.06106839329004288,
0.2166769802570343,
-0.31074216961860657,
-0.2267265021800995,
-0.3663765788078308,
-0.14467380940914154,
-0.15449965000152588,
0.4856237769126892,
0.1616639494895935,
0.2741333246231079,
-0.07876960933208466,
0.025311145931482315,
-0.26828616857528687,
0.1879408210515976,
-0.11796882748603821,
0.26936209201812744,
-0.3983282744884491,
-0.06192518025636673,
-0.1300145834684372,
0.06348124146461487,
-0.000244959257543087,
0.24163639545440674,
0.013726167380809784,
0.07287722080945969,
-0.12679456174373627,
-0.6861609816551208,
0.42833635210990906,
-0.5565600991249084,
-0.41566580533981323,
0.08782771974802017,
0.6013885736465454,
0.005116134881973267,
0.072532057762146,
-0.642991840839386,
0.2427361011505127,
0.0948261246085167,
-0.20157092809677124,
-0.18874794244766235,
-0.007277756929397583,
-0.12396013736724854,
-0.1315535306930542,
-0.04032398760318756,
0.08758559823036194,
0.2611948549747467,
-0.16496868431568146,
0.16412289440631866,
-0.40806204080581665
] |
https://github.com/huggingface/datasets/issues/2679 | Cannot load the blog_authorship_corpus due to codec errors | Hi @izaskr, thanks again for having reported this issue.
After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset:
- the `NonMatchingSplitsSizesError`
- the `UnicodeDecodeError`
Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`. | ## Describe the bug
A codec error is raised while loading the blog_authorship_corpus.
## Steps to reproduce the bug
```
from datasets import load_dataset
raw_datasets = load_dataset("blog_authorship_corpus")
```
## Expected results
Loading the dataset without errors.
## Actual results
An error similar to the one below was raised for (what seems like) every XML file.
/home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset
builder_instance.download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare
self._download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyArrow version: 4.0.1
| 75 | Cannot load the blog_authorship_corpus due to codec errors
## Describe the bug
A codec error is raised while loading the blog_authorship_corpus.
## Steps to reproduce the bug
```
from datasets import load_dataset
raw_datasets = load_dataset("blog_authorship_corpus")
```
## Expected results
Loading the dataset without errors.
## Actual results
An error similar to the one below was raised for (what seems like) every XML file.
/home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset
builder_instance.download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare
self._download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyArrow version: 4.0.1
Hi @izaskr, thanks again for having reported this issue.
After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset:
- the `NonMatchingSplitsSizesError`
- the `UnicodeDecodeError`
Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`. | [
-0.20848923921585083,
0.4780822992324829,
-0.05400768667459488,
0.3998488783836365,
0.36171388626098633,
0.22684058547019958,
0.07851707190275192,
0.4288442134857178,
-0.1586732268333435,
0.24357502162456512,
0.046828508377075195,
0.26792746782302856,
-0.06666465848684311,
-0.21087239682674408,
0.04908357933163643,
0.01756390929222107,
-0.08829950541257858,
0.14268307387828827,
0.22823062539100647,
-0.2342812865972519,
-0.20547457039356232,
0.18188102543354034,
-0.19302593171596527,
0.07302796840667725,
-0.21082672476768494,
-0.07893259078264236,
0.14611051976680756,
0.6233423948287964,
-0.17660878598690033,
-0.6049425005912781,
0.1305890828371048,
0.021140072494745255,
0.1271798312664032,
0.3438813388347626,
-0.00011290808470221236,
-0.08402027189731598,
0.560915470123291,
-0.09088139235973358,
-0.20776748657226562,
-0.24286006391048431,
-0.2933349311351776,
0.08937689661979675,
-0.18769991397857666,
-0.2272578775882721,
0.05193936079740524,
0.17077922821044922,
0.04398910701274872,
-0.5675261616706848,
0.31527650356292725,
0.5750635266304016,
0.22179239988327026,
-0.09192679077386856,
0.033109117299318314,
-0.08004947006702423,
0.377860426902771,
0.04546159878373146,
0.11142385751008987,
0.4461229145526886,
0.40498197078704834,
-0.10606954991817474,
-0.06456213444471359,
0.3080865442752838,
-0.3914482891559601,
-0.09315197169780731,
0.08107908815145493,
-0.11042862385511398,
0.24682849645614624,
-0.314790815114975,
0.6316778063774109,
0.16827473044395447,
0.7650756239891052,
-0.21637260913848877,
-0.08185737580060959,
0.010954469442367554,
0.19510549306869507,
-0.2739401161670685,
0.18894833326339722,
0.38462233543395996,
-0.3076026439666748,
0.0981164500117302,
-0.04377089440822601,
-0.017862381413578987,
-0.24402594566345215,
-0.03023877739906311,
-0.1594139039516449,
0.06866338104009628,
-0.097854845225811,
0.030989795923233032,
-0.24858082830905914,
0.08318907022476196,
0.34313079714775085,
-0.08795350044965744,
-0.2779462933540344,
0.3806447684764862,
0.03563493490219116,
0.17545132339000702,
0.17778652906417847,
0.029998965561389923,
-0.06236981227993965,
0.17347213625907898,
-0.09294265508651733,
0.18983927369117737,
0.15818646550178528,
0.24506330490112305,
0.09535929560661316,
-0.052051786333322525,
0.11899130791425705,
0.34990307688713074,
0.2957800030708313,
-0.009253868833184242,
-0.06258389353752136,
-0.08848290890455246,
-0.3842273950576782,
-0.3853069543838501,
-0.11336065828800201,
0.24777507781982422,
0.21318379044532776,
-0.3699796795845032,
-0.4927608072757721,
0.32127466797828674,
-0.07401156425476074,
0.019471874460577965,
-0.06075514480471611,
0.48518651723861694,
0.12763819098472595,
0.04700542986392975,
0.24081362783908844,
0.24301113188266754,
-0.18959948420524597,
-0.07867640256881714,
-0.18977390229701996,
0.1530003547668457,
-0.048587631434202194,
-0.04386776685714722,
0.13170647621154785,
-0.5761971473693848,
0.11765411496162415,
-0.018441706895828247,
0.35534632205963135,
-0.320559024810791,
-0.3360755741596222,
-0.06480126827955246,
-0.10945429652929306,
0.08054254949092865,
-0.055990010499954224,
0.007181271910667419,
0.18018054962158203,
-0.32100123167037964,
-0.06188875436782837,
-0.02600850909948349,
-0.15899762511253357,
-0.3241133391857147,
-0.04794841259717941,
0.21770250797271729,
0.03250489756464958,
0.12401629984378815,
-0.2615480422973633,
0.09874968230724335,
0.45696669816970825,
-0.1838756948709488,
0.012119859457015991,
-0.03662729263305664,
-0.1992596834897995,
-0.11160662025213242,
0.06852836161851883,
0.7190663814544678,
0.09271809458732605,
0.06175592541694641,
0.44702064990997314,
0.22045108675956726,
0.23966720700263977,
-0.03465745970606804,
-0.030301377177238464,
0.19475874304771423,
-0.21614378690719604,
0.1940477341413498,
0.17385031282901764,
-0.6035786271095276,
-0.0017287824302911758,
0.19102557003498077,
0.04417775571346283,
0.1295309066772461,
0.05473606660962105,
-0.399557888507843,
0.42233020067214966,
-0.35315218567848206,
0.18093502521514893,
0.40035587549209595,
-0.007808966562151909,
0.04223386198282242,
-0.20970004796981812,
-0.00949131790548563,
-0.05929379165172577,
0.14079076051712036,
0.09565500915050507,
0.037147361785173416,
0.44472888112068176,
0.019530881196260452,
0.5081379413604736,
-0.22710248827934265,
-0.04350926727056503,
0.20446473360061646,
-0.06371119618415833,
0.005708798766136169,
-0.015800071880221367,
-0.2292628288269043,
-0.10089720040559769,
0.2268029749393463,
-0.038544949144124985,
-0.018679790198802948,
-0.30475276708602905,
-0.12036728113889694,
-0.3363897502422333,
0.0941973626613617,
-0.17248964309692383,
-0.009601924568414688,
0.14682766795158386,
0.08250560611486435,
0.12274885177612305,
0.2111048400402069,
-0.24854730069637299,
0.2506256699562073,
-0.3510066270828247,
0.129438579082489,
-0.5143996477127075,
0.29016295075416565,
0.03663850575685501,
-0.18028096854686737,
0.39105120301246643,
0.5273908376693726,
0.20637401938438416,
-0.1315862387418747,
-0.24504080414772034,
0.32957369089126587,
-0.2906774580478668,
0.6357579231262207,
-0.36843082308769226,
-0.21028892695903778,
0.15563663840293884,
-0.3921349048614502,
0.19127137959003448,
0.1315569281578064,
0.29197049140930176,
-0.10651233792304993,
0.2268299162387848,
0.1296587884426117,
0.0019444860517978668,
0.06161819398403168,
0.15708760917186737,
-0.012436136603355408,
0.3217044472694397,
-0.0014809630811214447,
-0.1980578601360321,
-0.30633559823036194,
0.6450026035308838,
0.21857409179210663,
0.15654098987579346,
-0.10520534217357635,
-0.2416180819272995,
0.059361543506383896,
0.49939191341400146,
-0.09960183501243591,
-0.026761241257190704,
0.03570215031504631,
-0.01072230190038681,
0.023422744125127792,
0.012714779004454613,
-0.14616268873214722,
0.14719578623771667,
0.021703626960515976,
-0.1039545089006424,
0.03235436975955963,
0.07160770893096924,
-0.3352048695087433,
0.3919106423854828,
-0.1687845140695572,
0.014202147722244263,
0.4510240852832794,
0.028291931375861168,
0.012383992783725262,
-0.3308025002479553,
-0.1881508231163025,
0.04717497527599335,
0.08899083733558655,
-0.5186880826950073,
0.08404576033353806,
-0.2582148313522339,
-0.272869348526001,
-0.2343660444021225,
-0.34810787439346313,
-0.05881650373339653,
-0.10133369266986847,
-0.06128145009279251,
0.14182226359844208,
-0.07657217979431152,
0.06146993488073349,
-0.3226082921028137,
0.13849186897277832,
-0.16227146983146667,
0.1579314023256302,
-0.16137385368347168,
-0.16258297860622406,
-0.195257306098938,
-0.03746328502893448,
0.41069313883781433,
0.2090355008840561,
0.1456121951341629,
-0.3906175196170807,
0.07566823065280914,
-0.15502923727035522,
-0.19672474265098572,
0.19226153194904327,
-0.007284265011548996,
0.044500987976789474,
-0.09627605974674225,
-0.10302548110485077,
0.6314198970794678,
-0.18735229969024658,
0.0774795264005661,
0.040375836193561554,
-0.009592401795089245,
0.41204747557640076,
0.10204967856407166,
-0.43084716796875,
-0.07132592797279358,
-0.2392788529396057,
-0.38404393196105957,
-0.5113673806190491,
-0.2183597832918167,
0.08914922177791595,
0.26314911246299744,
0.40021324157714844,
-0.21252283453941345,
-0.04718693718314171,
-0.029674062505364418,
0.33166369795799255,
-0.12996913492679596,
-0.22950296103954315,
0.20376023650169373,
-0.29097381234169006,
-0.3221517503261566,
0.10637810826301575,
0.06827621906995773,
0.39788326621055603,
-0.02667916938662529,
-0.29908573627471924,
0.2009897232055664,
0.07369208335876465,
0.08079607784748077,
-0.1829187124967575,
-0.032664939761161804,
0.16819623112678528,
0.06594516336917877,
0.00742289237678051,
-0.07654385268688202,
0.03371894732117653,
-0.3264494240283966,
-0.025369148701429367,
-0.1287386119365692,
-0.05596272647380829,
0.20268869400024414,
-0.17251265048980713,
0.061919257044792175,
0.4852903485298157,
0.09820036590099335,
0.28679460287094116,
0.05151224136352539,
0.2136230170726776,
0.014720790088176727,
-0.24608328938484192,
0.4707970917224884,
-0.1930656135082245,
-0.2243303656578064,
0.3553861379623413,
0.05292053893208504,
-0.1348503679037094,
-0.21529372036457062,
0.07238799333572388,
-0.12091189622879028,
-0.29521384835243225,
0.05248106271028519,
-0.38988587260246277,
0.24858799576759338,
0.06683845818042755,
0.3902975618839264,
0.07654856145381927,
-0.20692592859268188,
-0.008462716825306416,
0.35202330350875854,
0.15688396990299225,
-0.12519891560077667,
0.014238279312849045,
0.13121937215328217,
-0.48014670610427856,
0.3448662757873535,
0.21024811267852783,
-0.06401722878217697,
-0.043295718729496,
0.26088079810142517,
0.05872846022248268,
-0.15146076679229736,
0.09130429476499557,
-0.2261163294315338,
0.2672911286354065,
0.20792505145072937,
0.3854581117630005,
-0.2534741759300232,
-0.0441586971282959,
-0.0180205125361681,
0.4818538725376129,
-0.08010131120681763,
-0.04596859961748123,
-0.09827473014593124,
0.12115902453660965,
0.07315687835216522,
0.12247540056705475,
-0.08885198831558228,
-0.1877182126045227,
-0.2884792983531952,
-0.35917070508003235,
-0.31031057238578796,
-0.23352313041687012,
0.06878147274255753,
0.3102969229221344,
-0.1312476545572281,
-0.11986058950424194,
-0.0953507050871849,
-0.0344557911157608,
0.19424626231193542,
0.08230012655258179,
0.09218800812959671,
-0.07522483170032501,
0.11568734049797058,
-0.013179030269384384,
-0.13460706174373627,
0.37683674693107605,
0.7526928782463074,
-0.13343827426433563,
-0.5529474020004272,
-0.11591217666864395,
-0.3700481057167053,
0.07848970592021942,
0.4450318515300751,
-0.21247538924217224,
-0.1339324414730072,
0.05934574082493782,
-0.05054676532745361,
-0.3437485098838806,
-0.29927077889442444,
0.05047471821308136,
0.09934380650520325,
-0.2784160375595093,
-0.5206422209739685,
0.46235471963882446,
-0.12712299823760986,
0.031139865517616272,
0.14684969186782837,
0.04181727021932602,
-0.34736132621765137,
0.13728579878807068,
0.006452023983001709,
0.9900813102722168,
0.21408188343048096,
-0.13579297065734863,
0.07534182071685791,
-0.21749085187911987,
0.05287323147058487,
-0.22489552199840546,
0.19801896810531616,
-0.28433850407600403,
0.022239990532398224,
-0.15183545649051666,
0.20459052920341492,
0.2688501179218292,
0.062128059566020966,
-0.2158525586128235,
0.19955042004585266,
-0.07140041142702103,
-0.23757225275039673,
-0.0485023558139801,
0.0031609460711479187,
-0.4199109375476837,
-0.2580132782459259,
-0.5787040591239929,
0.11728216707706451,
-0.1179327666759491,
0.11924660205841064,
-0.1189102753996849,
0.03592963144183159,
0.045507948845624924,
-0.3266946077346802,
-0.4608325958251953,
0.3758397102355957,
-0.2024473249912262,
-0.1504066288471222,
-0.05775163695216179,
-0.38144218921661377,
0.3199536204338074,
0.05619063228368759,
0.25048673152923584,
0.03919783607125282,
-0.04294196516275406,
0.14526252448558807,
0.1981220245361328,
-0.03390655294060707,
-0.024359021335840225,
0.08548761159181595,
0.2385648936033249,
-0.06631892174482346,
-0.11321199685335159,
0.26583629846572876,
-0.04365888237953186,
-0.18375468254089355,
0.25565338134765625,
0.06612946093082428,
-0.0826185792684555,
-0.03951714560389519,
-0.04328154772520065,
0.09551862627267838,
0.18098057806491852,
-0.06299825012683868,
0.14030620455741882,
0.12768888473510742,
-0.2898816466331482,
-0.054411597549915314,
-0.1107429563999176,
-0.2697611153125763,
0.08129072189331055,
0.2204323410987854,
-0.03618534654378891,
-0.08389534801244736,
0.4614356458187103,
0.4005640745162964,
-0.2099895030260086,
-0.1176222562789917,
-0.3479478359222412,
0.1872602105140686,
-0.5638505220413208,
0.03685737028717995,
-0.0007267624605447054,
0.006248161196708679,
-0.15869000554084778,
0.41700243949890137,
-0.13921964168548584,
-0.09379749745130539,
0.06255462765693665,
-0.5232266783714294,
-0.03873060271143913,
0.1154572069644928,
-0.01035044714808464,
0.03293158486485481,
-0.04875224083662033,
0.00014431774616241455,
-0.23697532713413239,
0.11447912454605103,
-0.3007834553718567,
0.10386241972446442,
-0.20777612924575806,
0.1372835636138916,
0.42963674664497375,
-0.034013532102108,
-0.1030203178524971,
-0.20394788682460785,
0.13359114527702332,
0.3360125422477722,
-0.11274943500757217,
-0.1500057578086853,
-0.008557133376598358,
0.13779231905937195,
0.03241635113954544,
-0.08051211386919022,
0.08954963833093643,
-0.05017683282494545,
-0.10576353967189789,
-0.19346432387828827,
0.21797959506511688,
0.14748123288154602,
0.026141569018363953,
-0.027722585946321487,
-0.4482199251651764,
0.2940061688423157,
-0.000667184591293335,
0.2398100346326828,
-0.1485024094581604,
0.43024390935897827,
-0.1185305193066597,
0.12390360236167908,
-0.2088456153869629,
-0.03537367284297943,
-0.1150486171245575,
0.25618281960487366,
-0.09613628685474396,
0.06558677554130554,
0.43631500005722046,
-0.24515487253665924,
0.3256571888923645,
0.48719310760498047,
-0.08354740589857101,
0.34451889991760254,
-0.40915554761886597,
0.02811933495104313,
0.02626204863190651,
0.21024487912654877,
-0.18367645144462585,
-0.01811477169394493,
-0.49608954787254333,
-0.0479392483830452,
-0.09000445902347565,
0.22974847257137299,
0.11052313446998596,
-0.3707813322544098,
-0.23056311905384064,
0.09063810855150223,
0.4767548739910126,
-0.006316535174846649,
0.21916313469409943,
0.023104649037122726,
0.049314532428979874,
-0.0192851684987545,
-0.07030007243156433,
0.21881096065044403,
0.04618683457374573,
0.2720300257205963,
-0.4646317958831787,
0.30939266085624695,
0.24947312474250793,
0.1801019012928009,
-0.008531235158443451,
-0.44116321206092834,
0.04823656380176544,
0.21039599180221558,
0.08522003889083862,
0.40027907490730286,
0.16099101305007935,
0.1586000919342041,
-0.14752492308616638,
-0.12593410909175873,
-0.16134682297706604,
0.0410662442445755,
-0.05831800401210785,
0.047253433614969254,
-0.3145267367362976,
-0.2136666178703308,
-0.1724199503660202,
-0.10437791049480438,
-0.16978244483470917,
0.11930122971534729,
0.07531849294900894,
0.15568970143795013,
-0.34762781858444214,
-0.346391886472702,
0.13774195313453674,
-0.2096368670463562,
0.24470308423042297,
-0.12532804906368256,
0.5787798166275024,
0.43821340799331665,
0.08463583886623383,
0.4258899688720703,
0.30174720287323,
0.7615883350372314,
0.30584192276000977,
0.05350543558597565,
0.19278058409690857,
-0.18105532228946686,
-0.1250639259815216,
0.1044054850935936,
0.3984234035015106,
0.04488105699419975,
0.3953418731689453,
0.043962180614471436,
0.18636585772037506,
-0.13800561428070068,
0.1443946808576584,
0.2655775845050812,
0.4306207001209259,
-0.19145922362804413,
0.2662213444709778,
-0.17390921711921692,
-0.05721855163574219,
-0.4198784828186035,
-0.09465422481298447,
-0.3771164119243622,
0.13632731139659882,
0.26998451352119446,
-0.09206447005271912,
0.0951404795050621,
-0.008360397070646286,
0.10252704471349716,
0.07400406897068024,
0.3087224066257477,
0.40343716740608215,
0.1357364058494568,
0.025536322966217995,
-0.2081611454486847,
-0.42976444959640503,
0.32478034496307373,
-0.09087271988391876,
-0.37412911653518677,
-0.0666041374206543,
0.08240718394517899,
0.19193480908870697,
0.11558332294225693,
0.12382204085588455,
-0.04322154447436333,
0.38333290815353394,
0.05972385033965111,
-0.1724216639995575,
-0.01460975781083107,
0.24141421914100647,
-0.06203272193670273,
-0.30258554220199585,
-0.3642931282520294,
0.03257334977388382,
-0.22731922566890717,
0.07015597075223923,
0.04827544093132019,
-0.03996293991804123,
-0.09225976467132568,
-0.2646710276603699,
0.37221789360046387,
0.06106839329004288,
0.2166769802570343,
-0.31074216961860657,
-0.2267265021800995,
-0.3663765788078308,
-0.14467380940914154,
-0.15449965000152588,
0.4856237769126892,
0.1616639494895935,
0.2741333246231079,
-0.07876960933208466,
0.025311145931482315,
-0.26828616857528687,
0.1879408210515976,
-0.11796882748603821,
0.26936209201812744,
-0.3983282744884491,
-0.06192518025636673,
-0.1300145834684372,
0.06348124146461487,
-0.000244959257543087,
0.24163639545440674,
0.013726167380809784,
0.07287722080945969,
-0.12679456174373627,
-0.6861609816551208,
0.42833635210990906,
-0.5565600991249084,
-0.41566580533981323,
0.08782771974802017,
0.6013885736465454,
0.005116134881973267,
0.072532057762146,
-0.642991840839386,
0.2427361011505127,
0.0948261246085167,
-0.20157092809677124,
-0.18874794244766235,
-0.007277756929397583,
-0.12396013736724854,
-0.1315535306930542,
-0.04032398760318756,
0.08758559823036194,
0.2611948549747467,
-0.16496868431568146,
0.16412289440631866,
-0.40806204080581665
] |
https://github.com/huggingface/datasets/issues/2679 | Cannot load the blog_authorship_corpus due to codec errors | @albertvillanova
Can you shed light on how this fix works?
We're experiencing a similar issue.
If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError`
| run num | actual train examples # | expected example # | recorded example # |
| ------- | -------------- | ----------------- | -------- |
| 1 | 100 | 100 | 100 |
| 2 | 102 | 100 | 102 |
| 3 | 100 | 100 | 202 |
| 4 | 40 | 100 | 40 |
| 5 | 40 | 100 | 40 |
| 6 | 40 | 100 | 40 |
The second through the nth all crash with
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}]
``` | ## Describe the bug
A codec error is raised while loading the blog_authorship_corpus.
## Steps to reproduce the bug
```
from datasets import load_dataset
raw_datasets = load_dataset("blog_authorship_corpus")
```
## Expected results
Loading the dataset without errors.
## Actual results
An error similar to the one below was raised for (what seems like) every XML file.
/home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset
builder_instance.download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare
self._download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyArrow version: 4.0.1
| 135 | Cannot load the blog_authorship_corpus due to codec errors
## Describe the bug
A codec error is raised while loading the blog_authorship_corpus.
## Steps to reproduce the bug
```
from datasets import load_dataset
raw_datasets = load_dataset("blog_authorship_corpus")
```
## Expected results
Loading the dataset without errors.
## Actual results
An error similar to the one below was raised for (what seems like) every XML file.
/home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset
builder_instance.download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare
self._download_and_prepare(
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}]
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyArrow version: 4.0.1
@albertvillanova
Can you shed light on how this fix works?
We're experiencing a similar issue.
If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError`
| run num | actual train examples # | expected example # | recorded example # |
| ------- | -------------- | ----------------- | -------- |
| 1 | 100 | 100 | 100 |
| 2 | 102 | 100 | 102 |
| 3 | 100 | 100 | 202 |
| 4 | 40 | 100 | 40 |
| 5 | 40 | 100 | 40 |
| 6 | 40 | 100 | 40 |
The second through the nth all crash with
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}]
``` | [
-0.20848923921585083,
0.4780822992324829,
-0.05400768667459488,
0.3998488783836365,
0.36171388626098633,
0.22684058547019958,
0.07851707190275192,
0.4288442134857178,
-0.1586732268333435,
0.24357502162456512,
0.046828508377075195,
0.26792746782302856,
-0.06666465848684311,
-0.21087239682674408,
0.04908357933163643,
0.01756390929222107,
-0.08829950541257858,
0.14268307387828827,
0.22823062539100647,
-0.2342812865972519,
-0.20547457039356232,
0.18188102543354034,
-0.19302593171596527,
0.07302796840667725,
-0.21082672476768494,
-0.07893259078264236,
0.14611051976680756,
0.6233423948287964,
-0.17660878598690033,
-0.6049425005912781,
0.1305890828371048,
0.021140072494745255,
0.1271798312664032,
0.3438813388347626,
-0.00011290808470221236,
-0.08402027189731598,
0.560915470123291,
-0.09088139235973358,
-0.20776748657226562,
-0.24286006391048431,
-0.2933349311351776,
0.08937689661979675,
-0.18769991397857666,
-0.2272578775882721,
0.05193936079740524,
0.17077922821044922,
0.04398910701274872,
-0.5675261616706848,
0.31527650356292725,
0.5750635266304016,
0.22179239988327026,
-0.09192679077386856,
0.033109117299318314,
-0.08004947006702423,
0.377860426902771,
0.04546159878373146,
0.11142385751008987,
0.4461229145526886,
0.40498197078704834,
-0.10606954991817474,
-0.06456213444471359,
0.3080865442752838,
-0.3914482891559601,
-0.09315197169780731,
0.08107908815145493,
-0.11042862385511398,
0.24682849645614624,
-0.314790815114975,
0.6316778063774109,
0.16827473044395447,
0.7650756239891052,
-0.21637260913848877,
-0.08185737580060959,
0.010954469442367554,
0.19510549306869507,
-0.2739401161670685,
0.18894833326339722,
0.38462233543395996,
-0.3076026439666748,
0.0981164500117302,
-0.04377089440822601,
-0.017862381413578987,
-0.24402594566345215,
-0.03023877739906311,
-0.1594139039516449,
0.06866338104009628,
-0.097854845225811,
0.030989795923233032,
-0.24858082830905914,
0.08318907022476196,
0.34313079714775085,
-0.08795350044965744,
-0.2779462933540344,
0.3806447684764862,
0.03563493490219116,
0.17545132339000702,
0.17778652906417847,
0.029998965561389923,
-0.06236981227993965,
0.17347213625907898,
-0.09294265508651733,
0.18983927369117737,
0.15818646550178528,
0.24506330490112305,
0.09535929560661316,
-0.052051786333322525,
0.11899130791425705,
0.34990307688713074,
0.2957800030708313,
-0.009253868833184242,
-0.06258389353752136,
-0.08848290890455246,
-0.3842273950576782,
-0.3853069543838501,
-0.11336065828800201,
0.24777507781982422,
0.21318379044532776,
-0.3699796795845032,
-0.4927608072757721,
0.32127466797828674,
-0.07401156425476074,
0.019471874460577965,
-0.06075514480471611,
0.48518651723861694,
0.12763819098472595,
0.04700542986392975,
0.24081362783908844,
0.24301113188266754,
-0.18959948420524597,
-0.07867640256881714,
-0.18977390229701996,
0.1530003547668457,
-0.048587631434202194,
-0.04386776685714722,
0.13170647621154785,
-0.5761971473693848,
0.11765411496162415,
-0.018441706895828247,
0.35534632205963135,
-0.320559024810791,
-0.3360755741596222,
-0.06480126827955246,
-0.10945429652929306,
0.08054254949092865,
-0.055990010499954224,
0.007181271910667419,
0.18018054962158203,
-0.32100123167037964,
-0.06188875436782837,
-0.02600850909948349,
-0.15899762511253357,
-0.3241133391857147,
-0.04794841259717941,
0.21770250797271729,
0.03250489756464958,
0.12401629984378815,
-0.2615480422973633,
0.09874968230724335,
0.45696669816970825,
-0.1838756948709488,
0.012119859457015991,
-0.03662729263305664,
-0.1992596834897995,
-0.11160662025213242,
0.06852836161851883,
0.7190663814544678,
0.09271809458732605,
0.06175592541694641,
0.44702064990997314,
0.22045108675956726,
0.23966720700263977,
-0.03465745970606804,
-0.030301377177238464,
0.19475874304771423,
-0.21614378690719604,
0.1940477341413498,
0.17385031282901764,
-0.6035786271095276,
-0.0017287824302911758,
0.19102557003498077,
0.04417775571346283,
0.1295309066772461,
0.05473606660962105,
-0.399557888507843,
0.42233020067214966,
-0.35315218567848206,
0.18093502521514893,
0.40035587549209595,
-0.007808966562151909,
0.04223386198282242,
-0.20970004796981812,
-0.00949131790548563,
-0.05929379165172577,
0.14079076051712036,
0.09565500915050507,
0.037147361785173416,
0.44472888112068176,
0.019530881196260452,
0.5081379413604736,
-0.22710248827934265,
-0.04350926727056503,
0.20446473360061646,
-0.06371119618415833,
0.005708798766136169,
-0.015800071880221367,
-0.2292628288269043,
-0.10089720040559769,
0.2268029749393463,
-0.038544949144124985,
-0.018679790198802948,
-0.30475276708602905,
-0.12036728113889694,
-0.3363897502422333,
0.0941973626613617,
-0.17248964309692383,
-0.009601924568414688,
0.14682766795158386,
0.08250560611486435,
0.12274885177612305,
0.2111048400402069,
-0.24854730069637299,
0.2506256699562073,
-0.3510066270828247,
0.129438579082489,
-0.5143996477127075,
0.29016295075416565,
0.03663850575685501,
-0.18028096854686737,
0.39105120301246643,
0.5273908376693726,
0.20637401938438416,
-0.1315862387418747,
-0.24504080414772034,
0.32957369089126587,
-0.2906774580478668,
0.6357579231262207,
-0.36843082308769226,
-0.21028892695903778,
0.15563663840293884,
-0.3921349048614502,
0.19127137959003448,
0.1315569281578064,
0.29197049140930176,
-0.10651233792304993,
0.2268299162387848,
0.1296587884426117,
0.0019444860517978668,
0.06161819398403168,
0.15708760917186737,
-0.012436136603355408,
0.3217044472694397,
-0.0014809630811214447,
-0.1980578601360321,
-0.30633559823036194,
0.6450026035308838,
0.21857409179210663,
0.15654098987579346,
-0.10520534217357635,
-0.2416180819272995,
0.059361543506383896,
0.49939191341400146,
-0.09960183501243591,
-0.026761241257190704,
0.03570215031504631,
-0.01072230190038681,
0.023422744125127792,
0.012714779004454613,
-0.14616268873214722,
0.14719578623771667,
0.021703626960515976,
-0.1039545089006424,
0.03235436975955963,
0.07160770893096924,
-0.3352048695087433,
0.3919106423854828,
-0.1687845140695572,
0.014202147722244263,
0.4510240852832794,
0.028291931375861168,
0.012383992783725262,
-0.3308025002479553,
-0.1881508231163025,
0.04717497527599335,
0.08899083733558655,
-0.5186880826950073,
0.08404576033353806,
-0.2582148313522339,
-0.272869348526001,
-0.2343660444021225,
-0.34810787439346313,
-0.05881650373339653,
-0.10133369266986847,
-0.06128145009279251,
0.14182226359844208,
-0.07657217979431152,
0.06146993488073349,
-0.3226082921028137,
0.13849186897277832,
-0.16227146983146667,
0.1579314023256302,
-0.16137385368347168,
-0.16258297860622406,
-0.195257306098938,
-0.03746328502893448,
0.41069313883781433,
0.2090355008840561,
0.1456121951341629,
-0.3906175196170807,
0.07566823065280914,
-0.15502923727035522,
-0.19672474265098572,
0.19226153194904327,
-0.007284265011548996,
0.044500987976789474,
-0.09627605974674225,
-0.10302548110485077,
0.6314198970794678,
-0.18735229969024658,
0.0774795264005661,
0.040375836193561554,
-0.009592401795089245,
0.41204747557640076,
0.10204967856407166,
-0.43084716796875,
-0.07132592797279358,
-0.2392788529396057,
-0.38404393196105957,
-0.5113673806190491,
-0.2183597832918167,
0.08914922177791595,
0.26314911246299744,
0.40021324157714844,
-0.21252283453941345,
-0.04718693718314171,
-0.029674062505364418,
0.33166369795799255,
-0.12996913492679596,
-0.22950296103954315,
0.20376023650169373,
-0.29097381234169006,
-0.3221517503261566,
0.10637810826301575,
0.06827621906995773,
0.39788326621055603,
-0.02667916938662529,
-0.29908573627471924,
0.2009897232055664,
0.07369208335876465,
0.08079607784748077,
-0.1829187124967575,
-0.032664939761161804,
0.16819623112678528,
0.06594516336917877,
0.00742289237678051,
-0.07654385268688202,
0.03371894732117653,
-0.3264494240283966,
-0.025369148701429367,
-0.1287386119365692,
-0.05596272647380829,
0.20268869400024414,
-0.17251265048980713,
0.061919257044792175,
0.4852903485298157,
0.09820036590099335,
0.28679460287094116,
0.05151224136352539,
0.2136230170726776,
0.014720790088176727,
-0.24608328938484192,
0.4707970917224884,
-0.1930656135082245,
-0.2243303656578064,
0.3553861379623413,
0.05292053893208504,
-0.1348503679037094,
-0.21529372036457062,
0.07238799333572388,
-0.12091189622879028,
-0.29521384835243225,
0.05248106271028519,
-0.38988587260246277,
0.24858799576759338,
0.06683845818042755,
0.3902975618839264,
0.07654856145381927,
-0.20692592859268188,
-0.008462716825306416,
0.35202330350875854,
0.15688396990299225,
-0.12519891560077667,
0.014238279312849045,
0.13121937215328217,
-0.48014670610427856,
0.3448662757873535,
0.21024811267852783,
-0.06401722878217697,
-0.043295718729496,
0.26088079810142517,
0.05872846022248268,
-0.15146076679229736,
0.09130429476499557,
-0.2261163294315338,
0.2672911286354065,
0.20792505145072937,
0.3854581117630005,
-0.2534741759300232,
-0.0441586971282959,
-0.0180205125361681,
0.4818538725376129,
-0.08010131120681763,
-0.04596859961748123,
-0.09827473014593124,
0.12115902453660965,
0.07315687835216522,
0.12247540056705475,
-0.08885198831558228,
-0.1877182126045227,
-0.2884792983531952,
-0.35917070508003235,
-0.31031057238578796,
-0.23352313041687012,
0.06878147274255753,
0.3102969229221344,
-0.1312476545572281,
-0.11986058950424194,
-0.0953507050871849,
-0.0344557911157608,
0.19424626231193542,
0.08230012655258179,
0.09218800812959671,
-0.07522483170032501,
0.11568734049797058,
-0.013179030269384384,
-0.13460706174373627,
0.37683674693107605,
0.7526928782463074,
-0.13343827426433563,
-0.5529474020004272,
-0.11591217666864395,
-0.3700481057167053,
0.07848970592021942,
0.4450318515300751,
-0.21247538924217224,
-0.1339324414730072,
0.05934574082493782,
-0.05054676532745361,
-0.3437485098838806,
-0.29927077889442444,
0.05047471821308136,
0.09934380650520325,
-0.2784160375595093,
-0.5206422209739685,
0.46235471963882446,
-0.12712299823760986,
0.031139865517616272,
0.14684969186782837,
0.04181727021932602,
-0.34736132621765137,
0.13728579878807068,
0.006452023983001709,
0.9900813102722168,
0.21408188343048096,
-0.13579297065734863,
0.07534182071685791,
-0.21749085187911987,
0.05287323147058487,
-0.22489552199840546,
0.19801896810531616,
-0.28433850407600403,
0.022239990532398224,
-0.15183545649051666,
0.20459052920341492,
0.2688501179218292,
0.062128059566020966,
-0.2158525586128235,
0.19955042004585266,
-0.07140041142702103,
-0.23757225275039673,
-0.0485023558139801,
0.0031609460711479187,
-0.4199109375476837,
-0.2580132782459259,
-0.5787040591239929,
0.11728216707706451,
-0.1179327666759491,
0.11924660205841064,
-0.1189102753996849,
0.03592963144183159,
0.045507948845624924,
-0.3266946077346802,
-0.4608325958251953,
0.3758397102355957,
-0.2024473249912262,
-0.1504066288471222,
-0.05775163695216179,
-0.38144218921661377,
0.3199536204338074,
0.05619063228368759,
0.25048673152923584,
0.03919783607125282,
-0.04294196516275406,
0.14526252448558807,
0.1981220245361328,
-0.03390655294060707,
-0.024359021335840225,
0.08548761159181595,
0.2385648936033249,
-0.06631892174482346,
-0.11321199685335159,
0.26583629846572876,
-0.04365888237953186,
-0.18375468254089355,
0.25565338134765625,
0.06612946093082428,
-0.0826185792684555,
-0.03951714560389519,
-0.04328154772520065,
0.09551862627267838,
0.18098057806491852,
-0.06299825012683868,
0.14030620455741882,
0.12768888473510742,
-0.2898816466331482,
-0.054411597549915314,
-0.1107429563999176,
-0.2697611153125763,
0.08129072189331055,
0.2204323410987854,
-0.03618534654378891,
-0.08389534801244736,
0.4614356458187103,
0.4005640745162964,
-0.2099895030260086,
-0.1176222562789917,
-0.3479478359222412,
0.1872602105140686,
-0.5638505220413208,
0.03685737028717995,
-0.0007267624605447054,
0.006248161196708679,
-0.15869000554084778,
0.41700243949890137,
-0.13921964168548584,
-0.09379749745130539,
0.06255462765693665,
-0.5232266783714294,
-0.03873060271143913,
0.1154572069644928,
-0.01035044714808464,
0.03293158486485481,
-0.04875224083662033,
0.00014431774616241455,
-0.23697532713413239,
0.11447912454605103,
-0.3007834553718567,
0.10386241972446442,
-0.20777612924575806,
0.1372835636138916,
0.42963674664497375,
-0.034013532102108,
-0.1030203178524971,
-0.20394788682460785,
0.13359114527702332,
0.3360125422477722,
-0.11274943500757217,
-0.1500057578086853,
-0.008557133376598358,
0.13779231905937195,
0.03241635113954544,
-0.08051211386919022,
0.08954963833093643,
-0.05017683282494545,
-0.10576353967189789,
-0.19346432387828827,
0.21797959506511688,
0.14748123288154602,
0.026141569018363953,
-0.027722585946321487,
-0.4482199251651764,
0.2940061688423157,
-0.000667184591293335,
0.2398100346326828,
-0.1485024094581604,
0.43024390935897827,
-0.1185305193066597,
0.12390360236167908,
-0.2088456153869629,
-0.03537367284297943,
-0.1150486171245575,
0.25618281960487366,
-0.09613628685474396,
0.06558677554130554,
0.43631500005722046,
-0.24515487253665924,
0.3256571888923645,
0.48719310760498047,
-0.08354740589857101,
0.34451889991760254,
-0.40915554761886597,
0.02811933495104313,
0.02626204863190651,
0.21024487912654877,
-0.18367645144462585,
-0.01811477169394493,
-0.49608954787254333,
-0.0479392483830452,
-0.09000445902347565,
0.22974847257137299,
0.11052313446998596,
-0.3707813322544098,
-0.23056311905384064,
0.09063810855150223,
0.4767548739910126,
-0.006316535174846649,
0.21916313469409943,
0.023104649037122726,
0.049314532428979874,
-0.0192851684987545,
-0.07030007243156433,
0.21881096065044403,
0.04618683457374573,
0.2720300257205963,
-0.4646317958831787,
0.30939266085624695,
0.24947312474250793,
0.1801019012928009,
-0.008531235158443451,
-0.44116321206092834,
0.04823656380176544,
0.21039599180221558,
0.08522003889083862,
0.40027907490730286,
0.16099101305007935,
0.1586000919342041,
-0.14752492308616638,
-0.12593410909175873,
-0.16134682297706604,
0.0410662442445755,
-0.05831800401210785,
0.047253433614969254,
-0.3145267367362976,
-0.2136666178703308,
-0.1724199503660202,
-0.10437791049480438,
-0.16978244483470917,
0.11930122971534729,
0.07531849294900894,
0.15568970143795013,
-0.34762781858444214,
-0.346391886472702,
0.13774195313453674,
-0.2096368670463562,
0.24470308423042297,
-0.12532804906368256,
0.5787798166275024,
0.43821340799331665,
0.08463583886623383,
0.4258899688720703,
0.30174720287323,
0.7615883350372314,
0.30584192276000977,
0.05350543558597565,
0.19278058409690857,
-0.18105532228946686,
-0.1250639259815216,
0.1044054850935936,
0.3984234035015106,
0.04488105699419975,
0.3953418731689453,
0.043962180614471436,
0.18636585772037506,
-0.13800561428070068,
0.1443946808576584,
0.2655775845050812,
0.4306207001209259,
-0.19145922362804413,
0.2662213444709778,
-0.17390921711921692,
-0.05721855163574219,
-0.4198784828186035,
-0.09465422481298447,
-0.3771164119243622,
0.13632731139659882,
0.26998451352119446,
-0.09206447005271912,
0.0951404795050621,
-0.008360397070646286,
0.10252704471349716,
0.07400406897068024,
0.3087224066257477,
0.40343716740608215,
0.1357364058494568,
0.025536322966217995,
-0.2081611454486847,
-0.42976444959640503,
0.32478034496307373,
-0.09087271988391876,
-0.37412911653518677,
-0.0666041374206543,
0.08240718394517899,
0.19193480908870697,
0.11558332294225693,
0.12382204085588455,
-0.04322154447436333,
0.38333290815353394,
0.05972385033965111,
-0.1724216639995575,
-0.01460975781083107,
0.24141421914100647,
-0.06203272193670273,
-0.30258554220199585,
-0.3642931282520294,
0.03257334977388382,
-0.22731922566890717,
0.07015597075223923,
0.04827544093132019,
-0.03996293991804123,
-0.09225976467132568,
-0.2646710276603699,
0.37221789360046387,
0.06106839329004288,
0.2166769802570343,
-0.31074216961860657,
-0.2267265021800995,
-0.3663765788078308,
-0.14467380940914154,
-0.15449965000152588,
0.4856237769126892,
0.1616639494895935,
0.2741333246231079,
-0.07876960933208466,
0.025311145931482315,
-0.26828616857528687,
0.1879408210515976,
-0.11796882748603821,
0.26936209201812744,
-0.3983282744884491,
-0.06192518025636673,
-0.1300145834684372,
0.06348124146461487,
-0.000244959257543087,
0.24163639545440674,
0.013726167380809784,
0.07287722080945969,
-0.12679456174373627,
-0.6861609816551208,
0.42833635210990906,
-0.5565600991249084,
-0.41566580533981323,
0.08782771974802017,
0.6013885736465454,
0.005116134881973267,
0.072532057762146,
-0.642991840839386,
0.2427361011505127,
0.0948261246085167,
-0.20157092809677124,
-0.18874794244766235,
-0.007277756929397583,
-0.12396013736724854,
-0.1315535306930542,
-0.04032398760318756,
0.08758559823036194,
0.2611948549747467,
-0.16496868431568146,
0.16412289440631866,
-0.40806204080581665
] |
https://github.com/huggingface/datasets/issues/2678 | Import Error in Kaggle notebook | @lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error.
Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything.
```
Install Trace of datasets:
Collecting datasets
Downloading datasets-1.9.0-py3-none-any.whl (262 kB)
|ββββββββββββββββββββββββββββββββ| 262 kB 834 kB/s eta 0:00:01
Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4)
Collecting pyarrow!=4.0.0,>=1.0.0
Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB)
|ββββββββββββββββββββββββββββββββ| 21.8 MB 6.2 MB/s eta 0:00:01
Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0)
Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8)
Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4)
Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1)
Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1)
Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2)
Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9)
Collecting xxhash
Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB)
|ββββββββββββββββββββββββββββββββ| 243 kB 23.7 MB/s eta 0:00:01
Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5)
Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1)
Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5)
Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30)
Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0)
Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3)
Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1)
Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1)
Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1)
Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0)
Installing collected packages: xxhash, pyarrow, datasets
Attempting uninstall: pyarrow
Found existing installation: pyarrow 4.0.0
Uninstalling pyarrow-4.0.0:
Successfully uninstalled pyarrow-4.0.0
Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
``` | ## Describe the bug
Not able to import datasets library in kaggle notebooks
## Steps to reproduce the bug
```python
!pip install datasets
import datasets
```
## Expected results
No such error
## Actual results
```
ImportError Traceback (most recent call last)
<ipython-input-9-652e886d387f> in <module>
----> 1 import datasets
/opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module>
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module>
36 import pandas as pd
37 import pyarrow as pa
---> 38 import pyarrow.compute as pc
39 from multiprocess import Pool, RLock
40 from tqdm.auto import tqdm
/opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module>
16 # under the License.
17
---> 18 from pyarrow._compute import ( # noqa
19 Function,
20 FunctionOptions,
ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Kaggle
- Python version: 3.7.10
- PyArrow version: 4.0.1
| 322 | Import Error in Kaggle notebook
## Describe the bug
Not able to import datasets library in kaggle notebooks
## Steps to reproduce the bug
```python
!pip install datasets
import datasets
```
## Expected results
No such error
## Actual results
```
ImportError Traceback (most recent call last)
<ipython-input-9-652e886d387f> in <module>
----> 1 import datasets
/opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module>
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module>
36 import pandas as pd
37 import pyarrow as pa
---> 38 import pyarrow.compute as pc
39 from multiprocess import Pool, RLock
40 from tqdm.auto import tqdm
/opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module>
16 # under the License.
17
---> 18 from pyarrow._compute import ( # noqa
19 Function,
20 FunctionOptions,
ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Kaggle
- Python version: 3.7.10
- PyArrow version: 4.0.1
@lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error.
Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything.
```
Install Trace of datasets:
Collecting datasets
Downloading datasets-1.9.0-py3-none-any.whl (262 kB)
|ββββββββββββββββββββββββββββββββ| 262 kB 834 kB/s eta 0:00:01
Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4)
Collecting pyarrow!=4.0.0,>=1.0.0
Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB)
|ββββββββββββββββββββββββββββββββ| 21.8 MB 6.2 MB/s eta 0:00:01
Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0)
Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8)
Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4)
Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1)
Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1)
Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2)
Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9)
Collecting xxhash
Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB)
|ββββββββββββββββββββββββββββββββ| 243 kB 23.7 MB/s eta 0:00:01
Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5)
Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1)
Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5)
Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30)
Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0)
Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3)
Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1)
Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1)
Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1)
Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0)
Installing collected packages: xxhash, pyarrow, datasets
Attempting uninstall: pyarrow
Found existing installation: pyarrow 4.0.0
Uninstalling pyarrow-4.0.0:
Successfully uninstalled pyarrow-4.0.0
Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
``` | [
-0.3157348036766052,
-0.08313189446926117,
-0.11097192764282227,
0.16588273644447327,
0.1794455647468567,
-0.022079285234212875,
0.32081475853919983,
0.27083173394203186,
-0.028439588844776154,
-0.052530139684677124,
-0.14362627267837524,
0.8592824935913086,
0.0922812893986702,
0.23786602914333344,
0.020910214632749557,
-0.04791004955768585,
0.1613057553768158,
0.22563977539539337,
-0.04348643124103546,
0.0514688715338707,
-0.06438542902469635,
0.0771295428276062,
-0.2960682809352875,
0.20067645609378815,
-0.05924873426556587,
-0.36576908826828003,
0.17989464104175568,
-0.014297254383563995,
-0.2524811327457428,
-0.34737440943717957,
0.4036727845668793,
-0.17204013466835022,
0.1640072762966156,
0.3787457346916199,
-0.00010879821638809517,
0.0669417679309845,
0.361846923828125,
-0.029119666665792465,
-0.3702855706214905,
-0.10772265493869781,
-0.21760839223861694,
-0.6008009910583496,
0.0832865759730339,
-0.2847103476524353,
0.4702085256576538,
-0.2857753038406372,
-0.2630595266819,
-0.1921924650669098,
0.2056123912334442,
0.18169020116329193,
0.22065000236034393,
0.47747114300727844,
0.48070406913757324,
0.009231409057974815,
0.2772544324398041,
-0.12895140051841736,
-0.20726139843463898,
0.3021774888038635,
0.24013151228427887,
-0.21127185225486755,
0.11662513017654419,
0.12655632197856903,
-0.06769163906574249,
0.030069883912801743,
0.10252265632152557,
0.016817037016153336,
-0.15581649541854858,
-0.3838820457458496,
-0.06789319217205048,
0.0581076517701149,
0.49305102229118347,
-0.5021789073944092,
-0.2771856188774109,
-0.12386752665042877,
0.11405453085899353,
0.0022393055260181427,
0.1400085985660553,
0.17300593852996826,
-0.06770321726799011,
-0.09622736275196075,
0.2432507872581482,
-0.23781095445156097,
-0.2651631236076355,
0.18640172481536865,
-0.18608969449996948,
0.45965269207954407,
-0.048524919897317886,
0.09632746875286102,
0.28498101234436035,
-0.13448743522167206,
0.6502165198326111,
-0.09686873108148575,
-0.13297075033187866,
0.11464817076921463,
-0.41173654794692993,
0.09713231027126312,
0.01040942594408989,
-0.04258769750595093,
0.11656057089567184,
0.10594730824232101,
0.10661438852548599,
0.11889112740755081,
0.09632822126150131,
0.3061639368534088,
0.07815983891487122,
0.3834522068500519,
0.02883773297071457,
0.36331531405448914,
0.2639468312263489,
0.29053154587745667,
0.24596568942070007,
-0.0625745952129364,
-0.07487630844116211,
-0.394898921251297,
0.0809103399515152,
-0.05938208848237991,
0.2644907236099243,
0.15669900178909302,
-0.42451393604278564,
-0.006587079726159573,
-0.29082030057907104,
-0.05267014726996422,
0.000586487352848053,
0.12607836723327637,
-0.21891850233078003,
0.15704938769340515,
0.15392644703388214,
0.1813417673110962,
-0.11788617819547653,
-0.05939941108226776,
-0.12012666463851929,
0.3064025640487671,
-0.021891113370656967,
-0.22583059966564178,
0.04495891556143761,
-0.2936346232891083,
0.24428287148475647,
0.024581491947174072,
0.22952571511268616,
0.17503593862056732,
0.17053279280662537,
-0.12573203444480896,
-0.19194045662879944,
0.3506010174751282,
0.03210795298218727,
0.11539285629987717,
0.12777186930179596,
-0.39318645000457764,
-0.12470026314258575,
0.07880853116512299,
-0.16625657677650452,
-0.08047668635845184,
-0.2768649160861969,
0.18099649250507355,
-0.2906901240348816,
0.05142475664615631,
-0.5761378407478333,
-0.2516324520111084,
0.0038179606199264526,
-0.05011859908699989,
-0.0043986886739730835,
-0.1965855360031128,
0.23443090915679932,
-0.25447747111320496,
0.2506345212459564,
0.053461477160453796,
-0.35949182510375977,
0.047444432973861694,
-0.22104284167289734,
-0.20704717934131622,
-0.06444445997476578,
0.12893234193325043,
-0.245041623711586,
0.1776168942451477,
-0.2288637012243271,
0.13484923541545868,
0.673027753829956,
-0.6061070561408997,
-0.5256839990615845,
0.025764156132936478,
-0.09347641468048096,
0.014892181381583214,
-0.013019435107707977,
0.09445741772651672,
-0.10299085080623627,
0.21576523780822754,
0.06773810088634491,
0.16228532791137695,
-0.03149029612541199,
-0.19102683663368225,
-0.25922900438308716,
-0.2871660888195038,
0.057885944843292236,
0.1806645542383194,
0.09252680838108063,
-0.29240667819976807,
0.1847914457321167,
-0.1539340615272522,
0.03819490224123001,
0.06003788486123085,
0.12027442455291748,
0.056565575301647186,
0.36037302017211914,
0.05278395116329193,
-0.012401711195707321,
-0.12482567876577377,
-0.29170694947242737,
0.26851439476013184,
-0.13982564210891724,
0.03489396721124649,
-0.4064069986343384,
-0.08324412256479263,
-0.36111265420913696,
0.30129456520080566,
-0.2173997312784195,
0.05254790931940079,
0.169799342751503,
-0.12373620271682739,
0.01050005853176117,
0.3521028459072113,
-0.007705524563789368,
0.3821060359477997,
0.19184300303459167,
0.15500709414482117,
-0.3192886412143707,
0.30611419677734375,
-0.38146618008613586,
-0.14575019478797913,
0.061545707285404205,
0.13012968003749847,
-0.10304569453001022,
0.02512902393937111,
-0.04431627690792084,
0.11395857483148575,
0.0772131085395813,
0.023946203291416168,
0.010299764573574066,
-0.23090563714504242,
0.17629006505012512,
-0.3153474032878876,
0.13565558195114136,
0.13354197144508362,
0.3049321472644806,
0.09287437051534653,
0.09618919342756271,
0.09530479460954666,
-0.05925117805600166,
-0.09579775482416153,
0.01486688107252121,
0.2575814723968506,
0.20676472783088684,
0.2018834352493286,
0.061224304139614105,
-0.12222319841384888,
0.18432171642780304,
-0.023839876055717468,
0.10303911566734314,
-0.08725149184465408,
-0.13673141598701477,
-0.02393767237663269,
0.36004117131233215,
0.009660966694355011,
0.14368420839309692,
0.009731505066156387,
-0.3445081114768982,
0.21861883997917175,
0.2709669768810272,
0.015254337340593338,
0.3870508670806885,
0.2118290364742279,
-0.2134578824043274,
-0.07350583374500275,
-0.05109834671020508,
-0.10950464010238647,
0.12252124398946762,
0.31493860483169556,
0.39168739318847656,
0.17711757123470306,
0.24585585296154022,
-0.06541576236486435,
0.01141665130853653,
-0.2596939206123352,
-0.04270286113023758,
0.2147676646709442,
-0.1877255141735077,
0.2559344470500946,
-0.22842180728912354,
-0.23713308572769165,
-0.16273128986358643,
-0.19927580654621124,
0.011719675734639168,
-0.40435901284217834,
-0.23680047690868378,
0.24493780732154846,
0.16853678226470947,
0.18492241203784943,
0.1470603048801422,
-0.11813940107822418,
0.07499605417251587,
-0.2854742407798767,
-0.2432316094636917,
-0.34841665625572205,
-0.37593576312065125,
0.10307866334915161,
0.3510781526565552,
0.1604798585176468,
0.22902341187000275,
-0.1745559424161911,
0.24878333508968353,
-0.4051179885864258,
-0.4474340081214905,
-0.21086353063583374,
-0.09327718615531921,
0.42364227771759033,
0.2669569253921509,
0.1613868772983551,
-0.23775359988212585,
-0.2812197506427765,
0.3301021456718445,
0.15859727561473846,
-0.26955777406692505,
0.1333749145269394,
-0.11049231886863708,
-0.2200869768857956,
0.0303354449570179,
-0.3240671455860138,
-0.39913320541381836,
-0.41534629464149475,
0.310141384601593,
0.18538086116313934,
-0.1316486895084381,
-0.1519111841917038,
0.32889842987060547,
0.21017751097679138,
0.17467781901359558,
0.022653993219137192,
0.07372016459703445,
0.26881906390190125,
0.5995615124702454,
-0.11755625903606415,
-0.4101840853691101,
0.2229813039302826,
-0.23266176879405975,
0.30329006910324097,
-0.07549527287483215,
-0.4256073236465454,
0.014736386947333813,
-0.1739690601825714,
0.6500645875930786,
-0.2176862359046936,
0.22310811281204224,
0.18106912076473236,
0.2036796510219574,
0.07050509750843048,
-0.12438662350177765,
-0.2514392137527466,
-0.12164100259542465,
-0.11919965595006943,
0.05733513832092285,
0.055383555591106415,
0.117658331990242,
0.042580801993608475,
0.5509266257286072,
0.05373090133070946,
-0.06524057686328888,
0.2583059072494507,
-0.08189521729946136,
0.21384254097938538,
0.07649563252925873,
-0.4019146263599396,
-0.04955650120973587,
-0.14083248376846313,
0.2763572335243225,
-0.15398724377155304,
-0.2508073151111603,
-0.21860545873641968,
-0.331121027469635,
-0.17562559247016907,
-0.1506529301404953,
-0.19339469075202942,
0.0008878260850906372,
-0.15699614584445953,
0.005802318453788757,
0.08069290220737457,
-0.07366452366113663,
-0.18820837140083313,
-0.13479450345039368,
0.1647775024175644,
0.030728362500667572,
-0.3172054588794708,
0.11594395339488983,
-0.3461393415927887,
-0.4914351999759674,
-0.15530064702033997,
0.30255183577537537,
0.12901555001735687,
0.2815116345882416,
0.16029466688632965,
-0.16675078868865967,
0.07052012532949448,
-0.193551704287529,
0.4416457414627075,
-0.03418097645044327,
-0.24060986936092377,
0.2495843470096588,
0.28237274289131165,
-0.7925557494163513,
-0.31758204102516174,
-0.2055812031030655,
0.07808857411146164,
0.1872679442167282,
0.11087660491466522,
-0.2535758912563324,
0.15501520037651062,
-0.030947048217058182,
0.44605395197868347,
-0.0348789244890213,
0.05852719023823738,
-0.4713840186595917,
-0.43794843554496765,
-0.3892824649810791,
-0.11561135202646255,
-0.040934011340141296,
0.32131484150886536,
-0.025429295375943184,
-0.041062526404857635,
-0.20785987377166748,
-0.07322190701961517,
-0.14979605376720428,
0.2925761342048645,
0.22519683837890625,
-0.1615438312292099,
0.25940215587615967,
-0.10842959582805634,
-0.042469725012779236,
0.4509441554546356,
0.4091889262199402,
0.09626410901546478,
-0.7135221362113953,
-0.16449430584907532,
-0.08195602893829346,
0.10510988533496857,
-0.16934627294540405,
-0.16028040647506714,
0.1434171348810196,
-0.0038495901972055435,
0.02081805095076561,
0.061501067131757736,
0.06263669580221176,
0.1762910783290863,
0.14788126945495605,
-0.12856225669384003,
-0.19095705449581146,
0.4781825542449951,
0.30024826526641846,
0.02864200621843338,
0.41083940863609314,
0.025886282324790955,
-0.14775049686431885,
0.09951238334178925,
0.13313451409339905,
0.6035125255584717,
0.009961232542991638,
0.051503464579582214,
0.5848057270050049,
-0.3137615919113159,
0.5632759928703308,
-0.13169479370117188,
0.039374761283397675,
-0.43160441517829895,
-0.24108771979808807,
-0.0023155901581048965,
-0.3130732476711273,
0.31809818744659424,
-0.3315049409866333,
-0.25836673378944397,
0.07859266549348831,
-0.2612192630767822,
0.17561180889606476,
0.10274510830640793,
0.1611453741788864,
-0.30932778120040894,
-0.060025837272405624,
-0.14559166133403778,
0.11299793422222137,
-0.1309087872505188,
0.21480773389339447,
-0.06616078317165375,
-0.03314043581485748,
-0.5395655035972595,
-0.17737944424152374,
-0.16915617883205414,
0.014457415789365768,
-0.2888350486755371,
0.5264726281166077,
0.16669005155563354,
-0.32030534744262695,
0.34276095032691956,
0.42442095279693604,
0.24713006615638733,
0.005772106349468231,
-0.04558614641427994,
0.0889882892370224,
0.2085774838924408,
-0.23716837167739868,
0.25291427969932556,
0.04621558263897896,
0.204273521900177,
-0.15639877319335938,
-0.3190072178840637,
0.4772297441959381,
-0.08465543389320374,
-0.029560675844550133,
0.00009700655937194824,
0.4971587061882019,
0.11319208145141602,
-0.12172780185937881,
-0.12025491893291473,
-0.15952974557876587,
0.12495385110378265,
-0.10159865021705627,
0.13220877945423126,
0.1119275838136673,
0.04660988971590996,
0.4556715786457062,
-0.12677662074565887,
0.05197268724441528,
-0.02749032899737358,
0.22347736358642578,
-0.11493539065122604,
0.062030427157878876,
0.21230590343475342,
0.0696587860584259,
-0.3292408585548401,
-0.16836017370224,
0.15087047219276428,
-0.1530790776014328,
-0.3438256084918976,
0.00772150419652462,
0.13187086582183838,
-0.008227482438087463,
-0.2520039975643158,
0.37281930446624756,
0.20312140882015228,
-0.10848996788263321,
0.12799395620822906,
-0.4349559545516968,
-0.24745163321495056,
0.34845399856567383,
-0.022029060870409012,
-0.11787649989128113,
0.2887563705444336,
0.08775748312473297,
-0.00588400661945343,
-0.03209153562784195,
-0.2641661763191223,
0.19318178296089172,
-0.32276421785354614,
-0.03169833496212959,
0.14257314801216125,
0.11276441067457199,
0.010573063977062702,
-0.08566327393054962,
0.13983279466629028,
0.04615609347820282,
-0.043721336871385574,
-0.2567094564437866,
-0.06590919196605682,
0.05748105049133301,
-0.03435264155268669,
-0.14740772545337677,
0.07413451373577118,
-0.26439350843429565,
0.06597214192152023,
-0.004230450838804245,
-0.09471650421619415,
0.03165161609649658,
-0.13093522191047668,
0.04677823558449745,
-0.08077171444892883,
0.11944489926099777,
-0.2579265236854553,
0.27948978543281555,
-0.17301177978515625,
-0.01869805157184601,
-0.006906791590154171,
0.22523219883441925,
0.24785034358501434,
0.1844673454761505,
-0.009556474164128304,
-0.16140982508659363,
-0.2980034351348877,
-0.01807432621717453,
0.23755455017089844,
-0.37876009941101074,
0.10767938196659088,
-0.09004954993724823,
0.05176537483930588,
0.5189231634140015,
-0.26996511220932007,
0.008283507078886032,
0.3809458315372467,
0.19897255301475525,
-0.4422299861907959,
-0.37292370200157166,
0.17860963940620422,
-0.0709991604089737,
-0.017153408378362656,
0.08852698653936386,
0.20251846313476562,
-0.08049140125513077,
-0.020154669880867004,
0.2654152810573578,
0.1258959323167801,
-0.1370825618505478,
0.31400007009506226,
0.4234539866447449,
-0.03783480077981949,
0.023216575384140015,
0.28127461671829224,
0.29637566208839417,
0.18558862805366516,
0.40474575757980347,
-0.3500570058822632,
0.028288694098591805,
-0.03694974631071091,
0.10450336337089539,
-0.05479943007230759,
-0.28557926416397095,
-0.053226862102746964,
-0.05716685950756073,
-0.10709927976131439,
-0.18453902006149292,
0.10975974798202515,
0.4301126003265381,
0.057470303028821945,
0.030785512179136276,
0.05207820236682892,
0.01770198345184326,
-0.10238002985715866,
0.29199153184890747,
-0.03364287316799164,
-0.12727908790111542,
0.1321565806865692,
-0.061720870435237885,
0.15198847651481628,
-0.2190745323896408,
0.3816210925579071,
0.2350090891122818,
-0.20985938608646393,
-0.21271173655986786,
0.2184397578239441,
0.4200308620929718,
0.07604445517063141,
-0.13247352838516235,
-0.10672839730978012,
0.24076613783836365,
-0.1935664415359497,
-0.38239771127700806,
0.23150977492332458,
0.6090099811553955,
0.3060404360294342,
-0.25816109776496887,
0.12252093106508255,
0.08719940483570099,
-0.1709100604057312,
-0.03989095985889435,
0.07451038062572479,
0.13151149451732635,
0.0693419873714447,
0.2778826653957367,
0.21140322089195251,
-0.17689111828804016,
-0.09505157172679901,
0.13589082658290863,
0.19367410242557526,
-0.16570469737052917,
0.1618967056274414,
-0.32067179679870605,
-0.26774734258651733,
-0.053142935037612915,
0.04815105348825455,
-0.25078538060188293,
0.4375481605529785,
0.24095287919044495,
0.25329819321632385,
0.03142501041293144,
-0.3065512776374817,
0.08897379040718079,
0.05743870511651039,
0.4528067111968994,
0.23094409704208374,
0.38243409991264343,
-0.13606666028499603,
-0.14082567393779755,
-0.5310806035995483,
0.06656382977962494,
-0.05217999592423439,
-0.3010043501853943,
-0.012899642810225487,
0.007157804444432259,
-0.06458418816328049,
0.23492537438869476,
0.17802104353904724,
0.026965804398059845,
0.35651037096977234,
0.15200212597846985,
-0.37447571754455566,
-0.3461717367172241,
0.3202924132347107,
-0.1987847238779068,
0.04542534798383713,
-0.3909822106361389,
0.053733088076114655,
-0.37669622898101807,
0.14348050951957703,
-0.3492603302001953,
-0.059946637600660324,
0.2764989733695984,
0.0935332402586937,
0.5667530298233032,
-0.002158498391509056,
0.5926166772842407,
0.19349828362464905,
0.09676553308963776,
-0.004381988197565079,
-0.17075541615486145,
-0.1537616103887558,
0.25097498297691345,
0.17356637120246887,
0.1745196133852005,
-0.26262974739074707,
-0.0890752524137497,
-0.17915071547031403,
0.4046066999435425,
0.2431993931531906,
0.1485370546579361,
-0.052344515919685364,
0.09028983116149902,
-0.030060002580285072,
-0.0034669609740376472,
0.0776304230093956,
0.07138603180646896,
-0.17397545278072357,
0.1392740160226822,
-0.3855036497116089,
-0.4081260561943054,
0.2425973266363144,
-0.2250489890575409,
-0.29577547311782837,
-0.014649960212409496,
-0.0010493993759155273,
0.057517390698194504,
-0.09832987934350967,
-0.31636977195739746,
0.011840485036373138,
0.3954783082008362,
-0.059940434992313385,
-0.22446154057979584,
0.30578866600990295,
0.12920792400836945,
0.05642757937312126,
-0.09659413248300552,
0.419094979763031,
-0.1479630470275879,
-0.11253762990236282,
0.07883785665035248,
-0.10651068389415741
] |
https://github.com/huggingface/datasets/issues/2678 | Import Error in Kaggle notebook | You may need to restart your kaggle notebook after installing a newer version of `pyarrow`.
If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail | ## Describe the bug
Not able to import datasets library in kaggle notebooks
## Steps to reproduce the bug
```python
!pip install datasets
import datasets
```
## Expected results
No such error
## Actual results
```
ImportError Traceback (most recent call last)
<ipython-input-9-652e886d387f> in <module>
----> 1 import datasets
/opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module>
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module>
36 import pandas as pd
37 import pyarrow as pa
---> 38 import pyarrow.compute as pc
39 from multiprocess import Pool, RLock
40 from tqdm.auto import tqdm
/opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module>
16 # under the License.
17
---> 18 from pyarrow._compute import ( # noqa
19 Function,
20 FunctionOptions,
ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Kaggle
- Python version: 3.7.10
- PyArrow version: 4.0.1
| 37 | Import Error in Kaggle notebook
## Describe the bug
Not able to import datasets library in kaggle notebooks
## Steps to reproduce the bug
```python
!pip install datasets
import datasets
```
## Expected results
No such error
## Actual results
```
ImportError Traceback (most recent call last)
<ipython-input-9-652e886d387f> in <module>
----> 1 import datasets
/opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module>
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module>
36 import pandas as pd
37 import pyarrow as pa
---> 38 import pyarrow.compute as pc
39 from multiprocess import Pool, RLock
40 from tqdm.auto import tqdm
/opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module>
16 # under the License.
17
---> 18 from pyarrow._compute import ( # noqa
19 Function,
20 FunctionOptions,
ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Kaggle
- Python version: 3.7.10
- PyArrow version: 4.0.1
You may need to restart your kaggle notebook after installing a newer version of `pyarrow`.
If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail | [
-0.3392021656036377,
-0.07555142790079117,
-0.11409218609333038,
0.12584365904331207,
0.20035074651241302,
0.01308877021074295,
0.35124361515045166,
0.32860398292541504,
-0.030616983771324158,
-0.03462010622024536,
-0.18046177923679352,
0.8273150324821472,
0.08167608082294464,
0.23343391716480255,
0.045938633382320404,
-0.06990927457809448,
0.11407134681940079,
0.20138201117515564,
-0.049040332436561584,
0.07037746906280518,
-0.11784366518259048,
0.08349129557609558,
-0.2884145975112915,
0.2321551889181137,
-0.05840768292546272,
-0.3381464183330536,
0.1671687364578247,
-0.014157429337501526,
-0.24300841987133026,
-0.37904512882232666,
0.37848466634750366,
-0.19662289321422577,
0.18173761665821075,
0.32947206497192383,
-0.00010536887566559017,
0.06046763062477112,
0.3373236656188965,
-0.01246583554893732,
-0.31024399399757385,
-0.10455809533596039,
-0.1442512720823288,
-0.525762677192688,
0.10285945981740952,
-0.31285199522972107,
0.4279819428920746,
-0.31949910521507263,
-0.24022139608860016,
-0.1276630461215973,
0.23085546493530273,
0.19617785513401031,
0.26569560170173645,
0.46335524320602417,
0.4862203001976013,
0.0011489155003800988,
0.37416499853134155,
-0.11436203122138977,
-0.17437982559204102,
0.36280718445777893,
0.2402818500995636,
-0.2248292714357376,
0.05008530244231224,
0.118187814950943,
-0.05097268521785736,
0.06260840594768524,
0.13127253949642181,
0.05767139047384262,
-0.10530092567205429,
-0.3694542944431305,
-0.058392107486724854,
0.05251213535666466,
0.5115423202514648,
-0.5075424909591675,
-0.21774353086948395,
-0.08145339787006378,
0.12246796488761902,
-0.028666172176599503,
0.1378106027841568,
0.2050572633743286,
-0.05018283426761627,
-0.12101905047893524,
0.28346315026283264,
-0.212121844291687,
-0.2584422826766968,
0.20056642591953278,
-0.14837104082107544,
0.4371285140514374,
-0.04063364118337631,
0.09604941308498383,
0.293590247631073,
-0.153581440448761,
0.607909083366394,
-0.08813127875328064,
-0.11160731315612793,
0.12102799862623215,
-0.3806026577949524,
0.12399615347385406,
0.06792398542165756,
-0.06739703565835953,
0.09920711070299149,
0.09189549088478088,
0.09359830617904663,
0.15505382418632507,
0.12129446864128113,
0.31666624546051025,
0.11749482154846191,
0.32610276341438293,
0.016599711030721664,
0.29971545934677124,
0.28647536039352417,
0.3017311990261078,
0.17292827367782593,
-0.08002836257219315,
-0.07473041862249374,
-0.3969314396381378,
0.1270081251859665,
-0.06984328478574753,
0.3046584725379944,
0.1747569441795349,
-0.3466576039791107,
-0.05297481268644333,
-0.3350794017314911,
-0.0637516975402832,
-0.011690557934343815,
0.1123066395521164,
-0.20940914750099182,
0.11521731317043304,
0.18749983608722687,
0.14600028097629547,
-0.16661688685417175,
-0.06828709691762924,
-0.15214961767196655,
0.30628514289855957,
-0.025190098211169243,
-0.22677776217460632,
0.028829213231801987,
-0.3074619174003601,
0.1900966316461563,
0.04592679440975189,
0.22939234972000122,
0.15976539254188538,
0.189035102725029,
-0.1123429387807846,
-0.2045963704586029,
0.3003136217594147,
0.060103561729192734,
0.07129029184579849,
0.1299430876970291,
-0.4086228013038635,
-0.13515335321426392,
0.10636498779058456,
-0.2069544494152069,
-0.1117253303527832,
-0.2594718039035797,
0.2262060046195984,
-0.22215566039085388,
0.05046255886554718,
-0.5596431493759155,
-0.2054489701986313,
-0.017304882407188416,
-0.08585263788700104,
0.0026643723249435425,
-0.23962046205997467,
0.20154884457588196,
-0.26709428429603577,
0.25048354268074036,
0.030216872692108154,
-0.35858455300331116,
0.012738987803459167,
-0.24593433737754822,
-0.22160981595516205,
-0.0705786719918251,
0.16049568355083466,
-0.2848051190376282,
0.18457764387130737,
-0.22644086182117462,
0.18871836364269257,
0.6346994042396545,
-0.5204712152481079,
-0.49795231223106384,
-0.018640348687767982,
-0.1067584753036499,
-0.041364885866642,
-0.06167564541101456,
0.11734563857316971,
-0.1233748197555542,
0.22131124138832092,
0.0595054067671299,
0.17618322372436523,
-0.03561268001794815,
-0.16292384266853333,
-0.24307605624198914,
-0.25097334384918213,
0.10739949345588684,
0.1639563888311386,
0.08606497943401337,
-0.30466052889823914,
0.1918824315071106,
-0.137086421251297,
0.07819245755672455,
0.04833604395389557,
0.09523145854473114,
0.03523801639676094,
0.36616119742393494,
0.01455526053905487,
0.046488385647535324,
-0.13117453455924988,
-0.2734668552875519,
0.23826056718826294,
-0.19558246433734894,
0.051437247544527054,
-0.3236396908760071,
-0.09541332721710205,
-0.3622353971004486,
0.2734937369823456,
-0.22088758647441864,
0.08958685398101807,
0.2002180814743042,
-0.11218294501304626,
-0.00923215039074421,
0.3617269694805145,
-0.024201927706599236,
0.2681078314781189,
0.1552402228116989,
0.12968236207962036,
-0.33418720960617065,
0.36520132422447205,
-0.3834289610385895,
-0.18056440353393555,
0.1077803522348404,
0.10408664494752884,
-0.1019412949681282,
0.03806081786751747,
-0.043063562363386154,
0.1366349756717682,
0.08263646811246872,
0.04477689042687416,
-0.012011393904685974,
-0.19606716930866241,
0.15639790892601013,
-0.38807740807533264,
0.07274939864873886,
0.1435052901506424,
0.3162688910961151,
0.08371470123529434,
0.08320056647062302,
0.1296727955341339,
-0.06753280758857727,
-0.0983566865324974,
0.0049292780458927155,
0.22758765518665314,
0.15671013295650482,
0.1868843138217926,
0.1146124079823494,
-0.09869737923145294,
0.15405531227588654,
-0.06396006047725677,
0.08718216419219971,
-0.08767662197351456,
-0.14097943902015686,
-0.02802034467458725,
0.405303418636322,
0.02335425838828087,
0.18083733320236206,
0.030434519052505493,
-0.3962773382663727,
0.16441777348518372,
0.24273744225502014,
-0.030017081648111343,
0.35357028245925903,
0.22562313079833984,
-0.20565825700759888,
-0.0412725955247879,
-0.0282231867313385,
-0.14694619178771973,
0.13395048677921295,
0.2999616265296936,
0.3659513294696808,
0.16451528668403625,
0.2697116732597351,
-0.0871521532535553,
-0.07744689285755157,
-0.20469234883785248,
-0.06536804139614105,
0.23561090230941772,
-0.1783074289560318,
0.23260243237018585,
-0.21686021983623505,
-0.27431169152259827,
-0.16112343966960907,
-0.16322267055511475,
-0.021598730236291885,
-0.44833508133888245,
-0.21084852516651154,
0.24846334755420685,
0.1435384899377823,
0.17732931673526764,
0.1788654327392578,
-0.11519138514995575,
0.09367606043815613,
-0.2396903783082962,
-0.2538071870803833,
-0.4000016450881958,
-0.3790813684463501,
0.14327172935009003,
0.32571977376937866,
0.15817315876483917,
0.22662828862667084,
-0.15190546214580536,
0.2532317638397217,
-0.4079260528087616,
-0.4701181650161743,
-0.20247101783752441,
-0.08139219135046005,
0.3739662170410156,
0.26823461055755615,
0.14277531206607819,
-0.25323355197906494,
-0.3090759515762329,
0.38301214575767517,
0.0678422823548317,
-0.27301540970802307,
0.16933239996433258,
-0.10987856239080429,
-0.17844878137111664,
0.025331951677799225,
-0.3571756184101105,
-0.3664131164550781,
-0.4171212315559387,
0.30464571714401245,
0.18334689736366272,
-0.12228502333164215,
-0.15017198026180267,
0.28703072667121887,
0.23864096403121948,
0.1402592957019806,
-0.033191196620464325,
0.043846532702445984,
0.2569073736667633,
0.5885711312294006,
-0.11854727566242218,
-0.4215679466724396,
0.20813190937042236,
-0.2530037760734558,
0.28792595863342285,
-0.12129898369312286,
-0.4119751453399658,
0.005975439213216305,
-0.1581650972366333,
0.6464040279388428,
-0.19376227259635925,
0.22625358402729034,
0.13847826421260834,
0.18837951123714447,
0.014980727806687355,
-0.0934888944029808,
-0.2597445547580719,
-0.12562483549118042,
-0.03817213326692581,
0.01626726984977722,
0.03282990679144859,
0.11833393573760986,
0.026889320462942123,
0.5717334747314453,
-0.02527509443461895,
-0.05605832859873772,
0.2782265841960907,
-0.11588280647993088,
0.2086126208305359,
0.048781514167785645,
-0.3988293409347534,
-0.028875714167952538,
-0.14409416913986206,
0.2643158435821533,
-0.12593558430671692,
-0.27048248052597046,
-0.24749691784381866,
-0.2997136116027832,
-0.2148066908121109,
-0.12636306881904602,
-0.22219441831111908,
-0.005458300933241844,
-0.07572563737630844,
0.010882064700126648,
0.05956884101033211,
-0.10004337131977081,
-0.20029836893081665,
-0.17455050349235535,
0.20066586136817932,
-0.008294448256492615,
-0.28061360120773315,
0.10128708183765411,
-0.37645938992500305,
-0.481312096118927,
-0.16982236504554749,
0.31959259510040283,
0.1419185847043991,
0.2067781239748001,
0.13615573942661285,
-0.1811809539794922,
0.09187986701726913,
-0.19554612040519714,
0.39128369092941284,
-0.000050980597734451294,
-0.18314026296138763,
0.28933820128440857,
0.2120576798915863,
-0.794005811214447,
-0.2984023094177246,
-0.2168446034193039,
0.024592608213424683,
0.15184074640274048,
0.0556015819311142,
-0.23587465286254883,
0.18254956603050232,
-0.006750006228685379,
0.42556893825531006,
-0.05207517370581627,
0.046657342463731766,
-0.45442020893096924,
-0.41374531388282776,
-0.3685894310474396,
-0.12700611352920532,
-0.05142035707831383,
0.334929883480072,
0.002266921801492572,
0.005324132740497589,
-0.18554532527923584,
-0.11196398735046387,
-0.15769098699092865,
0.2670361399650574,
0.214625746011734,
-0.1115875169634819,
0.2346784472465515,
-0.1138722151517868,
-0.07426202297210693,
0.45540130138397217,
0.41735702753067017,
0.1206769049167633,
-0.7068605422973633,
-0.15796342492103577,
-0.1026352196931839,
0.09674260020256042,
-0.22020456194877625,
-0.1588292419910431,
0.19779300689697266,
0.022188132628798485,
0.043797705322504044,
0.041743602603673935,
0.08069831132888794,
0.19852222502231598,
0.08623215556144714,
-0.06556865572929382,
-0.1619855910539627,
0.499995619058609,
0.2260812520980835,
0.0486239492893219,
0.414302259683609,
0.014600835740566254,
-0.1390305459499359,
0.09274543076753616,
0.15260431170463562,
0.5871590375900269,
-0.03016532212495804,
0.056094881147146225,
0.5907449126243591,
-0.30141183733940125,
0.551314651966095,
-0.12304656952619553,
0.07412984222173691,
-0.46288394927978516,
-0.2247701734304428,
0.005509300157427788,
-0.3155348598957062,
0.29694968461990356,
-0.31247222423553467,
-0.25427868962287903,
0.03295627981424332,
-0.2659882605075836,
0.20803701877593994,
0.055378325283527374,
0.17813047766685486,
-0.2830350995063782,
-0.011861767619848251,
-0.14986012876033783,
0.14945024251937866,
-0.1639215350151062,
0.1959710270166397,
-0.06254731863737106,
-0.05027447268366814,
-0.4486033618450165,
-0.16844816505908966,
-0.1643160879611969,
0.04416421800851822,
-0.26916080713272095,
0.52372145652771,
0.18905305862426758,
-0.3010548949241638,
0.3148764967918396,
0.3913821578025818,
0.17511245608329773,
-0.03877764567732811,
-0.05697936564683914,
0.1074402779340744,
0.16162000596523285,
-0.2480660080909729,
0.21283715963363647,
0.08064369857311249,
0.20555837452411652,
-0.18669477105140686,
-0.32984524965286255,
0.5272291302680969,
-0.0452226847410202,
-0.035511478781700134,
-0.03419848531484604,
0.4944121241569519,
0.10254129022359848,
-0.1520354002714157,
-0.09379538893699646,
-0.1552087664604187,
0.07233944535255432,
-0.11728493869304657,
0.1601325273513794,
0.10953423380851746,
0.058741141110658646,
0.4139994978904724,
-0.10571886599063873,
0.02690623700618744,
-0.02960123121738434,
0.25407832860946655,
-0.11558929830789566,
0.10670967400074005,
0.2500082552433014,
0.1303194910287857,
-0.30781853199005127,
-0.19458159804344177,
0.18065369129180908,
-0.06221383810043335,
-0.3541777431964874,
0.04794245958328247,
0.14965865015983582,
0.10581766068935394,
-0.20282873511314392,
0.3725808560848236,
0.15339674055576324,
-0.12137941271066666,
0.12878240644931793,
-0.38336318731307983,
-0.26565855741500854,
0.3385189175605774,
-0.009002652019262314,
-0.11039659380912781,
0.2926867604255676,
0.07819842547178268,
0.031330935657024384,
-0.006216473877429962,
-0.3084302544593811,
0.20520833134651184,
-0.3302123248577118,
0.008381303399801254,
0.10119253396987915,
0.07941415905952454,
-0.030885757878422737,
-0.0641285628080368,
0.17227768898010254,
0.043854743242263794,
-0.08635362982749939,
-0.296659380197525,
-0.07324913889169693,
0.04322502017021179,
-0.04798275977373123,
-0.15681344270706177,
0.07919510453939438,
-0.24203471839427948,
0.05019206553697586,
-0.012974666431546211,
-0.07027217745780945,
0.030193321406841278,
-0.1627747267484665,
0.08944442123174667,
-0.08568254113197327,
0.04081868380308151,
-0.24535223841667175,
0.2226579636335373,
-0.19171762466430664,
-0.008078806102275848,
0.0023849192075431347,
0.1824350357055664,
0.265346497297287,
0.14516618847846985,
-0.017271913588047028,
-0.13758045434951782,
-0.30056434869766235,
-0.07403264939785004,
0.2530137300491333,
-0.3708568811416626,
0.030267585068941116,
-0.12115424126386642,
0.06816040724515915,
0.4832298457622528,
-0.2564840614795685,
0.02279498614370823,
0.3177834451198578,
0.22277331352233887,
-0.4727802872657776,
-0.34020519256591797,
0.16690918803215027,
-0.027610983699560165,
-0.005912423133850098,
0.0402585044503212,
0.18041181564331055,
-0.021457158029079437,
-0.04647202789783478,
0.2500554323196411,
0.1249820664525032,
-0.16556699573993683,
0.2797202467918396,
0.420926034450531,
-0.04949502274394035,
0.026437658816576004,
0.2675212025642395,
0.29638105630874634,
0.20453359186649323,
0.3570423126220703,
-0.32764795422554016,
0.060175515711307526,
-0.056229740381240845,
0.03784000128507614,
-0.005667150020599365,
-0.31386852264404297,
-0.10838864743709564,
-0.010535910725593567,
-0.10384507477283478,
-0.18556910753250122,
0.1291922926902771,
0.44322705268859863,
0.1279408037662506,
0.05935369431972504,
0.0844719260931015,
0.06076476722955704,
-0.11081849783658981,
0.28860485553741455,
-0.07291173934936523,
-0.10204131156206131,
0.08749082684516907,
-0.04017634689807892,
0.12147267162799835,
-0.2050826996564865,
0.40827250480651855,
0.2422345131635666,
-0.19695945084095,
-0.2069232314825058,
0.20369216799736023,
0.40474024415016174,
0.07805939018726349,
-0.14161646366119385,
-0.14259283244609833,
0.24954871833324432,
-0.18847042322158813,
-0.3304867148399353,
0.22766126692295074,
0.5777506828308105,
0.25772881507873535,
-0.27404311299324036,
0.11547031998634338,
0.07171754539012909,
-0.17433632910251617,
-0.018099090084433556,
0.05404980853199959,
0.17041610181331635,
0.12481391429901123,
0.27938157320022583,
0.24896025657653809,
-0.18990717828273773,
-0.1014503538608551,
0.11929027736186981,
0.17148646712303162,
-0.17781931161880493,
0.14402076601982117,
-0.302923321723938,
-0.2679331600666046,
-0.09332643449306488,
0.053884461522102356,
-0.20716917514801025,
0.4015529453754425,
0.2685336172580719,
0.2801019549369812,
0.013948135077953339,
-0.31204870343208313,
0.11214730143547058,
0.051715560257434845,
0.4743933379650116,
0.24388617277145386,
0.3920080363750458,
-0.15022322535514832,
-0.1226658821105957,
-0.5042757987976074,
0.10378436744213104,
-0.044082727283239365,
-0.3021402657032013,
0.005827051587402821,
0.03114851377904415,
-0.038629867136478424,
0.24103505909442902,
0.2164306938648224,
-0.011148454621434212,
0.3305133283138275,
0.11247354745864868,
-0.35942143201828003,
-0.2880427837371826,
0.3069216310977936,
-0.20136547088623047,
0.02823246270418167,
-0.35204389691352844,
0.09429165720939636,
-0.4053054451942444,
0.17816713452339172,
-0.36223697662353516,
-0.10471475124359131,
0.27115747332572937,
0.10819569230079651,
0.5927201509475708,
-0.019798891618847847,
0.5346364974975586,
0.17098146677017212,
0.16506454348564148,
0.019948136061429977,
-0.21273133158683777,
-0.14480939507484436,
0.23924610018730164,
0.1270064115524292,
0.2343883514404297,
-0.22127488255500793,
-0.09601637721061707,
-0.20162110030651093,
0.4118446707725525,
0.21909360587596893,
0.16069142520427704,
-0.028343042358756065,
0.09247825294733047,
-0.005644958466291428,
-0.025082629173994064,
0.08121702820062637,
0.05688240006566048,
-0.1496460735797882,
0.12836411595344543,
-0.3866487145423889,
-0.4248798191547394,
0.27521461248397827,
-0.2176073044538498,
-0.31542566418647766,
-0.037494104355573654,
0.01342153549194336,
0.10106056928634644,
-0.1023397445678711,
-0.31622037291526794,
0.012066900730133057,
0.4264294505119324,
-0.03595796227455139,
-0.2100614607334137,
0.28191718459129333,
0.11199288070201874,
0.12201948463916779,
-0.08989900350570679,
0.3843318223953247,
-0.09534073621034622,
-0.11463917046785355,
0.022028837352991104,
-0.14568349719047546
] |
https://github.com/huggingface/datasets/issues/2678 | Import Error in Kaggle notebook | > You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`.
>
> If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
It works after restarting.
My bad, I forgot to restart the notebook. Sorry for the trouble! | ## Describe the bug
Not able to import datasets library in kaggle notebooks
## Steps to reproduce the bug
```python
!pip install datasets
import datasets
```
## Expected results
No such error
## Actual results
```
ImportError Traceback (most recent call last)
<ipython-input-9-652e886d387f> in <module>
----> 1 import datasets
/opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module>
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module>
36 import pandas as pd
37 import pyarrow as pa
---> 38 import pyarrow.compute as pc
39 from multiprocess import Pool, RLock
40 from tqdm.auto import tqdm
/opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module>
16 # under the License.
17
---> 18 from pyarrow._compute import ( # noqa
19 Function,
20 FunctionOptions,
ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Kaggle
- Python version: 3.7.10
- PyArrow version: 4.0.1
| 57 | Import Error in Kaggle notebook
## Describe the bug
Not able to import datasets library in kaggle notebooks
## Steps to reproduce the bug
```python
!pip install datasets
import datasets
```
## Expected results
No such error
## Actual results
```
ImportError Traceback (most recent call last)
<ipython-input-9-652e886d387f> in <module>
----> 1 import datasets
/opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module>
31 )
32
---> 33 from .arrow_dataset import Dataset, concatenate_datasets
34 from .arrow_reader import ArrowReader, ReadInstruction
35 from .arrow_writer import ArrowWriter
/opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module>
36 import pandas as pd
37 import pyarrow as pa
---> 38 import pyarrow.compute as pc
39 from multiprocess import Pool, RLock
40 from tqdm.auto import tqdm
/opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module>
16 # under the License.
17
---> 18 from pyarrow._compute import ( # noqa
19 Function,
20 FunctionOptions,
ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Kaggle
- Python version: 3.7.10
- PyArrow version: 4.0.1
> You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`.
>
> If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
It works after restarting.
My bad, I forgot to restart the notebook. Sorry for the trouble! | [
-0.34386762976646423,
-0.07707994431257248,
-0.11421950161457062,
0.13209161162376404,
0.19162200391292572,
0.010946482419967651,
0.3406418561935425,
0.3310459852218628,
-0.040551185607910156,
-0.031570374965667725,
-0.17700281739234924,
0.8259581327438354,
0.07840695232152939,
0.21675540506839752,
0.04229671508073807,
-0.07512860000133514,
0.11513523757457733,
0.20600004494190216,
-0.05403377115726471,
0.06841443479061127,
-0.12047316879034042,
0.08219032734632492,
-0.2884451150894165,
0.23086680471897125,
-0.05367578938603401,
-0.33539795875549316,
0.16340161859989166,
-0.015641003847122192,
-0.2512481212615967,
-0.3893158435821533,
0.3791486918926239,
-0.20304855704307556,
0.17865189909934998,
0.32986336946487427,
-0.00010546910925768316,
0.05577714741230011,
0.33311980962753296,
-0.0016954466700553894,
-0.3189186453819275,
-0.09719030559062958,
-0.14497515559196472,
-0.5241268277168274,
0.11398471146821976,
-0.3169446587562561,
0.42528897523880005,
-0.33021530508995056,
-0.23765115439891815,
-0.12070222944021225,
0.23491550981998444,
0.2009018361568451,
0.26432931423187256,
0.46178150177001953,
0.48618775606155396,
-0.0043764966540038586,
0.38449910283088684,
-0.12632228434085846,
-0.16783909499645233,
0.375298410654068,
0.23642143607139587,
-0.22639063000679016,
0.04133778437972069,
0.11752530932426453,
-0.061410292983055115,
0.06328228116035461,
0.12766587734222412,
0.04925971478223801,
-0.1038791760802269,
-0.3674463629722595,
-0.06833196431398392,
0.0503971166908741,
0.5075069069862366,
-0.5111194849014282,
-0.21696440875530243,
-0.08546163886785507,
0.12432082742452621,
-0.03310413286089897,
0.13803896307945251,
0.2016972154378891,
-0.05358969792723656,
-0.11015419661998749,
0.28082725405693054,
-0.20640943944454193,
-0.2585771977901459,
0.19371604919433594,
-0.15189066529273987,
0.44038817286491394,
-0.03874817118048668,
0.0953778401017189,
0.2886867821216583,
-0.14609818160533905,
0.6073464751243591,
-0.0855475664138794,
-0.12035000324249268,
0.12166956067085266,
-0.3787599503993988,
0.12028127908706665,
0.06833142042160034,
-0.06435973197221756,
0.09703496843576431,
0.08821550756692886,
0.09196671098470688,
0.1456047147512436,
0.13050273060798645,
0.31274086236953735,
0.11704108119010925,
0.3272091746330261,
0.009206697344779968,
0.29128819704055786,
0.27981889247894287,
0.29122936725616455,
0.16915997862815857,
-0.07662488520145416,
-0.06993701308965683,
-0.3918393850326538,
0.13440029323101044,
-0.06948117166757584,
0.31267786026000977,
0.17189109325408936,
-0.35568323731422424,
-0.049457695335149765,
-0.3413331210613251,
-0.06107206642627716,
-0.0187460258603096,
0.11719827353954315,
-0.21346217393875122,
0.11042028665542603,
0.18445149064064026,
0.14404632151126862,
-0.16706733405590057,
-0.0719214454293251,
-0.15177617967128754,
0.3045976161956787,
-0.029399774968624115,
-0.22970716655254364,
0.02089371159672737,
-0.30868837237358093,
0.18702049553394318,
0.051580242812633514,
0.2191491723060608,
0.1520775407552719,
0.1907956898212433,
-0.11567972600460052,
-0.19896617531776428,
0.3034537136554718,
0.05972898378968239,
0.07516230642795563,
0.12552547454833984,
-0.4011129140853882,
-0.12948115170001984,
0.10902094841003418,
-0.20784488320350647,
-0.11302658915519714,
-0.26320207118988037,
0.22986538708209991,
-0.21520143747329712,
0.05390152335166931,
-0.5561846494674683,
-0.20422248542308807,
-0.016154438257217407,
-0.09570340812206268,
0.00885404646396637,
-0.2448437362909317,
0.2065395712852478,
-0.27543511986732483,
0.2436390221118927,
0.03799711912870407,
-0.3599003553390503,
0.019681915640830994,
-0.2543707489967346,
-0.22622355818748474,
-0.06329860538244247,
0.15920062363147736,
-0.2863210141658783,
0.1953849345445633,
-0.22958174347877502,
0.19177623093128204,
0.6380629539489746,
-0.514375627040863,
-0.49432334303855896,
-0.018340177834033966,
-0.11208765208721161,
-0.029624883085489273,
-0.056907184422016144,
0.11421220749616623,
-0.12338162958621979,
0.2207448035478592,
0.06381665915250778,
0.16991758346557617,
-0.03144380450248718,
-0.15496614575386047,
-0.24697373807430267,
-0.247642382979393,
0.10741669684648514,
0.16192840039730072,
0.08611109852790833,
-0.310131698846817,
0.1939123272895813,
-0.13404305279254913,
0.08206965029239655,
0.04889684170484543,
0.08613477647304535,
0.04103536158800125,
0.36398541927337646,
0.00734584778547287,
0.04128006845712662,
-0.14537715911865234,
-0.27893850207328796,
0.23349928855895996,
-0.20378123223781586,
0.043385762721300125,
-0.3181884288787842,
-0.09762537479400635,
-0.3575015962123871,
0.27704909443855286,
-0.2133723348379135,
0.08117543160915375,
0.2015092670917511,
-0.10527163743972778,
-0.0017695352435112,
0.3523832857608795,
-0.02310538850724697,
0.2652157247066498,
0.1516367495059967,
0.13248708844184875,
-0.33897674083709717,
0.35704803466796875,
-0.3791423738002777,
-0.19112877547740936,
0.10654319822788239,
0.10103242099285126,
-0.09904884546995163,
0.03755265101790428,
-0.04002084955573082,
0.1391090601682663,
0.08696503192186356,
0.05051621422171593,
-0.02996775507926941,
-0.19732265174388885,
0.15610429644584656,
-0.3874381184577942,
0.0762951448559761,
0.14115484058856964,
0.3138977289199829,
0.09010142832994461,
0.09193462133407593,
0.12511876225471497,
-0.057135436683893204,
-0.10568474978208542,
0.010007351636886597,
0.21469487249851227,
0.1489284485578537,
0.18479955196380615,
0.12199024111032486,
-0.09526550769805908,
0.16374975442886353,
-0.05755925551056862,
0.0876648873090744,
-0.08312413096427917,
-0.1441526710987091,
-0.025372914969921112,
0.4067188501358032,
0.027504365891218185,
0.18406590819358826,
0.029344936832785606,
-0.3974841237068176,
0.16138389706611633,
0.2377908080816269,
-0.038825519382953644,
0.3521711230278015,
0.2281312197446823,
-0.20386579632759094,
-0.03670301288366318,
-0.025722205638885498,
-0.14596682786941528,
0.13845577836036682,
0.2991796135902405,
0.3653390109539032,
0.17211705446243286,
0.27516332268714905,
-0.07937522232532501,
-0.07498928904533386,
-0.20255620777606964,
-0.06626119464635849,
0.23881711065769196,
-0.17931802570819855,
0.23284585773944855,
-0.2155465930700302,
-0.28134945034980774,
-0.16775551438331604,
-0.16836771368980408,
-0.01784750074148178,
-0.43740275502204895,
-0.20769618451595306,
0.25311195850372314,
0.13706032931804657,
0.1795031577348709,
0.18914316594600677,
-0.11910475790500641,
0.09144625067710876,
-0.2401309460401535,
-0.2524137496948242,
-0.38975080847740173,
-0.3771703243255615,
0.1407492458820343,
0.32314199209213257,
0.16103029251098633,
0.23223650455474854,
-0.15233631432056427,
0.24474529922008514,
-0.4053627848625183,
-0.46414846181869507,
-0.19967764616012573,
-0.07983418554067612,
0.37535712122917175,
0.27120405435562134,
0.14533019065856934,
-0.25076568126678467,
-0.3088521659374237,
0.3701547086238861,
0.06788363307714462,
-0.27803730964660645,
0.16338786482810974,
-0.1102384701371193,
-0.17212383449077606,
0.030149031430482864,
-0.36433547735214233,
-0.36620238423347473,
-0.4178313612937927,
0.30319762229919434,
0.18233990669250488,
-0.12022246420383453,
-0.15832766890525818,
0.28697070479393005,
0.24041242897510529,
0.12970060110092163,
-0.026720339432358742,
0.051749587059020996,
0.259449303150177,
0.5824720859527588,
-0.11348345875740051,
-0.41767618060112,
0.1986725628376007,
-0.25759077072143555,
0.2834934890270233,
-0.12021248042583466,
-0.42129331827163696,
0.0007620435208082199,
-0.160490021109581,
0.660959005355835,
-0.19919487833976746,
0.21469031274318695,
0.1496121883392334,
0.19047081470489502,
0.012940367683768272,
-0.08903172612190247,
-0.2557511031627655,
-0.14029937982559204,
-0.03633461892604828,
0.01083759218454361,
0.02298711985349655,
0.1207670271396637,
0.015704508870840073,
0.5826402306556702,
-0.022584974765777588,
-0.053331408649683,
0.27514082193374634,
-0.1212432011961937,
0.2058859020471573,
0.04547092691063881,
-0.4002605676651001,
-0.030818598344922066,
-0.14823532104492188,
0.25347572565078735,
-0.12386384606361389,
-0.27598869800567627,
-0.24879316985607147,
-0.3007619082927704,
-0.22170110046863556,
-0.13517753779888153,
-0.21488361060619354,
-0.0007895883172750473,
-0.06682956218719482,
0.01914578676223755,
0.060875143855810165,
-0.095822274684906,
-0.1899787187576294,
-0.17741680145263672,
0.19920270144939423,
-0.01264665275812149,
-0.27870768308639526,
0.09548155963420868,
-0.3641175925731659,
-0.4850814640522003,
-0.1638602316379547,
0.31250232458114624,
0.14825250208377838,
0.1970624476671219,
0.14090017974376678,
-0.17663052678108215,
0.0947587862610817,
-0.1950092911720276,
0.39245009422302246,
0.005731412209570408,
-0.1782677322626114,
0.28521502017974854,
0.21998313069343567,
-0.7880546450614929,
-0.29382359981536865,
-0.22271569073200226,
0.02384534664452076,
0.15743644535541534,
0.05748952180147171,
-0.2375730574131012,
0.18725155293941498,
0.005227640271186829,
0.4398752450942993,
-0.05482137203216553,
0.043747760355472565,
-0.45392096042633057,
-0.4103512465953827,
-0.3626696467399597,
-0.12044789642095566,
-0.048204366117715836,
0.3372282385826111,
0.0038947334978729486,
0.0014652721583843231,
-0.1842183619737625,
-0.10645357519388199,
-0.16292427480220795,
0.27040398120880127,
0.21565154194831848,
-0.12126826494932175,
0.2366349995136261,
-0.12296704947948456,
-0.0786363035440445,
0.4644383490085602,
0.42022228240966797,
0.123781219124794,
-0.6989779472351074,
-0.15927839279174805,
-0.08174699544906616,
0.10295175015926361,
-0.2168058156967163,
-0.1642383486032486,
0.20258444547653198,
0.021502211689949036,
0.04433714970946312,
0.040310848504304886,
0.07559860497713089,
0.20126567780971527,
0.08744752407073975,
-0.0733746588230133,
-0.15103501081466675,
0.5053036212921143,
0.22790737450122833,
0.04965968430042267,
0.40686026215553284,
0.013320796191692352,
-0.13642418384552002,
0.09588538855314255,
0.15269961953163147,
0.6006858944892883,
-0.027830570936203003,
0.05081244185566902,
0.6026000380516052,
-0.3067755103111267,
0.5539413094520569,
-0.13000644743442535,
0.08401244133710861,
-0.46491849422454834,
-0.2181674987077713,
0.007001267746090889,
-0.3166860044002533,
0.29506510496139526,
-0.3199925422668457,
-0.25084447860717773,
0.035639382898807526,
-0.2634040117263794,
0.20716632902622223,
0.057378798723220825,
0.18010784685611725,
-0.27656492590904236,
-0.008458219468593597,
-0.15260115265846252,
0.14601635932922363,
-0.16789455711841583,
0.19331881403923035,
-0.06967617571353912,
-0.0516187883913517,
-0.43645572662353516,
-0.16829276084899902,
-0.16614709794521332,
0.043759264051914215,
-0.2752036452293396,
0.5126554369926453,
0.18874046206474304,
-0.3083457052707672,
0.30380263924598694,
0.3915409445762634,
0.15757465362548828,
-0.03257029876112938,
-0.05513625591993332,
0.10629932582378387,
0.15929193794727325,
-0.24998116493225098,
0.21638214588165283,
0.08224263042211533,
0.20630444586277008,
-0.18703263998031616,
-0.32441678643226624,
0.5305288434028625,
-0.0557476207613945,
-0.030215462669730186,
-0.02450992912054062,
0.49029111862182617,
0.10989081859588623,
-0.15390494465827942,
-0.09123384952545166,
-0.15353302657604218,
0.07098057866096497,
-0.12607239186763763,
0.15970775485038757,
0.10155188292264938,
0.05880122631788254,
0.41412976384162903,
-0.1115618646144867,
0.01918409764766693,
-0.041934315115213394,
0.26329779624938965,
-0.10645843297243118,
0.11084608733654022,
0.2457139939069748,
0.13021646440029144,
-0.31011950969696045,
-0.19411808252334595,
0.17471104860305786,
-0.0625777617096901,
-0.3609365224838257,
0.051027651876211166,
0.14427559077739716,
0.11817707121372223,
-0.2049165666103363,
0.365536630153656,
0.1593816876411438,
-0.11603889614343643,
0.12172594666481018,
-0.38307008147239685,
-0.25655344128608704,
0.33879727125167847,
0.003723427653312683,
-0.11631253361701965,
0.3004077076911926,
0.08133754134178162,
0.03030271641910076,
-0.0058229900896549225,
-0.3074537515640259,
0.20282481610774994,
-0.3254203498363495,
0.011559877544641495,
0.09506569802761078,
0.08245670050382614,
-0.03083897940814495,
-0.06428658217191696,
0.17814280092716217,
0.04786395654082298,
-0.0828658938407898,
-0.2979176938533783,
-0.06921465694904327,
0.043668925762176514,
-0.05298706889152527,
-0.15592166781425476,
0.07893988490104675,
-0.24277767539024353,
0.0613810159265995,
-0.011820679530501366,
-0.0639527440071106,
0.024486631155014038,
-0.16005462408065796,
0.08145754784345627,
-0.07733805477619171,
0.0409088134765625,
-0.2512696385383606,
0.22821587324142456,
-0.1928744614124298,
-0.016353867948055267,
-0.0043093301355838776,
0.1892687827348709,
0.2621607184410095,
0.1422039270401001,
-0.012665379792451859,
-0.1455063819885254,
-0.29465705156326294,
-0.07144509255886078,
0.24628931283950806,
-0.3729647397994995,
0.019347939640283585,
-0.1245206817984581,
0.07011981308460236,
0.4878970980644226,
-0.2644612789154053,
0.021816318854689598,
0.3213037848472595,
0.22485798597335815,
-0.4720916450023651,
-0.3357241451740265,
0.16089418530464172,
-0.028791394084692,
-0.003393396735191345,
0.046018511056900024,
0.17434407770633698,
-0.025053061544895172,
-0.039903439581394196,
0.2498084306716919,
0.11671193689107895,
-0.15515634417533875,
0.2698941230773926,
0.42286866903305054,
-0.04521931707859039,
0.02074548229575157,
0.27196624875068665,
0.30088722705841064,
0.2052328735589981,
0.3551146984100342,
-0.32482123374938965,
0.0645563006401062,
-0.05168773978948593,
0.03776673227548599,
-0.01197005808353424,
-0.3060586154460907,
-0.10699766874313354,
-0.003531709313392639,
-0.10442334413528442,
-0.19028842449188232,
0.1279560625553131,
0.4319307208061218,
0.1319543421268463,
0.05573918670415878,
0.08284687995910645,
0.06171786040067673,
-0.11907198280096054,
0.29644647240638733,
-0.060518644750118256,
-0.10374762117862701,
0.09121701121330261,
-0.038305189460515976,
0.11628660559654236,
-0.20879687368869781,
0.4120824933052063,
0.2387763261795044,
-0.2003590315580368,
-0.20896320044994354,
0.20515692234039307,
0.404968798160553,
0.07703127712011337,
-0.14475706219673157,
-0.13086776435375214,
0.2532716393470764,
-0.19047874212265015,
-0.3400834798812866,
0.23628966510295868,
0.5830225348472595,
0.25807493925094604,
-0.27517053484916687,
0.10936044156551361,
0.07312241196632385,
-0.17655010521411896,
-0.021940138190984726,
0.05763504281640053,
0.1601724624633789,
0.13684876263141632,
0.2793980836868286,
0.2509012520313263,
-0.1937190294265747,
-0.09180738031864166,
0.12458427250385284,
0.16295455396175385,
-0.19050586223602295,
0.14473967254161835,
-0.29706645011901855,
-0.27487364411354065,
-0.08792448788881302,
0.05974986404180527,
-0.20579442381858826,
0.40846961736679077,
0.27451273798942566,
0.2821597158908844,
0.004959365352988243,
-0.3078814446926117,
0.1118856817483902,
0.05498683825135231,
0.4759658873081207,
0.24669793248176575,
0.39764681458473206,
-0.15499894320964813,
-0.12841905653476715,
-0.5016838312149048,
0.11088867485523224,
-0.052498769015073776,
-0.30146780610084534,
0.0038353316485881805,
0.03093891032040119,
-0.04693145304918289,
0.2556981146335602,
0.2194003015756607,
-0.007229194976389408,
0.32487645745277405,
0.12294743955135345,
-0.3567807376384735,
-0.2917698323726654,
0.30501723289489746,
-0.20671263337135315,
0.029596485197544098,
-0.3504009544849396,
0.10540702193975449,
-0.4134698808193207,
0.17660751938819885,
-0.35909783840179443,
-0.10725121945142746,
0.28136542439460754,
0.11461012065410614,
0.5974839925765991,
-0.01933571882545948,
0.5290721654891968,
0.16651737689971924,
0.15858909487724304,
0.02538861706852913,
-0.21360017359256744,
-0.14344686269760132,
0.24465936422348022,
0.13016435503959656,
0.2302502989768982,
-0.21694894134998322,
-0.09752951562404633,
-0.19965285062789917,
0.4094184637069702,
0.22015006840229034,
0.16378453373908997,
-0.021873246878385544,
0.08712083846330643,
-0.0011449940502643585,
-0.02364036813378334,
0.08054263889789581,
0.055549412965774536,
-0.14188174903392792,
0.12738586962223053,
-0.3887634873390198,
-0.4281502664089203,
0.27444028854370117,
-0.22183139622211456,
-0.3107547461986542,
-0.03886939957737923,
0.024493426084518433,
0.10103500634431839,
-0.10539645701646805,
-0.3233851194381714,
0.011640891432762146,
0.43790513277053833,
-0.037832073867321014,
-0.20448465645313263,
0.28127914667129517,
0.10532274842262268,
0.12282152473926544,
-0.08606015145778656,
0.37970831990242004,
-0.09527110308408737,
-0.11661386489868164,
0.03152605518698692,
-0.1509275585412979
] |
https://github.com/huggingface/datasets/issues/2677 | Error when downloading C4 | Hi Thanks for reporting !
It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;) | Hi,
I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive:
`datasets.load_dataset('c4', 'en')`
Is this a bug or do I have some configurations missing on my server?
Thanks!
<img width="1014" alt="Π‘Π½ΠΈΠΌΠΎΠΊ ΡΠΊΡΠ°Π½Π° 2021-07-20 Π² 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> | 27 | Error when downloading C4
Hi,
I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive:
`datasets.load_dataset('c4', 'en')`
Is this a bug or do I have some configurations missing on my server?
Thanks!
<img width="1014" alt="Π‘Π½ΠΈΠΌΠΎΠΊ ΡΠΊΡΠ°Π½Π° 2021-07-20 Π² 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
Hi Thanks for reporting !
It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;) | [
0.09684576094150543,
-0.06861110031604767,
-0.05390683189034462,
0.47501301765441895,
0.23112377524375916,
0.23958039283752441,
0.005815759301185608,
0.16763187944889069,
-0.0170364361256361,
-0.10581757128238678,
-0.02598453499376774,
-0.29927271604537964,
0.16184568405151367,
-0.031800948083400726,
0.0029821014031767845,
-0.11933203041553497,
0.13585469126701355,
0.08486119657754898,
-0.13912014663219452,
-0.35141587257385254,
-0.11538279801607132,
0.0911913812160492,
-0.1484108865261078,
0.11585481464862823,
-0.026407552883028984,
-0.02749413065612316,
0.0056615304201841354,
0.08160018920898438,
-0.34968245029449463,
-0.3620357811450958,
0.555793821811676,
0.10423971712589264,
0.1785733550786972,
0.07448061555624008,
-0.00011677346628857777,
-0.18653899431228638,
0.3024601936340332,
-0.3341217637062073,
-0.13408908247947693,
-0.12163226306438446,
-0.3307467997074127,
-0.20628975331783295,
-0.2419676035642624,
-0.34945619106292725,
-0.044258542358875275,
-0.1409955471754074,
0.1553080528974533,
-0.11969316005706787,
0.03511080890893936,
0.46307307481765747,
0.18099325895309448,
-0.10437395423650742,
0.008373450487852097,
-0.18091699481010437,
-0.0925607904791832,
0.010255292057991028,
0.06695994734764099,
0.1523745208978653,
0.11259201169013977,
0.2954706847667694,
0.34570491313934326,
0.1438501924276352,
0.023414382711052895,
-0.046174388378858566,
0.26480624079704285,
-0.19322748482227325,
0.1687994748353958,
-0.38408157229423523,
0.30179083347320557,
0.27151113748550415,
0.9384874701499939,
-0.14330720901489258,
-0.1691133677959442,
0.2467643916606903,
0.18929722905158997,
-0.18559928238391876,
0.29462650418281555,
0.6772631406784058,
-0.06799378991127014,
0.12513180077075958,
-0.32608142495155334,
-0.18656495213508606,
-0.11974582821130753,
0.2777039706707001,
-0.12928172945976257,
-0.2179442048072815,
0.07719270884990692,
-0.05184260010719299,
0.1002989113330841,
0.20468588173389435,
0.0032094502821564674,
-0.4079838693141937,
-0.1779828667640686,
0.21195806562900543,
-0.11531692743301392,
0.0007462725043296814,
-0.41276779770851135,
0.39044708013534546,
-0.08808363974094391,
-0.04882357269525528,
-0.24433134496212006,
-0.07201795279979706,
-0.16063432395458221,
0.08103939890861511,
0.18064315617084503,
-0.04470478743314743,
0.13689009845256805,
0.15672895312309265,
0.08027737587690353,
-0.1490294188261032,
0.15456591546535492,
-0.09443328529596329,
-0.18084508180618286,
-0.3186025023460388,
-0.06164981424808502,
0.2068343460559845,
-0.12880158424377441,
-0.43180638551712036,
-0.22984206676483154,
0.23124973475933075,
-0.311958372592926,
0.07695787400007248,
-0.1125139519572258,
0.42421701550483704,
-0.43252697587013245,
-0.0528690442442894,
-0.08158917725086212,
0.1484348475933075,
-0.05913383513689041,
-0.5108193159103394,
-0.1177360936999321,
0.05670512467622757,
-0.2883010506629944,
-0.21884477138519287,
0.28050148487091064,
-0.5110834240913391,
0.29502588510513306,
0.052138254046440125,
0.17217954993247986,
-0.11801239103078842,
-0.08355691283941269,
-0.3251761496067047,
0.08741599321365356,
0.2726629376411438,
-0.13626134395599365,
0.12452905625104904,
0.26220792531967163,
-0.2980208396911621,
0.028888627886772156,
-0.04101710766553879,
-0.350358247756958,
-0.12040972709655762,
-0.1634519398212433,
0.11907090991735458,
-0.21251538395881653,
-0.009393710643053055,
-0.34964707493782043,
-0.2559761703014374,
0.24433466792106628,
-0.09214869141578674,
0.15947994589805603,
-0.3166210651397705,
0.03177360072731972,
-0.16815631091594696,
-0.044828131794929504,
0.3502219319343567,
-0.3620435893535614,
0.018054641783237457,
-0.032912321388721466,
-0.11093632876873016,
0.3610638976097107,
0.2010711282491684,
-0.172978475689888,
0.308846652507782,
-0.2813076674938202,
0.2549065351486206,
0.04889952391386032,
-0.542952835559845,
-0.45508503913879395,
0.2392614632844925,
0.10148634016513824,
-0.07876049727201462,
-0.2260333001613617,
-0.07064973562955856,
0.3881841003894806,
-0.1845715194940567,
-0.05142657458782196,
0.06852981448173523,
0.09100325405597687,
0.04544486105442047,
-0.13692565262317657,
0.05823712795972824,
0.19337506592273712,
-0.036191388964653015,
0.20074152946472168,
-0.09157036989927292,
0.28357723355293274,
-0.1294599324464798,
0.24641868472099304,
-0.19030146300792694,
0.1727258414030075,
0.27423179149627686,
0.18232034146785736,
-0.12281137704849243,
0.13213074207305908,
0.35256439447402954,
-0.40318942070007324,
0.16285255551338196,
-0.04386885091662407,
-0.00014913082122802734,
-0.020208820700645447,
0.00305914506316185,
-0.2633752226829529,
-0.19606056809425354,
-0.28289198875427246,
-0.08162832260131836,
0.029565639793872833,
-0.1728120744228363,
0.0364454947412014,
0.15137436985969543,
0.16863791644573212,
0.5813816785812378,
-0.23743613064289093,
0.0732230469584465,
0.1647723913192749,
0.30524513125419617,
-0.11461784690618515,
0.32438817620277405,
0.06050826609134674,
-0.19762355089187622,
0.30111464858055115,
-0.11830420047044754,
-0.1741783320903778,
0.18022921681404114,
0.2748374044895172,
0.21194326877593994,
-0.3257678747177124,
0.005128040909767151,
0.4052170217037201,
-0.378632128238678,
0.18285468220710754,
0.40981146693229675,
0.1813715249300003,
-0.04248606413602829,
0.010512139648199081,
-0.002569422125816345,
-0.08980101346969604,
-0.2186427116394043,
0.027364827692508698,
0.10815954953432083,
0.3547264635562897,
-0.016122501343488693,
-0.2691570818424225,
-0.16400593519210815,
0.3425188660621643,
-0.2733928859233856,
0.04014887288212776,
-0.007994873449206352,
-0.17746354639530182,
-0.320986270904541,
0.48957616090774536,
0.06071117892861366,
-0.039963722229003906,
0.16094040870666504,
-0.028031446039676666,
0.057485371828079224,
0.35412660241127014,
0.20055659115314484,
0.5117331147193909,
-0.02721984311938286,
-0.20330512523651123,
0.26474177837371826,
0.13748881220817566,
-0.18593338131904602,
0.3109610080718994,
-0.21975146234035492,
0.109989233314991,
0.18628597259521484,
-0.08798208832740784,
-0.12057434767484665,
-0.39987897872924805,
0.1504886895418167,
0.31801819801330566,
0.08841100335121155,
-0.3093164265155792,
0.12854693830013275,
-0.4081650376319885,
-0.23066982626914978,
-0.2915101647377014,
-0.1382841318845749,
-0.06350119411945343,
0.05578188598155975,
0.003945484757423401,
-0.108170285820961,
-0.1405951976776123,
-0.004835985600948334,
-0.620750904083252,
-0.043200716376304626,
-0.040777817368507385,
-0.17095457017421722,
0.03946060687303543,
0.257370263338089,
-0.23515385389328003,
0.009477358311414719,
0.10989388078451157,
0.0883890837430954,
0.3553428649902344,
-0.39844274520874023,
0.2627769112586975,
-0.38343700766563416,
-0.20119833946228027,
0.25265634059906006,
0.08352864533662796,
-0.17934347689151764,
-0.02357623726129532,
0.2764117121696472,
-0.3303965926170349,
-0.14719633758068085,
-0.08177559822797775,
0.059342920780181885,
-0.15935476124286652,
0.19851629436016083,
0.04020363837480545,
-0.16981545090675354,
-0.16463688015937805,
-0.5502981543540955,
-0.41890403628349304,
-0.08548621833324432,
-0.16076985001564026,
-0.17523419857025146,
0.0396210253238678,
0.4361681044101715,
0.01822618395090103,
-0.07804250717163086,
0.10903318226337433,
-0.15961655974388123,
-0.2542773187160492,
-0.1209912821650505,
0.42981481552124023,
-0.2539363205432892,
-0.5836585164070129,
0.10299216210842133,
0.010723967105150223,
0.17444546520709991,
0.32625317573547363,
-0.3350968360900879,
0.3499169647693634,
0.10392547398805618,
0.021326269954442978,
0.025306949391961098,
-0.21573933959007263,
0.34576964378356934,
-0.22299247980117798,
0.12444630265235901,
-0.13639593124389648,
0.2712986171245575,
0.10599678009748459,
0.20973694324493408,
0.5329785346984863,
-0.442127525806427,
-0.030273467302322388,
0.1538645178079605,
0.23192740976810455,
0.12779614329338074,
-0.29354482889175415,
0.538786768913269,
0.28659501671791077,
0.3581421375274658,
0.2793964445590973,
-0.34949105978012085,
0.3341582417488098,
-0.23430418968200684,
-0.06060333549976349,
0.3306899666786194,
-0.19232586026191711,
-0.3205670118331909,
-0.1543569713830948,
0.13522109389305115,
-0.34581923484802246,
-0.12566527724266052,
-0.09959918260574341,
-0.02323611080646515,
0.36725372076034546,
0.32434526085853577,
0.3868781328201294,
0.21906957030296326,
-0.2529471218585968,
0.08798304200172424,
0.36650794744491577,
0.19227789342403412,
0.12189292162656784,
-0.15943388640880585,
-0.23854626715183258,
-0.013744562864303589,
0.2690030336380005,
0.35129693150520325,
0.14291878044605255,
0.008691970258951187,
0.33666855096817017,
-0.016954854130744934,
0.02738829329609871,
0.5130411982536316,
-0.336521178483963,
0.10413810610771179,
-0.11993220448493958,
0.31650882959365845,
-0.19129854440689087,
-0.2906213104724884,
-0.11216971278190613,
0.005234365817159414,
0.2563720643520355,
0.2647584080696106,
-0.3294282555580139,
0.1596473753452301,
-0.15779411792755127,
0.32976946234703064,
-0.07170839607715607,
-0.3489953875541687,
-0.1800927221775055,
-0.3787819743156433,
-0.28614047169685364,
0.2097589522600174,
0.03445251286029816,
0.10971609503030777,
-0.2521626055240631,
0.08008861541748047,
0.115359827876091,
0.4076039791107178,
0.185872420668602,
0.06485350430011749,
0.2890301048755646,
0.07514727115631104,
-0.005816750228404999,
-0.015391584485769272,
0.03914694860577583,
0.7092400789260864,
0.3661019206047058,
-0.16851367056369781,
-0.2802569270133972,
-0.11381394416093826,
-0.21256959438323975,
0.18739624321460724,
0.10636723041534424,
0.013257226906716824,
-0.1825791895389557,
0.23834986984729767,
-0.2654719948768616,
0.07524901628494263,
0.3841482996940613,
0.17352232336997986,
-0.05790175497531891,
-0.6417625546455383,
-0.4279422461986542,
0.02717331051826477,
-0.16576321423053741,
0.07674641907215118,
0.15311628580093384,
0.21852560341358185,
-0.14807318150997162,
-0.25441351532936096,
0.2818487882614136,
0.8829860687255859,
0.10328643023967743,
-0.17454031109809875,
-0.04683239012956619,
-0.1570572555065155,
0.1641244888305664,
-0.6999192833900452,
0.06349259614944458,
-0.22915051877498627,
-0.47589731216430664,
-0.21661333739757538,
-0.14549484848976135,
0.3087325692176819,
0.4803788661956787,
-0.26607459783554077,
0.3267463743686676,
0.12082438170909882,
0.26966536045074463,
0.09563405811786652,
0.11729513108730316,
0.08676193654537201,
-0.22919821739196777,
-0.32703903317451477,
0.1372855007648468,
-0.22785167396068573,
0.3816148340702057,
-0.33044007420539856,
-0.08741191774606705,
-0.0354938730597496,
-0.34327995777130127,
-0.26529309153556824,
0.3194360136985779,
0.043342843651771545,
0.05220384895801544,
0.005462475121021271,
-0.0803288146853447,
0.33634644746780396,
0.3796248435974121,
0.3059648871421814,
0.5810827016830444,
-0.11375939846038818,
0.09046821296215057,
0.0829673781991005,
-0.21401084959506989,
-0.0017041314858943224,
-0.18633022904396057,
0.07272335886955261,
-0.22095894813537598,
-0.1637435257434845,
0.1252422034740448,
0.025680523365736008,
-0.1554328203201294,
0.35425084829330444,
-0.005230531096458435,
-0.3836032748222351,
-0.04852662235498428,
-0.31853634119033813,
0.0018298700451850891,
0.08064758777618408,
0.07416313886642456,
0.05423665791749954,
0.009240757673978806,
-0.04840051755309105,
0.2165423035621643,
0.28884947299957275,
-0.27386343479156494,
-0.10937505960464478,
0.48208263516426086,
0.006906682625412941,
-0.42257779836654663,
0.395741730928421,
0.06928376853466034,
-0.2859170436859131,
-0.2346082329750061,
-0.2766028344631195,
-0.32260119915008545,
-0.437826544046402,
-0.21228258311748505,
-0.12118994444608688,
0.2519947290420532,
-0.35010263323783875,
0.22915326058864594,
0.1092434674501419,
-0.08860033005475998,
0.3342341184616089,
-0.46251001954078674,
-0.12606890499591827,
0.0029641389846801758,
-0.1780196875333786,
-0.02326120063662529,
0.11584990471601486,
-0.060818303376436234,
0.17735140025615692,
0.04806562885642052,
-0.2034522294998169,
0.029551278799772263,
-0.2206771969795227,
0.09346025437116623,
0.1844990998506546,
0.02918044663965702,
-0.014967518858611584,
-0.27287593483924866,
0.010682662948966026,
0.20066754519939423,
-0.12800942361354828,
-0.10326317697763443,
-0.043616048991680145,
0.19198018312454224,
0.1563543975353241,
0.0032915063202381134,
0.313191294670105,
-0.2257286161184311,
-0.16050377488136292,
-0.04295637086033821,
-0.048574477434158325,
0.2598892152309418,
-0.03537062555551529,
0.25189194083213806,
0.25162220001220703,
0.11580885946750641,
-0.2370554804801941,
0.09190081059932709,
0.11321322619915009,
0.47684502601623535,
-0.010512284003198147,
0.08806383609771729,
0.14207783341407776,
0.04848159849643707,
-0.2334062159061432,
0.09949834644794464,
0.2594979405403137,
-0.06110537052154541,
0.30479341745376587,
-0.3842671513557434,
0.44877907633781433,
0.15277208387851715,
0.025996074080467224,
0.2158569097518921,
-0.2095499485731125,
-0.044593773782253265,
0.49834269285202026,
0.16715508699417114,
-0.22957198321819305,
-0.05418678745627403,
0.16485227644443512,
0.20721741020679474,
-0.272063672542572,
-0.0493464395403862,
0.19951170682907104,
-0.3289799094200134,
0.2600111961364746,
0.06320098787546158,
0.39418816566467285,
0.006607456132769585,
0.265260249376297,
0.41704946756362915,
-0.05228258669376373,
0.19954784214496613,
0.05269615724682808,
-0.1364830881357193,
-0.10172826796770096,
0.13111303746700287,
0.10449986159801483,
-0.2310553938150406,
0.37059158086776733,
0.26578643918037415,
0.023487605154514313,
-0.4831438958644867,
-0.04678214713931084,
0.318204790353775,
-0.042555272579193115,
0.17462755739688873,
0.42424604296684265,
-0.13323891162872314,
0.3142978847026825,
-0.19722333550453186,
-0.8147051334381104,
0.2134571373462677,
-0.11366105824708939,
0.2533867061138153,
-0.05708206444978714,
-0.23549604415893555,
0.1878339648246765,
0.3116336464881897,
-0.12428522109985352,
-0.08305226266384125,
0.11010399460792542,
0.3088498115539551,
-0.2186732143163681,
-0.2400927096605301,
0.28898414969444275,
0.027846552431583405,
0.029252618551254272,
-0.21235857903957367,
0.2317577302455902,
0.20562735199928284,
0.09635744988918304,
0.15086790919303894,
0.016842689365148544,
0.21875770390033722,
0.388080894947052,
0.2287820726633072,
0.01262395828962326,
0.0145513154566288,
-0.011837270110845566,
0.1728648841381073,
0.5091124773025513,
0.4928581714630127,
0.17758725583553314,
0.36321961879730225,
0.07827162742614746,
-0.058883730322122574,
0.1305733174085617,
0.059745363891124725,
0.11488139629364014,
-0.148616760969162,
0.21046575903892517,
-0.07804649323225021,
0.08696369081735611,
-0.380533903837204,
-0.0649961456656456,
-0.28054678440093994,
0.31119629740715027,
0.5664162635803223,
-0.016214722767472267,
0.11519109457731247,
-0.12816596031188965,
0.029156699776649475,
-0.11010140180587769,
0.36440593004226685,
0.218244269490242,
0.4985850155353546,
-0.30342063307762146,
-0.23964497447013855,
-0.6170103549957275,
0.3663159906864166,
-0.3759627938270569,
0.23659244179725647,
-0.13079771399497986,
-0.012216171249747276,
0.33237528800964355,
0.37077367305755615,
-0.06659331917762756,
0.30857738852500916,
0.1430293172597885,
0.47489961981773376,
-0.05321831256151199,
-0.07031293213367462,
0.20460182428359985,
0.06994899362325668,
-0.12270952761173248,
-0.4148938059806824,
0.050475139170885086,
-0.10696123540401459,
0.079834945499897,
-0.18072493374347687,
-0.03658953309059143,
-0.06134182959794998,
0.23185309767723083,
0.35786172747612,
0.10507969558238983,
0.883009672164917,
-0.056726016104221344,
-0.010340643115341663,
-0.009470190852880478,
0.05414421483874321,
-0.14287851750850677,
0.27690407633781433,
0.02098643034696579,
0.10571932792663574,
0.02545047365128994,
0.01949954777956009,
-0.12325818091630936,
0.44624340534210205,
0.19242700934410095,
0.13853727281093597,
-0.3047601580619812,
-0.2555626332759857,
-0.3660922348499298,
-0.23978157341480255,
-0.08903700113296509,
-0.1024264469742775,
-0.012979649007320404,
-0.08468403667211533,
0.04734139144420624,
-0.4045794606208801,
0.5043489336967468,
-0.5797135233879089,
-0.15964441001415253,
-0.051916662603616714,
0.190292090177536,
-0.038694582879543304,
-0.1701986938714981,
-0.1726156771183014,
0.2493826448917389,
0.38826245069503784,
-0.20968177914619446,
-0.27871644496917725,
-0.01533881202340126,
0.008033419027924538,
-0.02085084095597267,
-0.051716841757297516,
0.7078824043273926,
0.05155380815267563,
-0.44943416118621826,
-0.16273725032806396,
-0.4089479446411133
] |
https://github.com/huggingface/datasets/issues/2677 | Error when downloading C4 | Alright this is fixed now. We'll do a new release soon to make the fix available.
In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error | Hi,
I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive:
`datasets.load_dataset('c4', 'en')`
Is this a bug or do I have some configurations missing on my server?
Thanks!
<img width="1014" alt="Π‘Π½ΠΈΠΌΠΎΠΊ ΡΠΊΡΠ°Π½Π° 2021-07-20 Π² 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> | 31 | Error when downloading C4
Hi,
I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive:
`datasets.load_dataset('c4', 'en')`
Is this a bug or do I have some configurations missing on my server?
Thanks!
<img width="1014" alt="Π‘Π½ΠΈΠΌΠΎΠΊ ΡΠΊΡΠ°Π½Π° 2021-07-20 Π² 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
Alright this is fixed now. We'll do a new release soon to make the fix available.
In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error | [
0.03600184991955757,
-0.03901049494743347,
-0.04464885964989662,
0.42044293880462646,
0.22434529662132263,
0.24260112643241882,
-0.026892226189374924,
0.153084397315979,
-0.06727080047130585,
-0.029162347316741943,
0.016473358497023582,
-0.25081291794776917,
0.15667755901813507,
0.04993049055337906,
0.00046068616211414337,
-0.05729963630437851,
0.12339306622743607,
0.07685737311840057,
-0.13000483810901642,
-0.2965223789215088,
-0.12795335054397583,
0.06371384859085083,
-0.14548763632774353,
0.09782890230417252,
-0.015725016593933105,
0.0041987840086221695,
-0.036122359335422516,
0.1128532737493515,
-0.330638587474823,
-0.4125272333621979,
0.5867494940757751,
0.08645035326480865,
0.2514704763889313,
0.06079286336898804,
-0.00011312441347399727,
-0.18661820888519287,
0.32078349590301514,
-0.28202059864997864,
-0.17490126192569733,
-0.1334163397550583,
-0.32523825764656067,
-0.14297181367874146,
-0.2270386517047882,
-0.34869256615638733,
-0.05865193158388138,
-0.08707256615161896,
0.15259993076324463,
-0.14044690132141113,
0.029325947165489197,
0.3692457377910614,
0.2102140188217163,
-0.11866634339094162,
0.03421040251851082,
-0.20886385440826416,
-0.14667078852653503,
-0.0970337986946106,
0.0677078440785408,
0.1624719649553299,
0.13681751489639282,
0.2822679281234741,
0.3550718128681183,
0.20878183841705322,
-0.041719116270542145,
-0.01736428216099739,
0.30915960669517517,
-0.2235092669725418,
0.22517246007919312,
-0.3702123761177063,
0.3360901474952698,
0.2796584665775299,
0.9650495648384094,
-0.10463597625494003,
-0.15881319344043732,
0.28542858362197876,
0.22511254251003265,
-0.17314283549785614,
0.34631049633026123,
0.6254925727844238,
-0.09347590804100037,
0.14465633034706116,
-0.32392001152038574,
-0.2792814075946808,
-0.11341780424118042,
0.2988191545009613,
-0.1196649968624115,
-0.18171793222427368,
0.12404857575893402,
-0.034456878900527954,
0.18947269022464752,
0.21155530214309692,
0.051272645592689514,
-0.3572794198989868,
-0.2294224500656128,
0.24400761723518372,
-0.13965949416160583,
-0.010947007685899734,
-0.3934449553489685,
0.4090079963207245,
-0.10729125887155533,
-0.03083750605583191,
-0.3079858124256134,
-0.04929916560649872,
-0.11206380277872086,
0.09445974230766296,
0.20300573110580444,
-0.06977774202823639,
0.11986924707889557,
0.11491906642913818,
0.10162314027547836,
-0.15297754108905792,
0.2040785402059555,
-0.054578252136707306,
-0.1837913990020752,
-0.3530217409133911,
-0.09422356635332108,
0.15584895014762878,
-0.12330403178930283,
-0.37832650542259216,
-0.16541722416877747,
0.17640237510204315,
-0.3575059473514557,
0.11714769154787064,
-0.13702139258384705,
0.4213329553604126,
-0.39037904143333435,
-0.05049128830432892,
-0.03594991937279701,
0.11070799827575684,
-0.11205247044563293,
-0.5132817029953003,
-0.12105881422758102,
0.07894657552242279,
-0.26820310950279236,
-0.22682516276836395,
0.27645671367645264,
-0.5189306735992432,
0.20747672021389008,
0.04414316639304161,
0.15349560976028442,
-0.06714356690645218,
-0.0873309001326561,
-0.2824048101902008,
0.026424847543239594,
0.26985034346580505,
-0.12030422687530518,
0.07067780941724777,
0.23355500400066376,
-0.32447654008865356,
0.012957580387592316,
0.013095103204250336,
-0.33584657311439514,
-0.1569308191537857,
-0.20962700247764587,
0.1417197287082672,
-0.14727704226970673,
-0.0375683456659317,
-0.35253751277923584,
-0.2765507698059082,
0.23899972438812256,
-0.09173250198364258,
0.1340075135231018,
-0.2895192503929138,
-0.01205173134803772,
-0.16460855305194855,
-0.07267709821462631,
0.35153311491012573,
-0.3475579023361206,
0.02240213006734848,
-0.06331346929073334,
-0.09841534495353699,
0.30283817648887634,
0.17560134828090668,
-0.19843168556690216,
0.2672308087348938,
-0.26715531945228577,
0.25015997886657715,
-0.013776354491710663,
-0.5401046276092529,
-0.5093706250190735,
0.2695915699005127,
0.05511298030614853,
-0.06869364529848099,
-0.2188577950000763,
-0.03552745282649994,
0.33489319682121277,
-0.19232027232646942,
0.013416692614555359,
0.1395026296377182,
0.06482550501823425,
0.05646754801273346,
-0.10899703204631805,
-0.017678862437605858,
0.22343583405017853,
-0.0455378033220768,
0.21588505804538727,
-0.055899254977703094,
0.2599470913410187,
-0.09734917432069778,
0.22863084077835083,
-0.23374789953231812,
0.17186173796653748,
0.30479806661605835,
0.22691412270069122,
-0.17651338875293732,
0.058829277753829956,
0.33985885977745056,
-0.40500393509864807,
0.20014598965644836,
0.016385555267333984,
0.09920575469732285,
-0.032578498125076294,
-0.006913388147950172,
-0.19496914744377136,
-0.17704595625400543,
-0.2826216220855713,
-0.09938523173332214,
0.03564745932817459,
-0.20614275336265564,
0.03587360307574272,
0.13149116933345795,
0.19092509150505066,
0.595950722694397,
-0.2169477641582489,
0.07948184013366699,
0.13610228896141052,
0.26387038826942444,
-0.1812298744916916,
0.3510245382785797,
0.022807657718658447,
-0.17560553550720215,
0.2562200129032135,
-0.14292967319488525,
-0.15280470252037048,
0.23498788475990295,
0.21686837077140808,
0.21819376945495605,
-0.3224678039550781,
-0.015165776014328003,
0.39121726155281067,
-0.39395496249198914,
0.1423128992319107,
0.3844943642616272,
0.21877942979335785,
-0.016003120690584183,
0.09147274494171143,
-0.046354278922080994,
-0.11192300915718079,
-0.22086971998214722,
0.04277249425649643,
0.09839491546154022,
0.35588303208351135,
0.002010434865951538,
-0.25007516145706177,
-0.15205389261245728,
0.34401118755340576,
-0.3176964521408081,
-0.006803454831242561,
-0.0388009250164032,
-0.10953281074762344,
-0.33599570393562317,
0.4060754179954529,
0.0946512371301651,
-0.03739485889673233,
0.16531002521514893,
-0.023726724088191986,
0.027425803244113922,
0.3157758116722107,
0.2485594004392624,
0.4471753239631653,
-0.013600166887044907,
-0.21438980102539062,
0.29988449811935425,
0.15738190710544586,
-0.16022391617298126,
0.34882181882858276,
-0.22977320849895477,
0.1348232924938202,
0.050811707973480225,
-0.10896611213684082,
-0.09183648973703384,
-0.3125111162662506,
0.11669392883777618,
0.31336039304733276,
0.15521907806396484,
-0.27927255630493164,
0.1318769007921219,
-0.41091620922088623,
-0.2489754855632782,
-0.18480311334133148,
-0.18501552939414978,
-0.08525297045707703,
0.045824721455574036,
-0.01529192179441452,
-0.06333251297473907,
-0.13389965891838074,
-0.02005399949848652,
-0.597252607345581,
-0.06058211624622345,
-0.03651876002550125,
-0.23656080663204193,
0.06500531733036041,
0.1695263683795929,
-0.21822214126586914,
0.03483571484684944,
0.15680259466171265,
0.00948651134967804,
0.36651861667633057,
-0.38670411705970764,
0.22427760064601898,
-0.3541078567504883,
-0.23438841104507446,
0.24377243220806122,
0.058888815343379974,
-0.1631191223859787,
-0.035046592354774475,
0.27163392305374146,
-0.3771989941596985,
-0.12626560032367706,
-0.10539251565933228,
0.016589587554335594,
-0.16420702636241913,
0.21197430789470673,
0.11102841049432755,
-0.19945822656154633,
-0.17520196735858917,
-0.5475431680679321,
-0.40198472142219543,
-0.08435361832380295,
-0.15553408861160278,
-0.17611537873744965,
0.020041048526763916,
0.4436436593532562,
0.04657015949487686,
-0.05506385117769241,
0.13535305857658386,
-0.25086545944213867,
-0.304204523563385,
-0.10632991045713425,
0.31939923763275146,
-0.262407124042511,
-0.5575559735298157,
0.15953058004379272,
0.027406420558691025,
0.17516621947288513,
0.31577056646347046,
-0.36371105909347534,
0.3887694478034973,
0.09783976525068283,
0.10544739663600922,
-0.030131235718727112,
-0.22193770110607147,
0.4351089894771576,
-0.20209595561027527,
0.09464927762746811,
-0.09567108005285263,
0.2763976454734802,
0.08469950407743454,
0.1521805226802826,
0.5275932550430298,
-0.4281857907772064,
-0.038214847445487976,
0.1636306494474411,
0.17683202028274536,
0.055130671709775925,
-0.2453254908323288,
0.5363038182258606,
0.27245068550109863,
0.39666399359703064,
0.2414667010307312,
-0.3665804862976074,
0.3376544117927551,
-0.24628683924674988,
-0.0973273441195488,
0.3054600656032562,
-0.2202027142047882,
-0.3122652769088745,
-0.218407541513443,
0.06713365018367767,
-0.2943170666694641,
-0.17756082117557526,
-0.12286834418773651,
-0.05515965074300766,
0.3067912757396698,
0.35849860310554504,
0.38227739930152893,
0.23450326919555664,
-0.27003026008605957,
0.02800663188099861,
0.3280119299888611,
0.12048608064651489,
0.1090976670384407,
-0.19946721196174622,
-0.2411131113767624,
-0.06923434883356094,
0.3282168507575989,
0.3817485272884369,
0.19860710203647614,
0.032728973776102066,
0.3442439138889313,
-0.0016998723149299622,
-0.0022998317144811153,
0.5099650025367737,
-0.29019129276275635,
0.13602188229560852,
-0.13470667600631714,
0.2955150008201599,
-0.20257364213466644,
-0.23439264297485352,
-0.04942149296402931,
0.0251399464905262,
0.297861248254776,
0.21749883890151978,
-0.2798973321914673,
0.1700638234615326,
-0.14172828197479248,
0.3046320080757141,
-0.02833590842783451,
-0.32985079288482666,
-0.18424908816814423,
-0.3711109161376953,
-0.31300148367881775,
0.21866193413734436,
0.005644697695970535,
0.1686592400074005,
-0.20480363070964813,
0.13315217196941376,
0.06940118968486786,
0.40124866366386414,
0.13604217767715454,
0.04668664559721947,
0.26891016960144043,
0.07114417105913162,
-0.0031649116426706314,
-0.012465320527553558,
0.029265832155942917,
0.7025736570358276,
0.3302220404148102,
-0.13469134271144867,
-0.27162301540374756,
-0.1439029574394226,
-0.12448611855506897,
0.13919933140277863,
0.11082349717617035,
0.01681412383913994,
-0.18976986408233643,
0.28592491149902344,
-0.2699916362762451,
0.03228963911533356,
0.2813587486743927,
0.13068105280399323,
-0.030732784420251846,
-0.6320250034332275,
-0.42107975482940674,
0.060907844454050064,
-0.1813705712556839,
0.09585712850093842,
0.14892247319221497,
0.2680438756942749,
-0.12857121229171753,
-0.21744471788406372,
0.21882835030555725,
0.8750142455101013,
0.12908709049224854,
-0.13012546300888062,
-0.026466980576515198,
-0.08860529214143753,
0.2163762003183365,
-0.6644526124000549,
0.11958624422550201,
-0.22566518187522888,
-0.3912491500377655,
-0.22046074271202087,
-0.12843643128871918,
0.32625043392181396,
0.41412001848220825,
-0.25693511962890625,
0.3033982813358307,
0.05099697411060333,
0.2380175143480301,
0.09886030852794647,
0.08867703378200531,
0.0070954663679003716,
-0.24925729632377625,
-0.2533774971961975,
0.1659843772649765,
-0.25779879093170166,
0.34935683012008667,
-0.34058094024658203,
-0.05199393630027771,
-0.04796268418431282,
-0.3674952983856201,
-0.30828338861465454,
0.36980998516082764,
0.026316039264202118,
0.10837642848491669,
0.0024818815290927887,
-0.006147325038909912,
0.3616022765636444,
0.309748113155365,
0.34402555227279663,
0.5899109244346619,
-0.1518327295780182,
0.10535763204097748,
0.09752368927001953,
-0.26611384749412537,
0.04072973132133484,
-0.21647639572620392,
0.1155540719628334,
-0.19219550490379333,
-0.25453782081604004,
0.11874066293239594,
0.03921203687787056,
-0.2071431577205658,
0.4058917164802551,
0.03516218811273575,
-0.3002883791923523,
0.003973254002630711,
-0.3729740381240845,
0.009060204029083252,
0.11769498884677887,
0.031693365424871445,
0.08881203830242157,
-0.011498376727104187,
-0.08979407697916031,
0.170709490776062,
0.30158644914627075,
-0.2777350842952728,
-0.08117468655109406,
0.5380645394325256,
-0.016519423574209213,
-0.4363067150115967,
0.4067164659500122,
0.09109944105148315,
-0.26506364345550537,
-0.2602671682834625,
-0.2303222417831421,
-0.3599170446395874,
-0.37820905447006226,
-0.23189738392829895,
-0.0780697762966156,
0.24429334700107574,
-0.34759214520454407,
0.21214255690574646,
0.05346687138080597,
-0.03267231583595276,
0.36681050062179565,
-0.47177231311798096,
-0.10387926548719406,
-0.0051590874791145325,
-0.24117131531238556,
-0.02631990984082222,
0.17953535914421082,
0.017305713146924973,
0.14487417042255402,
0.06667450070381165,
-0.23241162300109863,
0.018877530470490456,
-0.21157951653003693,
0.060799285769462585,
0.2579634487628937,
0.015774402767419815,
0.033168062567710876,
-0.3173058331012726,
0.05626288801431656,
0.23541544377803802,
-0.13832856714725494,
-0.14425303041934967,
-0.04354294016957283,
0.17122496664524078,
0.14155213534832,
-0.054713040590286255,
0.37988993525505066,
-0.2556415796279907,
-0.18250849843025208,
-0.004795189015567303,
-0.028568614274263382,
0.3092052936553955,
-0.048001185059547424,
0.19784270226955414,
0.23159028589725494,
0.16249620914459229,
-0.2306026667356491,
0.13846400380134583,
0.08223049342632294,
0.48097026348114014,
-0.07675936073064804,
0.09640942513942719,
0.08726579695940018,
0.05597928166389465,
-0.2521460950374603,
0.0656089037656784,
0.23220431804656982,
-0.008838720619678497,
0.2820625305175781,
-0.4166628122329712,
0.43344712257385254,
0.1091429740190506,
-0.01277158409357071,
0.22325138747692108,
-0.24258166551589966,
-0.10637148469686508,
0.565066397190094,
0.19571225345134735,
-0.2459314465522766,
-0.04488075152039528,
0.10908327996730804,
0.1616181582212448,
-0.29505518078804016,
-0.020070932805538177,
0.14390146732330322,
-0.33228451013565063,
0.1799616515636444,
0.06278826296329498,
0.3500889539718628,
-0.07054617255926132,
0.28516995906829834,
0.4285673201084137,
-0.11240620911121368,
0.15801820158958435,
0.017532816156744957,
-0.09012514352798462,
-0.044986553490161896,
0.1519812047481537,
0.02078520506620407,
-0.2855883538722992,
0.3917182385921478,
0.311331182718277,
-0.0392872616648674,
-0.530616044998169,
-0.016972418874502182,
0.33375000953674316,
-0.057357057929039,
0.13620546460151672,
0.40134987235069275,
-0.1384163200855255,
0.2527984082698822,
-0.14553357660770416,
-0.780780017375946,
0.2933788597583771,
-0.12416235357522964,
0.1993800401687622,
0.044795356690883636,
-0.18246641755104065,
0.19924336671829224,
0.27377182245254517,
-0.11258883774280548,
-0.12413002550601959,
0.08946821838617325,
0.33510416746139526,
-0.20272500813007355,
-0.2588576376438141,
0.25894850492477417,
0.004381798207759857,
-0.02287697046995163,
-0.2204962968826294,
0.1967334747314453,
0.16131892800331116,
0.11659843474626541,
0.1213727742433548,
0.02786904014647007,
0.2811054289340973,
0.3800276219844818,
0.15511664748191833,
0.0051990230567753315,
-0.051297884434461594,
0.030809177085757256,
0.21066778898239136,
0.46825680136680603,
0.5239810943603516,
0.1957227885723114,
0.3474486470222473,
0.0808403417468071,
-0.06170934438705444,
0.10587579011917114,
0.0885474681854248,
0.19068385660648346,
-0.1326034963130951,
0.2188703715801239,
-0.0792560800909996,
0.15003123879432678,
-0.41932016611099243,
0.03140867501497269,
-0.2548207938671112,
0.3473964035511017,
0.5314044952392578,
-0.055854588747024536,
0.11739898473024368,
-0.12155783176422119,
0.04544738680124283,
-0.09322479367256165,
0.3865901827812195,
0.24005955457687378,
0.4453109800815582,
-0.2861810326576233,
-0.18728598952293396,
-0.6304110884666443,
0.31859487295150757,
-0.3895476460456848,
0.18973682820796967,
-0.13824863731861115,
0.020808471366763115,
0.3115711808204651,
0.36155766248703003,
-0.13070665299892426,
0.3410046696662903,
0.15389670431613922,
0.44400566816329956,
-0.024161556735634804,
-0.04795430228114128,
0.22487680613994598,
0.010665682144463062,
-0.10288038849830627,
-0.4751071035861969,
0.030056901276111603,
-0.10461317002773285,
0.08701806515455246,
-0.1508564054965973,
-0.013042401522397995,
-0.021286629140377045,
0.13971343636512756,
0.40288737416267395,
0.0827021598815918,
0.8158758878707886,
-0.031241677701473236,
-0.02696393057703972,
-0.0647720992565155,
0.04369354620575905,
-0.1682123988866806,
0.2752508819103241,
0.0953671932220459,
0.065740667283535,
-0.027701931074261665,
0.026562931016087532,
-0.14458982646465302,
0.4608069360256195,
0.1300291121006012,
0.16491849720478058,
-0.33779916167259216,
-0.23446780443191528,
-0.3548518121242523,
-0.12997010350227356,
-0.12786434590816498,
-0.08096031099557877,
-0.01893485337495804,
-0.026521440595388412,
0.046935707330703735,
-0.40277236700057983,
0.5305600166320801,
-0.5888615846633911,
-0.15716318786144257,
-0.02973496913909912,
0.19844865798950195,
-0.0414130836725235,
-0.23305946588516235,
-0.10988738387823105,
0.2802363336086273,
0.34070026874542236,
-0.11726447194814682,
-0.29226556420326233,
0.008227935060858727,
-0.04379970207810402,
0.02045430615544319,
-0.07098133862018585,
0.7276519536972046,
0.032675910741090775,
-0.41514691710472107,
-0.16170482337474823,
-0.3914833664894104
] |
https://github.com/huggingface/datasets/issues/2669 | Metric kwargs are not passed to underlying external metric f1_score | Hi @BramVanroy, thanks for reporting.
First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`.
Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores
So for example, if you would like to calculate the macro-averaged F1 score, you should use:
```python
import datasets
f1 = datasets.load_metric("f1", keep_in_memory=True)
f1.add_batch(predictions=[0,2,3], references=[1, 2, 3])
f1.compute(average="macro")
``` | ## Describe the bug
When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so.
## Steps to reproduce the bug
```python
import datasets
f1 = datasets.load_metric("f1", keep_in_memory=True, average="min")
f1.add_batch(predictions=[0,2,3], references=[1, 2, 3])
f1.compute()
```
## Expected results
No error, because `average="min"` should be passed correctly to f1_score in sklearn.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute
"f1": f1_score(
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score
return fbeta_score(y_true, y_pred, beta=1, labels=labels,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score
_, _, f, _ = precision_recall_fscore_support(y_true, y_pred,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support
labels = _check_set_wise_labels(y_true, y_pred, average, labels,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels
raise ValueError("Target is %s but average='binary'. Please "
ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.9.2
- PyArrow version: 4.0.1 | 96 | Metric kwargs are not passed to underlying external metric f1_score
## Describe the bug
When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so.
## Steps to reproduce the bug
```python
import datasets
f1 = datasets.load_metric("f1", keep_in_memory=True, average="min")
f1.add_batch(predictions=[0,2,3], references=[1, 2, 3])
f1.compute()
```
## Expected results
No error, because `average="min"` should be passed correctly to f1_score in sklearn.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute
"f1": f1_score(
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score
return fbeta_score(y_true, y_pred, beta=1, labels=labels,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score
_, _, f, _ = precision_recall_fscore_support(y_true, y_pred,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support
labels = _check_set_wise_labels(y_true, y_pred, average, labels,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels
raise ValueError("Target is %s but average='binary'. Please "
ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.9.2
- PyArrow version: 4.0.1
Hi @BramVanroy, thanks for reporting.
First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`.
Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores
So for example, if you would like to calculate the macro-averaged F1 score, you should use:
```python
import datasets
f1 = datasets.load_metric("f1", keep_in_memory=True)
f1.add_batch(predictions=[0,2,3], references=[1, 2, 3])
f1.compute(average="macro")
``` | [
-0.05162904039025307,
-0.5501689910888672,
0.08731405436992645,
0.20385681092739105,
0.46819114685058594,
-0.06437955796718597,
0.17485955357551575,
-0.1953880935907364,
0.34517592191696167,
0.2828971743583679,
0.06791366636753082,
0.44621720910072327,
0.1783718466758728,
0.024254610762000084,
-0.018203429877758026,
0.061698202043771744,
0.10580424964427948,
-0.358713299036026,
-0.08462291955947876,
-0.2987217605113983,
-0.40688416361808777,
0.010204656980931759,
-0.40486234426498413,
0.020255208015441895,
-0.20062237977981567,
0.06136254221200943,
-0.03478524833917618,
-0.17003709077835083,
0.0016801590099930763,
-0.003901032730937004,
0.3077563941478729,
0.12656527757644653,
-0.09706716239452362,
0.36638638377189636,
-0.00012357805098872632,
-0.09861308336257935,
0.452625572681427,
-0.13689889013767242,
-0.03718295693397522,
-0.011109471321105957,
-0.17645147442817688,
0.014776190742850304,
-0.12447752058506012,
-0.3509162366390228,
0.1918562650680542,
0.1058521643280983,
-0.17391948401927948,
-0.38249287009239197,
0.2338169813156128,
0.36850228905677795,
0.0636829361319542,
0.15738528966903687,
-0.20920827984809875,
-0.17202135920524597,
-0.2959970235824585,
-0.10444572567939758,
-0.18503890931606293,
0.4786292016506195,
-0.6841756105422974,
-0.0733037143945694,
-0.1676170527935028,
0.09176987409591675,
0.15016256272792816,
-0.012652318924665451,
0.7468218803405762,
0.03993171080946922,
0.30196666717529297,
0.1136634349822998,
0.1792096197605133,
-0.11559823900461197,
0.06793627142906189,
-0.3869570195674896,
-0.40357521176338196,
-0.14624251425266266,
0.09400887787342072,
-0.7693848609924316,
0.10778256505727768,
0.01441609300673008,
-0.22673651576042175,
-0.09297235310077667,
-0.10468258708715439,
-0.11688380688428879,
-0.3561747968196869,
0.07649892568588257,
-0.05030308663845062,
0.6123207807540894,
0.0015170415863394737,
0.08291809260845184,
0.19272002577781677,
0.18383003771305084,
0.04063407704234123,
-0.29307854175567627,
0.02840670570731163,
0.07169105112552643,
-0.26317375898361206,
0.21082094311714172,
-0.03952997177839279,
-0.06361762434244156,
0.2793685495853424,
0.051500722765922546,
-0.07608485966920853,
0.04378272593021393,
0.43050339818000793,
0.05325879156589508,
0.19740895926952362,
0.5313013792037964,
0.4781780242919922,
0.33009517192840576,
-0.01640097051858902,
0.07755840569734573,
-0.19735796749591827,
-0.24802005290985107,
0.27151256799697876,
-0.005864435341209173,
0.24951224029064178,
0.1664949655532837,
0.019845951348543167,
-0.07760195434093475,
-0.2983481287956238,
-0.08159981667995453,
0.048836834728717804,
-0.013127921149134636,
0.034606944769620895,
0.15964436531066895,
-0.04791921377182007,
0.34199535846710205,
0.05822743475437164,
0.3695012331008911,
-0.11243291944265366,
-0.015164186246693134,
-0.22242037951946259,
0.19499287009239197,
-0.43617579340934753,
0.14417050778865814,
-0.20224006474018097,
-0.12393555045127869,
0.5087715983390808,
-0.002383185550570488,
0.6064443588256836,
-0.4638632535934448,
-0.09306439012289047,
0.038582343608140945,
-0.019240960478782654,
-0.012212436646223068,
-0.42882463335990906,
0.24125535786151886,
0.033798947930336,
0.0614984855055809,
0.0438617542386055,
-0.016410790383815765,
-0.32455384731292725,
-0.08430202305316925,
0.4818832278251648,
0.04131566733121872,
-0.29566532373428345,
-0.13289019465446472,
-0.18590766191482544,
0.21786266565322876,
0.020846955478191376,
0.1141587644815445,
0.03676731884479523,
-0.1453690379858017,
-0.5320335626602173,
-0.20270422101020813,
0.7653899788856506,
0.06728990375995636,
0.12443602085113525,
-0.25145387649536133,
-0.13326817750930786,
0.08056869357824326,
-0.0005603283643722534,
0.055225372314453125,
0.03272809833288193,
0.2792530953884125,
-0.04574897140264511,
0.06230431795120239,
0.2406335026025772,
-0.6767404079437256,
-0.4408144950866699,
0.025120865553617477,
0.04600951820611954,
-0.03323214128613472,
0.2000236213207245,
-0.17513403296470642,
0.3521323502063751,
-0.00472743296995759,
0.19998322427272797,
0.43018579483032227,
-0.1823704093694687,
-0.06753644347190857,
-0.4210842251777649,
-0.04798201844096184,
0.04895254224538803,
-0.11043249070644379,
0.42577579617500305,
0.06625095754861832,
0.08449671417474747,
0.2618042826652527,
0.03608313947916031,
0.19154830276966095,
-0.14731444418430328,
0.049512725323438644,
0.07015598565340042,
-0.353041410446167,
0.08565176278352737,
0.05550709366798401,
-0.1457141637802124,
0.10352566093206406,
-0.14345499873161316,
-0.16814300417900085,
0.19271451234817505,
-0.3029261827468872,
-0.7353892922401428,
0.2379852682352066,
-0.01267857477068901,
-0.16759508848190308,
0.027924295514822006,
-0.0007102712988853455,
-0.1402491331100464,
0.21183525025844574,
0.1246928870677948,
-0.28771668672561646,
-0.21550121903419495,
0.0689765065908432,
0.2514444589614868,
0.08795876055955887,
-0.02752630226314068,
-0.11782227456569672,
-0.05401410534977913,
0.2617591917514801,
0.4194565713405609,
0.028171036392450333,
-0.04297274351119995,
0.5366605520248413,
0.22599110007286072,
0.14094161987304688,
0.16081523895263672,
0.03406372666358948,
0.24411246180534363,
-0.032876718789339066,
0.04781212657690048,
0.33310821652412415,
0.10056883841753006,
-0.19796207547187805,
-0.09774463623762131,
0.42077767848968506,
0.12519311904907227,
0.33272886276245117,
-0.08693574368953705,
0.2726319432258606,
-0.25675854086875916,
0.09712302684783936,
-0.10237667709589005,
-0.2068922519683838,
-0.0779833048582077,
-0.49069318175315857,
-0.020363928750157356,
-0.234892800450325,
0.024976640939712524,
0.12153203785419464,
0.433231920003891,
0.19954977929592133,
0.15231844782829285,
-0.07605782151222229,
-0.22779399156570435,
-0.062457505613565445,
0.0835697278380394,
-0.11119520664215088,
0.43645405769348145,
0.1562027633190155,
0.03434973955154419,
0.20551833510398865,
-0.14611081779003143,
-0.09510978311300278,
0.1814320981502533,
0.48173773288726807,
-0.08056417852640152,
0.2435983121395111,
-0.09375301748514175,
-0.11314835399389267,
-0.06352280080318451,
0.22185605764389038,
0.052154190838336945,
-0.0792742669582367,
-0.5283737778663635,
0.23644094169139862,
-0.03921302780508995,
0.20111992955207825,
-0.2159101366996765,
0.09860116988420486,
-0.171142578125,
-0.7540902495384216,
-0.1033216267824173,
0.08214950561523438,
-0.1489277482032776,
0.3635009825229645,
-0.20498515665531158,
0.2673459053039551,
-0.04965068772435188,
0.022340983152389526,
0.03662675619125366,
-0.3193082809448242,
-0.17085754871368408,
-0.14803145825862885,
0.2124333679676056,
-0.028786884620785713,
0.3443078398704529,
0.387326717376709,
0.2164435088634491,
0.07315408438444138,
-0.4658792018890381,
-0.14315100014209747,
0.08147755265235901,
0.9184200763702393,
-0.03831887245178223,
-0.16736416518688202,
-0.3328225612640381,
-0.07753964513540268,
0.3546086549758911,
-0.2792414724826813,
0.07533111423254013,
0.16676227748394012,
0.05443203076720238,
0.1211806908249855,
-0.3318289518356323,
-0.14088958501815796,
0.05998849868774414,
-0.19813291728496552,
-0.13652403652668,
-0.12847019731998444,
-0.28893715143203735,
0.34292176365852356,
0.18679721653461456,
0.0009101554751396179,
-0.03509053960442543,
-0.08366183936595917,
-0.09760485589504242,
0.06779462099075317,
0.344829261302948,
-0.1971108764410019,
-0.22511456906795502,
0.03980453684926033,
-0.009201191365718842,
0.23852774500846863,
-0.0336468443274498,
-0.31952446699142456,
-0.44392818212509155,
0.20715415477752686,
0.10570238530635834,
0.04399174079298973,
0.16537220776081085,
-0.08928798139095306,
-0.45938050746917725,
0.11713112890720367,
-0.2870637774467468,
-0.2191004455089569,
0.35607343912124634,
-0.2641613781452179,
0.10477107018232346,
-0.13695722818374634,
0.3790745437145233,
0.2572436034679413,
0.6966174840927124,
0.05036482587456703,
0.1582949459552765,
-0.029959432780742645,
0.002202332019805908,
0.22478117048740387,
0.07232706248760223,
-0.3129121959209442,
0.1803698092699051,
0.030220001935958862,
-0.17684614658355713,
0.24600163102149963,
0.11623267084360123,
0.29289352893829346,
-0.057840507477521896,
-0.35798168182373047,
-0.2600938677787781,
-0.36551088094711304,
-0.15597303211688995,
-0.02192678302526474,
0.20306932926177979,
0.14553368091583252,
0.562701404094696,
-0.43488308787345886,
-0.08220691978931427,
0.30349281430244446,
-0.12146757543087006,
-0.026632122695446014,
0.08715566247701645,
-0.2401300072669983,
-0.37643691897392273,
-0.1924000382423401,
0.16943266987800598,
-0.12736164033412933,
0.4058913588523865,
0.08941517770290375,
0.20311668515205383,
0.1276351809501648,
-0.10067126154899597,
0.29762059450149536,
-0.2545887231826782,
0.17823754251003265,
0.18830128014087677,
0.16518841683864594,
-0.38481807708740234,
-0.16946189105510712,
-0.1441168189048767,
-0.1351507157087326,
0.2666930854320526,
0.06919786334037781,
-0.5115236043930054,
-0.13170278072357178,
0.12237096577882767,
-0.05088233947753906,
-0.24660292267799377,
-0.14466646313667297,
-0.24619297683238983,
-0.2586560845375061,
0.15327733755111694,
0.038099076598882675,
0.15006814897060394,
0.39294424653053284,
-0.09278027713298798,
0.5734648704528809,
-0.11201195418834686,
-0.23543301224708557,
0.2397039532661438,
-0.06301118433475494,
0.552973210811615,
-0.019410165026783943,
0.034088682383298874,
0.12226519733667374,
-0.12650926411151886,
-0.20531564950942993,
0.12265841662883759,
0.13564687967300415,
-0.3416358530521393,
-0.1437762975692749,
-0.38328859210014343,
0.5200099349021912,
0.22930601239204407,
-0.2753114700317383,
0.14769931137561798,
-0.33164432644844055,
-0.1977546662092209,
-0.010632422752678394,
-0.05702343210577965,
0.2516385018825531,
-0.047046463936567307,
0.117916539311409,
-0.20572949945926666,
0.5350639820098877,
0.21493291854858398,
-0.1624642014503479,
0.40085116028785706,
0.15371432900428772,
-0.4334540069103241,
0.1491285264492035,
0.33890360593795776,
0.7175220847129822,
0.47811466455459595,
-0.038589004427194595,
0.4263072609901428,
-0.2586621642112732,
0.1159348413348198,
0.05638141185045242,
-0.00411800853908062,
-0.20777320861816406,
-0.3220457136631012,
0.19190186262130737,
0.011622387915849686,
0.10581915080547333,
0.0006328821182250977,
-0.08648180216550827,
0.17898772656917572,
-0.2033778727054596,
0.38698506355285645,
0.10234234482049942,
0.2675025761127472,
0.06082473695278168,
0.033774226903915405,
-0.10494070500135422,
0.01725490391254425,
0.09077565371990204,
-0.11770839989185333,
0.0535145029425621,
-0.38407135009765625,
0.031319212168455124,
-0.17551299929618835,
-0.001667603850364685,
0.05223924666643143,
-0.25613686442375183,
0.06429550051689148,
0.11666272580623627,
-0.0008836463093757629,
0.11949019134044647,
0.001680854707956314,
0.5374196171760559,
-0.035936396569013596,
-0.1339445263147354,
0.2569860816001892,
-0.43865716457366943,
0.03248859941959381,
0.17406223714351654,
0.13647998869419098,
0.04062198847532272,
-0.05968209356069565,
-0.22852008044719696,
0.3244856894016266,
0.05862957984209061,
-0.17316603660583496,
-0.2100578099489212,
-0.25835752487182617,
-0.2615676522254944,
-0.1521654576063156,
-0.2196032851934433,
-0.05316755175590515,
-0.01927054673433304,
-0.1628289818763733,
0.002890065312385559,
-0.12408825755119324,
0.02442394755780697,
0.40109291672706604,
-0.10810832679271698,
-0.11336573958396912,
0.09038019180297852,
0.3428354561328888,
-0.23234644532203674,
-0.285352498292923,
0.4727141261100769,
-0.312524676322937,
-0.08266744017601013,
-0.050531055778265,
0.1748831868171692,
-0.19989381730556488,
-0.2814693748950958,
0.2686017155647278,
-0.01612810231745243,
0.10396721959114075,
0.0345950573682785,
0.40428197383880615,
0.11582882702350616,
-0.10111489146947861,
-0.057221896946430206,
-0.4350411295890808,
0.11168348044157028,
0.4085421562194824,
-0.2350720316171646,
-0.0952422171831131,
-0.4258364737033844,
0.1973525881767273,
0.07796842604875565,
0.19759182631969452,
-0.2119119018316269,
-0.2755134701728821,
0.12485911697149277,
-0.14651654660701752,
0.2670939564704895,
0.09461331367492676,
0.04581012576818466,
0.02428385615348816,
-0.0631355568766594,
0.08846507221460342,
-0.09659988433122635,
-0.029774168506264687,
-0.25492939352989197,
0.16867122054100037,
0.03131799027323723,
0.3304589092731476,
0.0870017260313034,
-0.04514788091182709,
-0.1597488820552826,
-0.2132948637008667,
0.02330022305250168,
0.18651074171066284,
-0.11653599143028259,
0.5392250418663025,
0.10410201549530029,
0.8976367115974426,
0.21349646151065826,
-0.05343117564916611,
0.2053503394126892,
0.29135769605636597,
-0.0549783781170845,
0.10576923936605453,
0.3132905066013336,
0.13654625415802002,
-0.2882298529148102,
-0.08910753577947617,
-0.3128889799118042,
0.06536513566970825,
0.2927877604961395,
-0.1010158360004425,
0.012088127434253693,
0.4501214325428009,
0.021689970046281815,
0.24439296126365662,
-0.17398609220981598,
0.03329043835401535,
-0.3316775858402252,
0.10879997909069061,
-0.161526158452034,
0.1517757922410965,
0.138160839676857,
0.18902204930782318,
0.03721438720822334,
0.21938394010066986,
0.38965553045272827,
-0.18261022865772247,
0.15385635197162628,
0.007175430655479431,
0.248026043176651,
-0.27779603004455566,
0.3476073443889618,
0.15185116231441498,
0.23685415089130402,
0.2364322692155838,
0.2788344919681549,
0.06365516781806946,
0.048726778477430344,
0.4418356418609619,
0.15065640211105347,
0.23161622881889343,
0.13681700825691223,
-0.0283418707549572,
-0.14248886704444885,
-0.003702351823449135,
-0.057563986629247665,
0.047334812581539154,
-0.09683726727962494,
0.1636190414428711,
-0.30070018768310547,
0.21425983309745789,
-0.003268172964453697,
-0.32282963395118713,
-0.2563183903694153,
-0.24403555691242218,
-0.015512794256210327,
-0.23929576575756073,
-0.5574414730072021,
-0.24172276258468628,
-0.050632379949092865,
-0.11818677186965942,
0.17584887146949768,
-0.005193181335926056,
0.2497847080230713,
-0.24859528243541718,
-0.14419341087341309,
0.26684173941612244,
-0.26188021898269653,
0.3737461566925049,
0.5232933759689331,
-0.34832826256752014,
0.05877625197172165,
-0.10052210092544556,
0.2709248661994934,
0.21099932491779327,
0.305418461561203,
0.2390974760055542,
0.302023321390152,
-0.36684322357177734,
-0.2365862876176834,
0.14569808542728424,
-0.20331373810768127,
0.11447879672050476,
0.32902878522872925,
0.28148505091667175,
-0.20714886486530304,
0.2027946412563324,
0.04671240597963333,
-0.155674010515213,
0.18962472677230835,
0.2759166955947876,
0.20000556111335754,
-0.408981591463089,
0.34240442514419556,
-0.03960138559341431,
-0.03229771926999092,
0.12214396893978119,
-0.14284664392471313,
-0.04273673892021179,
-0.250223845243454,
0.09336252510547638,
0.20452836155891418,
-0.02322976291179657,
-0.5147493481636047,
0.03963173180818558,
0.029587214812636375,
0.3810935914516449,
0.058515604585409164,
0.012301139533519745,
-0.4914895296096802,
-0.010135047137737274,
-0.6506745219230652,
-0.09302953630685806,
0.2496895045042038,
-0.14954982697963715,
0.14566311240196228,
0.16611385345458984,
-0.07593517750501633,
0.06999996304512024,
0.07189084589481354,
0.5094356536865234,
0.17520876228809357,
-0.003301076591014862,
-0.40875837206840515,
-0.14532114565372467,
-0.20161320269107819,
-0.216828852891922,
0.23219746351242065,
-0.17590683698654175,
-0.009785201400518417,
-0.3974432647228241,
-0.015004556626081467,
0.060062162578105927,
0.0033532604575157166,
0.16454197466373444,
0.651124119758606,
0.18738096952438354,
0.02063075639307499,
0.7741081714630127,
0.013641972094774246,
0.029988637194037437,
-0.4132050573825836,
-0.1902291178703308,
-0.2227948158979416,
-0.09533300250768661,
-0.13628529012203217,
0.3383517861366272,
-0.015166995115578175,
-0.44838592410087585,
-0.03937038779258728,
0.21139231324195862,
0.31707650423049927,
-0.41655662655830383,
-0.019399676471948624,
0.3332814872264862,
-0.19061413407325745,
-0.09212145954370499,
0.02344287931919098,
0.32062503695487976,
-0.09957009553909302,
0.23113209009170532,
0.054654523730278015,
-0.2851713001728058,
0.23108160495758057,
-0.3407648205757141,
-0.3436340391635895,
-0.2862754166126251,
0.304965615272522,
-0.0992930606007576,
-0.17290069162845612,
-0.6666845083236694,
-0.14167088270187378,
0.28235092759132385,
0.1122603490948677,
-0.033941756933927536,
0.2595963776111603,
-0.0015448648482561111,
0.05062412843108177,
-0.02889658324420452,
0.014309965074062347,
-0.15367001295089722,
-0.11830049008131027,
0.08074504137039185,
-0.11492130905389786
] |
https://github.com/huggingface/datasets/issues/2669 | Metric kwargs are not passed to underlying external metric f1_score | Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself. | ## Describe the bug
When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so.
## Steps to reproduce the bug
```python
import datasets
f1 = datasets.load_metric("f1", keep_in_memory=True, average="min")
f1.add_batch(predictions=[0,2,3], references=[1, 2, 3])
f1.compute()
```
## Expected results
No error, because `average="min"` should be passed correctly to f1_score in sklearn.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute
"f1": f1_score(
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score
return fbeta_score(y_true, y_pred, beta=1, labels=labels,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score
_, _, f, _ = precision_recall_fscore_support(y_true, y_pred,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support
labels = _check_set_wise_labels(y_true, y_pred, average, labels,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels
raise ValueError("Target is %s but average='binary'. Please "
ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.9.2
- PyArrow version: 4.0.1 | 29 | Metric kwargs are not passed to underlying external metric f1_score
## Describe the bug
When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so.
## Steps to reproduce the bug
```python
import datasets
f1 = datasets.load_metric("f1", keep_in_memory=True, average="min")
f1.add_batch(predictions=[0,2,3], references=[1, 2, 3])
f1.compute()
```
## Expected results
No error, because `average="min"` should be passed correctly to f1_score in sklearn.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute
"f1": f1_score(
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score
return fbeta_score(y_true, y_pred, beta=1, labels=labels,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score
_, _, f, _ = precision_recall_fscore_support(y_true, y_pred,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support
labels = _check_set_wise_labels(y_true, y_pred, average, labels,
File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels
raise ValueError("Target is %s but average='binary'. Please "
ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.9.2
- PyArrow version: 4.0.1
Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself. | [
-0.05162904039025307,
-0.5501689910888672,
0.08731405436992645,
0.20385681092739105,
0.46819114685058594,
-0.06437955796718597,
0.17485955357551575,
-0.1953880935907364,
0.34517592191696167,
0.2828971743583679,
0.06791366636753082,
0.44621720910072327,
0.1783718466758728,
0.024254610762000084,
-0.018203429877758026,
0.061698202043771744,
0.10580424964427948,
-0.358713299036026,
-0.08462291955947876,
-0.2987217605113983,
-0.40688416361808777,
0.010204656980931759,
-0.40486234426498413,
0.020255208015441895,
-0.20062237977981567,
0.06136254221200943,
-0.03478524833917618,
-0.17003709077835083,
0.0016801590099930763,
-0.003901032730937004,
0.3077563941478729,
0.12656527757644653,
-0.09706716239452362,
0.36638638377189636,
-0.00012357805098872632,
-0.09861308336257935,
0.452625572681427,
-0.13689889013767242,
-0.03718295693397522,
-0.011109471321105957,
-0.17645147442817688,
0.014776190742850304,
-0.12447752058506012,
-0.3509162366390228,
0.1918562650680542,
0.1058521643280983,
-0.17391948401927948,
-0.38249287009239197,
0.2338169813156128,
0.36850228905677795,
0.0636829361319542,
0.15738528966903687,
-0.20920827984809875,
-0.17202135920524597,
-0.2959970235824585,
-0.10444572567939758,
-0.18503890931606293,
0.4786292016506195,
-0.6841756105422974,
-0.0733037143945694,
-0.1676170527935028,
0.09176987409591675,
0.15016256272792816,
-0.012652318924665451,
0.7468218803405762,
0.03993171080946922,
0.30196666717529297,
0.1136634349822998,
0.1792096197605133,
-0.11559823900461197,
0.06793627142906189,
-0.3869570195674896,
-0.40357521176338196,
-0.14624251425266266,
0.09400887787342072,
-0.7693848609924316,
0.10778256505727768,
0.01441609300673008,
-0.22673651576042175,
-0.09297235310077667,
-0.10468258708715439,
-0.11688380688428879,
-0.3561747968196869,
0.07649892568588257,
-0.05030308663845062,
0.6123207807540894,
0.0015170415863394737,
0.08291809260845184,
0.19272002577781677,
0.18383003771305084,
0.04063407704234123,
-0.29307854175567627,
0.02840670570731163,
0.07169105112552643,
-0.26317375898361206,
0.21082094311714172,
-0.03952997177839279,
-0.06361762434244156,
0.2793685495853424,
0.051500722765922546,
-0.07608485966920853,
0.04378272593021393,
0.43050339818000793,
0.05325879156589508,
0.19740895926952362,
0.5313013792037964,
0.4781780242919922,
0.33009517192840576,
-0.01640097051858902,
0.07755840569734573,
-0.19735796749591827,
-0.24802005290985107,
0.27151256799697876,
-0.005864435341209173,
0.24951224029064178,
0.1664949655532837,
0.019845951348543167,
-0.07760195434093475,
-0.2983481287956238,
-0.08159981667995453,
0.048836834728717804,
-0.013127921149134636,
0.034606944769620895,
0.15964436531066895,
-0.04791921377182007,
0.34199535846710205,
0.05822743475437164,
0.3695012331008911,
-0.11243291944265366,
-0.015164186246693134,
-0.22242037951946259,
0.19499287009239197,
-0.43617579340934753,
0.14417050778865814,
-0.20224006474018097,
-0.12393555045127869,
0.5087715983390808,
-0.002383185550570488,
0.6064443588256836,
-0.4638632535934448,
-0.09306439012289047,
0.038582343608140945,
-0.019240960478782654,
-0.012212436646223068,
-0.42882463335990906,
0.24125535786151886,
0.033798947930336,
0.0614984855055809,
0.0438617542386055,
-0.016410790383815765,
-0.32455384731292725,
-0.08430202305316925,
0.4818832278251648,
0.04131566733121872,
-0.29566532373428345,
-0.13289019465446472,
-0.18590766191482544,
0.21786266565322876,
0.020846955478191376,
0.1141587644815445,
0.03676731884479523,
-0.1453690379858017,
-0.5320335626602173,
-0.20270422101020813,
0.7653899788856506,
0.06728990375995636,
0.12443602085113525,
-0.25145387649536133,
-0.13326817750930786,
0.08056869357824326,
-0.0005603283643722534,
0.055225372314453125,
0.03272809833288193,
0.2792530953884125,
-0.04574897140264511,
0.06230431795120239,
0.2406335026025772,
-0.6767404079437256,
-0.4408144950866699,
0.025120865553617477,
0.04600951820611954,
-0.03323214128613472,
0.2000236213207245,
-0.17513403296470642,
0.3521323502063751,
-0.00472743296995759,
0.19998322427272797,
0.43018579483032227,
-0.1823704093694687,
-0.06753644347190857,
-0.4210842251777649,
-0.04798201844096184,
0.04895254224538803,
-0.11043249070644379,
0.42577579617500305,
0.06625095754861832,
0.08449671417474747,
0.2618042826652527,
0.03608313947916031,
0.19154830276966095,
-0.14731444418430328,
0.049512725323438644,
0.07015598565340042,
-0.353041410446167,
0.08565176278352737,
0.05550709366798401,
-0.1457141637802124,
0.10352566093206406,
-0.14345499873161316,
-0.16814300417900085,
0.19271451234817505,
-0.3029261827468872,
-0.7353892922401428,
0.2379852682352066,
-0.01267857477068901,
-0.16759508848190308,
0.027924295514822006,
-0.0007102712988853455,
-0.1402491331100464,
0.21183525025844574,
0.1246928870677948,
-0.28771668672561646,
-0.21550121903419495,
0.0689765065908432,
0.2514444589614868,
0.08795876055955887,
-0.02752630226314068,
-0.11782227456569672,
-0.05401410534977913,
0.2617591917514801,
0.4194565713405609,
0.028171036392450333,
-0.04297274351119995,
0.5366605520248413,
0.22599110007286072,
0.14094161987304688,
0.16081523895263672,
0.03406372666358948,
0.24411246180534363,
-0.032876718789339066,
0.04781212657690048,
0.33310821652412415,
0.10056883841753006,
-0.19796207547187805,
-0.09774463623762131,
0.42077767848968506,
0.12519311904907227,
0.33272886276245117,
-0.08693574368953705,
0.2726319432258606,
-0.25675854086875916,
0.09712302684783936,
-0.10237667709589005,
-0.2068922519683838,
-0.0779833048582077,
-0.49069318175315857,
-0.020363928750157356,
-0.234892800450325,
0.024976640939712524,
0.12153203785419464,
0.433231920003891,
0.19954977929592133,
0.15231844782829285,
-0.07605782151222229,
-0.22779399156570435,
-0.062457505613565445,
0.0835697278380394,
-0.11119520664215088,
0.43645405769348145,
0.1562027633190155,
0.03434973955154419,
0.20551833510398865,
-0.14611081779003143,
-0.09510978311300278,
0.1814320981502533,
0.48173773288726807,
-0.08056417852640152,
0.2435983121395111,
-0.09375301748514175,
-0.11314835399389267,
-0.06352280080318451,
0.22185605764389038,
0.052154190838336945,
-0.0792742669582367,
-0.5283737778663635,
0.23644094169139862,
-0.03921302780508995,
0.20111992955207825,
-0.2159101366996765,
0.09860116988420486,
-0.171142578125,
-0.7540902495384216,
-0.1033216267824173,
0.08214950561523438,
-0.1489277482032776,
0.3635009825229645,
-0.20498515665531158,
0.2673459053039551,
-0.04965068772435188,
0.022340983152389526,
0.03662675619125366,
-0.3193082809448242,
-0.17085754871368408,
-0.14803145825862885,
0.2124333679676056,
-0.028786884620785713,
0.3443078398704529,
0.387326717376709,
0.2164435088634491,
0.07315408438444138,
-0.4658792018890381,
-0.14315100014209747,
0.08147755265235901,
0.9184200763702393,
-0.03831887245178223,
-0.16736416518688202,
-0.3328225612640381,
-0.07753964513540268,
0.3546086549758911,
-0.2792414724826813,
0.07533111423254013,
0.16676227748394012,
0.05443203076720238,
0.1211806908249855,
-0.3318289518356323,
-0.14088958501815796,
0.05998849868774414,
-0.19813291728496552,
-0.13652403652668,
-0.12847019731998444,
-0.28893715143203735,
0.34292176365852356,
0.18679721653461456,
0.0009101554751396179,
-0.03509053960442543,
-0.08366183936595917,
-0.09760485589504242,
0.06779462099075317,
0.344829261302948,
-0.1971108764410019,
-0.22511456906795502,
0.03980453684926033,
-0.009201191365718842,
0.23852774500846863,
-0.0336468443274498,
-0.31952446699142456,
-0.44392818212509155,
0.20715415477752686,
0.10570238530635834,
0.04399174079298973,
0.16537220776081085,
-0.08928798139095306,
-0.45938050746917725,
0.11713112890720367,
-0.2870637774467468,
-0.2191004455089569,
0.35607343912124634,
-0.2641613781452179,
0.10477107018232346,
-0.13695722818374634,
0.3790745437145233,
0.2572436034679413,
0.6966174840927124,
0.05036482587456703,
0.1582949459552765,
-0.029959432780742645,
0.002202332019805908,
0.22478117048740387,
0.07232706248760223,
-0.3129121959209442,
0.1803698092699051,
0.030220001935958862,
-0.17684614658355713,
0.24600163102149963,
0.11623267084360123,
0.29289352893829346,
-0.057840507477521896,
-0.35798168182373047,
-0.2600938677787781,
-0.36551088094711304,
-0.15597303211688995,
-0.02192678302526474,
0.20306932926177979,
0.14553368091583252,
0.562701404094696,
-0.43488308787345886,
-0.08220691978931427,
0.30349281430244446,
-0.12146757543087006,
-0.026632122695446014,
0.08715566247701645,
-0.2401300072669983,
-0.37643691897392273,
-0.1924000382423401,
0.16943266987800598,
-0.12736164033412933,
0.4058913588523865,
0.08941517770290375,
0.20311668515205383,
0.1276351809501648,
-0.10067126154899597,
0.29762059450149536,
-0.2545887231826782,
0.17823754251003265,
0.18830128014087677,
0.16518841683864594,
-0.38481807708740234,
-0.16946189105510712,
-0.1441168189048767,
-0.1351507157087326,
0.2666930854320526,
0.06919786334037781,
-0.5115236043930054,
-0.13170278072357178,
0.12237096577882767,
-0.05088233947753906,
-0.24660292267799377,
-0.14466646313667297,
-0.24619297683238983,
-0.2586560845375061,
0.15327733755111694,
0.038099076598882675,
0.15006814897060394,
0.39294424653053284,
-0.09278027713298798,
0.5734648704528809,
-0.11201195418834686,
-0.23543301224708557,
0.2397039532661438,
-0.06301118433475494,
0.552973210811615,
-0.019410165026783943,
0.034088682383298874,
0.12226519733667374,
-0.12650926411151886,
-0.20531564950942993,
0.12265841662883759,
0.13564687967300415,
-0.3416358530521393,
-0.1437762975692749,
-0.38328859210014343,
0.5200099349021912,
0.22930601239204407,
-0.2753114700317383,
0.14769931137561798,
-0.33164432644844055,
-0.1977546662092209,
-0.010632422752678394,
-0.05702343210577965,
0.2516385018825531,
-0.047046463936567307,
0.117916539311409,
-0.20572949945926666,
0.5350639820098877,
0.21493291854858398,
-0.1624642014503479,
0.40085116028785706,
0.15371432900428772,
-0.4334540069103241,
0.1491285264492035,
0.33890360593795776,
0.7175220847129822,
0.47811466455459595,
-0.038589004427194595,
0.4263072609901428,
-0.2586621642112732,
0.1159348413348198,
0.05638141185045242,
-0.00411800853908062,
-0.20777320861816406,
-0.3220457136631012,
0.19190186262130737,
0.011622387915849686,
0.10581915080547333,
0.0006328821182250977,
-0.08648180216550827,
0.17898772656917572,
-0.2033778727054596,
0.38698506355285645,
0.10234234482049942,
0.2675025761127472,
0.06082473695278168,
0.033774226903915405,
-0.10494070500135422,
0.01725490391254425,
0.09077565371990204,
-0.11770839989185333,
0.0535145029425621,
-0.38407135009765625,
0.031319212168455124,
-0.17551299929618835,
-0.001667603850364685,
0.05223924666643143,
-0.25613686442375183,
0.06429550051689148,
0.11666272580623627,
-0.0008836463093757629,
0.11949019134044647,
0.001680854707956314,
0.5374196171760559,
-0.035936396569013596,
-0.1339445263147354,
0.2569860816001892,
-0.43865716457366943,
0.03248859941959381,
0.17406223714351654,
0.13647998869419098,
0.04062198847532272,
-0.05968209356069565,
-0.22852008044719696,
0.3244856894016266,
0.05862957984209061,
-0.17316603660583496,
-0.2100578099489212,
-0.25835752487182617,
-0.2615676522254944,
-0.1521654576063156,
-0.2196032851934433,
-0.05316755175590515,
-0.01927054673433304,
-0.1628289818763733,
0.002890065312385559,
-0.12408825755119324,
0.02442394755780697,
0.40109291672706604,
-0.10810832679271698,
-0.11336573958396912,
0.09038019180297852,
0.3428354561328888,
-0.23234644532203674,
-0.285352498292923,
0.4727141261100769,
-0.312524676322937,
-0.08266744017601013,
-0.050531055778265,
0.1748831868171692,
-0.19989381730556488,
-0.2814693748950958,
0.2686017155647278,
-0.01612810231745243,
0.10396721959114075,
0.0345950573682785,
0.40428197383880615,
0.11582882702350616,
-0.10111489146947861,
-0.057221896946430206,
-0.4350411295890808,
0.11168348044157028,
0.4085421562194824,
-0.2350720316171646,
-0.0952422171831131,
-0.4258364737033844,
0.1973525881767273,
0.07796842604875565,
0.19759182631969452,
-0.2119119018316269,
-0.2755134701728821,
0.12485911697149277,
-0.14651654660701752,
0.2670939564704895,
0.09461331367492676,
0.04581012576818466,
0.02428385615348816,
-0.0631355568766594,
0.08846507221460342,
-0.09659988433122635,
-0.029774168506264687,
-0.25492939352989197,
0.16867122054100037,
0.03131799027323723,
0.3304589092731476,
0.0870017260313034,
-0.04514788091182709,
-0.1597488820552826,
-0.2132948637008667,
0.02330022305250168,
0.18651074171066284,
-0.11653599143028259,
0.5392250418663025,
0.10410201549530029,
0.8976367115974426,
0.21349646151065826,
-0.05343117564916611,
0.2053503394126892,
0.29135769605636597,
-0.0549783781170845,
0.10576923936605453,
0.3132905066013336,
0.13654625415802002,
-0.2882298529148102,
-0.08910753577947617,
-0.3128889799118042,
0.06536513566970825,
0.2927877604961395,
-0.1010158360004425,
0.012088127434253693,
0.4501214325428009,
0.021689970046281815,
0.24439296126365662,
-0.17398609220981598,
0.03329043835401535,
-0.3316775858402252,
0.10879997909069061,
-0.161526158452034,
0.1517757922410965,
0.138160839676857,
0.18902204930782318,
0.03721438720822334,
0.21938394010066986,
0.38965553045272827,
-0.18261022865772247,
0.15385635197162628,
0.007175430655479431,
0.248026043176651,
-0.27779603004455566,
0.3476073443889618,
0.15185116231441498,
0.23685415089130402,
0.2364322692155838,
0.2788344919681549,
0.06365516781806946,
0.048726778477430344,
0.4418356418609619,
0.15065640211105347,
0.23161622881889343,
0.13681700825691223,
-0.0283418707549572,
-0.14248886704444885,
-0.003702351823449135,
-0.057563986629247665,
0.047334812581539154,
-0.09683726727962494,
0.1636190414428711,
-0.30070018768310547,
0.21425983309745789,
-0.003268172964453697,
-0.32282963395118713,
-0.2563183903694153,
-0.24403555691242218,
-0.015512794256210327,
-0.23929576575756073,
-0.5574414730072021,
-0.24172276258468628,
-0.050632379949092865,
-0.11818677186965942,
0.17584887146949768,
-0.005193181335926056,
0.2497847080230713,
-0.24859528243541718,
-0.14419341087341309,
0.26684173941612244,
-0.26188021898269653,
0.3737461566925049,
0.5232933759689331,
-0.34832826256752014,
0.05877625197172165,
-0.10052210092544556,
0.2709248661994934,
0.21099932491779327,
0.305418461561203,
0.2390974760055542,
0.302023321390152,
-0.36684322357177734,
-0.2365862876176834,
0.14569808542728424,
-0.20331373810768127,
0.11447879672050476,
0.32902878522872925,
0.28148505091667175,
-0.20714886486530304,
0.2027946412563324,
0.04671240597963333,
-0.155674010515213,
0.18962472677230835,
0.2759166955947876,
0.20000556111335754,
-0.408981591463089,
0.34240442514419556,
-0.03960138559341431,
-0.03229771926999092,
0.12214396893978119,
-0.14284664392471313,
-0.04273673892021179,
-0.250223845243454,
0.09336252510547638,
0.20452836155891418,
-0.02322976291179657,
-0.5147493481636047,
0.03963173180818558,
0.029587214812636375,
0.3810935914516449,
0.058515604585409164,
0.012301139533519745,
-0.4914895296096802,
-0.010135047137737274,
-0.6506745219230652,
-0.09302953630685806,
0.2496895045042038,
-0.14954982697963715,
0.14566311240196228,
0.16611385345458984,
-0.07593517750501633,
0.06999996304512024,
0.07189084589481354,
0.5094356536865234,
0.17520876228809357,
-0.003301076591014862,
-0.40875837206840515,
-0.14532114565372467,
-0.20161320269107819,
-0.216828852891922,
0.23219746351242065,
-0.17590683698654175,
-0.009785201400518417,
-0.3974432647228241,
-0.015004556626081467,
0.060062162578105927,
0.0033532604575157166,
0.16454197466373444,
0.651124119758606,
0.18738096952438354,
0.02063075639307499,
0.7741081714630127,
0.013641972094774246,
0.029988637194037437,
-0.4132050573825836,
-0.1902291178703308,
-0.2227948158979416,
-0.09533300250768661,
-0.13628529012203217,
0.3383517861366272,
-0.015166995115578175,
-0.44838592410087585,
-0.03937038779258728,
0.21139231324195862,
0.31707650423049927,
-0.41655662655830383,
-0.019399676471948624,
0.3332814872264862,
-0.19061413407325745,
-0.09212145954370499,
0.02344287931919098,
0.32062503695487976,
-0.09957009553909302,
0.23113209009170532,
0.054654523730278015,
-0.2851713001728058,
0.23108160495758057,
-0.3407648205757141,
-0.3436340391635895,
-0.2862754166126251,
0.304965615272522,
-0.0992930606007576,
-0.17290069162845612,
-0.6666845083236694,
-0.14167088270187378,
0.28235092759132385,
0.1122603490948677,
-0.033941756933927536,
0.2595963776111603,
-0.0015448648482561111,
0.05062412843108177,
-0.02889658324420452,
0.014309965074062347,
-0.15367001295089722,
-0.11830049008131027,
0.08074504137039185,
-0.11492130905389786
] |
https://github.com/huggingface/datasets/issues/2663 | [`to_json`] add multi-proc sharding support | Hi @stas00,
I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity:
```
result = list(
pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)])
)
```
`_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file?
I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this? | As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR.
I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards?
I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process.
I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs.
The code I was using:
```
from multiprocessing import cpu_count, Process, Queue
[...]
filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count())
DATASET_NAME = "oscar"
SHARDS = 10
def process_shard(idx):
print(f"Sharding {idx}")
ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True)
# ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling
print(f"Saving {DATASET_NAME}-{idx}.jsonl")
ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False)
queue = Queue()
processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)]
for p in processes:
p.start()
for p in processes:
p.join()
```
Thank you!
@lhoestq | 139 | [`to_json`] add multi-proc sharding support
As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR.
I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards?
I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process.
I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs.
The code I was using:
```
from multiprocessing import cpu_count, Process, Queue
[...]
filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count())
DATASET_NAME = "oscar"
SHARDS = 10
def process_shard(idx):
print(f"Sharding {idx}")
ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True)
# ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling
print(f"Saving {DATASET_NAME}-{idx}.jsonl")
ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False)
queue = Queue()
processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)]
for p in processes:
p.start()
for p in processes:
p.join()
```
Thank you!
@lhoestq
Hi @stas00,
I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity:
```
result = list(
pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)])
)
```
`_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file?
I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this? | [
-0.24204696714878082,
-0.32450494170188904,
-0.03341703489422798,
-0.044020771980285645,
-0.09772133827209473,
-0.0860108807682991,
0.4022950828075409,
0.11040161550045013,
-0.012091496028006077,
0.3323681950569153,
-0.03994441032409668,
0.2764456272125244,
-0.13137075304985046,
0.22048456966876984,
-0.23964345455169678,
-0.08105587959289551,
0.14075064659118652,
-0.12439188361167908,
0.43353793025016785,
0.18165507912635803,
-0.25267916917800903,
0.30905675888061523,
-0.13342396914958954,
-0.2920534610748291,
-0.1443655788898468,
-0.1116199865937233,
0.17024986445903778,
0.1693740338087082,
0.18139880895614624,
-0.20507290959358215,
-0.2966972887516022,
0.14663511514663696,
-0.15742480754852295,
-0.06633811444044113,
-0.00012120656901970506,
-0.016576003283262253,
0.3360567092895508,
-0.025188781321048737,
0.16749702394008636,
0.02981611341238022,
-0.2610713839530945,
-0.2657979726791382,
-0.11181481182575226,
-0.3679597079753876,
0.15891823172569275,
0.2573314905166626,
0.07961057871580124,
-0.10901188105344772,
0.2735995054244995,
0.18241234123706818,
0.026637978851795197,
-0.03813130408525467,
0.27318793535232544,
0.18717266619205475,
-0.12316916137933731,
-0.05842745304107666,
-0.13419915735721588,
-0.13731126487255096,
0.17178446054458618,
0.28839239478111267,
0.172288179397583,
0.2656453549861908,
-0.07140906900167465,
-0.0292128324508667,
-0.04930712282657623,
0.0790247917175293,
0.06767379492521286,
-0.2999538481235504,
-0.07281164079904556,
0.16272670030593872,
-0.10094866901636124,
-0.09414062649011612,
-0.3561590909957886,
-0.29515311121940613,
-0.11133546382188797,
-0.5862674713134766,
-0.09102029353380203,
-0.05699075013399124,
-0.004695551469922066,
0.0016197115182876587,
-0.2583365738391876,
-0.13528981804847717,
-0.11159685254096985,
-0.09750199317932129,
0.05597260594367981,
-0.04923897981643677,
0.1559399515390396,
0.23136019706726074,
0.4239075779914856,
-0.11601628363132477,
-0.2813233733177185,
-0.03675544261932373,
0.19016535580158234,
-0.09958464652299881,
-0.31820982694625854,
-0.23319898545742035,
0.06707213073968887,
-0.2741040289402008,
-0.1916317343711853,
0.24053215980529785,
-0.06529036909341812,
0.3501676023006439,
0.145112544298172,
0.2800189256668091,
-0.008259262889623642,
-0.36760199069976807,
0.10556946694850922,
-0.20280317962169647,
0.08662204444408417,
0.08546935021877289,
-0.043837107717990875,
0.01422322541475296,
0.1041974127292633,
-0.18641981482505798,
0.23794753849506378,
0.061043962836265564,
-0.22474588453769684,
0.01346227154135704,
-0.1326916515827179,
0.12457845360040665,
0.04091509431600571,
-0.18484270572662354,
-0.10385514795780182,
0.11811904609203339,
0.12111514806747437,
0.4554606080055237,
-0.2897271513938904,
0.12673845887184143,
-0.19911691546440125,
0.08458006381988525,
-0.0060031358152627945,
0.17520762979984283,
-0.12121438980102539,
0.30382829904556274,
-0.09456455707550049,
0.3363538086414337,
-0.1660332977771759,
-0.18130582571029663,
0.42674899101257324,
0.014327753335237503,
0.007166840136051178,
-0.16150790452957153,
-0.02776464819908142,
0.3133509159088135,
-0.052582159638404846,
-0.026376275345683098,
-0.0027028582990169525,
-0.6090402603149414,
-0.521503746509552,
0.08723988384008408,
-0.4247320890426636,
-0.5617135167121887,
0.06744968891143799,
-0.010555918328464031,
0.04133204370737076,
0.053050447255373,
-0.7100688219070435,
0.19128893315792084,
0.14685072004795074,
0.01725045219063759,
-0.2996538281440735,
-0.03136572241783142,
-0.39742058515548706,
-0.3379456400871277,
0.004090949892997742,
0.1846766322851181,
-0.03455006331205368,
0.1666765809059143,
-0.10573215782642365,
0.15733206272125244,
0.491198867559433,
0.38628557324409485,
0.041726429015398026,
0.15123102068901062,
0.13841481506824493,
0.4020535349845886,
0.12160743772983551,
-0.23597757518291473,
-0.3532421588897705,
0.34362372756004333,
-0.19502253830432892,
0.1283877044916153,
0.589771032333374,
0.16199281811714172,
0.19418101012706757,
-0.196388840675354,
0.5543403625488281,
0.08413728326559067,
-0.045982249081134796,
0.2191108912229538,
-0.288382351398468,
-0.019075747579336166,
-0.6522380709648132,
0.28969088196754456,
0.06808630377054214,
0.084536112844944,
0.1911190152168274,
-0.27414825558662415,
0.2790183126926422,
-0.12537695467472076,
0.026950038969516754,
0.11802297830581665,
0.21631237864494324,
-0.11523987352848053,
-0.2634334862232208,
0.10628395527601242,
-0.09533322602510452,
0.3388623893260956,
0.24822422862052917,
0.11042164266109467,
-0.09170655906200409,
-0.16062530875205994,
0.24626880884170532,
0.17965829372406006,
0.09668302536010742,
0.14533956348896027,
-0.05407828092575073,
-0.22018927335739136,
-0.1485593616962433,
-0.09626394510269165,
-0.06842529773712158,
0.5936166644096375,
0.16743597388267517,
-0.07752177864313126,
-0.4122171700000763,
0.1772022396326065,
0.09011108428239822,
-0.17764770984649658,
0.01671825721859932,
0.18004125356674194,
0.0830758810043335,
-0.18112418055534363,
0.2029941976070404,
0.0858524888753891,
0.2311599850654602,
0.1759357452392578,
-0.020177558064460754,
0.39959031343460083,
0.05849551409482956,
0.1984224021434784,
0.03610341250896454,
-0.22410579025745392,
0.002749118022620678,
-0.25176069140434265,
-0.16874513030052185,
0.7329334616661072,
0.2339998185634613,
0.5969923138618469,
0.17844711244106293,
-0.10981503129005432,
0.2974082827568054,
0.00585600733757019,
0.0032609403133392334,
-0.09489390254020691,
0.10273885726928711,
0.43337610363960266,
-0.47862711548805237,
-0.2609364986419678,
-0.3565049171447754,
0.49486595392227173,
0.32555821537971497,
0.16140538454055786,
-0.2580355703830719,
0.29643309116363525,
0.3624888062477112,
0.019534800201654434,
0.16270647943019867,
0.3779318332672119,
0.656636118888855,
0.22483158111572266,
-0.13440074026584625,
-0.06227339059114456,
0.04528728872537613,
-0.32326874136924744,
0.05037582665681839,
0.09435415267944336,
0.36933213472366333,
0.0394430011510849,
0.20781174302101135,
0.015268884599208832,
0.04428362846374512,
-0.5829308032989502,
-0.06707470118999481,
0.03214256465435028,
-0.1475297063589096,
0.16563580930233002,
-0.1907571703195572,
0.5931069850921631,
0.06945275515317917,
0.0002799713984131813,
0.19941537082195282,
-0.4266073405742645,
-0.018969345837831497,
0.5152555108070374,
-0.1510579138994217,
-0.16074049472808838,
0.14707456529140472,
0.054402515292167664,
-0.38486772775650024,
-0.33046239614486694,
-0.26152706146240234,
-0.02001960016787052,
0.1954406499862671,
-0.08818917721509933,
0.35583963990211487,
-0.06678427755832672,
0.2389361411333084,
-0.00467853806912899,
0.04582197219133377,
0.025941457599401474,
-0.18938946723937988,
-0.048883818089962006,
-0.15146109461784363,
0.17161591351032257,
-0.02060617506504059,
-0.16444917023181915,
-0.05813867226243019,
-0.2877837121486664,
0.27997833490371704,
0.1137811541557312,
-0.08421306312084198,
0.22838468849658966,
-0.2359640896320343,
-0.16185814142227173,
0.15693499147891998,
0.08270501345396042,
-0.25319963693618774,
-0.29115286469459534,
0.5311346650123596,
0.13817474246025085,
0.30137017369270325,
-0.4351005554199219,
0.1738482266664505,
-0.16553360223770142,
0.020320957526564598,
0.054013706743717194,
0.05094074830412865,
-0.41109514236450195,
0.32299771904945374,
-0.05021628364920616,
-0.09402389824390411,
-0.1275966465473175,
-0.019811637699604034,
0.18177464604377747,
0.12512674927711487,
-0.23384836316108704,
-0.3862828314304352,
-0.20700277388095856,
0.10832265019416809,
-0.01940441131591797,
-0.2067759484052658,
0.44289422035217285,
0.18686705827713013,
-0.15198387205600739,
0.13704240322113037,
-0.11708143353462219,
0.17738023400306702,
-0.14965862035751343,
-0.19701892137527466,
-0.04743511974811554,
0.5124174356460571,
0.19802910089492798,
0.6017048358917236,
0.25632885098457336,
-0.05576467141509056,
0.2804166078567505,
0.1276685893535614,
-0.18448123335838318,
-0.19500696659088135,
-0.1390611082315445,
-0.01724066212773323,
-0.1265535056591034,
0.033510349690914154,
-0.05150829255580902,
0.027430150657892227,
-0.44362831115722656,
-0.037867508828639984,
0.15972045063972473,
-0.38753393292427063,
-0.35006198287010193,
0.26309359073638916,
0.20340494811534882,
-0.1624300479888916,
-0.12105454504489899,
-0.2143118977546692,
-0.235510915517807,
0.049195095896720886,
-0.25178030133247375,
0.42202794551849365,
0.14401088654994965,
-0.38914474844932556,
-0.37147870659828186,
-0.4610382616519928,
-0.6336134672164917,
0.4533957242965698,
0.10177739709615707,
0.12590989470481873,
0.07991144061088562,
-0.1299971342086792,
0.17693749070167542,
-0.4740128517150879,
0.423064649105072,
-0.2788920998573303,
-0.34192878007888794,
0.4411652088165283,
-0.20571614801883698,
-0.12369582056999207,
-0.016587361693382263,
0.01987096294760704,
0.2513073682785034,
0.425891250371933,
0.7600985169410706,
-0.36086156964302063,
-0.15231004357337952,
-0.02090749889612198,
-0.28203028440475464,
-0.11592194437980652,
-0.320248007774353,
-0.17535951733589172,
-0.3228893280029297,
-0.4666144549846649,
0.1101018562912941,
0.1017080619931221,
0.40800923109054565,
-0.0057398066855967045,
-0.08363793045282364,
-0.07339431345462799,
-0.20061182975769043,
0.32921892404556274,
-0.13133791089057922,
-0.12549036741256714,
0.022171128541231155,
0.24929681420326233,
-0.4836687743663788,
0.06716807186603546,
0.2951050400733948,
0.20293766260147095,
-0.013854600489139557,
-0.09985756874084473,
-0.13867416977882385,
0.15347222983837128,
0.3938666880130768,
0.2586369514465332,
0.042147956788539886,
0.1489998996257782,
-0.2551949918270111,
0.6260344982147217,
-0.0486513152718544,
0.014115160331130028,
-0.02532717026770115,
0.15288592875003815,
-0.2188195437192917,
0.09562010318040848,
0.387854665517807,
0.11292585730552673,
-0.09570684283971786,
0.01781322807073593,
0.16870969533920288,
-0.06754685938358307,
0.14914870262145996,
0.22514131665229797,
0.9898113012313843,
-0.30001622438430786,
0.13465175032615662,
-0.1427120864391327,
0.029635578393936157,
-0.06096227839589119,
-0.5919114351272583,
0.13420437276363373,
-0.06597044318914413,
-0.13318292796611786,
0.08681651204824448,
-0.04254867881536484,
0.21607476472854614,
0.37805336713790894,
-0.06269153952598572,
0.31771937012672424,
0.4126957654953003,
-0.4591328203678131,
-0.08937358111143112,
0.3414221704006195,
-0.21012291312217712,
-0.5266348719596863,
-0.060030072927474976,
-0.021120229735970497,
0.26362064480781555,
-0.4082716703414917,
0.008906468749046326,
-0.12394122779369354,
-0.11021418869495392,
0.08266222476959229,
-0.3039131164550781,
-0.08076450228691101,
0.14312855899333954,
0.1746753454208374,
0.11770148575305939,
-0.12860862910747528,
0.004805531352758408,
0.1438332349061966,
0.30513375997543335,
-0.019403111189603806,
-0.06410082429647446,
-0.15035055577754974,
-0.0903271958231926,
-0.06496735662221909,
0.11516722291707993,
-0.49839287996292114,
0.314055472612381,
-0.20991668105125427,
-0.1760045737028122,
-0.11978276818990707,
0.15055125951766968,
-0.5108480453491211,
-0.10430480539798737,
0.24407491087913513,
0.29667049646377563,
0.28872182965278625,
-0.21086348593235016,
0.3275485634803772,
-0.4023463726043701,
-0.2975882589817047,
-0.007566230371594429,
0.2786339521408081,
-0.15860767662525177,
0.5502752661705017,
-0.5499783754348755,
-0.15298625826835632,
0.038256507366895676,
0.13125339150428772,
0.14653731882572174,
-0.06245071440935135,
0.0038702189922332764,
-0.09766286611557007,
-0.2169618159532547,
-0.09718470275402069,
0.13124901056289673,
-0.04073715955018997,
0.05533663183450699,
0.10163117945194244,
-0.1436052769422531,
-0.1815696656703949,
0.06397147476673126,
-0.11804904043674469,
-0.08771412074565887,
-0.07253872603178024,
-0.09360475838184357,
-0.30991196632385254,
-0.20767909288406372,
0.1351606547832489,
-0.1702667474746704,
-0.046089235693216324,
-0.1275123655796051,
0.17459356784820557,
-0.2650546729564667,
0.25054478645324707,
-0.17618735134601593,
0.05188436806201935,
-0.2666444778442383,
0.05314542353153229,
0.29401811957359314,
-0.1134413406252861,
0.10167296975851059,
0.1896565556526184,
0.08798082172870636,
0.2687366008758545,
-0.2080688327550888,
-0.13120204210281372,
0.11382360756397247,
0.1918836236000061,
-0.06353142112493515,
0.09779472649097443,
0.19164329767227173,
0.2487071305513382,
-0.359438955783844,
-0.1701638549566269,
0.06094703450798988,
0.006893493235111237,
-0.2717463970184326,
-0.1422349214553833,
0.7559411525726318,
0.06704361736774445,
0.08691899478435516,
0.12754382193088531,
0.03700175881385803,
0.6623581647872925,
-0.26673445105552673,
0.28468960523605347,
-0.0016673149075359106,
-0.1713433414697647,
0.02108546905219555,
0.10791276395320892,
0.2110726535320282,
0.15106436610221863,
0.4081351161003113,
-0.005454897880554199,
-0.24495185911655426,
-0.1877128928899765,
0.25108280777931213,
0.011266235262155533,
-0.01962040551006794,
0.02640867792069912,
0.136379212141037,
0.09551680833101273,
0.06549007445573807,
-0.36028826236724854,
0.22025710344314575,
-0.09147591888904572,
0.19218361377716064,
0.3553711175918579,
0.07955056428909302,
0.1364491581916809,
-0.10065987706184387,
0.006425842642784119,
0.1384616643190384,
-0.2223736047744751,
-0.4793303906917572,
-0.4439961016178131,
0.16286183893680573,
0.13565373420715332,
0.35006746649742126,
-0.04459642991423607,
0.21382714807987213,
0.139121413230896,
-0.09870094805955887,
0.9213709235191345,
0.2334340214729309,
0.21349498629570007,
-0.015366517007350922,
-0.100568026304245,
0.08202008903026581,
0.1242322027683258,
0.09118247777223587,
0.3882046639919281,
0.12951557338237762,
0.2498442828655243,
0.022147420793771744,
0.059988927096128464,
-0.24476055800914764,
0.41155514121055603,
0.14176279306411743,
-0.48254820704460144,
0.13492873311042786,
0.02694001793861389,
-0.15173643827438354,
0.048498038202524185,
-0.04392470791935921,
0.17808684706687927,
0.4796350300312042,
0.1804547905921936,
0.42215031385421753,
0.060802340507507324,
-0.15454164147377014,
-0.13780352473258972,
0.49363183975219727,
-0.2833921015262604,
0.060276515781879425,
0.25134897232055664,
-0.2618723213672638,
-0.06398433446884155,
-0.002581266686320305,
0.36165711283683777,
0.0012853145599365234,
0.06632865220308304,
0.2202928215265274,
-0.11019657552242279,
0.045188046991825104,
-0.05297160521149635,
0.31045740842819214,
0.035782456398010254,
0.2876130938529968,
0.13120798766613007,
0.029161127284169197,
-0.1718655824661255,
0.0844171941280365,
-0.04816849157214165,
0.09338586032390594,
-0.048811934888362885,
0.40578171610832214,
0.07559330761432648,
-0.5193161964416504,
0.1798733025789261,
0.29109102487564087,
-0.48332467675209045,
-0.2664083242416382,
0.14831063151359558,
-0.6427663564682007,
0.015081902965903282,
0.07116261124610901,
0.028636079281568527,
-0.07111649215221405,
0.39171645045280457,
-0.42998194694519043,
0.42326778173446655,
-0.3951330780982971,
-0.07317660748958588,
-0.1655285358428955,
-0.07227922230958939,
-0.18217220902442932,
0.1409941166639328,
0.024672582745552063,
0.49995094537734985,
0.25925859808921814,
0.4662967920303345,
-0.05870245397090912,
0.059115637093782425,
-0.3290490210056305,
0.5914944410324097,
-0.35106346011161804,
0.47517526149749756,
0.39055055379867554,
-0.24265286326408386,
0.06152886152267456,
-0.2855619788169861,
0.40053677558898926,
0.09334341436624527,
0.033924467861652374,
-0.17999966442584991,
0.286738783121109,
0.00448361411690712,
0.21071180701255798,
0.19440913200378418,
0.19330008327960968,
0.06860552728176117,
-0.3118372857570648,
-0.18517816066741943,
-0.014325950294733047,
0.30485808849334717,
-0.1415354609489441,
-0.09485188871622086,
-0.11591887474060059,
0.513730525970459,
-0.245566725730896,
0.3382500410079956,
0.059224262833595276,
-0.10401292145252228,
-0.17770914733409882,
-0.49095410108566284,
-0.175888329744339,
0.0819058045744896,
0.04001522809267044,
0.31249338388442993,
-0.12319163978099823,
0.49037325382232666,
0.29592692852020264,
0.03275381773710251,
-0.1817992627620697,
-0.13213007152080536,
0.2517086863517761,
-0.1657274067401886,
-0.10344606637954712,
-0.06647394597530365,
0.25987347960472107,
-0.4155709743499756,
0.5195028185844421,
-0.24916291236877441,
-0.19546568393707275,
0.22284634411334991,
0.05933742970228195,
-0.3831806182861328,
0.547203004360199,
0.09825290739536285,
-0.6427063345909119,
-0.07747788727283478,
-0.19204658269882202,
-0.09151201695203781,
-0.20884037017822266,
-0.29021239280700684,
-0.23562473058700562
] |
https://github.com/huggingface/datasets/issues/2655 | Allow the selection of multiple columns at once | Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense.
Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something. | **Is your feature request related to a problem? Please describe.**
Similar to pandas, it would be great if we could select multiple columns at once.
**Describe the solution you'd like**
```python
my_dataset = ... # Has columns ['idx', 'sentence', 'label']
idx, label = my_dataset[['idx', 'label']]
```
**Describe alternatives you've considered**
we can do `[dataset[col] for col in ('idx', 'label')]`
**Additional context**
This is of course very minor.
| 64 | Allow the selection of multiple columns at once
**Is your feature request related to a problem? Please describe.**
Similar to pandas, it would be great if we could select multiple columns at once.
**Describe the solution you'd like**
```python
my_dataset = ... # Has columns ['idx', 'sentence', 'label']
idx, label = my_dataset[['idx', 'label']]
```
**Describe alternatives you've considered**
we can do `[dataset[col] for col in ('idx', 'label')]`
**Additional context**
This is of course very minor.
Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense.
Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something. | [
-0.05737047642469406,
-0.22968095541000366,
-0.19698511064052582,
0.05125783011317253,
0.2014225870370865,
0.21865010261535645,
0.5181807279586792,
0.11737123131752014,
0.3343808650970459,
0.40828436613082886,
-0.1473214328289032,
0.383078008890152,
0.0007233666256070137,
0.2195993810892105,
-0.2610397934913635,
-0.3490299582481384,
-0.14632713794708252,
0.14113514125347137,
0.08572717756032944,
0.01358737051486969,
-0.17277012765407562,
-0.3008396625518799,
-0.34792011976242065,
0.015592060983181,
-0.06391075253486633,
-0.20463843643665314,
-0.24874840676784515,
-0.27311551570892334,
-0.37452784180641174,
-0.2284197211265564,
-0.05097722262144089,
0.4818706214427948,
-0.09989305585622787,
0.04209940880537033,
-0.00010220228432444856,
-0.24254044890403748,
0.049416523426771164,
0.045004211366176605,
-0.37280431389808655,
-0.319780170917511,
-0.19853967428207397,
-0.22483375668525696,
0.32597044110298157,
-0.3805670738220215,
-0.14598514139652252,
-0.17690733075141907,
-0.20341980457305908,
-0.2526134252548218,
-0.0332643985748291,
0.08786734193563461,
0.30981868505477905,
-0.014178991317749023,
-0.21257466077804565,
0.0007960321381688118,
-0.03958883881568909,
0.1632220447063446,
-0.1948767751455307,
-0.08622774481773376,
0.4251424968242645,
-0.022268280386924744,
0.24046647548675537,
0.10231006145477295,
-0.23896105587482452,
0.07993658632040024,
0.07896840572357178,
0.16551195085048676,
0.2781159281730652,
-0.2613495886325836,
0.08097723126411438,
0.2927649915218353,
0.7717719078063965,
-0.1894669532775879,
-0.47189027070999146,
-0.21024084091186523,
0.4684535562992096,
-0.1977849006652832,
-0.3191843330860138,
0.2664964199066162,
-0.22879472374916077,
0.22751834988594055,
0.11294020712375641,
-0.2688919007778168,
-0.10901456326246262,
0.14868482947349548,
-0.15572091937065125,
0.3326570391654968,
-0.04301314055919647,
0.05515667051076889,
0.1314314305782318,
-0.02223486825823784,
0.1233636811375618,
-0.10490846633911133,
0.1292734295129776,
0.15563084185123444,
-0.6503586173057556,
-0.21728456020355225,
-0.2239072620868683,
-0.2029283344745636,
0.1681584119796753,
0.21599958837032318,
-0.02360910177230835,
-0.02313852682709694,
-0.11883026361465454,
0.3164629638195038,
0.48385509848594666,
-0.045806076377630234,
-0.04397515207529068,
0.38906681537628174,
-0.03434370458126068,
-0.1517443209886551,
0.009491078555583954,
-0.01807437464594841,
-0.09105727821588516,
0.040974073112010956,
0.009580578655004501,
0.22276833653450012,
0.03322877362370491,
0.025482941418886185,
-0.2143535017967224,
-0.20530067384243011,
-0.10487199574708939,
-0.2566320300102234,
-0.06128648295998573,
0.46255019307136536,
0.11205970495939255,
0.3907718360424042,
-0.19363047182559967,
0.23149581253528595,
0.21480430662631989,
-0.2290372997522354,
-0.20687447488307953,
0.28645360469818115,
0.1582299768924713,
-0.11849809437990189,
0.12205466628074646,
0.06708399206399918,
-0.17883089184761047,
0.31738340854644775,
0.030092284083366394,
-0.39568451046943665,
-0.1217479258775711,
-0.3682631552219391,
0.04128759726881981,
0.16459231078624725,
-0.01710674539208412,
0.10427484661340714,
0.2690168023109436,
-0.21687325835227966,
-0.3145560622215271,
0.39429324865341187,
0.04674017056822777,
-0.15735243260860443,
-0.21714137494564056,
0.1881260871887207,
0.1842946857213974,
-0.3066888153553009,
-0.09162288159132004,
0.5061648488044739,
-0.06248808652162552,
0.36236336827278137,
0.17006894946098328,
0.029099630191922188,
0.04958784207701683,
-0.3428073823451996,
-0.06077457219362259,
0.34315410256385803,
-0.5089315176010132,
0.08423158526420593,
0.16494986414909363,
-0.09672906994819641,
-0.008023157715797424,
0.16336265206336975,
-0.27803879976272583,
0.08630522340536118,
0.22519037127494812,
0.03584056347608566,
0.30474239587783813,
-0.3884342610836029,
-0.11442142724990845,
0.19128146767616272,
0.07854269444942474,
0.17735272645950317,
0.4585631489753723,
0.10773662477731705,
0.18816234171390533,
0.23336395621299744,
0.05772823095321655,
0.19334083795547485,
0.024873599410057068,
0.07735992968082428,
0.22188685834407806,
-0.40661942958831787,
0.2764483094215393,
0.14775042235851288,
-0.1539059728384018,
0.16838917136192322,
-0.15992483496665955,
-0.18167482316493988,
0.344522625207901,
-0.25893884897232056,
-0.13856200873851776,
0.18108874559402466,
0.3131214678287506,
0.11235343664884567,
-0.09729669243097305,
-0.4043026566505432,
-0.2775420844554901,
0.1191292330622673,
0.4883976876735687,
0.13800205290317535,
0.012243501842021942,
-0.4381888508796692,
-0.15345776081085205,
0.058277226984500885,
-0.15951621532440186,
0.1654391884803772,
0.2506507337093353,
-0.2094162106513977,
-0.10757316648960114,
-0.10198023915290833,
-0.5070763826370239,
0.3666985034942627,
-0.19568772614002228,
0.1371779888868332,
0.19884610176086426,
0.17114368081092834,
0.004281405359506607,
0.17438414692878723,
0.029910489916801453,
0.01956303045153618,
0.20088264346122742,
0.17936064302921295,
0.14910516142845154,
0.0841178297996521,
0.19764411449432373,
-0.07012364268302917,
-0.3016877770423889,
-0.0303097665309906,
0.0741778239607811,
0.19230785965919495,
-0.01604553870856762,
-0.28385207056999207,
0.12542159855365753,
0.026412516832351685,
-0.1852659285068512,
0.09362399578094482,
-0.12435559928417206,
0.23167937994003296,
0.013006381690502167,
0.015229405835270882,
0.19074036180973053,
-0.14936228096485138,
-0.13044188916683197,
-0.3635961711406708,
0.005459807813167572,
-0.016196392476558685,
-0.08549507707357407,
-0.036862485110759735,
-0.479896605014801,
-0.023961618542671204,
0.04464602842926979,
0.14152894914150238,
0.11124277114868164,
0.00834072008728981,
0.20612242817878723,
0.18853366374969482,
-0.014446152374148369,
0.2635805904865265,
0.3555055856704712,
0.23351480066776276,
-0.2185613512992859,
-0.14861612021923065,
-0.08733964711427689,
0.04370404779911041,
0.17723113298416138,
0.17077699303627014,
0.04954313114285469,
0.19873565435409546,
0.12111889570951462,
0.013650781475007534,
-0.15659697353839874,
-0.16189467906951904,
0.2901342511177063,
0.1482461541891098,
-0.039066165685653687,
-0.057476840913295746,
-0.4436931014060974,
-0.3970943093299866,
0.25073716044425964,
-0.17098583281040192,
0.20135189592838287,
-0.22107602655887604,
-0.040789686143398285,
-0.02848595753312111,
0.08271241188049316,
-0.16329430043697357,
-0.133061483502388,
0.3956555128097534,
-0.026078561320900917,
-0.0435183122754097,
0.12535201013088226,
-0.08678149431943893,
0.24361279606819153,
0.18329448997974396,
0.03633122146129608,
0.06843946874141693,
0.15902389585971832,
0.5090219378471375,
-0.14086906611919403,
-0.2823229730129242,
0.09545724838972092,
0.03017490915954113,
-0.11058445274829865,
0.15716542303562164,
0.20846295356750488,
0.22705265879631042,
-0.02862456440925598,
-0.0005954364314675331,
0.15428927540779114,
0.544956386089325,
-0.03392545133829117,
-0.16962961852550507,
0.2931048274040222,
-0.008518097922205925,
-0.015080951154232025,
-0.16301310062408447,
-0.4817567467689514,
-0.34276649355888367,
0.26214349269866943,
-0.057156484574079514,
0.17881831526756287,
-0.06866175681352615,
-0.04655047506093979,
-0.30990007519721985,
0.1274474710226059,
0.3333834707736969,
-0.3092620372772217,
0.1138572245836258,
0.1015172153711319,
-0.11273369938135147,
-0.13506704568862915,
-0.27506524324417114,
0.06708085536956787,
0.0355207696557045,
-0.10641222447156906,
-0.06778017431497574,
-0.28762587904930115,
-0.24918942153453827,
-0.15001945197582245,
-0.2234167754650116,
0.14576776325702667,
0.08618389070034027,
0.19933077692985535,
-0.08431120961904526,
-0.03411693125963211,
-0.18658952414989471,
0.04304821416735649,
0.30653586983680725,
-0.18678420782089233,
0.15136629343032837,
0.2028808295726776,
0.07449202239513397,
0.018130827695131302,
0.41572970151901245,
0.22603699564933777,
0.2796543836593628,
-0.07394275069236755,
-0.037148367613554,
0.03573117032647133,
-0.3922090530395508,
-0.3193705677986145,
-0.2047724723815918,
0.05846737325191498,
0.04166378825902939,
-0.032072439789772034,
-0.08970128744840622,
-0.2026485651731491,
0.20674748718738556,
-0.19312092661857605,
-0.1450483351945877,
0.05215976759791374,
-0.4818814992904663,
0.08910828828811646,
-0.11589787900447845,
-0.16791686415672302,
-0.17217646539211273,
0.21996226906776428,
-0.15733258426189423,
0.028242766857147217,
0.14483454823493958,
-0.3076134920120239,
-0.1853606104850769,
-0.07037226855754852,
-0.20664355158805847,
0.08877022564411163,
0.1710277944803238,
0.24106790125370026,
0.12623098492622375,
0.19083485007286072,
0.2949066162109375,
0.19171421229839325,
0.6330710649490356,
-0.3205321729183197,
-0.4039381742477417,
0.09166990220546722,
-0.21996794641017914,
-0.26546505093574524,
0.037142980843782425,
-0.2144474983215332,
-0.1425650715827942,
-0.2723601162433624,
0.2915310859680176,
-0.4198495149612427,
-0.150518998503685,
0.3161567449569702,
0.3153999149799347,
-0.21181222796440125,
-0.453821063041687,
0.014548387378454208,
0.11729889363050461,
-0.22154314815998077,
-0.0664241686463356,
0.27883830666542053,
0.123123399913311,
0.10095931589603424,
0.012382961809635162,
-0.10809285938739777,
-0.10097809135913849,
0.2842499613761902,
0.03700321167707443,
-0.07762882113456726,
-0.048751961439847946,
0.1209402084350586,
0.0725596621632576,
-0.0783499926328659,
-0.10666690766811371,
0.5034687519073486,
-0.2633039355278015,
-0.3774498403072357,
-0.19495204091072083,
-0.0676824301481247,
0.6232669949531555,
0.368696391582489,
0.14763878285884857,
0.759414553642273,
-0.30970731377601624,
-0.031656041741371155,
-0.09056424349546432,
-0.4885081946849823,
0.3002040982246399,
-0.05552999675273895,
-0.3722091019153595,
-0.5473958253860474,
0.45305997133255005,
-0.008856249041855335,
-0.09508734196424484,
0.3091559410095215,
0.37562882900238037,
-0.06511388719081879,
0.322409451007843,
0.12479013204574585,
0.8138473629951477,
-0.2744167447090149,
-0.12293983995914459,
-0.3575752377510071,
-0.11769244819879532,
0.4589073359966278,
-0.08238448947668076,
0.18526816368103027,
-0.2941487729549408,
-0.3110412657260895,
-0.0497845821082592,
-0.01871197670698166,
0.29678142070770264,
0.26005759835243225,
-0.3409375548362732,
0.07824113219976425,
-0.4393921494483948,
0.0698702484369278,
0.15535062551498413,
0.2486586570739746,
-0.1398487240076065,
-0.2777968943119049,
-0.11045815050601959,
0.14250455796718597,
-0.1122368574142456,
-0.14615105092525482,
0.13125696778297424,
0.10546977818012238,
-0.05454634130001068,
0.02093735709786415,
-0.47022920846939087,
-0.27681639790534973,
-0.07651316374540329,
0.11073476076126099,
0.08554066717624664,
-0.19645410776138306,
0.33273109793663025,
0.2712891101837158,
0.11469916999340057,
0.22385382652282715,
0.10998626798391342,
0.03014427050948143,
0.15079356729984283,
0.06763225048780441,
-0.22513823211193085,
0.008145528845489025,
0.2617020606994629,
0.11279764026403427,
-0.33462557196617126,
0.3105541467666626,
0.11755697429180145,
-0.5033831596374512,
-0.31436216831207275,
0.2931496798992157,
0.397746205329895,
-0.2647147476673126,
-0.40582141280174255,
-0.004808239638805389,
0.18312585353851318,
-0.309508740901947,
0.1849839687347412,
0.01786819100379944,
-0.01930568367242813,
0.3045939803123474,
0.008547890931367874,
0.14188522100448608,
-0.06277041137218475,
0.07624427229166031,
0.17918801307678223,
-0.027793005108833313,
0.20331092178821564,
0.1564655601978302,
-0.26648110151290894,
-0.20135560631752014,
-0.06805861741304398,
-0.1449981927871704,
0.05115097016096115,
0.12599146366119385,
-0.041315075010061264,
0.01991310715675354,
0.06584823131561279,
0.328139066696167,
0.010278906673192978,
0.21764570474624634,
-0.36940065026283264,
-0.3393455743789673,
0.07482868432998657,
0.13421571254730225,
-0.06599873304367065,
0.24297775328159332,
-0.11702413111925125,
0.07762278616428375,
-0.3198791742324829,
0.23930643498897552,
-0.3837425112724304,
-0.1677522212266922,
-0.33845794200897217,
0.08952028304338455,
0.4663955867290497,
0.08858810365200043,
-0.31270185112953186,
-0.006382518447935581,
0.34970349073410034,
0.19772987067699432,
0.36474883556365967,
-0.3827804923057556,
-0.233925923705101,
0.04068048298358917,
0.16890406608581543,
0.32947200536727905,
-0.0043331328779459,
-0.22408686578273773,
-0.2607184648513794,
-0.1267702430486679,
0.14283661544322968,
0.2729928493499756,
0.00926707312464714,
0.1664811074733734,
0.02107781171798706,
-0.20673808455467224,
-0.21063072979450226,
0.15793022513389587,
-0.14626836776733398,
-0.10519292950630188,
0.29477083683013916,
0.16506966948509216,
0.019417962059378624,
-0.011125825345516205,
-0.41323572397232056,
0.1817750632762909,
-0.03641901910305023,
-0.004477515816688538,
-0.06629291921854019,
0.07913078367710114,
0.19164219498634338,
-0.026895273476839066,
0.37726685404777527,
0.13286566734313965,
-0.14439497888088226,
0.20265254378318787,
0.22152778506278992,
0.28331539034843445,
-0.3196435272693634,
-0.3168654143810272,
-0.10069611668586731,
0.01536026131361723,
0.30649814009666443,
0.6884785294532776,
0.08139733970165253,
0.2372499704360962,
0.10051393508911133,
-0.3109854757785797,
0.22295358777046204,
-0.020465247333049774,
0.0466400682926178,
0.5463964343070984,
0.13999043405056,
-0.3324565291404724,
0.23728005588054657,
0.2519735097885132,
0.09243755787611008,
0.2494698315858841,
-0.006837792694568634,
-0.0004597119987010956,
0.1208665668964386,
0.07191215455532074,
0.3791205883026123,
-0.0603930801153183,
0.535601794719696,
-0.07906949520111084,
-0.18342560529708862,
-0.1936291754245758,
-0.10612760484218597,
0.09475794434547424,
-0.02758833020925522,
0.06097327545285225,
-0.2364516407251358,
0.358008474111557,
-0.033645980060100555,
-0.2596782445907593,
0.04617062211036682,
-0.15390899777412415,
0.1392640769481659,
-0.19821929931640625,
-0.06519512832164764,
-0.3060322403907776,
0.0937926173210144,
-0.1541672646999359,
0.4040588140487671,
-0.3358255922794342,
0.2959901690483093,
-0.06217321753501892,
0.4309235215187073,
-0.3050544857978821,
-0.009330103173851967,
0.02799217402935028,
0.07905031740665436,
0.12789641320705414,
0.10901109129190445,
0.0680752694606781,
0.2636186480522156,
0.0589400939643383,
-0.11092527210712433,
-0.4688359797000885,
-0.15915411710739136,
0.20301514863967896,
-0.008528679609298706,
0.049416106194257736,
-0.03068128600716591,
0.41166144609451294,
0.21492470800876617,
-0.18340328335762024,
-0.010774284601211548,
0.2067621797323227,
0.38939446210861206,
-0.6877526044845581,
0.13805776834487915,
0.3034944534301758,
-0.20250248908996582,
0.14689159393310547,
-0.03614317625761032,
-0.41765597462654114,
-0.24830584228038788,
0.1312696784734726,
-0.08216908574104309,
0.0702008455991745,
0.1576979011297226,
0.16917826235294342,
-0.03200636804103851,
-0.12099885940551758,
-0.030024025589227676,
0.1371438056230545,
-0.11602980643510818,
0.024316832423210144,
-0.2183523178100586,
-0.24659821391105652,
-0.09637732803821564,
-0.5737490653991699,
0.3190414309501648,
0.08918660134077072,
0.1561412811279297,
0.2560797333717346,
0.11149487644433975,
-0.04660777747631073,
-0.12486826628446579,
0.5571190118789673,
-0.18550196290016174,
-0.37692493200302124,
0.19680002331733704,
0.013088846579194069,
-0.0289814043790102,
-0.10834100842475891,
0.1454726606607437,
0.1599440574645996,
0.16091006994247437,
-0.3709371089935303,
0.21209785342216492,
0.13740909099578857,
0.09041295945644379,
0.05040242522954941,
-0.0397358164191246,
0.40857091546058655,
0.09492693096399307,
0.14405305683612823,
0.035395100712776184,
0.09420687705278397,
-0.22296534478664398,
-0.006329558789730072,
0.1614854335784912,
0.23729780316352844,
-0.12767527997493744,
-0.022360626608133316,
0.16135366261005402,
-0.07752154022455215,
0.02350778877735138,
-0.08185102790594101,
-0.18377278745174408,
0.1447622925043106,
0.332928866147995,
-0.13485530018806458,
-0.08583826571702957,
0.01069672405719757,
-0.05390332639217377,
0.1986069679260254,
0.13700802624225616,
-0.32659193873405457,
0.23282292485237122,
0.05939841270446777,
-0.3388379216194153,
0.08963889628648758,
0.08262617886066437,
-0.061328984797000885,
0.1992233395576477,
-0.23595747351646423,
-0.12628409266471863,
0.39312854409217834,
-0.093476802110672,
-0.1359138786792755,
0.49573731422424316,
0.12586916983127594,
0.023541007190942764,
-0.13189098238945007,
-0.22998890280723572,
-0.027831465005874634,
0.18751734495162964,
-0.47011807560920715,
-0.24912305176258087
] |
https://github.com/huggingface/datasets/issues/2655 | Allow the selection of multiple columns at once | Hi! Sorry for the delay.
In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example.
My issue is that my dataset is too big for memory if I load everything into pandas. | **Is your feature request related to a problem? Please describe.**
Similar to pandas, it would be great if we could select multiple columns at once.
**Describe the solution you'd like**
```python
my_dataset = ... # Has columns ['idx', 'sentence', 'label']
idx, label = my_dataset[['idx', 'label']]
```
**Describe alternatives you've considered**
we can do `[dataset[col] for col in ('idx', 'label')]`
**Additional context**
This is of course very minor.
| 45 | Allow the selection of multiple columns at once
**Is your feature request related to a problem? Please describe.**
Similar to pandas, it would be great if we could select multiple columns at once.
**Describe the solution you'd like**
```python
my_dataset = ... # Has columns ['idx', 'sentence', 'label']
idx, label = my_dataset[['idx', 'label']]
```
**Describe alternatives you've considered**
we can do `[dataset[col] for col in ('idx', 'label')]`
**Additional context**
This is of course very minor.
Hi! Sorry for the delay.
In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example.
My issue is that my dataset is too big for memory if I load everything into pandas. | [
-0.11230544745922089,
-0.30798327922821045,
-0.16178525984287262,
0.17450857162475586,
0.27680784463882446,
0.29545292258262634,
0.48300787806510925,
0.10786157846450806,
0.2709563672542572,
0.4354283809661865,
-0.10715454816818237,
0.18116050958633423,
-0.005708607845008373,
0.11102288216352463,
-0.1205763965845108,
-0.4149235785007477,
-0.14601144194602966,
0.12393821775913239,
0.10936474800109863,
0.16094033420085907,
-0.18014590442180634,
-0.40869849920272827,
-0.2840019464492798,
-0.0011806637048721313,
-0.09229636937379837,
-0.12191436439752579,
-0.31275102496147156,
-0.3032182455062866,
-0.3770621716976166,
-0.20497868955135345,
-0.019661633297801018,
0.3044016361236572,
-0.013469215482473373,
0.13821278512477875,
-0.00010265549644827843,
-0.25907522439956665,
0.12868481874465942,
0.11750273406505585,
-0.2449212521314621,
-0.13372747600078583,
-0.22025606036186218,
-0.3395722508430481,
0.28274065256118774,
-0.336161732673645,
-0.08755683898925781,
-0.1732637584209442,
-0.2556636929512024,
-0.13583803176879883,
-0.26003003120422363,
0.06589503586292267,
0.32346177101135254,
0.15289801359176636,
-0.18894442915916443,
0.002304257359355688,
0.006346680223941803,
0.12776817381381989,
-0.25790727138519287,
-0.16084684431552887,
0.4758288860321045,
-0.14748622477054596,
0.3507171869277954,
-0.00399777851998806,
-0.18676428496837616,
0.03268948942422867,
0.08362109959125519,
0.1034265086054802,
0.2566024959087372,
-0.250373512506485,
0.10668196529150009,
0.2868080735206604,
0.7255765199661255,
-0.17254841327667236,
-0.4039956331253052,
-0.15377147495746613,
0.5212611556053162,
-0.3376425504684448,
-0.21310141682624817,
0.5081318020820618,
-0.19039343297481537,
0.10007956624031067,
-0.046696338802576065,
-0.32655540108680725,
-0.07298038899898529,
0.22285330295562744,
-0.1081894189119339,
0.27322596311569214,
0.02826402336359024,
0.03926370292901993,
0.3872614800930023,
-0.0016126558184623718,
0.21524755656719208,
-0.1840662658214569,
0.17683859169483185,
0.232121080160141,
-0.7773062586784363,
-0.250190794467926,
-0.2356761395931244,
-0.1116907075047493,
0.2165343165397644,
0.1640053391456604,
0.027720857411623,
-0.10024411231279373,
-0.18284054100513458,
0.2871480882167816,
0.44553470611572266,
-0.015128983184695244,
-0.3066446781158447,
0.3155570924282074,
0.10224442183971405,
-0.05622369796037674,
0.18595869839191437,
-0.0062980614602565765,
0.027145590633153915,
0.02073349803686142,
0.21959944069385529,
0.15812084078788757,
-0.17804409563541412,
0.09761892259120941,
-0.032898902893066406,
-0.2651650011539459,
-0.08944804966449738,
-0.25673261284828186,
-0.0282297283411026,
0.36763885617256165,
0.0666409507393837,
0.3588038384914398,
-0.19160990417003632,
0.164985790848732,
0.17184409499168396,
-0.28957557678222656,
-0.24681954085826874,
0.3928825259208679,
0.054976608604192734,
-0.02918807603418827,
0.24982689321041107,
-0.025098327547311783,
-0.20885394513607025,
0.37340599298477173,
-0.040670379996299744,
-0.38819369673728943,
-0.04906152933835983,
-0.4134007394313812,
-0.014645397663116455,
0.270315021276474,
0.003730662167072296,
0.09972286969423294,
0.1696852594614029,
-0.050877925008535385,
-0.39539000391960144,
0.4790831208229065,
-0.0024671778082847595,
-0.3585243225097656,
-0.058264993131160736,
0.12347352504730225,
0.2299950271844864,
-0.12563292682170868,
-0.2516842484474182,
0.39210277795791626,
0.04485316574573517,
0.40985599160194397,
0.2616652250289917,
0.0018018390983343124,
0.015751894563436508,
-0.2986844778060913,
-0.04685734957456589,
0.3674308657646179,
-0.32420167326927185,
0.12726163864135742,
0.07684609293937683,
-0.10381151735782623,
-0.07150907069444656,
0.22608031332492828,
-0.29316797852516174,
-0.09785754233598709,
0.18052682280540466,
-0.013063520193099976,
0.21617624163627625,
-0.2442467361688614,
-0.0900665670633316,
0.08573608845472336,
0.04229350388050079,
0.09279458224773407,
0.4033912718296051,
0.22048616409301758,
-0.03065149113535881,
0.26270902156829834,
0.057953134179115295,
0.32830142974853516,
-0.05214639753103256,
0.2525752782821655,
0.19940878450870514,
-0.4831073582172394,
0.22638507187366486,
0.13782314956188202,
0.044558651745319366,
0.015186049044132233,
-0.18326017260551453,
-0.08654897660017014,
0.27376246452331543,
-0.18245850503444672,
-0.13852110505104065,
0.2540952265262604,
0.179268941283226,
0.019987192004919052,
-0.11233614385128021,
-0.3947770595550537,
-0.30110663175582886,
0.1568816602230072,
0.48843494057655334,
0.06429038941860199,
0.16964276134967804,
-0.27377426624298096,
0.039078693836927414,
0.0045269690454006195,
-0.09818589687347412,
0.2652835249900818,
0.1543954312801361,
-0.20621174573898315,
-0.0029786136001348495,
-0.10110507905483246,
-0.3993161916732788,
0.47383660078048706,
-0.22968809306621552,
0.13211825489997864,
0.027505896985530853,
0.2511873245239258,
0.06499941647052765,
0.1246289387345314,
0.16460393369197845,
-0.1319044828414917,
0.2843928337097168,
0.15175418555736542,
0.09082003682851791,
0.11256091296672821,
0.14585885405540466,
0.06468269228935242,
-0.35528451204299927,
0.11771580576896667,
0.16719220578670502,
0.1794777512550354,
0.02603500708937645,
-0.33321496844291687,
0.08463110029697418,
0.024696849286556244,
-0.1232123151421547,
0.058841951191425323,
-0.341419517993927,
0.2632935345172882,
0.11295783519744873,
-0.012340793386101723,
0.1553322672843933,
-0.10839252173900604,
-0.10473789274692535,
-0.19189615547657013,
0.16660910844802856,
0.08428935706615448,
-0.23919090628623962,
-0.024814506992697716,
-0.6293268203735352,
-0.16539698839187622,
-0.07216484844684601,
0.16293740272521973,
0.0634676069021225,
-0.002451494336128235,
0.1556059718132019,
0.20158687233924866,
0.042524345219135284,
0.11423642933368683,
0.47955965995788574,
0.17365184426307678,
-0.22300836443901062,
-0.1962164044380188,
-0.05807130038738251,
0.0025861412286758423,
0.1832001805305481,
0.20669321715831757,
0.04574129730463028,
0.1509782373905182,
0.26373305916786194,
-0.022088438272476196,
-0.1352917104959488,
-0.0007267892360687256,
0.46317973732948303,
0.1383931040763855,
0.012177426367998123,
-0.07804404199123383,
-0.4353891909122467,
-0.2944474518299103,
0.14504876732826233,
-0.20592880249023438,
0.1311480551958084,
-0.09541354328393936,
-0.06344550848007202,
0.15924760699272156,
0.19584091007709503,
-0.2035665065050125,
-0.29297348856925964,
0.5270133018493652,
-0.0790494829416275,
0.013627148233354092,
0.1328640729188919,
0.1082940623164177,
0.27607059478759766,
0.1199757307767868,
0.12611985206604004,
0.03567519411444664,
0.1787354052066803,
0.6488932371139526,
-0.12773875892162323,
-0.32546931505203247,
0.11471376568078995,
-0.06498949229717255,
-0.002017837017774582,
0.08030136674642563,
0.058191243559122086,
0.18412326276302338,
0.005946774035692215,
-0.006148548796772957,
0.18689417839050293,
0.460309773683548,
0.021434715017676353,
-0.10871117562055588,
0.25614133477211,
0.031377390027046204,
-0.0032776109874248505,
-0.04566206783056259,
-0.4483948349952698,
-0.3211631774902344,
0.23273275792598724,
-0.13095897436141968,
0.1882288157939911,
-0.1114172488451004,
-0.009425343945622444,
-0.4182293117046356,
0.06957326829433441,
0.10077687352895737,
-0.21087172627449036,
0.03733159974217415,
0.13683056831359863,
-0.12184524536132812,
-0.14738579094409943,
-0.27517765760421753,
0.1980685144662857,
0.0036962032318115234,
-0.015331165865063667,
-0.10164765268564224,
-0.18618188798427582,
-0.3659266233444214,
-0.2651931643486023,
-0.28743794560432434,
0.16335496306419373,
0.16498145461082458,
0.11001855134963989,
-0.024429872632026672,
0.08062293380498886,
-0.26689407229423523,
-0.07283575087785721,
0.34530577063560486,
-0.06534991413354874,
0.2039984166622162,
0.22252234816551208,
0.08626392483711243,
0.052485205233097076,
0.3643973767757416,
0.2674493193626404,
0.3109447956085205,
-0.012217247858643532,
-0.13675887882709503,
0.05285591632127762,
-0.5359567403793335,
-0.3218107521533966,
-0.20364540815353394,
0.12611308693885803,
0.0635131299495697,
-0.0032931026071310043,
-0.18053750693798065,
-0.23375429213047028,
0.20823292434215546,
-0.017064444720745087,
-0.08294807374477386,
0.06520412117242813,
-0.30108004808425903,
0.21615588665008545,
-0.20760563015937805,
-0.34923478960990906,
-0.31709009408950806,
0.0577971413731575,
-0.14902274310588837,
0.05224626883864403,
0.08733132481575012,
-0.2652098536491394,
-0.17171940207481384,
-0.0842929258942604,
-0.22349965572357178,
0.0026796162128448486,
0.1123490259051323,
0.22417901456356049,
0.09200473129749298,
0.235504150390625,
0.3232552111148834,
0.27593258023262024,
0.6166086792945862,
-0.1745450794696808,
-0.38379567861557007,
0.05089409276843071,
-0.3853893578052521,
-0.36691975593566895,
-0.04136187210679054,
-0.123310387134552,
-0.15692266821861267,
-0.3198366165161133,
0.4189452528953552,
-0.29654669761657715,
-0.13684312999248505,
0.34156495332717896,
0.3486960828304291,
-0.2732386887073517,
-0.5648303627967834,
-0.0781126543879509,
0.15733525156974792,
-0.14440064132213593,
0.006102755665779114,
0.20958681404590607,
0.12109597772359848,
0.026399193331599236,
-0.022158175706863403,
-0.09570296853780746,
-0.09200304746627808,
0.2835133671760559,
-0.16392697393894196,
-0.1478697955608368,
0.006845497060567141,
0.21502073109149933,
0.08522115647792816,
-0.200632244348526,
-0.13541044294834137,
0.45997288823127747,
-0.24180307984352112,
-0.3409650921821594,
-0.16026249527931213,
-0.05879240855574608,
0.5828823447227478,
0.3401702344417572,
0.21830794215202332,
0.7634495496749878,
-0.3323466181755066,
0.07736261934041977,
-0.1714491993188858,
-0.45479294657707214,
0.25378701090812683,
-0.13957931101322174,
-0.3544485569000244,
-0.44383102655410767,
0.5387898087501526,
0.07981067895889282,
-0.04913229122757912,
0.39485833048820496,
0.344294011592865,
-0.06743143498897552,
0.00004072114825248718,
0.14985771477222443,
0.827506959438324,
-0.4315551519393921,
-0.21116384863853455,
-0.4902249872684479,
-0.08412876725196838,
0.317924439907074,
-0.1431911289691925,
0.3381858468055725,
-0.24942398071289062,
-0.5191371440887451,
0.05974603444337845,
-0.0786459892988205,
0.2748968005180359,
0.12338719516992569,
-0.20356297492980957,
0.010694513097405434,
-0.4162724018096924,
0.026745883747935295,
0.07814168930053711,
0.22903722524642944,
-0.13850794732570648,
-0.30534741282463074,
-0.0736822634935379,
0.15643294155597687,
-0.15147364139556885,
-0.10418392717838287,
0.14942675828933716,
0.2186586856842041,
-0.05219900608062744,
0.06237310171127319,
-0.48425376415252686,
-0.18864619731903076,
-0.03909973055124283,
0.20169006288051605,
-0.005202732980251312,
-0.14117738604545593,
0.26148492097854614,
0.24319890141487122,
0.09406805038452148,
0.1636534333229065,
0.18167631328105927,
-0.0763617604970932,
0.08982336521148682,
-0.02933356910943985,
-0.3864741623401642,
0.0532245859503746,
0.1954735815525055,
0.0523708313703537,
-0.3014811873435974,
0.44723156094551086,
0.12160135805606842,
-0.5736990571022034,
-0.4057835638523102,
0.36362868547439575,
0.356204628944397,
-0.13174624741077423,
-0.4770759344100952,
0.007982917129993439,
0.2676306366920471,
-0.23438891768455505,
0.17715835571289062,
0.07035508751869202,
0.003115785541012883,
0.32916155457496643,
-0.013482242822647095,
0.16836470365524292,
-0.1278030127286911,
0.23698759078979492,
0.1456730216741562,
0.054069481790065765,
0.1863732486963272,
0.2619103789329529,
-0.2044367641210556,
-0.140917107462883,
-0.04705411195755005,
-0.02041696570813656,
0.055782072246074677,
0.03699837997555733,
-0.22692565619945526,
0.08653755486011505,
0.15221728384494781,
0.29395589232444763,
-0.006181195378303528,
0.1769745796918869,
-0.2811829149723053,
-0.2921188473701477,
0.01652018539607525,
0.09892444312572479,
-0.055958885699510574,
0.2511584758758545,
-0.15033119916915894,
-0.03701204061508179,
-0.30576586723327637,
0.36039280891418457,
-0.33648163080215454,
-0.09052319824695587,
-0.267850399017334,
0.11224901676177979,
0.48264241218566895,
0.10332520306110382,
-0.4487978518009186,
-0.042602550238370895,
0.27522972226142883,
0.19060231745243073,
0.3579067885875702,
-0.30080515146255493,
-0.21606546640396118,
0.040190160274505615,
0.1674359142780304,
0.28232818841934204,
0.03282530605792999,
-0.31110650300979614,
-0.24167701601982117,
-0.07237472385168076,
0.13596396148204803,
0.23521724343299866,
-0.01810624450445175,
0.03469831496477127,
0.12051651626825333,
-0.4068868160247803,
-0.2512093782424927,
0.3073612451553345,
-0.14208641648292542,
-0.10134436190128326,
0.37953710556030273,
0.16285812854766846,
0.1169070303440094,
-0.009836137294769287,
-0.594338059425354,
0.12912994623184204,
-0.062410786747932434,
-0.021227948367595673,
-0.0049671754240989685,
0.11717817187309265,
0.22630974650382996,
0.039561107754707336,
0.20114906132221222,
0.055925432592630386,
-0.11855114996433258,
0.3107333183288574,
0.14976483583450317,
0.22677013278007507,
-0.23870640993118286,
-0.48149070143699646,
-0.29714810848236084,
0.1094653457403183,
0.15564608573913574,
0.6094635725021362,
0.11711478233337402,
0.26213380694389343,
0.041783686727285385,
-0.2218046486377716,
0.27768659591674805,
-0.0027746520936489105,
0.044651877135038376,
0.5172441601753235,
0.10849736630916595,
-0.38457414507865906,
0.36766883730888367,
0.2722571790218353,
0.03275473415851593,
0.02978464588522911,
-0.011831320822238922,
0.03624352067708969,
0.06759626418352127,
0.013689156621694565,
0.36878493428230286,
-0.1322772204875946,
0.23241230845451355,
-0.036209836602211,
-0.1461418867111206,
-0.14169424772262573,
-0.15704970061779022,
0.13730451464653015,
-0.04952254146337509,
0.06447959691286087,
-0.3368619680404663,
0.3564508557319641,
-0.014976244419813156,
-0.13214805722236633,
0.10064484179019928,
-0.17826707661151886,
0.06509824097156525,
0.01905568689107895,
0.022572334855794907,
-0.2802746891975403,
0.3539922535419464,
-0.0896717756986618,
0.3283388018608093,
-0.26157107949256897,
0.30978643894195557,
0.23045894503593445,
0.34554874897003174,
-0.33010730147361755,
-0.12537124752998352,
-0.021832242608070374,
-0.018837474286556244,
-0.007564254105091095,
0.08747963607311249,
-0.10434579849243164,
0.28998708724975586,
0.22238458693027496,
-0.08569186180830002,
-0.4326574504375458,
-0.12360949069261551,
0.24596303701400757,
0.0005931202322244644,
0.11649639904499054,
0.010342033579945564,
0.3054494559764862,
0.16789846122264862,
-0.18681931495666504,
0.04685508459806442,
0.11302758753299713,
0.41213861107826233,
-0.8193484544754028,
0.09937280416488647,
0.3142162263393402,
-0.2676078677177429,
0.05312924459576607,
0.015738122165203094,
-0.31198951601982117,
-0.13694822788238525,
0.18258817493915558,
-0.04999198019504547,
-0.004855703562498093,
0.1363014131784439,
0.12820614874362946,
-0.12647809088230133,
-0.03532504662871361,
-0.04395172372460365,
-0.04695754498243332,
-0.19795116782188416,
-0.10682876408100128,
-0.224956676363945,
-0.24495509266853333,
-0.2073521614074707,
-0.4267045259475708,
0.4060289263725281,
0.07118672877550125,
0.013224773108959198,
0.22813497483730316,
0.10538356751203537,
-0.16225118935108185,
0.0006871325895190239,
0.5898200273513794,
-0.2509423792362213,
-0.397030234336853,
0.2623260021209717,
0.020080789923667908,
-0.03064487688243389,
-0.08984842896461487,
0.25433504581451416,
0.13976864516735077,
0.1256917417049408,
-0.4077950716018677,
0.23979029059410095,
0.07848142087459564,
0.21957191824913025,
0.1887875199317932,
-0.11258828639984131,
0.27857333421707153,
0.16203352808952332,
0.15205702185630798,
-0.04822087660431862,
0.1639135628938675,
-0.12644696235656738,
-0.05845249444246292,
0.15647046267986298,
0.20437543094158173,
-0.20941877365112305,
-0.007286611944437027,
0.10099248588085175,
0.056474246084690094,
-0.15976929664611816,
-0.14021697640419006,
-0.0518525168299675,
-0.07052398473024368,
0.35434186458587646,
-0.07407927513122559,
0.08843642473220825,
-0.03412463515996933,
-0.07026015222072601,
0.14767946302890778,
0.1522468775510788,
-0.2481178343296051,
0.07531237602233887,
0.09075519442558289,
-0.1930682510137558,
-0.08108310401439667,
0.145288348197937,
-0.10629460960626602,
0.27461710572242737,
-0.25962722301483154,
-0.18570584058761597,
0.3158003091812134,
-0.16117814183235168,
-0.07264452427625656,
0.5669776797294617,
0.16104348003864288,
0.038403283804655075,
-0.10692185163497925,
-0.17746782302856445,
0.007799228653311729,
0.2639755308628082,
-0.41438838839530945,
-0.13182035088539124
] |
https://github.com/huggingface/datasets/issues/2654 | Give a user feedback if the dataset he loads is streamable or not | I understand it already raises a `NotImplementedError` exception, eg:
```
>>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True)
[...]
NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet
```
| **Is your feature request related to a problem? Please describe.**
I would love to know if a `dataset` is with the current implementation streamable or not.
**Describe the solution you'd like**
We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive.
**Describe alternatives you've considered**
Add a new metadata tag for "streaming"
| 30 | Give a user feedback if the dataset he loads is streamable or not
**Is your feature request related to a problem? Please describe.**
I would love to know if a `dataset` is with the current implementation streamable or not.
**Describe the solution you'd like**
We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive.
**Describe alternatives you've considered**
Add a new metadata tag for "streaming"
I understand it already raises a `NotImplementedError` exception, eg:
```
>>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True)
[...]
NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet
```
| [
-0.31214702129364014,
0.10842512547969818,
-0.09980057179927826,
0.06170525401830673,
0.1377478837966919,
-0.10339789092540741,
0.18258289992809296,
0.2757679224014282,
-0.03482210636138916,
0.2482774555683136,
0.23722504079341888,
0.22120103240013123,
-0.4187544584274292,
0.22282101213932037,
-0.24981319904327393,
-0.10577444732189178,
-0.19407609105110168,
0.22667992115020752,
0.19736067950725555,
0.024129711091518402,
0.05008140206336975,
-0.14047281444072723,
0.12590773403644562,
-0.22754554450511932,
0.0955907329916954,
0.04082248732447624,
0.277047723531723,
0.003272712230682373,
-0.4309591054916382,
-0.40940365195274353,
-0.12647196650505066,
0.5943683981895447,
0.1119765043258667,
0.3047807514667511,
-0.000106438783404883,
-0.1363658308982849,
0.4294654130935669,
-0.06463311612606049,
-0.41667088866233826,
-0.28114569187164307,
-0.27099916338920593,
-0.045695237815380096,
0.3828910291194916,
-0.0648992508649826,
-0.2366083264350891,
0.000029833056032657623,
0.1893444061279297,
-0.25075477361679077,
0.3980908989906311,
0.30403807759284973,
0.18413464725017548,
0.1431601345539093,
-0.16896593570709229,
0.11031947284936905,
0.26202699542045593,
0.2505023777484894,
-0.23536843061447144,
0.1992797553539276,
0.13442036509513855,
0.33042111992836,
-0.3621216118335724,
0.3760131597518921,
-0.10805757343769073,
0.027885323390364647,
0.2396204173564911,
-0.11627387255430222,
-0.2675049901008606,
-0.35871514678001404,
-0.10972150415182114,
0.39161738753318787,
0.8121818900108337,
-0.06779389083385468,
-0.26692473888397217,
-0.27998682856559753,
0.2192744016647339,
-0.1652313768863678,
0.27075859904289246,
0.07791169732809067,
-0.30871427059173584,
0.22897182404994965,
-0.3739490807056427,
-0.30589935183525085,
-0.4223288595676422,
0.0608525425195694,
0.0020896941423416138,
0.28765425086021423,
0.04542709141969681,
-0.05642644315958023,
0.26337912678718567,
0.184820756316185,
0.22921867668628693,
0.043178096413612366,
0.02347031608223915,
-0.022735964506864548,
-0.30787193775177,
-0.33802810311317444,
0.04733869060873985,
-0.16073063015937805,
0.1749165654182434,
0.34953683614730835,
0.36005058884620667,
0.17479723691940308,
-0.06864608824253082,
0.26104429364204407,
0.303085058927536,
-0.004379307851195335,
0.11630384624004364,
-0.29841336607933044,
0.32199716567993164,
0.16303984820842743,
0.13934390246868134,
-0.1453951597213745,
0.15189135074615479,
0.10234211385250092,
0.1967499554157257,
0.13892345130443573,
0.41906100511550903,
-0.17866107821464539,
-0.1202380359172821,
0.04408479109406471,
-0.20554691553115845,
-0.3528239130973816,
0.03038182482123375,
0.21170362830162048,
-0.22658580541610718,
0.18789300322532654,
-0.11772547662258148,
0.16218800842761993,
0.1279754489660263,
-0.36757177114486694,
0.009399903938174248,
0.03821052610874176,
-0.21828129887580872,
0.20386169850826263,
0.1490742713212967,
-0.5337651371955872,
-0.08317140489816666,
0.013075928203761578,
-0.15494944155216217,
-0.031311698257923126,
0.35128504037857056,
-0.1534523069858551,
-0.0033807754516601562,
0.11384759843349457,
-0.01618077978491783,
-0.09841246157884598,
-0.008227448910474777,
0.10183089971542358,
-0.2609633803367615,
0.23101326823234558,
-0.08875634521245956,
-0.22457334399223328,
0.0018800273537635803,
0.2684469223022461,
-0.23415516316890717,
-0.15325452387332916,
-0.19819766283035278,
0.5610992908477783,
-0.4761667549610138,
-0.2225429117679596,
0.1492542028427124,
0.30534374713897705,
-0.09724192321300507,
-0.1726650446653366,
-0.02842000126838684,
0.44560563564300537,
-0.2409357726573944,
-0.17909476161003113,
-0.31716305017471313,
-0.42646729946136475,
0.3974466323852539,
0.07746046781539917,
-0.176291361451149,
0.07929547131061554,
0.05245135724544525,
0.09325315058231354,
0.5550782680511475,
-0.06977862119674683,
-0.11101815849542618,
0.5365386605262756,
-0.32369476556777954,
0.3182696998119354,
0.32173189520835876,
0.1368829756975174,
0.3014836311340332,
0.03137398511171341,
0.05066145583987236,
0.3943997621536255,
-0.09760433435440063,
-0.013769200071692467,
-0.3138165771961212,
-0.29595863819122314,
0.19709356129169464,
0.2616508901119232,
0.15033236145973206,
0.19464212656021118,
0.1730068325996399,
-0.17894098162651062,
0.15962132811546326,
0.025136414915323257,
-0.035397522151470184,
-0.07468260824680328,
0.4696786403656006,
-0.00592406839132309,
-0.39080891013145447,
0.08821285516023636,
-0.3534204959869385,
0.009236667305231094,
0.12177187204360962,
0.09983474016189575,
0.07569672167301178,
-0.3154945373535156,
-0.1760159730911255,
-0.14099948108196259,
-0.11864307522773743,
0.04586323723196983,
0.19925299286842346,
0.24427688121795654,
-0.23805935680866241,
0.09903644025325775,
-0.2280891388654709,
0.24912644922733307,
-0.21654236316680908,
0.20834189653396606,
-0.22820647060871124,
0.15885955095291138,
0.10627491772174835,
-0.07241508364677429,
0.1579427570104599,
-0.30280324816703796,
0.18095028400421143,
0.015652531757950783,
-0.09017222374677658,
0.3711768388748169,
0.04644153639674187,
0.5940023064613342,
0.07155527919530869,
0.2712285816669464,
0.22726282477378845,
-0.28360581398010254,
0.19095668196678162,
0.30336835980415344,
0.011006479151546955,
0.007328793406486511,
-0.37513792514801025,
0.2143038958311081,
0.11327694356441498,
-0.10765274614095688,
0.18071703612804413,
-0.1787663847208023,
0.13052503764629364,
-0.07776261121034622,
-0.33117252588272095,
-0.021608024835586548,
0.16094020009040833,
0.042935699224472046,
-0.16341370344161987,
0.02938339114189148,
-0.36339348554611206,
-0.17847871780395508,
0.2748422920703888,
0.06636965274810791,
-0.049643442034721375,
0.5686529278755188,
-0.011993408203125,
-0.32847464084625244,
0.29524609446525574,
0.21529220044612885,
0.3742581307888031,
0.21927215158939362,
0.2608889043331146,
0.10186108946800232,
0.32890480756759644,
-0.12841099500656128,
0.10908368229866028,
0.0433940663933754,
-0.11855533719062805,
0.18518561124801636,
0.0774020403623581,
0.042514849454164505,
-0.4282301664352417,
-0.19885139167308807,
0.029616212472319603,
0.18148216605186462,
-0.08360010385513306,
-0.05992627143859863,
-0.09862000495195389,
-0.15974768996238708,
0.0016256021335721016,
-0.18292155861854553,
-0.12299254536628723,
-0.12213201820850372,
0.2737377882003784,
0.6344079971313477,
-0.26174190640449524,
-0.006678834557533264,
-0.24722369015216827,
0.4284985065460205,
-0.15422748029232025,
-0.03653981536626816,
-0.30524131655693054,
0.008520720526576042,
0.12650519609451294,
0.18049021065235138,
0.1358107626438141,
-0.06035296618938446,
0.7215878367424011,
0.22353047132492065,
0.21809782087802887,
-0.48335176706314087,
-0.29572588205337524,
0.1400231271982193,
0.06199975311756134,
0.09277648478746414,
-0.0645027905702591,
0.24192483723163605,
0.17808416485786438,
-0.41238167881965637,
0.06390271335840225,
-0.06455440074205399,
-0.014477217569947243,
0.2115996778011322,
0.04638906940817833,
0.291201114654541,
-0.06004927307367325,
-0.439412385225296,
-0.3788753151893616,
-0.5287726521492004,
0.2629505395889282,
-0.013258786872029305,
0.07579723000526428,
0.269079327583313,
0.07192438095808029,
-0.13982997834682465,
0.14984214305877686,
0.09194457530975342,
-0.16397757828235626,
-0.3578224778175354,
0.04252953827381134,
-0.10433615744113922,
-0.016340065747499466,
0.06379805505275726,
0.11838944256305695,
-0.17117376625537872,
0.5343640446662903,
-0.38512754440307617,
-0.05832134932279587,
-0.1136074960231781,
-0.2023051679134369,
-0.11552776396274567,
-0.5180272459983826,
0.27435335516929626,
0.15757521986961365,
-0.22817657887935638,
0.11273784190416336,
-0.02846466563642025,
-0.2289389967918396,
0.1795024871826172,
0.11579518765211105,
0.06848393380641937,
0.4184277355670929,
0.024206627160310745,
0.39332932233810425,
0.04016713798046112,
-0.04784499481320381,
0.46358758211135864,
0.21074441075325012,
0.2624152898788452,
0.03863164782524109,
-0.014624083414673805,
0.1145382821559906,
0.07273141294717789,
-0.34400850534439087,
0.38163381814956665,
-0.010327579453587532,
-0.36191117763519287,
-0.32081958651542664,
-0.05079449340701103,
-0.2861061096191406,
-0.15682129561901093,
0.31887009739875793,
-0.03350555896759033,
0.18134576082229614,
-0.16496481001377106,
0.006160333752632141,
0.2549757957458496,
-0.2481226623058319,
0.002446901984512806,
0.39575523138046265,
0.4271702766418457,
-0.20076891779899597,
-0.2212175577878952,
0.16682152450084686,
-0.3207589089870453,
0.14395612478256226,
-0.09521418064832687,
0.13457424938678741,
-0.28149649500846863,
-0.14874285459518433,
0.1307980716228485,
0.047102056443691254,
0.17212991416454315,
-0.5037602782249451,
-0.3077433109283447,
-0.12309938669204712,
0.18044927716255188,
0.12462378293275833,
-0.11564396321773529,
-0.1346151977777481,
-0.008113802410662174,
-0.08410605788230896,
0.20515286922454834,
-0.32975706458091736,
0.05227474495768547,
0.10616985708475113,
-0.13605846464633942,
-0.12003062665462494,
-0.3209199011325836,
-0.08395150303840637,
0.11415416747331619,
-0.23055541515350342,
0.17543795704841614,
-0.158316969871521,
-0.24608895182609558,
-0.3209344446659088,
-0.3235277831554413,
0.24427737295627594,
0.1414480209350586,
0.2715744972229004,
0.26212912797927856,
0.09923125058412552,
0.03475121036171913,
0.012847330421209335,
0.06798723340034485,
0.08147940039634705,
0.3601875305175781,
0.40023937821388245,
0.17363481223583221,
-0.28353485465049744,
0.012099113315343857,
-0.1100333109498024,
0.1290234476327896,
0.2547205090522766,
-0.07255018502473831,
0.3577907681465149,
0.387359082698822,
0.2700960040092468,
-0.31728315353393555,
0.13794541358947754,
0.26314017176628113,
-0.3558492362499237,
-0.3819205164909363,
-0.5331365466117859,
0.5077524781227112,
-0.034048646688461304,
-0.22490194439888,
0.3006298542022705,
-0.13972486555576324,
-0.21132208406925201,
0.1403772085905075,
0.0077701956033706665,
1.1393030881881714,
-0.081336110830307,
-0.2863716781139374,
0.02814771607518196,
-0.2087210714817047,
0.3228912651538849,
-0.6179024577140808,
0.017121572047472,
-0.13278838992118835,
-0.3834487795829773,
-0.23881182074546814,
-0.0798729807138443,
0.19858112931251526,
0.12350339442491531,
-0.6832165718078613,
-0.0016385501949116588,
-0.08938463032245636,
0.18612898886203766,
0.004375946708023548,
0.6372835636138916,
-0.3760339021682739,
-0.175962433218956,
-0.44833049178123474,
0.13943567872047424,
-0.24471603333950043,
0.24599355459213257,
-0.12751197814941406,
-0.1912703961133957,
0.4177612364292145,
-0.18143202364444733,
-0.338159441947937,
-0.11814873665571213,
-0.31525811553001404,
-0.2668798565864563,
-0.4614507555961609,
-0.35430073738098145,
0.06804896891117096,
0.05074775591492653,
-0.17401202023029327,
-0.09376753866672516,
-0.24491050839424133,
0.1707957237958908,
-0.1793263554573059,
0.14767543971538544,
-0.14035703241825104,
-0.02487451210618019,
0.41863104701042175,
-0.20089703798294067,
-0.07209368050098419,
0.4372832477092743,
0.01241993810981512,
-0.3833428621292114,
0.10310742259025574,
-0.28478431701660156,
0.2615053057670593,
-0.28771188855171204,
-0.019564151763916016,
-0.09679314494132996,
-0.3447512090206146,
-0.11515647172927856,
0.16127970814704895,
0.08265205472707748,
-0.009264168329536915,
-0.0857052132487297,
0.2834559977054596,
-0.065195731818676,
-0.2721078395843506,
0.3171854019165039,
0.09301315993070602,
-0.2397342175245285,
0.007563300430774689,
-0.025570135563611984,
-0.3257601261138916,
-0.3389289379119873,
-0.1403234750032425,
0.12018241733312607,
-0.024948664009571075,
-0.01742865890264511,
0.04686751216650009,
0.09075020253658295,
0.06683675944805145,
-0.04615461453795433,
0.1389407515525818,
0.12200621515512466,
-0.03997136652469635,
-0.16427560150623322,
-0.20679928362369537,
0.08374997973442078,
-0.07638546824455261,
0.2557647228240967,
-0.35811591148376465,
-0.29785239696502686,
0.14457331597805023,
0.04980744421482086,
-0.3824308514595032,
-0.3346647620201111,
-0.14565342664718628,
0.02200102061033249,
0.2006402313709259,
0.13485577702522278,
0.2724144756793976,
-0.14503149688243866,
0.08512584865093231,
-0.0014293156564235687,
-0.1600331813097,
-0.18322008848190308,
-0.07499899715185165,
0.17629922926425934,
0.2494761347770691,
0.08028735220432281,
-0.1696706861257553,
-0.15459707379341125,
-0.11271101236343384,
0.031631238758563995,
0.26935750246047974,
0.08639488369226456,
-0.10767023265361786,
0.1121906116604805,
0.2154083102941513,
0.20126298069953918,
-0.46989309787750244,
-0.13301494717597961,
-0.13610655069351196,
0.2858884036540985,
0.13753291964530945,
-0.1758604645729065,
-0.02333916537463665,
-0.0657677948474884,
-0.2573372423648834,
0.1921185851097107,
0.5488526225090027,
0.23205283284187317,
0.11281739175319672,
0.1030886322259903,
0.08541443943977356,
-0.11167555302381516,
0.361966609954834,
0.34290289878845215,
-0.24789051711559296,
-0.025295395404100418,
0.19757026433944702,
0.3165721297264099,
0.03725475072860718,
-0.011716565117239952,
-0.1420813947916031,
-0.23070983588695526,
0.17557165026664734,
-0.0492807999253273,
0.12661494314670563,
0.22020795941352844,
0.30799198150634766,
0.05769873410463333,
0.043665725737810135,
-0.10604247450828552,
0.36549466848373413,
0.22470420598983765,
-0.05373939126729965,
0.01653672382235527,
0.11162763833999634,
0.0952797383069992,
0.06405436247587204,
-0.14402028918266296,
-0.07323742657899857,
0.46557867527008057,
0.14211097359657288,
0.021919522434473038,
-0.12038420885801315,
-0.3483920097351074,
-0.064710333943367,
0.40367504954338074,
-0.13326796889305115,
0.330585241317749,
0.36214324831962585,
0.23711472749710083,
0.1317165195941925,
0.04748181626200676,
-0.2780635356903076,
-0.15521620213985443,
0.031215202063322067,
0.3018754720687866,
-0.1466691493988037,
-0.3033551275730133,
-0.3367459177970886,
0.08959455788135529,
0.0538846030831337,
0.17747041583061218,
0.02366764098405838,
0.25558263063430786,
0.04800200089812279,
-0.05028621852397919,
-0.04248454421758652,
-0.15954995155334473,
0.3600122332572937,
-0.4073134958744049,
-0.022847043350338936,
0.09442228078842163,
0.1864827275276184,
0.4190037250518799,
0.1505403369665146,
0.027803221717476845,
0.22216659784317017,
0.060684241354465485,
0.12191279232501984,
-0.04566621407866478,
-0.04028698056936264,
0.018027998507022858,
0.2732660174369812,
0.36327269673347473,
-0.006075296550989151,
-0.02762259542942047,
0.241256445646286,
-0.2499459981918335,
0.46580377221107483,
-0.11588336527347565,
-0.10679115355014801,
-0.31393134593963623,
-0.061418674886226654,
0.5476939678192139,
-0.20585164427757263,
-0.20137472450733185,
-0.3312000632286072,
-0.28270599246025085,
-0.05629973113536835,
0.21696363389492035,
0.08527246117591858,
-0.09550865739583969,
-0.11602899432182312,
0.09902703762054443,
0.21641913056373596,
0.13886865973472595,
0.13111230731010437,
-0.05071297287940979,
-0.2327350676059723,
-0.14795494079589844,
-0.6127148270606995,
0.10116960108280182,
-0.014172647148370743,
0.07762786746025085,
0.14028167724609375,
0.09241972863674164,
0.037285447120666504,
0.5932245850563049,
-0.20857878029346466,
-0.20351234078407288,
-0.15000315010547638,
-0.050296321511268616,
-0.42352280020713806,
-0.11817614734172821,
0.31402069330215454,
0.03589288517832756,
-0.2146659642457962,
-0.14179283380508423,
0.19937795400619507,
-0.11840908229351044,
0.06493453681468964,
-0.22699344158172607,
-0.11332447826862335,
-0.044030606746673584,
0.26981568336486816,
0.5836313366889954,
-0.03278278559446335,
0.6000109910964966,
-0.24259397387504578,
-0.07789936661720276,
0.04917695373296738,
-0.0037100589834153652,
-0.17753969132900238,
-0.08049210160970688,
0.15030838549137115,
0.5112544298171997,
0.3086290657520294,
0.052161045372486115,
-0.4756873846054077,
0.5256842374801636,
-0.13721811771392822,
-0.1262241005897522,
-0.3493211567401886,
-0.05945297330617905,
0.2060449719429016,
0.13059423863887787,
-0.012977370992302895,
0.08982541412115097,
0.1220911368727684,
-0.14285849034786224,
-0.4350019097328186,
-0.23685725033283234,
0.43115589022636414,
-0.16964499652385712,
-0.09173354506492615,
0.0775056928396225,
0.13490547239780426,
0.1489226520061493,
0.29170361161231995,
-0.6755433082580566,
0.2758551836013794,
0.2459857016801834,
-0.22962290048599243,
0.2842266261577606,
0.3128633201122284,
0.25139471888542175,
0.08038198947906494,
0.0008699297904968262,
0.2112133651971817,
0.032169852405786514,
-0.16106103360652924,
-0.08381648361682892,
-0.24690650403499603
] |
https://github.com/huggingface/datasets/issues/2653 | Add SD task for SUPERB | Note that this subset requires us to:
* generate the LibriMix corpus from LibriSpeech
* prepare the corpus for diarization
As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data
Then we can use the URLs for the files to load the data in `superb`'s dataset loading script.
For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :) | Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization).
Steps:
- [x] Generate the LibriMix corpus
- [x] Prepare the corpus for diarization
- [x] Upload these files to the superb-data repo
- [x] Transcribe the corresponding s3prl processing of these files into our superb loading script
- [ ] README: tags + description sections
Related to #2619.
cc: @lewtun
| 94 | Add SD task for SUPERB
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization).
Steps:
- [x] Generate the LibriMix corpus
- [x] Prepare the corpus for diarization
- [x] Upload these files to the superb-data repo
- [x] Transcribe the corresponding s3prl processing of these files into our superb loading script
- [ ] README: tags + description sections
Related to #2619.
cc: @lewtun
Note that this subset requires us to:
* generate the LibriMix corpus from LibriSpeech
* prepare the corpus for diarization
As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data
Then we can use the URLs for the files to load the data in `superb`'s dataset loading script.
For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :) | [
-0.23873302340507507,
-0.15576955676078796,
0.006651680916547775,
0.11123599112033844,
0.37771081924438477,
-0.19912642240524292,
0.008201584219932556,
-0.13701999187469482,
0.11175189912319183,
0.3464580178260803,
-0.3380064368247986,
0.4965122640132904,
-0.15013377368450165,
0.44433242082595825,
0.21384306252002716,
0.20122025907039642,
0.0950581282377243,
0.20730522274971008,
-0.29916465282440186,
0.051345862448215485,
-0.14978381991386414,
-0.11977143585681915,
-0.16338184475898743,
-0.1436895877122879,
-0.20408318936824799,
0.21936094760894775,
0.07276806235313416,
0.0811631828546524,
-0.29055851697921753,
-0.2938539683818817,
0.16270078718662262,
0.5292003750801086,
0.4015755355358124,
0.3271009922027588,
-0.00010832505358848721,
-0.19003599882125854,
0.3640154004096985,
-0.40764644742012024,
-0.5083063840866089,
-0.1703518182039261,
-0.22255906462669373,
0.2536757290363312,
-0.15919189155101776,
-0.09340465813875198,
-0.625190019607544,
-0.13633188605308533,
0.01337512955069542,
-0.11008581519126892,
0.25968414545059204,
0.1732192039489746,
0.22598859667778015,
-0.05559028685092926,
-0.09559652209281921,
-0.1510584056377411,
0.1919824182987213,
0.250214159488678,
-0.11177077889442444,
-0.022680986672639847,
0.18212243914604187,
0.014634458348155022,
0.14113664627075195,
0.2883917987346649,
-0.13534945249557495,
-0.12514881789684296,
0.6657470464706421,
-0.1592930406332016,
-0.03402736037969589,
-0.04761672765016556,
-0.06538809090852737,
0.2897384762763977,
0.6062101125717163,
-0.23076125979423523,
-0.3986755609512329,
0.13176614046096802,
0.048964474350214005,
-0.13678812980651855,
-0.05113349109888077,
-0.16705414652824402,
-0.1804628074169159,
-0.009784966707229614,
-0.15932106971740723,
-0.29002460837364197,
0.016899436712265015,
-0.09919305145740509,
0.1257365494966507,
0.4029800295829773,
-0.21496973931789398,
-0.24862408638000488,
0.10877528786659241,
-0.19184985756874084,
-0.25030025839805603,
0.2007250338792801,
0.24914532899856567,
0.12138229608535767,
-0.23235364258289337,
-0.12403503060340881,
0.21900254487991333,
-0.22821646928787231,
0.013482306152582169,
0.013471782207489014,
0.25552061200141907,
0.06636878848075867,
0.07365591824054718,
0.046775173395872116,
0.21220752596855164,
0.3263137638568878,
0.3418327569961548,
-0.07581447809934616,
0.12669818103313446,
0.3235272169113159,
0.12131492793560028,
-0.04695554077625275,
-0.4792710244655609,
0.050693560391664505,
-0.3832933306694031,
0.12917667627334595,
0.03265397995710373,
-0.29105278849601746,
-0.1750214546918869,
-0.13623952865600586,
0.22217336297035217,
0.08945274353027344,
0.19042399525642395,
0.6082091927528381,
-0.1698203831911087,
0.016283344477415085,
-0.1385703980922699,
0.19913651049137115,
-0.22458507120609283,
0.3818305730819702,
-0.12505222856998444,
0.12181608378887177,
-0.20758916437625885,
0.20607781410217285,
0.1558457762002945,
-0.3326052725315094,
0.13543125987052917,
-0.03655322268605232,
0.09257421642541885,
-0.035097986459732056,
-0.31067800521850586,
0.256038099527359,
0.1394774615764618,
0.011242251843214035,
0.2154383361339569,
-0.02426913008093834,
-0.4070394039154053,
-0.018533214926719666,
-0.2668023109436035,
0.09708014130592346,
0.22980380058288574,
-0.30902183055877686,
-0.24026571214199066,
0.2687862813472748,
-0.21128877997398376,
-0.2399875819683075,
-0.20934155583381653,
0.2070344239473343,
-0.025995872914791107,
-0.35655322670936584,
-0.047256939113140106,
-0.1550932675600052,
-0.18735799193382263,
0.08068762719631195,
0.3618185520172119,
0.0493873655796051,
0.14107468724250793,
-0.23852284252643585,
-0.06132233887910843,
-0.021331988275051117,
0.152676522731781,
-0.022349290549755096,
0.10864046216011047,
0.154988631606102,
0.04543032497167587,
0.3059645891189575,
0.021338559687137604,
-0.7309914827346802,
-0.2956559658050537,
-0.025389116257429123,
-0.07040172815322876,
0.04739563167095184,
0.07588112354278564,
0.026697833091020584,
0.5626788139343262,
-0.36665892601013184,
0.026768773794174194,
0.4169297218322754,
0.10459721088409424,
0.02718326263129711,
-0.11378128826618195,
-0.1186167374253273,
0.15510518848896027,
0.3331933617591858,
-0.14123745262622833,
-0.01324685662984848,
-0.020138204097747803,
0.5371372103691101,
0.11159387975931168,
-0.21538984775543213,
0.13519752025604248,
-0.030437760055065155,
0.19726479053497314,
0.25059908628463745,
0.018921950832009315,
-0.13430538773536682,
-0.15660277009010315,
-0.07148071378469467,
0.3544767200946808,
0.36446136236190796,
-0.24443598091602325,
-0.48128223419189453,
-0.018653716892004013,
-0.20858511328697205,
-0.2348950356245041,
-0.000870823860168457,
0.19661247730255127,
0.17948774993419647,
0.4501172602176666,
-0.29480814933776855,
-0.10312314331531525,
-0.4538336992263794,
-0.1539294272661209,
-0.07763420790433884,
-0.04576082155108452,
0.027646468952298164,
-0.07101307809352875,
-0.07545522600412369,
0.2740699350833893,
0.4282013773918152,
-0.01341172307729721,
0.0006371642230078578,
0.01982111856341362,
0.36060187220573425,
-0.12046340107917786,
0.27161532640457153,
-0.033098265528678894,
0.4144017696380615,
0.020040491595864296,
-0.5199394822120667,
0.15165869891643524,
0.06076684221625328,
0.06110626459121704,
-0.03367973119020462,
-0.08520769327878952,
0.08017341792583466,
-0.21565841138362885,
0.11415606737136841,
0.24574308097362518,
-0.20124444365501404,
0.2822176516056061,
0.016078133136034012,
-0.14298662543296814,
-0.10030363500118256,
-0.08376501500606537,
-0.07532341778278351,
0.18222615122795105,
0.03749009594321251,
-0.29564082622528076,
0.013417817652225494,
0.1434488594532013,
-0.15083184838294983,
0.2064891755580902,
-0.001338224858045578,
-0.09631533175706863,
-0.206892728805542,
0.11922319233417511,
-0.17253375053405762,
0.05884549021720886,
0.22694310545921326,
0.28866612911224365,
-0.0056763458997011185,
-0.08356943726539612,
-0.13001704216003418,
0.13594983518123627,
-0.09626853466033936,
-0.018692180514335632,
0.3149697184562683,
0.019433554261922836,
-0.011138773523271084,
-0.431069940328598,
0.05006924644112587,
-0.05655210465192795,
-0.02384684421122074,
-0.08443517982959747,
-0.4412800073623657,
-0.045211248099803925,
-0.6270555257797241,
0.0019323788583278656,
-0.43875136971473694,
0.12301880121231079,
0.18730102479457855,
0.25414523482322693,
0.00013114884495735168,
-0.32703787088394165,
0.2696534991264343,
0.3459559977054596,
0.2631191313266754,
-0.25047069787979126,
-0.0477188378572464,
-0.3070182800292969,
-0.2446107268333435,
-0.006102588027715683,
0.15910787880420685,
0.15298177301883698,
0.01196211762726307,
0.05852388218045235,
0.010565593838691711,
0.22021381556987762,
-0.24676096439361572,
-0.1310712695121765,
0.2598436176776886,
-0.05942918360233307,
0.18962913751602173,
0.04868553951382637,
-0.008442208170890808,
0.2503091096878052,
-0.08310679346323013,
0.05419066175818443,
-0.3319963812828064,
-0.15469002723693848,
-0.04133289307355881,
0.09509383887052536,
-0.005971068982034922,
-0.3511022627353668,
-0.38646525144577026,
-0.17135022580623627,
-0.4853639602661133,
-0.2212010771036148,
-0.11974552273750305,
0.09708833694458008,
-0.05555648356676102,
-0.3157559633255005,
0.025246400386095047,
0.15327641367912292,
0.43914318084716797,
-0.20172470808029175,
-0.09282221645116806,
0.21072770655155182,
-0.4319676458835602,
-0.17959646880626678,
-0.16295082867145538,
-0.06131906807422638,
0.29382064938545227,
0.034335263073444366,
-0.19300870597362518,
-0.07727323472499847,
0.14868128299713135,
-0.14295120537281036,
0.06080961972475052,
-0.04306230694055557,
0.3532963693141937,
0.12417645007371902,
-0.0949404239654541,
-0.18351513147354126,
-0.2840721905231476,
0.08021987974643707,
0.3533504903316498,
0.15153436362743378,
-0.07023140043020248,
0.024417180567979813,
-0.03954053297638893,
0.3105427622795105,
0.06572949886322021,
-0.03051270917057991,
0.2941798269748688,
0.021621979773044586,
0.15717235207557678,
-0.0036712586879730225,
0.16096332669258118,
0.41164925694465637,
0.09167244285345078,
-0.2100938856601715,
0.5984885692596436,
0.20122691988945007,
0.07221899181604385,
-0.12211202830076218,
-0.04307791590690613,
-0.4960401952266693,
-0.12290579080581665,
-0.12758731842041016,
-0.19472388923168182,
0.006691992282867432,
-0.07123665511608124,
0.16881999373435974,
0.16626964509487152,
-0.050268612802028656,
0.3053998053073883,
0.18464255332946777,
0.3476545810699463,
0.019154129549860954,
-0.16707681119441986,
-0.22362478077411652,
-0.2916167080402374,
0.16893954575061798,
0.22476054728031158,
0.13013125956058502,
-0.17033497989177704,
-0.32541781663894653,
-0.039357200264930725,
-0.19530291855335236,
0.0927153080701828,
-0.36380860209465027,
0.1425374150276184,
0.08325816690921783,
0.09210745990276337,
-0.1773829311132431,
0.002286601811647415,
-0.11711420118808746,
-0.045259907841682434,
-0.04779760167002678,
0.03680573031306267,
-0.4489266872406006,
-0.08137942105531693,
0.23491916060447693,
-0.03244136646389961,
-0.13182727992534637,
-0.19539548456668854,
-0.037541963160037994,
-0.682218611240387,
-0.05876433849334717,
0.11679477989673615,
0.08172421902418137,
0.29427197575569153,
-0.05016213655471802,
-0.11177119612693787,
0.21296048164367676,
0.10415483266115189,
0.13878071308135986,
0.11174283921718597,
0.2444799244403839,
0.2800197899341583,
0.11652971804141998,
0.2486376315355301,
0.06916296482086182,
0.41423535346984863,
0.5681800246238708,
-0.10525357723236084,
-0.06243826448917389,
0.002276068553328514,
-0.13005860149860382,
0.389620840549469,
0.12064750492572784,
0.20801334083080292,
0.12842829525470734,
-0.010366376489400864,
-0.18305666744709015,
-0.7336471676826477,
0.35494759678840637,
0.1393645852804184,
0.08527953177690506,
-0.18308819830417633,
-0.6046621799468994,
0.39445334672927856,
0.1575479507446289,
-0.14955073595046997,
0.08656205236911774,
-0.14253613352775574,
-0.35773664712905884,
0.27066880464553833,
0.15639162063598633,
1.0518200397491455,
-0.2577357292175293,
-0.02052939310669899,
-0.06825665384531021,
-0.11025305092334747,
0.2670952379703522,
-0.28118813037872314,
0.1263156235218048,
-0.03639809787273407,
-0.049960918724536896,
0.048907309770584106,
0.2216237485408783,
-0.08256559818983078,
0.11102963984012604,
-0.3840636909008026,
0.24602572619915009,
0.12158292531967163,
0.0690217986702919,
0.018895486369729042,
0.29898735880851746,
0.02006063424050808,
-0.37318873405456543,
-0.2414264678955078,
0.1576666235923767,
-0.14481468498706818,
0.23744095861911774,
-0.14956620335578918,
0.02535342052578926,
0.10366499423980713,
-0.11331265419721603,
-0.015233561396598816,
0.2427361011505127,
0.06366921961307526,
-0.31525593996047974,
-0.20608338713645935,
-0.1548042893409729,
0.0955948680639267,
0.30370286107063293,
-0.15157091617584229,
0.22970786690711975,
-0.1060805469751358,
0.12115132808685303,
0.06873495131731033,
0.31636884808540344,
0.06354203820228577,
0.0734943151473999,
0.39561980962753296,
-0.1521240472793579,
0.2492261528968811,
0.012368634343147278,
0.29811951518058777,
-0.1289324164390564,
-0.2205711305141449,
-0.3212552070617676,
0.029326405376195908,
-0.047005344182252884,
0.08646811544895172,
0.25254377722740173,
-0.030652588233351707,
-0.18105821311473846,
0.20062777400016785,
-0.06284916400909424,
-0.46765297651290894,
0.22131550312042236,
-0.03012479469180107,
-0.06680023670196533,
-0.038980353623628616,
0.2198365330696106,
0.1138351559638977,
-0.3127252161502838,
-0.0027810968458652496,
0.15303169190883636,
-0.03039734810590744,
-0.3113153278827667,
-0.48534369468688965,
-0.233303040266037,
0.008499868214130402,
0.0897158533334732,
0.1098417267203331,
-0.30462247133255005,
-0.0016213743947446346,
0.6208375096321106,
0.02621527388691902,
-0.21266940236091614,
-0.19558340311050415,
0.20604074001312256,
-0.2056100070476532,
0.2131330668926239,
0.17549704015254974,
0.44632232189178467,
-0.029449597001075745,
0.2326044887304306,
-0.046070344746112823,
0.11750387400388718,
-0.41526228189468384,
-0.17242272198200226,
-0.45068520307540894,
0.3689129650592804,
0.02898421511054039,
0.05651549994945526,
0.1596820056438446,
-0.11165466904640198,
0.2143557369709015,
-0.06048920005559921,
0.005414614453911781,
-0.1985803246498108,
-0.009350860491394997,
0.09744539111852646,
0.23212480545043945,
0.07164520025253296,
-0.2855544984340668,
0.07761798799037933,
-0.2219575196504593,
-0.2022411972284317,
0.3412209451198578,
0.269565224647522,
-0.06118600070476532,
0.3556399345397949,
0.033033717423677444,
-0.04325941950082779,
-0.038466550409793854,
0.12939760088920593,
0.12086458504199982,
0.35430240631103516,
0.03888615220785141,
0.10905103385448456,
0.13205121457576752,
-0.18861201405525208,
0.062081228941679,
0.17770379781723022,
0.42663025856018066,
-0.04617047309875488,
0.17008519172668457,
-0.001513555645942688,
-0.015882564708590508,
0.2375984787940979,
0.6916753053665161,
0.05416017025709152,
-0.059088148176670074,
-0.2120252251625061,
0.16091063618659973,
0.3708565831184387,
-0.14854636788368225,
-0.012918949127197266,
-0.5179473161697388,
-0.2849597632884979,
0.10036595165729523,
0.2510244846343994,
0.011584404855966568,
0.016934223473072052,
-0.2469283491373062,
-0.023668697103857994,
-0.058613501489162445,
0.0771435797214508,
0.07854911684989929,
0.1035347506403923,
-0.00807325541973114,
-0.020556006580591202,
0.167933389544487,
-0.1570156067609787,
-0.053477026522159576,
0.43283623456954956,
0.12365864217281342,
0.5165600776672363,
0.28499335050582886,
0.44231411814689636,
0.026105370372533798,
-0.05381125956773758,
0.032854579389095306,
0.1794990599155426,
-0.10462795197963715,
0.2635352909564972,
-0.15210643410682678,
0.5993237495422363,
-0.32653674483299255,
-0.08334510773420334,
-0.17949829995632172,
0.12007969617843628,
-0.2615888714790344,
-0.2134372889995575,
-0.015199437737464905,
-0.255702406167984,
0.1766148805618286,
0.0908825546503067,
-0.05401506647467613,
0.1169527918100357,
-0.0005369186401367188,
-0.007379211485385895,
0.07118677347898483,
-0.014264462515711784,
0.03483521193265915,
0.09198527038097382,
0.1931052803993225,
-0.23127374053001404,
0.4226830005645752,
0.28139999508857727,
0.03575095906853676,
0.3122563064098358,
0.42741429805755615,
0.2777599096298218,
0.2222011834383011,
-0.3424444794654846,
-0.06848271936178207,
0.033801741898059845,
0.018383828923106194,
-0.09381641447544098,
0.4202004671096802,
0.2514146864414215,
0.34088271856307983,
0.290465384721756,
0.2242547571659088,
-0.24401848018169403,
0.17848147451877594,
-0.06948363780975342,
-0.006064748391509056,
0.05273575335741043,
0.47938913106918335,
0.1439281404018402,
-0.04719076678156853,
-0.09959043562412262,
0.14917416870594025,
-0.7908725738525391,
-0.2610088586807251,
0.11874492466449738,
-0.30481502413749695,
0.16290143132209778,
-0.3607211410999298,
0.1167137622833252,
0.09100672602653503,
0.5737717747688293,
0.20015165209770203,
0.288725346326828,
0.06572548300027847,
-0.2745932936668396,
-0.3580307960510254,
-0.0606536790728569,
0.2796655297279358,
0.03790830075740814,
-0.24960985779762268,
0.1469862163066864,
0.1392487734556198,
0.04938274994492531,
-0.42664021253585815,
0.018610171973705292,
-0.10710315406322479,
0.2197745144367218,
-0.11976797878742218,
0.37338778376579285,
-0.16244322061538696,
0.17147302627563477,
-0.05842674523591995,
-0.18962550163269043,
-0.17716313898563385,
-0.22544291615486145,
0.021570220589637756,
0.08298462629318237,
0.3526867628097534,
0.14508983492851257,
-0.2686481475830078,
0.35461610555648804,
-0.23035341501235962,
0.531629204750061,
-0.3417062759399414,
0.026185529306530952,
0.1350889950990677,
0.03299354016780853,
-0.3262867331504822,
-0.30184563994407654,
-0.2989813983440399,
0.1844821721315384,
0.15855585038661957,
0.4981392025947571,
-0.25549712777137756,
-0.20757868885993958,
-0.05017625913023949,
0.3235316574573517,
-0.18579334020614624,
-0.017085423693060875,
-0.4260116517543793,
-0.2550636827945709,
-0.01872980408370495,
0.21474263072013855,
0.08817596733570099,
-0.1216907873749733,
-0.40481728315353394,
-0.5538061261177063,
0.3240542411804199,
0.24935558438301086,
-0.25713253021240234,
-0.4015713632106781,
0.27067214250564575,
0.13351324200630188,
0.015163520351052284,
-0.6682811975479126,
0.2751120328903198,
0.0016303341835737228,
0.19415980577468872,
-0.06602150201797485,
0.41547536849975586,
-0.0731356292963028,
-0.17562010884284973,
-0.18335378170013428,
-0.15226975083351135,
0.1328650712966919,
0.011362006887793541,
-0.14482073485851288,
-0.3962368369102478
] |
https://github.com/huggingface/datasets/issues/2653 | Add SD task for SUPERB | @lewtun @lhoestq:
I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp
Next steps:
- Upload these files to the superb-data repo
- Transcribe the corresponding s3prl processing of these files into our superb loading script
Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
| Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization).
Steps:
- [x] Generate the LibriMix corpus
- [x] Prepare the corpus for diarization
- [x] Upload these files to the superb-data repo
- [x] Transcribe the corresponding s3prl processing of these files into our superb loading script
- [ ] README: tags + description sections
Related to #2619.
cc: @lewtun
| 73 | Add SD task for SUPERB
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization).
Steps:
- [x] Generate the LibriMix corpus
- [x] Prepare the corpus for diarization
- [x] Upload these files to the superb-data repo
- [x] Transcribe the corresponding s3prl processing of these files into our superb loading script
- [ ] README: tags + description sections
Related to #2619.
cc: @lewtun
@lewtun @lhoestq:
I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp
Next steps:
- Upload these files to the superb-data repo
- Transcribe the corresponding s3prl processing of these files into our superb loading script
Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
| [
-0.23063252866268158,
-0.3324863910675049,
-0.054731547832489014,
0.06616511195898056,
0.33527374267578125,
-0.28123876452445984,
0.08374163508415222,
-0.061149004846811295,
-0.11445432901382446,
0.408860981464386,
-0.41407811641693115,
0.42715683579444885,
-0.15712635219097137,
0.34677767753601074,
0.15715345740318298,
0.059658512473106384,
0.04084046930074692,
0.24557310342788696,
-0.31445348262786865,
-0.04645781219005585,
-0.06598557531833649,
0.015526896342635155,
-0.11186656355857849,
-0.28752291202545166,
-0.1676344871520996,
0.3125641644001007,
0.015935732051730156,
-0.07903780788183212,
-0.3433385491371155,
-0.24684256315231323,
0.12568919360637665,
0.4726737141609192,
0.2812194228172302,
0.32635587453842163,
-0.00010449871479067951,
-0.24343477189540863,
0.12481449544429779,
-0.407169908285141,
-0.3041565418243408,
0.020510755479335785,
-0.14001169800758362,
0.25290340185165405,
-0.24313794076442719,
-0.10042278468608856,
-0.6214830875396729,
-0.1066603884100914,
-0.07157409191131592,
0.05873771756887436,
0.3838651180267334,
0.2615118622779846,
0.25223809480667114,
-0.12538328766822815,
0.018766332417726517,
-0.04163185507059097,
0.31062737107276917,
0.23722827434539795,
-0.15412844717502594,
-0.004361378028988838,
0.22089041769504547,
0.040072642266750336,
0.030663728713989258,
0.2973974347114563,
-0.2016080915927887,
-0.04072166606783867,
0.4242481291294098,
-0.30733367800712585,
0.09612932056188583,
-0.14449089765548706,
0.06313766539096832,
0.4065577983856201,
0.45227187871932983,
-0.204941064119339,
-0.2887032926082611,
0.2152058184146881,
0.007737596984952688,
-0.25055399537086487,
-0.24919310212135315,
-0.04043406993150711,
-0.27258241176605225,
-0.022852260619401932,
-0.20609422028064728,
-0.13763971626758575,
0.03241311013698578,
-0.1914403885602951,
0.01909174770116806,
0.37045395374298096,
-0.26714688539505005,
-0.300918310880661,
0.22604070603847504,
-0.1345984786748886,
-0.3198327124118805,
0.3320154547691345,
0.2018841654062271,
0.12639957666397095,
-0.21403507888317108,
-0.18420568108558655,
0.24914097785949707,
-0.38305971026420593,
-0.047148413956165314,
-0.04621356725692749,
0.26586756110191345,
0.10865731537342072,
0.2545674443244934,
0.06960910558700562,
0.024816663935780525,
0.15012872219085693,
0.23642441630363464,
-0.03541957214474678,
-0.044873058795928955,
0.13419610261917114,
-0.050639741122722626,
-0.001274995505809784,
-0.4389600455760956,
0.03305112570524216,
-0.36481088399887085,
0.17468050122261047,
-0.05838644877076149,
-0.31034156680107117,
-0.20337241888046265,
-0.12876391410827637,
-0.01961836963891983,
0.221339151263237,
0.07944022864103317,
0.4776502549648285,
-0.09489315748214722,
0.0649782046675682,
-0.05091258883476257,
0.22705888748168945,
-0.2490280121564865,
0.3620907664299011,
-0.10590384900569916,
0.16599108278751373,
-0.14578057825565338,
0.01997661031782627,
0.2315414398908615,
-0.32077786326408386,
0.13981887698173523,
-0.04993918910622597,
0.17330294847488403,
-0.11513251066207886,
-0.25750645995140076,
0.19035671651363373,
0.27210813760757446,
-0.03160147741436958,
0.1445755511522293,
-0.17088456451892853,
-0.37058672308921814,
0.04176774621009827,
-0.23420274257659912,
-0.016772150993347168,
0.2933937907218933,
-0.22806097567081451,
-0.2369888871908188,
0.3036903142929077,
-0.1506548672914505,
-0.13594244420528412,
0.03054281324148178,
0.2015451043844223,
0.09776684641838074,
-0.3038558065891266,
-0.05485767871141434,
-0.25128453969955444,
-0.2239757925271988,
0.1178683340549469,
0.3892632722854614,
-0.07017961144447327,
0.11603924632072449,
-0.22456331551074982,
-0.005119257606565952,
-0.008487969636917114,
0.29642248153686523,
-0.033169809728860855,
0.2258886843919754,
0.06786327809095383,
0.03267989307641983,
0.19002096354961395,
-0.04799271374940872,
-0.5481696724891663,
-0.22455620765686035,
-0.007439909037202597,
0.022699296474456787,
0.03134524077177048,
0.13556435704231262,
0.004556312225759029,
0.6181936264038086,
-0.37447279691696167,
-0.0381598174571991,
0.3380509614944458,
0.07251359522342682,
0.09976447373628616,
-0.13109301030635834,
-0.01911391317844391,
0.011853814125061035,
0.23934637010097504,
-0.08138410747051239,
-0.0808948203921318,
-0.06767425686120987,
0.49702581763267517,
0.23344019055366516,
-0.1725578010082245,
0.1217372715473175,
-0.011945046484470367,
0.2894846796989441,
0.09105958044528961,
0.02170407585799694,
-0.18551874160766602,
0.06784391403198242,
-0.17472490668296814,
0.25886842608451843,
0.3830898404121399,
-0.038918495178222656,
-0.41509658098220825,
-0.0010085590183734894,
-0.16621455550193787,
-0.20900849997997284,
-0.003230232745409012,
0.29271355271339417,
0.2428492307662964,
0.4071396589279175,
-0.3336692750453949,
-0.016774754971265793,
-0.6764423847198486,
-0.07113128155469894,
-0.09231622517108917,
-0.00449998676776886,
-0.019999900832772255,
-0.07987169921398163,
-0.11890952289104462,
0.3851716220378876,
0.5336655974388123,
-0.05077853053808212,
0.031462520360946655,
0.08879930526018143,
0.29880082607269287,
-0.07260887324810028,
0.2658644914627075,
-0.20841753482818604,
0.47222959995269775,
-0.08954554051160812,
-0.565333366394043,
0.04700159281492233,
0.19990107417106628,
0.0958382859826088,
-0.06547756493091583,
0.00553266704082489,
0.13725152611732483,
-0.09537377953529358,
0.07784213125705719,
0.2655324339866638,
-0.20626720786094666,
0.2208843231201172,
-0.015245940536260605,
-0.16191069781780243,
0.008833356201648712,
0.056073836982250214,
-0.20331953465938568,
0.01201581209897995,
0.0018841288983821869,
-0.24244777858257294,
0.04176297038793564,
0.17760911583900452,
-0.10710491240024567,
0.144040048122406,
-0.018228597939014435,
-0.09818460792303085,
-0.26139816641807556,
-0.017364414408802986,
-0.08523225784301758,
-0.10226479172706604,
0.2748093903064728,
0.38552212715148926,
-0.11909473687410355,
-0.14841578900814056,
-0.07941562682390213,
0.19391116499900818,
-0.08095003664493561,
-0.11371840536594391,
0.47924768924713135,
0.061822786927223206,
-0.07892625778913498,
-0.49033042788505554,
0.007199220359325409,
-0.047758907079696655,
-0.015072593465447426,
-0.014699328690767288,
-0.3657638132572174,
0.024548405781388283,
-0.559148907661438,
-0.06591976433992386,
-0.5107604265213013,
0.17964385449886322,
0.15679726004600525,
0.3538486957550049,
0.10140431672334671,
-0.2838633954524994,
0.32102730870246887,
0.3669550120830536,
0.2201405018568039,
-0.08987680077552795,
0.07928788661956787,
-0.1918426752090454,
-0.19402910768985748,
0.08484333008527756,
0.23795145750045776,
0.12254086136817932,
0.0649443119764328,
0.0667414665222168,
-0.05305618792772293,
0.08435957133769989,
-0.14861628413200378,
-0.10392335057258606,
0.20084090530872345,
-0.07755851000547409,
0.08799266815185547,
0.04927574098110199,
0.05003661662340164,
0.17403583228588104,
-0.14631539583206177,
-0.0014405292458832264,
-0.2926129102706909,
-0.16808880865573883,
0.16363520920276642,
0.007772664539515972,
-0.009842781350016594,
-0.3968885838985443,
-0.3802548348903656,
-0.019026434049010277,
-0.4988487660884857,
-0.12824897468090057,
-0.03625895455479622,
0.2246866226196289,
0.0443340502679348,
-0.17437738180160522,
0.024072270840406418,
0.12434019893407822,
0.4566858410835266,
-0.15727020800113678,
-0.10981493443250656,
0.19766804575920105,
-0.3751394748687744,
-0.2254720777273178,
-0.21044059097766876,
-0.0910395160317421,
0.3619687557220459,
0.05246870592236519,
-0.0941479355096817,
-0.0015290193259716034,
0.1633959710597992,
-0.24505680799484253,
-0.009936481714248657,
0.0543503500521183,
0.26582181453704834,
0.11493320763111115,
-0.1168091744184494,
-0.21954163908958435,
0.02352069690823555,
0.05053279548883438,
0.286850243806839,
0.23036876320838928,
-0.1580720841884613,
-0.043905436992645264,
0.007975641638040543,
0.34057843685150146,
-0.03356669098138809,
-0.13942794501781464,
0.19180263578891754,
-0.07809130847454071,
0.09992589801549911,
0.08383627980947495,
0.18014609813690186,
0.4542689621448517,
0.00807848572731018,
-0.13520854711532593,
0.6013186573982239,
0.16536760330200195,
0.04733811318874359,
-0.061141811311244965,
0.2469249963760376,
-0.3664107322692871,
-0.08590088039636612,
-0.022957714274525642,
-0.12261471152305603,
0.0805792286992073,
-0.06978091597557068,
0.1989884078502655,
0.3178984820842743,
-0.051546938717365265,
0.26627853512763977,
0.032485730946063995,
0.3358447849750519,
0.001837760559283197,
-0.07210636883974075,
-0.15898653864860535,
-0.31561580300331116,
0.027998186647892,
0.33004534244537354,
0.033131882548332214,
-0.09817507117986679,
-0.3514760136604309,
-0.06175297498703003,
-0.2059905230998993,
0.0241251140832901,
-0.2224297672510147,
0.2713914215564728,
0.23283171653747559,
0.08831150829792023,
-0.03812501206994057,
-0.008394952863454819,
-0.34882208704948425,
-0.19657935202121735,
0.06519076228141785,
-0.14539587497711182,
-0.41111481189727783,
-0.05510002374649048,
0.28463175892829895,
0.036094095557928085,
0.002689473330974579,
-0.05814056098461151,
-0.11575347185134888,
-0.5529297590255737,
-0.02872634120285511,
0.16983380913734436,
0.14826636016368866,
0.2186095267534256,
-0.17437857389450073,
-0.12731799483299255,
0.17812442779541016,
0.005088776350021362,
0.16139362752437592,
0.17027711868286133,
0.2613527178764343,
0.1952200084924698,
0.16883184015750885,
0.07518525421619415,
-0.0710591971874237,
0.45890575647354126,
0.386502742767334,
-0.04443777725100517,
0.09431750327348709,
0.0667772889137268,
-0.16569703817367554,
0.3028516471385956,
0.05041816085577011,
0.33100274205207825,
0.110258087515831,
-0.13221119344234467,
-0.05509823560714722,
-0.601911723613739,
0.42752641439437866,
0.17893174290657043,
0.0574011355638504,
-0.010048430413007736,
-0.4498085379600525,
0.3664424419403076,
-0.05532517656683922,
-0.07616835832595825,
0.02778204157948494,
-0.15920399129390717,
-0.22617743909358978,
0.32783305644989014,
0.22648990154266357,
1.0557332038879395,
-0.14328238368034363,
-0.04076896235346794,
0.09892831742763519,
-0.08211805671453476,
0.0767410472035408,
-0.31988710165023804,
0.2381502389907837,
-0.07093411684036255,
-0.061758920550346375,
-0.00018665380775928497,
0.24122992157936096,
-0.15443405508995056,
0.056979041546583176,
-0.42245718836784363,
0.038599893450737,
0.21036668121814728,
-0.011684048920869827,
-0.034321606159210205,
-0.004993751645088196,
0.05231350660324097,
-0.2225147932767868,
-0.19308461248874664,
0.20367488265037537,
-0.13514909148216248,
0.0884169489145279,
-0.09635135531425476,
-0.018026988953351974,
0.1538255214691162,
-0.14093762636184692,
-0.03190133720636368,
0.22302177548408508,
-0.01132778450846672,
-0.2855210304260254,
-0.06438189744949341,
-0.19611582159996033,
-0.03703662008047104,
0.22707557678222656,
-0.3433636426925659,
0.24739305675029755,
-0.03304477781057358,
0.0383865162730217,
0.1383410096168518,
0.27623918652534485,
0.03890213370323181,
0.12287241220474243,
0.27847379446029663,
-0.16569384932518005,
0.25973010063171387,
-0.0495830774307251,
0.259733110666275,
0.022277362644672394,
-0.037632495164871216,
-0.2906150221824646,
0.09643420577049255,
0.051414526998996735,
0.14924003183841705,
0.2572364807128906,
-0.19453908503055573,
-0.1682177633047104,
0.22340962290763855,
-0.060149624943733215,
-0.6823360919952393,
0.26860448718070984,
0.03365124762058258,
-0.052587252110242844,
-0.014657963067293167,
0.17200255393981934,
0.1937297284603119,
-0.20562446117401123,
-0.03150477260351181,
0.19556641578674316,
-0.060823991894721985,
-0.38018599152565,
-0.42881596088409424,
-0.23414826393127441,
-0.09884820133447647,
0.02947063371539116,
0.09792307764291763,
-0.36115819215774536,
0.14738307893276215,
0.5644745826721191,
-0.035848893225193024,
-0.1570383906364441,
-0.2788635790348053,
0.20005983114242554,
-0.17018592357635498,
0.09732671082019806,
0.08608348667621613,
0.53243088722229,
-0.1332002878189087,
0.22801876068115234,
-0.09968683868646622,
0.2533307671546936,
-0.4481813609600067,
-0.15556295216083527,
-0.435738742351532,
0.43349504470825195,
-0.042392484843730927,
-0.11468835920095444,
0.0695856586098671,
-0.06410780549049377,
0.275678426027298,
0.07565918564796448,
-0.09462807327508926,
-0.26777803897857666,
-0.02592681534588337,
0.07982313632965088,
0.14190340042114258,
0.08415840566158295,
-0.15236200392246246,
0.33291202783584595,
-0.336492657661438,
-0.22002793848514557,
0.3265501856803894,
0.20059499144554138,
-0.053310930728912354,
0.32328712940216064,
-0.07275359332561493,
-0.020612157881259918,
0.012121383100748062,
-0.08390437811613083,
0.13346964120864868,
0.17652538418769836,
0.01472398266196251,
0.10952840745449066,
0.1358218789100647,
-0.20890435576438904,
0.11254366487264633,
0.24796870350837708,
0.364437460899353,
-0.25715333223342896,
0.2628560960292816,
0.09267667680978775,
0.03905918821692467,
0.232155904173851,
0.6654077768325806,
0.09813893586397171,
-0.0007726743933744729,
-0.25438880920410156,
0.1583816111087799,
0.4445456564426422,
-0.24278606474399567,
0.0042163310572505,
-0.5556684732437134,
-0.26296839118003845,
0.19848890602588654,
0.21556894481182098,
-0.06384783238172531,
-0.20418404042720795,
-0.1155448704957962,
0.012432001531124115,
-0.11260700225830078,
-0.028525598347187042,
0.00750343780964613,
0.2312058061361313,
0.08351413905620575,
-0.09035006165504456,
-0.04918302595615387,
-0.2032930850982666,
0.03781162202358246,
0.403969407081604,
0.007707476615905762,
0.5663602948188782,
0.20264586806297302,
0.25880706310272217,
0.061327770352363586,
0.039184968918561935,
-0.06021909788250923,
0.2987785339355469,
-0.14480599761009216,
0.3799729645252228,
-0.12335102260112762,
0.4566289186477661,
-0.22395817935466766,
-0.1622549146413803,
-0.2535138726234436,
0.12478499114513397,
-0.23024138808250427,
-0.12287677824497223,
0.004566911607980728,
-0.2692739963531494,
-0.033943068236112595,
0.013292055577039719,
0.07114340364933014,
0.2759762704372406,
-0.021750278770923615,
-0.0007496029138565063,
0.13040408492088318,
-0.008394237607717514,
-0.12923908233642578,
0.02839023247361183,
0.3064993917942047,
-0.29776808619499207,
0.3046826422214508,
0.374104380607605,
-0.0208563432097435,
0.20795132219791412,
0.3667669892311096,
0.2912706732749939,
0.11628538370132446,
-0.2981621026992798,
0.029244601726531982,
-0.07715976238250732,
-0.022126421332359314,
-0.1009700670838356,
0.33790701627731323,
0.2625352740287781,
0.31419244408607483,
0.22411523759365082,
0.21914269030094147,
-0.28020158410072327,
0.18965794146060944,
-0.01583506539463997,
-0.14960698783397675,
0.05563477799296379,
0.3040376901626587,
0.003688894212245941,
0.0052480548620224,
-0.17463456094264984,
0.044191788882017136,
-0.6745697855949402,
-0.21936607360839844,
0.0320771299302578,
-0.2078760415315628,
0.18616187572479248,
-0.1932150423526764,
0.1298995167016983,
0.013716815039515495,
0.5280650854110718,
0.19548988342285156,
0.18486496806144714,
0.09357351809740067,
-0.2953617572784424,
-0.2751650810241699,
0.042368724942207336,
0.3151339292526245,
0.02274479530751705,
-0.2715734541416168,
0.13542509078979492,
0.30424702167510986,
0.1386164426803589,
-0.5134692788124084,
-0.02238486148416996,
0.04717499762773514,
0.31297236680984497,
-0.20739184319972992,
0.3606787919998169,
-0.14822110533714294,
0.13253003358840942,
-0.0403505377471447,
-0.2700541019439697,
-0.2355540543794632,
-0.36041685938835144,
0.173589289188385,
0.1764339804649353,
0.21195247769355774,
0.06783340871334076,
-0.08827933669090271,
0.01570652425289154,
-0.155909463763237,
0.44645559787750244,
-0.3855408728122711,
-0.0427054837346077,
0.13932417333126068,
0.06590999662876129,
-0.20020243525505066,
-0.312269926071167,
-0.17095106840133667,
0.3210388720035553,
0.2248517870903015,
0.38308319449424744,
-0.15349432826042175,
-0.15802918374538422,
0.07113274186849594,
0.37296557426452637,
-0.23645241558551788,
0.050631992518901825,
-0.3769298791885376,
-0.2457829713821411,
0.023939501494169235,
0.18787476420402527,
0.12923306226730347,
-0.10240363329648972,
-0.42550128698349,
-0.5281771421432495,
0.3048948049545288,
0.1131717786192894,
-0.24404911696910858,
-0.4501843750476837,
0.3223855495452881,
0.19048848748207092,
0.002697562798857689,
-0.6447272300720215,
0.22251403331756592,
-0.039206407964229584,
0.1735619306564331,
-0.0894949659705162,
0.3659561276435852,
-0.018861547112464905,
-0.22354108095169067,
-0.1541430950164795,
-0.16731823980808258,
0.20738616585731506,
0.026492496952414513,
-0.1550418734550476,
-0.42244988679885864
] |
https://github.com/huggingface/datasets/issues/2651 | Setting log level higher than warning does not suppress progress bar | Hi,
you can suppress progress bars by patching logging as follows:
```python
import datasets
import logging
datasets.logging.get_verbosity = lambda: logging.NOTSET
# map call ...
```
EDIT: now you have to use `disable_progress_bar ` | ## Describe the bug
I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well).
According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0.
I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work.
## Steps to reproduce the bug
```python
import datasets
from datasets.utils.logging import set_verbosity_error
set_verbosity_error()
def dummy_map(batch):
return batch
common_voice_train = datasets.load_dataset("common_voice", "de", split="train")
common_voice_test = datasets.load_dataset("common_voice", "de", split="test")
common_voice_train.map(dummy_map)
```
## Expected results
- The progress bar for `.map` call won't be shown
## Actual results
- The progress bar for `.map` is still shown
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.5
- PyArrow version: 4.0.1
| 33 | Setting log level higher than warning does not suppress progress bar
## Describe the bug
I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well).
According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0.
I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work.
## Steps to reproduce the bug
```python
import datasets
from datasets.utils.logging import set_verbosity_error
set_verbosity_error()
def dummy_map(batch):
return batch
common_voice_train = datasets.load_dataset("common_voice", "de", split="train")
common_voice_test = datasets.load_dataset("common_voice", "de", split="test")
common_voice_train.map(dummy_map)
```
## Expected results
- The progress bar for `.map` call won't be shown
## Actual results
- The progress bar for `.map` is still shown
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.5
- PyArrow version: 4.0.1
Hi,
you can suppress progress bars by patching logging as follows:
```python
import datasets
import logging
datasets.logging.get_verbosity = lambda: logging.NOTSET
# map call ...
```
EDIT: now you have to use `disable_progress_bar ` | [
-0.44856005907058716,
-0.15923763811588287,
0.08128440380096436,
-0.17349740862846375,
0.15183667838573456,
-0.020587380975484848,
0.42389562726020813,
0.23425093293190002,
0.08213566243648529,
0.15655885636806488,
0.1862805187702179,
0.6290767788887024,
-0.13519708812236786,
0.09885207563638687,
-0.1958560049533844,
0.19225168228149414,
0.026640698313713074,
0.06188265606760979,
0.11346746981143951,
0.00810994952917099,
-0.268527626991272,
-0.2115134745836258,
-0.44575023651123047,
0.11007758229970932,
-0.19672703742980957,
-0.1131148412823677,
0.2870427966117859,
-0.08289586752653122,
-0.1369762420654297,
-0.6803547739982605,
0.3352682590484619,
0.06236489862203598,
0.16157880425453186,
0.6108680367469788,
-0.00013073667651042342,
-0.06307079643011093,
0.5634492039680481,
0.18264548480510712,
-0.22726155817508698,
-0.18806301057338715,
-0.5844007134437561,
-0.32446497678756714,
0.3906607925891876,
-0.08062288165092468,
0.020779144018888474,
-0.3420505225658417,
-0.14116902649402618,
-0.26310092210769653,
0.24196095764636993,
0.17123045027256012,
0.005419552326202393,
0.23561158776283264,
-0.04543092101812363,
0.5434173941612244,
0.28079062700271606,
0.18531179428100586,
-0.27680468559265137,
0.15312428772449493,
0.4540638327598572,
-0.23188148438930511,
-0.31139421463012695,
0.31258878111839294,
-0.3477261960506439,
0.10382966697216034,
0.37249141931533813,
-0.0935058444738388,
0.6505717039108276,
-0.5442173480987549,
0.2897189259529114,
0.14170223474502563,
0.30486658215522766,
-0.30249541997909546,
-0.383232980966568,
-0.1971440315246582,
-0.04589110612869263,
-0.0867399051785469,
0.1572910100221634,
-0.05014593154191971,
-0.3919321298599243,
0.1370008885860443,
-0.7754504680633545,
-0.11441051214933395,
-0.23074834048748016,
0.2587502598762512,
0.1766696721315384,
0.2889775037765503,
-0.030514348298311234,
0.11573892831802368,
0.10509636253118515,
-0.12792432308197021,
0.06053529679775238,
-0.2415473759174347,
0.006245505064725876,
0.2550777792930603,
-0.4593013525009155,
-0.06778347492218018,
0.3820304572582245,
0.13031098246574402,
0.1537173092365265,
-0.07768916338682175,
-0.16025741398334503,
0.18939447402954102,
0.16454142332077026,
0.17310559749603271,
0.2832814157009125,
0.16586512327194214,
0.5712186098098755,
0.259085088968277,
0.26659613847732544,
0.1627248078584671,
0.1391356736421585,
0.23219457268714905,
0.40791085362434387,
-0.4208418130874634,
0.4588841497898102,
0.357805460691452,
0.3389561176300049,
-0.2920227348804474,
0.03668230026960373,
0.053349681198596954,
-0.440624862909317,
-0.07245723903179169,
0.24556662142276764,
-0.1437016725540161,
0.43742918968200684,
-0.32237282395362854,
0.15393862128257751,
0.2313377410173416,
-0.1637471616268158,
0.09285152703523636,
-0.0029993776697665453,
-0.27147921919822693,
-0.2876027524471283,
0.19928637146949768,
0.2603393793106079,
-0.2153187245130539,
0.20884959399700165,
0.15778547525405884,
-0.2540042996406555,
0.03960282355546951,
0.29952237010002136,
0.011114053428173065,
0.5264067649841309,
0.40947505831718445,
-0.2758953273296356,
0.2505720555782318,
-0.008772660046815872,
0.01320723444223404,
-0.12280510365962982,
0.47875073552131653,
-0.06959185749292374,
-0.46368327736854553,
-0.19881993532180786,
-0.046268973499536514,
-0.4285927414894104,
0.15702401101589203,
-0.5327416658401489,
0.34056881070137024,
0.28873488306999207,
-0.032352201640605927,
0.3824746310710907,
-0.15364545583724976,
-0.525941014289856,
-0.09964091330766678,
0.21347467601299286,
0.48905473947525024,
-0.6826964020729065,
-0.17166316509246826,
-0.34908342361450195,
-0.24924612045288086,
0.20912262797355652,
0.015606705099344254,
-0.22637943923473358,
0.02638450637459755,
-0.06726568192243576,
0.35549241304397583,
-0.01596873253583908,
-0.1265925019979477,
-0.32451143860816956,
0.3001118004322052,
-0.050866447389125824,
0.12567463517189026,
0.06295645236968994,
-0.2392757534980774,
-0.13617411255836487,
-0.23611542582511902,
0.06645849347114563,
-0.042682573199272156,
0.2002130150794983,
-0.18902407586574554,
-0.23275251686573029,
-0.27836325764656067,
0.04484008252620697,
0.02094559371471405,
-0.13912300765514374,
0.09436780214309692,
0.15927624702453613,
-0.4130575954914093,
0.4603240489959717,
0.03462335467338562,
0.17783764004707336,
0.21746648848056793,
0.37794819474220276,
-0.42449259757995605,
-0.030479487031698227,
-0.09349886327981949,
-0.12692907452583313,
0.19272878766059875,
-0.10356996953487396,
-0.09016703069210052,
-0.3182399868965149,
-0.3301968574523926,
0.08745340257883072,
0.0016530416905879974,
-0.22683016955852509,
-0.20017117261886597,
-0.12442213296890259,
-0.24309149384498596,
-0.13036945462226868,
-0.17352406680583954,
-0.2841741144657135,
-0.20115381479263306,
-0.36755305528640747,
0.048616673797369,
-0.14269930124282837,
0.04571503400802612,
0.29836222529411316,
-0.38876643776893616,
0.08593235909938812,
0.18740056455135345,
0.23156240582466125,
0.13410404324531555,
-0.13304686546325684,
0.32649168372154236,
-0.1530689299106598,
0.5529088973999023,
-0.11679051071405411,
0.20116563141345978,
0.11248589307069778,
-0.11937441676855087,
0.019816897809505463,
0.15600834786891937,
-0.2682262659072876,
0.25317198038101196,
0.1076880469918251,
0.022970259189605713,
0.40999361872673035,
0.31010979413986206,
-0.09679064154624939,
-0.02859300747513771,
0.023014845326542854,
-0.1378757804632187,
-0.25676587224006653,
-0.41701439023017883,
0.23988452553749084,
0.27264124155044556,
0.42472419142723083,
-0.06138903647661209,
0.19986942410469055,
0.030768409371376038,
0.5263209939002991,
0.050998371094465256,
0.104551762342453,
-0.016530528664588928,
-0.22835534811019897,
-0.1955178678035736,
0.3151795566082001,
-0.08093943446874619,
0.3788507580757141,
0.12448658049106598,
0.2040301263332367,
0.16677574813365936,
-0.01481186505407095,
-0.05150272324681282,
0.1293831765651703,
0.29074162244796753,
0.09858834743499756,
0.2926526367664337,
0.09648425132036209,
-0.11390569061040878,
-0.18763327598571777,
-0.17299938201904297,
-0.1842527538537979,
0.05317320674657822,
-0.48535388708114624,
0.1047612652182579,
-0.2887888252735138,
-0.19922801852226257,
-0.02808515354990959,
0.0947377160191536,
-0.2659965455532074,
0.0218734759837389,
0.1766253262758255,
0.11153820157051086,
-0.22296294569969177,
0.48396065831184387,
0.2618676424026489,
-0.09980811178684235,
0.17955535650253296,
-0.1606026440858841,
-0.48979243636131287,
-0.10615948587656021,
-0.1358969509601593,
-0.16980117559432983,
-0.007407954894006252,
-0.20143818855285645,
-0.1069713681936264,
0.2271898239850998,
-0.09944788366556168,
-0.19374080002307892,
-0.04929020255804062,
-0.05304798483848572,
-0.10812883079051971,
0.24271556735038757,
0.019455038011074066,
0.0695948600769043,
-0.10149775445461273,
0.20082592964172363,
-0.09707517921924591,
-0.33182451128959656,
-0.01818268932402134,
-0.1333484649658203,
-0.2636882960796356,
0.22856059670448303,
-0.18623250722885132,
0.05918537825345993,
-0.2548672556877136,
-0.16218580305576324,
-0.09032106399536133,
-0.3714536726474762,
0.12192073464393616,
0.2619413137435913,
0.16731761395931244,
0.37097933888435364,
-0.15430842339992523,
-0.28227534890174866,
0.08809750527143478,
-0.5426416993141174,
0.24571830034255981,
0.0011286712251603603,
0.08119136095046997,
-0.06460465490818024,
0.0805363655090332,
-0.026063960045576096,
0.2889556884765625,
-0.34418368339538574,
-0.07213746756315231,
-0.2421102374792099,
0.04315881058573723,
0.06397570669651031,
0.03367216885089874,
0.2419922947883606,
0.05040913075208664,
0.014005592092871666,
-0.07450781762599945,
-0.38943326473236084,
-0.007851175963878632,
0.21698036789894104,
0.35807865858078003,
0.1808868646621704,
0.2434723973274231,
0.07511633634567261,
0.4675936698913574,
0.5378747582435608,
-0.052032794803380966,
0.09670883417129517,
0.21461492776870728,
0.19507521390914917,
0.07877417653799057,
-0.1279577910900116,
-0.23841094970703125,
0.032902754843235016,
-0.1871468722820282,
0.11066160351037979,
0.07111579179763794,
-0.29848358035087585,
0.16023236513137817,
-0.5059435963630676,
0.01642315462231636,
-0.32924509048461914,
-0.21974065899848938,
-0.1267799735069275,
0.3484671413898468,
-0.1304013878107071,
0.26765793561935425,
-0.1466134488582611,
-0.24338385462760925,
-0.15147511661052704,
0.08392703533172607,
0.3123035728931427,
-0.00045501519343815744,
-0.010621238499879837,
-0.13623157143592834,
-0.7217987179756165,
0.35307401418685913,
0.10662586241960526,
0.17449001967906952,
-0.22790516912937164,
0.04400037229061127,
0.10200335830450058,
0.36105918884277344,
0.22590738534927368,
-0.5128912329673767,
0.5343992710113525,
-0.08467322587966919,
0.07952441275119781,
-0.4417877793312073,
-0.13996772468090057,
-0.04032337665557861,
0.4690808653831482,
0.2800940275192261,
0.33086761832237244,
0.03930564969778061,
-0.25620922446250916,
-0.02657230943441391,
0.16868218779563904,
0.10069593787193298,
-0.3006269633769989,
-0.48951664566993713,
0.1053539589047432,
-0.12396510690450668,
0.166259765625,
0.1338106393814087,
-0.13460154831409454,
-0.2954615652561188,
-0.40235838294029236,
0.3919333219528198,
-0.20178183913230896,
-0.041884347796440125,
0.0424039401113987,
0.04551240801811218,
0.019813045859336853,
-0.1819319874048233,
0.3598021864891052,
-0.12907125055789948,
0.15634769201278687,
0.36111941933631897,
0.13620834052562714,
-0.3821350932121277,
-0.04391412436962128,
-0.22655874490737915,
0.26295801997184753,
0.3482525944709778,
-0.3105061948299408,
0.22655808925628662,
0.25227978825569153,
0.2290223240852356,
-0.05514049902558327,
-0.40339428186416626,
0.35054606199264526,
0.08211489766836166,
-0.23856870830059052,
0.034028492867946625,
0.3605341613292694,
0.2949759066104889,
0.0012186989188194275,
0.3489455580711365,
-0.1578092873096466,
-0.33869874477386475,
0.15249906480312347,
0.18928968906402588,
0.685934841632843,
0.054489560425281525,
-0.05477568879723549,
-0.10422120243310928,
-0.004530273377895355,
0.2228403389453888,
0.27090001106262207,
0.3258736729621887,
-0.08677463233470917,
-0.019954297691583633,
-0.061760395765304565,
-0.21021325886249542,
0.36551210284233093,
0.4005916118621826,
-0.07080395519733429,
0.1112934798002243,
-0.3836752772331238,
0.17948417365550995,
0.015129654668271542,
0.09205222129821777,
0.06511710584163666,
-0.11568152904510498,
-0.5500657558441162,
-0.09327492862939835,
0.13449159264564514,
0.12915921211242676,
0.08607184886932373,
0.04266870394349098,
0.27499690651893616,
-0.17707708477973938,
-0.30366408824920654,
0.12100078910589218,
0.0069512431509792805,
-0.0007157810032367706,
-0.07314872741699219,
-0.42887598276138306,
0.3441883325576782,
0.13564670085906982,
0.01026124507188797,
0.025248032063245773,
-0.35699933767318726,
-0.10532744228839874,
0.15010851621627808,
0.3178161084651947,
-0.0824628472328186,
-0.07522307336330414,
0.31766846776008606,
-0.02331695891916752,
-0.39293068647384644,
0.3335699141025543,
-0.048111431300640106,
-0.37780892848968506,
-0.09236752986907959,
0.013505928218364716,
0.19000770151615143,
-0.01424536295235157,
0.37472859025001526,
-0.09024445712566376,
0.2458406686782837,
-0.08574792742729187,
-0.005672864615917206,
0.218411386013031,
-0.0635015144944191,
0.4236508309841156,
-0.4121478796005249,
-0.5215084552764893,
-0.0908576101064682,
0.4308902323246002,
-0.04722770303487778,
0.15007321536540985,
0.41327759623527527,
0.17209839820861816,
-0.0893225371837616,
-0.15621739625930786,
-0.06639144569635391,
0.5935656428337097,
-0.21644291281700134,
0.06706923991441727,
0.27414199709892273,
0.28535938262939453,
0.16885197162628174,
0.046587031334638596,
-0.22167737782001495,
0.2210283875465393,
-0.4179404675960541,
-0.2613152861595154,
-0.31554603576660156,
-0.01970949023962021,
-0.0799131691455841,
0.23671668767929077,
-0.1589919626712799,
0.20382629334926605,
0.30870234966278076,
-0.11097729206085205,
-0.08240537345409393,
-0.142304465174675,
-0.06186707317829132,
-0.07187323272228241,
0.0007947348058223724,
0.4827967584133148,
0.2594653367996216,
-0.06280934810638428,
-0.20736953616142273,
-0.009429842233657837,
-0.25682520866394043,
-0.020671093836426735,
-0.06801795959472656,
0.19645310938358307,
0.027184372767806053,
-0.18621207773685455,
0.1174226924777031,
-0.14437413215637207,
-0.042152222245931625,
-0.05958329886198044,
0.34889012575149536,
0.4120096266269684,
0.21247157454490662,
0.4412679672241211,
-0.14792270958423615,
0.046428922563791275,
-0.20181292295455933,
-0.18166767060756683,
-0.16105984151363373,
0.07445704936981201,
-0.02048509567975998,
0.24171653389930725,
0.24520587921142578,
0.06779371201992035,
0.15767893195152283,
-0.15088126063346863,
0.008712776005268097,
0.5974183678627014,
-0.11478867381811142,
0.06353221833705902,
-0.09507004171609879,
-0.13480496406555176,
0.2663053572177887,
0.1868843138217926,
-0.2167493999004364,
-0.3681454062461853,
-0.17223313450813293,
0.0036953818053007126,
-0.1110944151878357,
-0.29603952169418335,
0.2919934093952179,
0.16227400302886963,
0.09164850413799286,
0.06778186559677124,
-0.2978154122829437,
0.01604568213224411,
0.24739304184913635,
0.2011706531047821,
-0.09832961112260818,
-0.2199004888534546,
0.20908722281455994,
0.38244375586509705,
-0.1420728713274002,
-0.049839455634355545,
0.42308035492897034,
0.2218518704175949,
0.19905498623847961,
0.2871165871620178,
0.2017703354358673,
0.49474355578422546,
0.1605071872472763,
0.10431288182735443,
-0.21592611074447632,
-0.2278967648744583,
-0.30822429060935974,
0.2549009621143341,
-0.3437894582748413,
-0.1214180514216423,
0.1763574182987213,
0.28709879517555237,
-0.10459070652723312,
-0.2094264179468155,
0.06977710127830505,
-0.14555545151233673,
-0.08511600643396378,
0.02083626389503479,
-0.13513962924480438,
0.08208215981721878,
0.09893393516540527,
-0.07618235796689987,
-0.04281361773610115,
0.3528403639793396,
0.39534592628479004,
-0.08073396980762482,
-0.016347460448741913,
-0.049730218946933746,
-0.017266862094402313,
0.1860300898551941,
0.36333581805229187,
0.05948119983077049,
-0.238583043217659,
-0.19472412765026093,
0.04280812293291092,
0.1252659112215042,
0.27896401286125183,
0.3145539462566376,
0.28490909934043884,
0.11546988785266876,
-0.03334469348192215,
0.13798308372497559,
-0.08799369633197784,
-0.09329841285943985,
0.3828006684780121,
0.019519679248332977,
-0.10720647871494293,
0.15912842750549316,
-0.10190663486719131,
0.10375121235847473,
0.25395119190216064,
0.08914069831371307,
0.32314661145210266,
-0.33124229311943054,
0.45622238516807556,
0.19953246414661407,
-0.25535789132118225,
0.2505396008491516,
-0.139142245054245,
-0.12685392796993256,
-0.04592262580990791,
0.6552446484565735,
0.013276856392621994,
-0.01132197305560112,
-0.3622726500034332,
-0.021916693076491356,
-0.2869662642478943,
0.18032175302505493,
0.4017551839351654,
0.15572842955589294,
-0.253439724445343,
0.11732450127601624,
-0.44036346673965454,
0.06788629293441772,
0.15151207149028778,
0.0077003780752420425,
0.06791655719280243,
-0.01600552536547184,
-0.39241093397140503,
0.38356029987335205,
0.4471691846847534,
-0.5961124300956726,
-0.19203464686870575,
-0.23652416467666626,
-0.0824863538146019,
-0.03204457089304924,
0.002372436225414276,
0.09503644704818726,
-0.13364562392234802,
-0.29583296179771423,
0.25863340497016907,
-0.2523336708545685,
-0.13872946798801422,
-0.1635003238916397,
-0.3043874502182007,
0.40820425748825073,
0.13263969123363495,
0.5235373973846436,
0.2279808521270752,
0.03978278487920761,
-0.03322780877351761,
-0.012871467508375645,
-0.17366312444210052,
0.1770816594362259,
-0.23927977681159973,
0.2814319133758545,
-0.06641782820224762,
0.42698854207992554,
-0.49908170104026794,
0.17658135294914246,
-0.1866481453180313,
0.0854257270693779,
-0.26035624742507935,
0.00318348896689713,
0.04293607920408249,
0.11887625604867935,
0.1293400228023529,
-0.11402935534715652,
-0.21664993464946747,
0.007253147661685944,
0.0551348514854908,
0.3118997812271118,
-0.29146304726600647,
-0.16750961542129517,
0.3956398367881775,
-0.5802405476570129,
-0.2493944764137268,
-0.18816109001636505,
0.500126302242279,
0.08986293524503708,
-0.28222763538360596,
-0.507815420627594,
-0.15235057473182678,
0.2201830893754959,
0.03728078305721283,
-0.21296153962612152,
0.3363794982433319,
-0.2333260327577591,
0.39876607060432434,
-0.07308841496706009,
0.12858262658119202,
0.28817594051361084,
0.17235028743743896,
0.061955396085977554,
-0.352652370929718
] |
https://github.com/huggingface/datasets/issues/2651 | Setting log level higher than warning does not suppress progress bar | Note also that you can disable the progress bar with
```python
from datasets.utils import disable_progress_bar
disable_progress_bar()
```
See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84 | ## Describe the bug
I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well).
According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0.
I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work.
## Steps to reproduce the bug
```python
import datasets
from datasets.utils.logging import set_verbosity_error
set_verbosity_error()
def dummy_map(batch):
return batch
common_voice_train = datasets.load_dataset("common_voice", "de", split="train")
common_voice_test = datasets.load_dataset("common_voice", "de", split="test")
common_voice_train.map(dummy_map)
```
## Expected results
- The progress bar for `.map` call won't be shown
## Actual results
- The progress bar for `.map` is still shown
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.5
- PyArrow version: 4.0.1
| 19 | Setting log level higher than warning does not suppress progress bar
## Describe the bug
I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well).
According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0.
I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work.
## Steps to reproduce the bug
```python
import datasets
from datasets.utils.logging import set_verbosity_error
set_verbosity_error()
def dummy_map(batch):
return batch
common_voice_train = datasets.load_dataset("common_voice", "de", split="train")
common_voice_test = datasets.load_dataset("common_voice", "de", split="test")
common_voice_train.map(dummy_map)
```
## Expected results
- The progress bar for `.map` call won't be shown
## Actual results
- The progress bar for `.map` is still shown
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.5
- PyArrow version: 4.0.1
Note also that you can disable the progress bar with
```python
from datasets.utils import disable_progress_bar
disable_progress_bar()
```
See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84 | [
-0.4388270378112793,
-0.2037353813648224,
0.07964260876178741,
-0.15226173400878906,
0.16921891272068024,
-0.015965845435857773,
0.4777558445930481,
0.2021973729133606,
0.03183508291840553,
0.14753538370132446,
0.16820047795772552,
0.5794951319694519,
-0.1528977006673813,
0.10003135353326797,
-0.18351389467716217,
0.19449694454669952,
0.02631209045648575,
0.042437586933374405,
0.04576177895069122,
0.0004416219890117645,
-0.2606731653213501,
-0.14668965339660645,
-0.4761815071105957,
0.0941634252667427,
-0.22631613910198212,
-0.06947021186351776,
0.2926189601421356,
0.0035399533808231354,
-0.11762545257806778,
-0.6455768942832947,
0.301563024520874,
0.09003785997629166,
0.14311319589614868,
0.6660022139549255,
-0.00013324894825927913,
-0.08780267089605331,
0.5361049771308899,
0.16576814651489258,
-0.18525445461273193,
-0.14533449709415436,
-0.5602226257324219,
-0.3629800081253052,
0.39052775502204895,
-0.061799146234989166,
0.04203955829143524,
-0.30053389072418213,
-0.15742531418800354,
-0.2664180397987366,
0.2540454864501953,
0.17186731100082397,
-0.016912955790758133,
0.30633431673049927,
-0.10733981430530548,
0.5482041239738464,
0.2376391589641571,
0.1451117992401123,
-0.3086780905723572,
0.1676182746887207,
0.47501614689826965,
-0.21207675337791443,
-0.29695925116539,
0.36103692650794983,
-0.31991052627563477,
0.10285736620426178,
0.30663836002349854,
-0.07691781222820282,
0.6109767556190491,
-0.5626850128173828,
0.33434152603149414,
0.17697227001190186,
0.3472416400909424,
-0.3141159117221832,
-0.3868072032928467,
-0.17316138744354248,
-0.0694996640086174,
-0.09286677092313766,
0.20587846636772156,
-0.09217298030853271,
-0.3756277561187744,
0.1914188712835312,
-0.7989661693572998,
-0.10723917931318283,
-0.23272070288658142,
0.2482953667640686,
0.10759732127189636,
0.22891002893447876,
-0.07189000397920609,
0.0963488444685936,
0.07850729674100876,
-0.12189604341983795,
0.10315128415822983,
-0.21710889041423798,
0.004403762519359589,
0.24919550120830536,
-0.514140248298645,
-0.10635238885879517,
0.36154258251190186,
0.07199829071760178,
0.156829833984375,
-0.05956839770078659,
-0.18638303875923157,
0.21915128827095032,
0.11588883399963379,
0.13400039076805115,
0.25540614128112793,
0.17768406867980957,
0.5470436811447144,
0.23772382736206055,
0.2636430263519287,
0.12370891869068146,
0.1506487876176834,
0.20266127586364746,
0.39756762981414795,
-0.4357883334159851,
0.4497308135032654,
0.3733789920806885,
0.3258315324783325,
-0.278327614068985,
0.007087739184498787,
0.09318795800209045,
-0.33741268515586853,
-0.03806670382618904,
0.2372533231973648,
-0.08666645735502243,
0.4455690085887909,
-0.25404801964759827,
0.14595794677734375,
0.2678728699684143,
-0.1896032840013504,
0.02221883460879326,
0.018625972792506218,
-0.28873327374458313,
-0.25597280263900757,
0.18819329142570496,
0.24046646058559418,
-0.15525221824645996,
0.2149008810520172,
0.1360752433538437,
-0.14729547500610352,
0.03885643184185028,
0.3051350712776184,
-0.019164782017469406,
0.5638687014579773,
0.4335379898548126,
-0.28858163952827454,
0.2676413059234619,
0.02486606128513813,
0.025225386023521423,
-0.09636654704809189,
0.470307856798172,
-0.05859027057886124,
-0.45746999979019165,
-0.18706712126731873,
-0.06715898960828781,
-0.40467560291290283,
0.18368038535118103,
-0.5151898860931396,
0.3845125436782837,
0.2827964723110199,
-0.00905008614063263,
0.40245965123176575,
-0.1470165103673935,
-0.537850558757782,
-0.08802588284015656,
0.23017004132270813,
0.527604877948761,
-0.6987102627754211,
-0.17686104774475098,
-0.34210503101348877,
-0.2491247057914734,
0.18956506252288818,
0.03269750997424126,
-0.20991188287734985,
0.05402778089046478,
-0.09551076591014862,
0.3148590922355652,
0.07230855524539948,
-0.16709497570991516,
-0.36509472131729126,
0.3568648099899292,
-0.06522221863269806,
0.11534441262483597,
0.07759599387645721,
-0.21853196620941162,
-0.11567891389131546,
-0.22292982041835785,
0.06757102906703949,
-0.06154683232307434,
0.1715470254421234,
-0.20800042152404785,
-0.23562154173851013,
-0.26070740818977356,
0.054496295750141144,
-0.006710752844810486,
-0.08514963090419769,
0.14192193746566772,
0.1761007010936737,
-0.4356422424316406,
0.4553632438182831,
0.07396982610225677,
0.1693071573972702,
0.25822776556015015,
0.33390167355537415,
-0.4463590383529663,
-0.04265911504626274,
-0.10580621659755707,
-0.163945734500885,
0.2082848846912384,
-0.10326254367828369,
-0.0945875495672226,
-0.28950244188308716,
-0.3256094455718994,
0.07065822929143906,
0.0064350925385952,
-0.23937804996967316,
-0.20695941150188446,
-0.15215998888015747,
-0.23380428552627563,
-0.15106265246868134,
-0.20363688468933105,
-0.3345770835876465,
-0.17617067694664001,
-0.33205026388168335,
0.04178011044859886,
-0.10157854855060577,
0.056213609874248505,
0.3076058328151703,
-0.3617398142814636,
0.05210193991661072,
0.17816197872161865,
0.22827640175819397,
0.10353823751211166,
-0.12188795953989029,
0.3652697503566742,
-0.14378824830055237,
0.5218513011932373,
-0.04763706773519516,
0.19860848784446716,
0.11010895669460297,
-0.16104388236999512,
0.005875017493963242,
0.17503118515014648,
-0.2611898183822632,
0.27902287244796753,
0.15034478902816772,
0.06619728356599808,
0.3930870294570923,
0.2827357053756714,
-0.09471236914396286,
-0.016726888716220856,
0.0013400670140981674,
-0.1263045221567154,
-0.2820746898651123,
-0.43694400787353516,
0.24767208099365234,
0.26226145029067993,
0.3680647015571594,
-0.10686692595481873,
0.10749846696853638,
0.07353591918945312,
0.4914255440235138,
0.05190077796578407,
0.10975167155265808,
-0.060580141842365265,
-0.21028393507003784,
-0.1543627381324768,
0.2606515884399414,
-0.09560222923755646,
0.43118971586227417,
0.09335332363843918,
0.2250625044107437,
0.1879182755947113,
0.007254894822835922,
-0.04697301983833313,
0.11445233225822449,
0.2845506966114044,
0.03797430545091629,
0.32968589663505554,
0.07634469121694565,
-0.11056572943925858,
-0.15640601515769958,
-0.16017505526542664,
-0.14600181579589844,
0.024057980626821518,
-0.5067864060401917,
0.13013212382793427,
-0.30390408635139465,
-0.17413535714149475,
-0.02954252064228058,
0.043174903839826584,
-0.27863821387290955,
-0.011048173531889915,
0.1811806708574295,
0.07007107138633728,
-0.20745806396007538,
0.4660840332508087,
0.20940177142620087,
-0.08738009631633759,
0.19578883051872253,
-0.12631762027740479,
-0.47036466002464294,
-0.05785372480750084,
-0.11955920606851578,
-0.1912756711244583,
-0.04446502774953842,
-0.19125527143478394,
-0.12275710701942444,
0.16090135276317596,
-0.10070628672838211,
-0.2174818515777588,
-0.051302894949913025,
-0.042095668613910675,
-0.07917642593383789,
0.30410903692245483,
0.023887425661087036,
0.0657113790512085,
-0.12461701780557632,
0.27603405714035034,
-0.0570036806166172,
-0.31132397055625916,
-0.0033397357910871506,
-0.12410634011030197,
-0.24160002171993256,
0.1921313852071762,
-0.1650102585554123,
0.08018498867750168,
-0.2275783270597458,
-0.1445663869380951,
-0.14527186751365662,
-0.41557207703590393,
0.1291879266500473,
0.272918701171875,
0.12856023013591766,
0.36160650849342346,
-0.17458327114582062,
-0.2520796060562134,
0.07682128250598907,
-0.5869486331939697,
0.25838160514831543,
-0.028688712045550346,
0.03086090460419655,
-0.04570143297314644,
0.09821783006191254,
-0.03204968199133873,
0.2712278962135315,
-0.36571788787841797,
-0.11378247290849686,
-0.21948878467082977,
0.042021702975034714,
0.052860308438539505,
0.049505628645420074,
0.21273823082447052,
0.017098940908908844,
0.03311275690793991,
-0.08137975633144379,
-0.39528653025627136,
-0.05477329343557358,
0.20419996976852417,
0.35843679308891296,
0.1497315764427185,
0.2788909673690796,
0.0666009932756424,
0.5233478546142578,
0.5273798108100891,
0.018226711079478264,
0.07999610155820847,
0.201178178191185,
0.2599044442176819,
0.08844394236803055,
-0.15079408884048462,
-0.25431028008461,
0.06421477347612381,
-0.16099630296230316,
0.1307297646999359,
0.055192843079566956,
-0.15447279810905457,
0.14478285610675812,
-0.4346088469028473,
-0.004978403449058533,
-0.3219950795173645,
-0.23290617763996124,
-0.17153136432170868,
0.35730424523353577,
-0.11106115579605103,
0.27860304713249207,
-0.124692901968956,
-0.1973201334476471,
-0.14064626395702362,
0.1976078897714615,
0.24909290671348572,
-0.015305010601878166,
-0.050352130085229874,
-0.11228619515895844,
-0.7124316096305847,
0.3519893288612366,
0.07588977366685867,
0.2859666049480438,
-0.24448992311954498,
0.011981058865785599,
0.12276142835617065,
0.35034167766571045,
0.2800549268722534,
-0.49666446447372437,
0.5247848033905029,
-0.09292632341384888,
0.01945236325263977,
-0.42605045437812805,
-0.1460878998041153,
-0.04236961156129837,
0.4549838900566101,
0.30694031715393066,
0.34576237201690674,
0.07297936826944351,
-0.28093644976615906,
-0.03872506320476532,
0.15533505380153656,
0.06935708224773407,
-0.3266052305698395,
-0.5476042628288269,
0.13645648956298828,
-0.09818633645772934,
0.1574925184249878,
0.12470193952322006,
-0.1416090726852417,
-0.2728049159049988,
-0.3768731355667114,
0.37260863184928894,
-0.2567855417728424,
-0.015118777751922607,
0.04301808774471283,
0.03346943110227585,
0.016206208616495132,
-0.155393585562706,
0.32705503702163696,
-0.1485351175069809,
0.09307172149419785,
0.3858942985534668,
0.12865875661373138,
-0.3814188838005066,
0.009561009705066681,
-0.22514782845973969,
0.2644338607788086,
0.41589346528053284,
-0.34621578454971313,
0.2357858121395111,
0.275482177734375,
0.2510714530944824,
-0.019245769828557968,
-0.3622417151927948,
0.3614008128643036,
0.08450309187173843,
-0.2436748445034027,
0.07305509597063065,
0.3501390516757965,
0.2230263650417328,
0.03155781328678131,
0.34761664271354675,
-0.14591151475906372,
-0.2988951802253723,
0.06855327636003494,
0.14009368419647217,
0.7327115535736084,
0.06179368123412132,
-0.014404352754354477,
-0.08608675748109818,
0.018006816506385803,
0.14297491312026978,
0.26867032051086426,
0.3113037347793579,
-0.0786018818616867,
-0.07178705185651779,
-0.10810673981904984,
-0.23148788511753082,
0.3762950301170349,
0.40702033042907715,
-0.05848004296422005,
0.15552225708961487,
-0.3735048174858093,
0.19734394550323486,
0.02599266543984413,
0.06885922700166702,
0.05706734210252762,
-0.09090502560138702,
-0.5662987232208252,
-0.11674525588750839,
0.20053260028362274,
0.10181364417076111,
0.052302196621894836,
0.0320776142179966,
0.26478010416030884,
-0.1404697299003601,
-0.2725672423839569,
0.09081459045410156,
-0.06597904860973358,
-0.03484579548239708,
0.029049761593341827,
-0.47814369201660156,
0.35780850052833557,
0.11155051738023758,
0.05084798112511635,
0.025351116433739662,
-0.3542461693286896,
-0.11770416796207428,
0.16609641909599304,
0.3358999192714691,
-0.061946801841259,
-0.08079719543457031,
0.3207851052284241,
-0.006727520376443863,
-0.36361563205718994,
0.3760666847229004,
-0.04155929759144783,
-0.33071768283843994,
-0.04056483507156372,
0.034779760986566544,
0.20503652095794678,
-0.02300252765417099,
0.36661937832832336,
-0.09514179825782776,
0.2670878469944,
-0.09231966733932495,
-0.029413428157567978,
0.26346004009246826,
-0.05885099247097969,
0.40017932653427124,
-0.4039236009120941,
-0.5432718396186829,
-0.08820484578609467,
0.3998919427394867,
-0.07735191285610199,
0.15877556800842285,
0.39895522594451904,
0.19260527193546295,
-0.09058884531259537,
-0.1487978845834732,
-0.024289898574352264,
0.572453498840332,
-0.24458923935890198,
0.0855647474527359,
0.25587040185928345,
0.2815247178077698,
0.1719108372926712,
0.09823690354824066,
-0.23008017241954803,
0.16940441727638245,
-0.4567413926124573,
-0.2837523818016052,
-0.33068814873695374,
-0.03205225616693497,
-0.1125071793794632,
0.21954993903636932,
-0.18102410435676575,
0.23989462852478027,
0.31400319933891296,
-0.12776657938957214,
-0.0633232370018959,
-0.17045114934444427,
-0.05806245654821396,
-0.0997019112110138,
0.01530592329800129,
0.487911194562912,
0.30681663751602173,
-0.022268075495958328,
-0.24220822751522064,
-0.04111041873693466,
-0.28856906294822693,
0.00036558881402015686,
-0.04726333171129227,
0.2228945642709732,
0.05536632239818573,
-0.217884361743927,
0.10970070213079453,
-0.12694412469863892,
-0.050903912633657455,
-0.06074085831642151,
0.3688485026359558,
0.4017430543899536,
0.21201877295970917,
0.4640011489391327,
-0.16593815386295319,
0.010839223861694336,
-0.21963326632976532,
-0.16156427562236786,
-0.12661457061767578,
0.1038639172911644,
-0.01716270111501217,
0.23662760853767395,
0.23756025731563568,
0.0850830078125,
0.12051419168710709,
-0.12528255581855774,
0.02528795599937439,
0.5037803053855896,
-0.10735177248716354,
0.031626202166080475,
-0.05936656519770622,
-0.13734571635723114,
0.2653341293334961,
0.2075212597846985,
-0.2695907950401306,
-0.4000190794467926,
-0.1547539234161377,
-0.029150215908885002,
-0.10954154282808304,
-0.27234911918640137,
0.2048153281211853,
0.1551046520471573,
0.09839361906051636,
0.09574095159769058,
-0.2827533781528473,
0.010235428810119629,
0.2798994183540344,
0.2201732099056244,
-0.1466084122657776,
-0.2405671626329422,
0.1962161809206009,
0.32956501841545105,
-0.13323549926280975,
0.03162607550621033,
0.48585909605026245,
0.2517426311969757,
0.1496289074420929,
0.27345651388168335,
0.2190316915512085,
0.47662127017974854,
0.15422423183918,
0.09105019271373749,
-0.24957966804504395,
-0.2548616826534271,
-0.2787216007709503,
0.21030893921852112,
-0.3467278480529785,
-0.15541228652000427,
0.14165166020393372,
0.2543240487575531,
-0.11715250462293625,
-0.17730292677879333,
0.08332555741071701,
-0.16626326739788055,
-0.04450513422489166,
-0.032279979437589645,
-0.038706108927726746,
0.06992151588201523,
0.1147414892911911,
-0.07318228483200073,
-0.04360752925276756,
0.3693084120750427,
0.3610861003398895,
-0.07912272214889526,
-0.012540504336357117,
-0.07757378369569778,
-0.04779601842164993,
0.23933076858520508,
0.2927098274230957,
0.03559507057070732,
-0.20873385667800903,
-0.1845274120569229,
0.08053761720657349,
0.18343661725521088,
0.30690017342567444,
0.3027547299861908,
0.2926497459411621,
0.12028633058071136,
-0.09028159081935883,
0.12536963820457458,
-0.08830627799034119,
-0.06260602176189423,
0.4116550087928772,
-0.00829913467168808,
-0.15072545409202576,
0.1903628259897232,
-0.12473302334547043,
0.12036028504371643,
0.19952426850795746,
0.12332278490066528,
0.3067187964916229,
-0.38736778497695923,
0.4715415835380554,
0.14502489566802979,
-0.22994786500930786,
0.22433876991271973,
-0.10974682122468948,
-0.1656801700592041,
-0.061749815940856934,
0.682701051235199,
-0.03021627850830555,
0.007649064064025879,
-0.34668412804603577,
-0.03459877520799637,
-0.2770444452762604,
0.1914261132478714,
0.4415135681629181,
0.14709311723709106,
-0.2628690302371979,
0.10241518914699554,
-0.47193193435668945,
0.08416811376810074,
0.21587254106998444,
-0.015002172440290451,
0.08239109069108963,
0.028823761269450188,
-0.3979291617870331,
0.399167001247406,
0.5172959566116333,
-0.616111159324646,
-0.1561104953289032,
-0.23292222619056702,
-0.08298395574092865,
-0.04204786196351051,
-0.017337046563625336,
0.1415509730577469,
-0.16524527966976166,
-0.3095968961715698,
0.2503557503223419,
-0.20926785469055176,
-0.17356562614440918,
-0.13569337129592896,
-0.2915958762168884,
0.3595246970653534,
0.13252580165863037,
0.49815651774406433,
0.2361745834350586,
0.037602320313453674,
-0.01768593117594719,
-0.03246797248721123,
-0.1756131947040558,
0.15702472627162933,
-0.21058322489261627,
0.273968905210495,
-0.045904893428087234,
0.3701002299785614,
-0.5149693489074707,
0.16764505207538605,
-0.15592671930789948,
0.06544234603643417,
-0.22896483540534973,
0.006913895718753338,
0.03994983434677124,
0.17373144626617432,
0.14142829179763794,
-0.0992366150021553,
-0.18702925741672516,
0.037404727190732956,
0.06067010387778282,
0.3610664904117584,
-0.3112112879753113,
-0.15992499887943268,
0.39003610610961914,
-0.568453311920166,
-0.26245859265327454,
-0.21463078260421753,
0.5193513631820679,
0.064093679189682,
-0.2825244069099426,
-0.5841553807258606,
-0.15470005571842194,
0.2183987945318222,
0.06636384129524231,
-0.20015016198158264,
0.3623512089252472,
-0.28344041109085083,
0.3949880301952362,
-0.06305588781833649,
0.15361708402633667,
0.2650115489959717,
0.18302910029888153,
0.021702375262975693,
-0.3092700242996216
] |
https://github.com/huggingface/datasets/issues/2651 | Setting log level higher than warning does not suppress progress bar | Now ``disable_progress_bar`` function is in ``datasets/src/datasets/utils/logging.py``.
https://github.com/huggingface/datasets/blob/aa555a299ad73c65e3f997a764e9d211675ab05d/src/datasets/utils/logging.py#L233-L236
And the method mentioned in https://github.com/huggingface/datasets/issues/2651#issuecomment-880270774 is not working now. | ## Describe the bug
I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well).
According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0.
I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work.
## Steps to reproduce the bug
```python
import datasets
from datasets.utils.logging import set_verbosity_error
set_verbosity_error()
def dummy_map(batch):
return batch
common_voice_train = datasets.load_dataset("common_voice", "de", split="train")
common_voice_test = datasets.load_dataset("common_voice", "de", split="test")
common_voice_train.map(dummy_map)
```
## Expected results
- The progress bar for `.map` call won't be shown
## Actual results
- The progress bar for `.map` is still shown
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.5
- PyArrow version: 4.0.1
| 17 | Setting log level higher than warning does not suppress progress bar
## Describe the bug
I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well).
According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0.
I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work.
## Steps to reproduce the bug
```python
import datasets
from datasets.utils.logging import set_verbosity_error
set_verbosity_error()
def dummy_map(batch):
return batch
common_voice_train = datasets.load_dataset("common_voice", "de", split="train")
common_voice_test = datasets.load_dataset("common_voice", "de", split="test")
common_voice_train.map(dummy_map)
```
## Expected results
- The progress bar for `.map` call won't be shown
## Actual results
- The progress bar for `.map` is still shown
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.5
- PyArrow version: 4.0.1
Now ``disable_progress_bar`` function is in ``datasets/src/datasets/utils/logging.py``.
https://github.com/huggingface/datasets/blob/aa555a299ad73c65e3f997a764e9d211675ab05d/src/datasets/utils/logging.py#L233-L236
And the method mentioned in https://github.com/huggingface/datasets/issues/2651#issuecomment-880270774 is not working now. | [
-0.3934907019138336,
-0.24679237604141235,
0.07771517336368561,
-0.12545880675315857,
0.1383085697889328,
-0.019210562109947205,
0.42772337794303894,
0.2014848291873932,
0.1027756929397583,
0.1292041540145874,
0.16663186252117157,
0.5476444363594055,
-0.15757028758525848,
0.15268507599830627,
-0.21108628809452057,
0.2225390374660492,
0.050066277384757996,
0.04038219153881073,
0.09225670248270035,
0.0018067993223667145,
-0.23695164918899536,
-0.15212692320346832,
-0.4411246180534363,
0.06752889603376389,
-0.21241334080696106,
-0.04988677054643631,
0.28960365056991577,
0.010021939873695374,
-0.14095507562160492,
-0.6564119458198547,
0.3224339187145233,
0.06098156049847603,
0.09474365413188934,
0.615188717842102,
-0.00013160488742869347,
-0.0705268606543541,
0.5106357932090759,
0.17427761852741241,
-0.22091734409332275,
-0.1982831507921219,
-0.5912215709686279,
-0.3803105056285858,
0.3876338005065918,
-0.03635095804929733,
-0.002579323947429657,
-0.3326948583126068,
-0.0763065367937088,
-0.27185261249542236,
0.2912994623184204,
0.16254258155822754,
-0.012570034712553024,
0.22924593091011047,
-0.0645209401845932,
0.5307915806770325,
0.20898708701133728,
0.2734144330024719,
-0.2978023886680603,
0.21943676471710205,
0.3918260633945465,
-0.20055976510047913,
-0.30642831325531006,
0.3549715578556061,
-0.2808259427547455,
0.05421948432922363,
0.3482578992843628,
-0.09871752560138702,
0.5310416221618652,
-0.5060340166091919,
0.3460726737976074,
0.12376970797777176,
0.2737717926502228,
-0.3137027621269226,
-0.4030502438545227,
-0.23552805185317993,
-0.061920665204524994,
-0.1127505823969841,
0.2191755473613739,
-0.08420351147651672,
-0.378188818693161,
0.19892211258411407,
-0.7458817958831787,
-0.13187499344348907,
-0.25776827335357666,
0.22021791338920593,
0.190769225358963,
0.27269893884658813,
-0.11659323424100876,
0.10296580195426941,
0.09968870878219604,
-0.10051876306533813,
-0.025375869125127792,
-0.1795111894607544,
0.03969218209385872,
0.21683524549007416,
-0.49677300453186035,
-0.06704385578632355,
0.40589258074760437,
0.12828241288661957,
0.14221060276031494,
-0.08377870917320251,
-0.16976827383041382,
0.22462895512580872,
0.14571678638458252,
0.1206861361861229,
0.28506386280059814,
0.19209983944892883,
0.5693962574005127,
0.27252206206321716,
0.26109737157821655,
0.18411342799663544,
0.1600760668516159,
0.18725472688674927,
0.40622931718826294,
-0.42194846272468567,
0.3725544810295105,
0.36847802996635437,
0.33229881525039673,
-0.32588741183280945,
0.003809509798884392,
0.041101131588220596,
-0.3889664113521576,
-0.04324802756309509,
0.26961749792099,
-0.10779286175966263,
0.45618122816085815,
-0.2816096246242523,
0.19005514681339264,
0.22828403115272522,
-0.1715136468410492,
0.1471218764781952,
0.016065984964370728,
-0.2636840343475342,
-0.3150067627429962,
0.19426697492599487,
0.256612628698349,
-0.20891417562961578,
0.25286200642585754,
0.14093804359436035,
-0.21804995834827423,
0.021801523864269257,
0.25478658080101013,
-0.014369701035320759,
0.5450152158737183,
0.3787494897842407,
-0.32178807258605957,
0.24824343621730804,
0.016373615711927414,
0.019015327095985413,
-0.09721310436725616,
0.3848976790904999,
-0.023103870451450348,
-0.4432487487792969,
-0.188942551612854,
-0.06557180732488632,
-0.4471113085746765,
0.2012762427330017,
-0.5027730464935303,
0.40647387504577637,
0.27043667435646057,
-0.020127184689044952,
0.3941710591316223,
-0.11578673124313354,
-0.5702354311943054,
-0.07735957950353622,
0.22240687906742096,
0.5248128771781921,
-0.6388380527496338,
-0.21501781046390533,
-0.3250448703765869,
-0.3076409101486206,
0.17104145884513855,
0.03120930679142475,
-0.19179268181324005,
-0.018897458910942078,
-0.09571543335914612,
0.31042957305908203,
0.02156379073858261,
-0.1318548321723938,
-0.31955528259277344,
0.3105536103248596,
-0.05866352468729019,
0.17728158831596375,
0.10894034057855606,
-0.2274961620569229,
-0.16561493277549744,
-0.23863188922405243,
0.0401139073073864,
-0.06203103065490723,
0.24084670841693878,
-0.22009657323360443,
-0.2369273453950882,
-0.25331294536590576,
0.012273753061890602,
-0.0031534843146800995,
-0.10425588488578796,
0.09130766242742538,
0.18269428610801697,
-0.3724873960018158,
0.48156318068504333,
0.013800032436847687,
0.20029489696025848,
0.2979137897491455,
0.3652748763561249,
-0.385246217250824,
-0.030847007408738136,
-0.09710811078548431,
-0.12151098996400833,
0.1829790472984314,
-0.15955445170402527,
-0.0907381922006607,
-0.29057443141937256,
-0.3054276704788208,
0.10378844290971756,
-0.016129199415445328,
-0.22826029360294342,
-0.2564012110233307,
-0.14742614328861237,
-0.20090070366859436,
-0.11924830079078674,
-0.17377571761608124,
-0.3219771385192871,
-0.14434869587421417,
-0.37716013193130493,
0.0694655328989029,
-0.19758592545986176,
0.02542138285934925,
0.297870010137558,
-0.3836318254470825,
0.054518066346645355,
0.22473037242889404,
0.22380372881889343,
0.11244877427816391,
-0.13180753588676453,
0.3390114903450012,
-0.16061146557331085,
0.5717106461524963,
-0.10300926119089127,
0.18997235596179962,
0.13360634446144104,
-0.11439502239227295,
0.009808793663978577,
0.18780118227005005,
-0.25652092695236206,
0.2864978313446045,
0.09348838031291962,
0.05351072549819946,
0.4150254428386688,
0.28575029969215393,
-0.06094034016132355,
-0.04246729612350464,
-0.03180515393614769,
-0.11877542734146118,
-0.2742638885974884,
-0.4357784688472748,
0.27235910296440125,
0.21193359792232513,
0.41790851950645447,
-0.09156550467014313,
0.12443628907203674,
0.016800977289676666,
0.527959942817688,
0.08148694038391113,
0.09263388812541962,
-0.0029784515500068665,
-0.18365025520324707,
-0.20494472980499268,
0.31178638339042664,
-0.10814845561981201,
0.4113953113555908,
0.0900602713227272,
0.20906643569469452,
0.1761550009250641,
0.023419326171278954,
-0.03975161164999008,
0.13327719271183014,
0.27263206243515015,
0.05113620683550835,
0.31525617837905884,
0.0939343124628067,
-0.11281607300043106,
-0.1373072862625122,
-0.15150237083435059,
-0.19106459617614746,
-0.008324695751070976,
-0.4855046570301056,
0.11505315452814102,
-0.29312530159950256,
-0.23951071500778198,
-0.09579815715551376,
0.09176432341337204,
-0.29902899265289307,
0.00357932411134243,
0.18817837536334991,
0.10070499032735825,
-0.24730241298675537,
0.45338428020477295,
0.27001917362213135,
-0.09398670494556427,
0.1597246676683426,
-0.10597439855337143,
-0.44542956352233887,
-0.020776603370904922,
-0.08214995265007019,
-0.1915614902973175,
-0.04139329493045807,
-0.1762678176164627,
-0.14706532657146454,
0.19146668910980225,
-0.13879987597465515,
-0.21079638600349426,
-0.09866194427013397,
0.0027436167001724243,
-0.0976337194442749,
0.23635157942771912,
0.06459225714206696,
0.03256819024682045,
-0.13335782289505005,
0.22946934401988983,
-0.06032995134592056,
-0.3258145749568939,
0.006234064698219299,
-0.15559570491313934,
-0.23977498710155487,
0.22958385944366455,
-0.19590894877910614,
0.11241364479064941,
-0.22363179922103882,
-0.1804593801498413,
-0.008098646998405457,
-0.39347121119499207,
0.12813131511211395,
0.33934473991394043,
0.15625455975532532,
0.40143316984176636,
-0.202772319316864,
-0.17132145166397095,
0.09304378181695938,
-0.5629588961601257,
0.20540127158164978,
-0.007105156313627958,
0.06530159711837769,
-0.11688674241304398,
0.11796502768993378,
-0.06387189030647278,
0.26560646295547485,
-0.35435783863067627,
-0.17026948928833008,
-0.25235459208488464,
-0.04073243588209152,
0.07763104140758514,
0.04823952168226242,
0.22476698458194733,
0.00428522564470768,
0.023558011278510094,
-0.05596815049648285,
-0.40329745411872864,
0.037158530205488205,
0.1519555151462555,
0.3690643012523651,
0.20966321229934692,
0.2648365795612335,
0.11742697656154633,
0.48553305864334106,
0.6063427925109863,
-0.0055070966482162476,
0.10153708606958389,
0.20684979856014252,
0.28762632608413696,
0.0651765763759613,
-0.1682673841714859,
-0.21694716811180115,
0.0738784596323967,
-0.14337420463562012,
0.1051165908575058,
0.07927171885967255,
-0.186283141374588,
0.132557675242424,
-0.5256626009941101,
0.03759925812482834,
-0.3387470245361328,
-0.19606876373291016,
-0.06733960658311844,
0.34276631474494934,
-0.1483001559972763,
0.3127437233924866,
-0.1306474804878235,
-0.18800297379493713,
-0.14817078411579132,
0.17327576875686646,
0.3437083959579468,
-0.030385339632630348,
-0.018128369003534317,
-0.12255866825580597,
-0.7779173851013184,
0.35759299993515015,
0.07924002408981323,
0.2204636037349701,
-0.27962610125541687,
-0.00618390180170536,
0.0880642980337143,
0.35585445165634155,
0.2612636983394623,
-0.43648606538772583,
0.5400043725967407,
-0.16202104091644287,
-0.017374178394675255,
-0.4391973614692688,
-0.09896503388881683,
-0.04628777876496315,
0.48915839195251465,
0.3581707179546356,
0.39464953541755676,
0.019746504724025726,
-0.28962987661361694,
-0.00017229653894901276,
0.14589296281337738,
0.13303035497665405,
-0.3092343807220459,
-0.5054617524147034,
0.18433961272239685,
-0.14307492971420288,
0.1386510729789734,
0.14460968971252441,
-0.13848993182182312,
-0.22747622430324554,
-0.3451977074146271,
0.3911096155643463,
-0.26679402589797974,
-0.037199825048446655,
0.015018090605735779,
0.021279945969581604,
0.0024268985725939274,
-0.19503742456436157,
0.3670661151409149,
-0.09260797500610352,
0.1054779589176178,
0.4044225513935089,
0.09721183776855469,
-0.42907553911209106,
0.010548939928412437,
-0.18643586337566376,
0.2348034381866455,
0.43498870730400085,
-0.3528778851032257,
0.2686307430267334,
0.289294570684433,
0.2466324269771576,
-0.09657883644104004,
-0.37179577350616455,
0.33591604232788086,
0.12306120246648788,
-0.24635183811187744,
0.07487960904836655,
0.35342371463775635,
0.25894683599472046,
0.03871886432170868,
0.34804436564445496,
-0.0793568342924118,
-0.3422161340713501,
0.11014308035373688,
0.12057989835739136,
0.6886276006698608,
0.11358132213354111,
-0.022880736738443375,
-0.11067131906747818,
-0.020291253924369812,
0.1900828331708908,
0.32269883155822754,
0.35001611709594727,
-0.08714297413825989,
-0.105165034532547,
-0.07010547816753387,
-0.20032259821891785,
0.3696189820766449,
0.3462675213813782,
-0.008747976273298264,
0.17500616610050201,
-0.34316402673721313,
0.19338245689868927,
-0.023219147697091103,
0.11412784457206726,
0.015723004937171936,
-0.10872375965118408,
-0.6191849112510681,
-0.10689229518175125,
0.17632198333740234,
0.16235466301441193,
0.08891070634126663,
0.011702187359333038,
0.24714499711990356,
-0.14471213519573212,
-0.3079984188079834,
0.11130549758672714,
-0.00801646988838911,
-0.04160412773489952,
0.01346682570874691,
-0.4753638505935669,
0.4072820246219635,
0.1322384923696518,
0.045925986021757126,
0.042927663773298264,
-0.3638763725757599,
-0.1467173844575882,
0.07806886732578278,
0.30752232670783997,
-0.07680986821651459,
-0.05569242686033249,
0.3177121877670288,
-0.01947830431163311,
-0.35014450550079346,
0.26958006620407104,
-0.04225609824061394,
-0.3970898389816284,
-0.017566055059432983,
-0.016627945005893707,
0.1622014343738556,
-0.042216043919324875,
0.3572515845298767,
-0.12694090604782104,
0.2237270474433899,
-0.08929932862520218,
-0.0213436521589756,
0.2558741569519043,
-0.06267015635967255,
0.32496383786201477,
-0.40671634674072266,
-0.5311157703399658,
-0.11841535568237305,
0.4737793505191803,
-0.16113689541816711,
0.16392657160758972,
0.4093107581138611,
0.20468468964099884,
-0.10121476650238037,
-0.13262712955474854,
-0.100998654961586,
0.6033124923706055,
-0.25739744305610657,
0.055588316172361374,
0.26135578751564026,
0.23499618470668793,
0.12921571731567383,
0.08121053874492645,
-0.2068825513124466,
0.2369668185710907,
-0.44512084126472473,
-0.2956920266151428,
-0.32060542702674866,
-0.031543463468551636,
-0.11147308349609375,
0.23678486049175262,
-0.1982325315475464,
0.2298121303319931,
0.32572221755981445,
-0.1543678641319275,
-0.06770745664834976,
-0.15510457754135132,
-0.05100603029131889,
-0.12223160266876221,
0.03916923701763153,
0.4619290232658386,
0.3444003164768219,
-0.015349017456173897,
-0.20711714029312134,
0.023684248328208923,
-0.2627098560333252,
0.010329406708478928,
-0.03861835598945618,
0.2097308486700058,
0.015485000796616077,
-0.22774477303028107,
0.11938132345676422,
-0.13160651922225952,
-0.0723901093006134,
-0.09515105187892914,
0.3621633052825928,
0.44842758774757385,
0.23153932392597198,
0.430325984954834,
-0.2218887060880661,
0.03617505729198456,
-0.1545897126197815,
-0.1972215324640274,
-0.14965364336967468,
0.05191029608249664,
-0.021206071600317955,
0.24225422739982605,
0.19320692121982574,
0.08948542177677155,
0.11643441766500473,
-0.11006122082471848,
0.08062610775232315,
0.5400264859199524,
-0.13298657536506653,
0.10293388366699219,
-0.11752715706825256,
-0.0846940204501152,
0.32257014513015747,
0.16326376795768738,
-0.21217547357082367,
-0.3344978094100952,
-0.17308178544044495,
-0.024970943108201027,
-0.07287207245826721,
-0.23419418931007385,
0.22934706509113312,
0.12288646399974823,
0.11139222979545593,
0.1172550618648529,
-0.2584042251110077,
0.01872871071100235,
0.32987144589424133,
0.21037200093269348,
-0.16120527684688568,
-0.1679811328649521,
0.23183731734752655,
0.3008243441581726,
-0.15844310820102692,
-0.010894674807786942,
0.49597805738449097,
0.24395915865898132,
0.21337243914604187,
0.2389446645975113,
0.2101110816001892,
0.4715210497379303,
0.07764454185962677,
0.14531554281711578,
-0.21236762404441833,
-0.2343253344297409,
-0.22413532435894012,
0.24365997314453125,
-0.3500423729419708,
-0.13424426317214966,
0.10761618614196777,
0.298239141702652,
-0.19118404388427734,
-0.16986915469169617,
0.12382956594228745,
-0.11673764884471893,
-0.06051640957593918,
-0.018041282892227173,
-0.03948149457573891,
0.06628300994634628,
0.09932887554168701,
-0.07373923063278198,
-0.06773509085178375,
0.3082699179649353,
0.3262208104133606,
-0.10598018765449524,
-0.022259481251239777,
-0.038686737418174744,
-0.013699997216463089,
0.21814414858818054,
0.39022958278656006,
0.0667136013507843,
-0.20600533485412598,
-0.16285987198352814,
0.0869787186384201,
0.15590178966522217,
0.3260015845298767,
0.3050832450389862,
0.2727411389350891,
0.18830463290214539,
-0.07519613951444626,
0.15233442187309265,
-0.08496566861867905,
-0.0731976255774498,
0.42610153555870056,
0.0010242536664009094,
-0.12662631273269653,
0.19180908799171448,
-0.11017657071352005,
0.09421756118535995,
0.18533575534820557,
0.12105754017829895,
0.3260355293750763,
-0.3922938108444214,
0.4848018288612366,
0.11860352009534836,
-0.23178565502166748,
0.2018924057483673,
-0.1468789279460907,
-0.18622396886348724,
-0.04382455721497536,
0.6196117997169495,
0.007133967243134975,
0.0072267912328243256,
-0.35229113698005676,
-0.025225695222616196,
-0.2545727789402008,
0.123044952750206,
0.4069458842277527,
0.0867311954498291,
-0.2310747355222702,
0.120476633310318,
-0.40076297521591187,
0.07876291871070862,
0.25857844948768616,
-0.02687578834593296,
0.035504840314388275,
-0.00968727096915245,
-0.4064134657382965,
0.3533706068992615,
0.4826287031173706,
-0.5855507254600525,
-0.09238948673009872,
-0.2884923815727234,
-0.059377897530794144,
-0.030388493090867996,
0.0028538331389427185,
0.07015445083379745,
-0.12576311826705933,
-0.27581867575645447,
0.2281731367111206,
-0.2464967668056488,
-0.16005218029022217,
-0.1628659963607788,
-0.28031811118125916,
0.26009511947631836,
0.03904098644852638,
0.47183293104171753,
0.25080591440200806,
-0.020283766090869904,
-0.06658905744552612,
-0.14148707687854767,
-0.20777004957199097,
0.18165472149848938,
-0.24381479620933533,
0.31966426968574524,
-0.07981622219085693,
0.4479880928993225,
-0.5258298516273499,
0.13037391006946564,
-0.20569933950901031,
0.1156926229596138,
-0.24520723521709442,
-0.029439490288496017,
0.033135853707790375,
0.18332485854625702,
0.11718202382326126,
-0.1479770541191101,
-0.15856744349002838,
0.053141552954912186,
0.05293915420770645,
0.29874375462532043,
-0.3219078481197357,
-0.14502596855163574,
0.38149917125701904,
-0.6088829636573792,
-0.2015819102525711,
-0.126040518283844,
0.5098457336425781,
0.08054554462432861,
-0.30226799845695496,
-0.6198982000350952,
-0.14081978797912598,
0.18658308684825897,
0.0756971538066864,
-0.18731597065925598,
0.3426639139652252,
-0.31001073122024536,
0.37333860993385315,
-0.0643872320652008,
0.125113844871521,
0.3255763649940491,
0.17944404482841492,
0.1113642156124115,
-0.3195109963417053
] |
https://github.com/huggingface/datasets/issues/2650 | [load_dataset] shard and parallelize the process | I think @TevenLeScao is exploring adding multiprocessing in `GeneratorBasedBuilder._prepare_split` - feel free to post updates here :) | - Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core.
- If the build crashes, everything done up to that point gets lost
Request: Shard the build over multiple arrow files, which would enable:
- much faster build by parallelizing the build process
- if the process crashed, the completed arrow files don't need to be re-built again
Thank you!
@lhoestq | 17 | [load_dataset] shard and parallelize the process
- Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core.
- If the build crashes, everything done up to that point gets lost
Request: Shard the build over multiple arrow files, which would enable:
- much faster build by parallelizing the build process
- if the process crashed, the completed arrow files don't need to be re-built again
Thank you!
@lhoestq
I think @TevenLeScao is exploring adding multiprocessing in `GeneratorBasedBuilder._prepare_split` - feel free to post updates here :) | [
-0.8474745154380798,
0.1248863935470581,
-0.22292068600654602,
0.17701125144958496,
-0.07837452739477158,
0.07073412090539932,
0.04691788926720619,
0.46122172474861145,
-0.05785698443651199,
0.20390187203884125,
0.07295181602239609,
0.2827209234237671,
0.09175064414739609,
0.14991120994091034,
-0.09787959605455399,
-0.12644416093826294,
-0.07742709666490555,
0.3498860001564026,
-0.23687100410461426,
0.055634208023548126,
-0.21083760261535645,
0.11856415122747421,
-0.009652957320213318,
0.06746633350849152,
-0.2398459017276764,
-0.04963348060846329,
0.06817889958620071,
0.2930798828601837,
-0.18414489924907684,
-0.3405764400959015,
-0.15209272503852844,
0.2911764085292816,
-0.18237194418907166,
0.09805376082658768,
-0.00010214525536866859,
0.028361156582832336,
0.2794744372367859,
0.16567087173461914,
-0.3586196303367615,
0.07319892197847366,
-0.24019575119018555,
-0.18137961626052856,
0.02597305364906788,
-0.054491668939590454,
0.18135833740234375,
-0.3097265958786011,
0.26039883494377136,
-0.10907797515392303,
0.39119160175323486,
-0.1330045759677887,
0.32949307560920715,
-0.006100681610405445,
0.0014461800456047058,
-0.19839203357696533,
0.21409741044044495,
-0.07194949686527252,
-0.29083380103111267,
-0.0007173996418714523,
0.22410136461257935,
0.14891207218170166,
-0.25887900590896606,
0.3606513738632202,
0.10823604464530945,
0.12367390096187592,
0.1524558812379837,
-0.026456058025360107,
0.09299618005752563,
-0.3093699514865875,
0.05015048757195473,
0.10336893796920776,
0.26173079013824463,
-0.043370962142944336,
-0.1823670119047165,
-0.1282731294631958,
-0.1047787219285965,
-0.40922221541404724,
0.11903557181358337,
0.05230626463890076,
-0.2949145436286926,
0.09489891678094864,
-0.13509373366832733,
-0.2675897479057312,
-0.09429065883159637,
-0.3973878026008606,
0.22494423389434814,
0.027160070836544037,
0.04023805260658264,
0.0504334457218647,
0.4405064880847931,
0.4099104404449463,
0.1691335290670395,
-0.0021950267255306244,
0.0005122274160385132,
-0.0980643704533577,
-0.2906961441040039,
-0.025443313643336296,
-0.06177204102277756,
0.03692862391471863,
0.08114580065011978,
0.10955668240785599,
0.2014060616493225,
0.3109112083911896,
0.28220632672309875,
0.15899387001991272,
0.01834181137382984,
-0.23203973472118378,
0.10572172701358795,
-0.43827080726623535,
0.3091466426849365,
-0.1434812694787979,
-0.4014264941215515,
-0.10504508763551712,
-0.07415623217821121,
-0.3632506728172302,
0.11131973564624786,
0.13910365104675293,
-0.08480630815029144,
-0.010850835591554642,
-0.006705760955810547,
-0.16047795116901398,
0.25539788603782654,
-0.21830151975154877,
0.17144420742988586,
0.37903961539268494,
0.09423243999481201,
0.1206640973687172,
-0.12932303547859192,
-0.19106729328632355,
-0.21168597042560577,
-0.49740633368492126,
-0.13430918753147125,
-0.3104357123374939,
-0.17096343636512756,
0.2897647023200989,
0.028666581958532333,
-0.1129438579082489,
0.1597970724105835,
0.2741197943687439,
-0.05970226228237152,
0.01688563823699951,
0.6706242561340332,
-0.09341949224472046,
-0.03162751346826553,
0.20097623765468597,
0.06719624996185303,
-0.021641938015818596,
-0.0984327495098114,
0.2088305801153183,
-0.14017647504806519,
0.1457582712173462,
-0.0458393469452858,
-0.6096537113189697,
0.04980442672967911,
0.2809634208679199,
0.23004205524921417,
0.30354955792427063,
-0.19970661401748657,
0.1142289936542511,
-0.04573466628789902,
-0.029813362285494804,
-0.0004210472106933594,
0.17240890860557556,
-0.016449585556983948,
-0.17059443891048431,
0.19982695579528809,
0.19560788571834564,
-0.27724775671958923,
0.05793621391057968,
-0.37776699662208557,
-0.16474270820617676,
0.20430302619934082,
0.2136525958776474,
-0.3746018707752228,
0.13717733323574066,
-0.12653280794620514,
0.21456004679203033,
0.7061309218406677,
-0.021035145968198776,
-0.12629126012325287,
0.44423264265060425,
-0.1018332988023758,
-0.16376470029354095,
0.2873445749282837,
0.19346198439598083,
0.16469107568264008,
0.010423505678772926,
-0.07987105846405029,
0.29579591751098633,
-0.25385376811027527,
0.23260724544525146,
-0.18936112523078918,
-0.1753435879945755,
-0.35985320806503296,
0.17402538657188416,
0.025576172396540642,
-0.17291471362113953,
0.1437787115573883,
-0.10479007661342621,
0.2288646697998047,
-0.21994629502296448,
0.014926226809620857,
0.02305014058947563,
-0.0586087740957737,
-0.19598333537578583,
-0.09461569041013718,
0.09176907688379288,
-0.47767192125320435,
0.2140202522277832,
-0.3210853934288025,
-0.2098120152950287,
0.02135847508907318,
-0.2110043168067932,
0.05932603031396866,
0.06562268733978271,
-0.29222336411476135,
0.12590542435646057,
0.2111991047859192,
0.08764160424470901,
-0.13678064942359924,
-0.3512566089630127,
-0.317609965801239,
0.019007854163646698,
-0.33331596851348877,
0.05793213099241257,
-0.2696940302848816,
-0.03568824380636215,
-0.0924484133720398,
0.001340243499726057,
-0.09468115866184235,
-0.14745864272117615,
-0.1165051981806755,
-0.22745761275291443,
-0.14053845405578613,
0.38047921657562256,
-0.029773825779557228,
0.2757701277732849,
0.2998383641242981,
0.08621178567409515,
-0.042701199650764465,
0.009405363351106644,
0.1495693475008011,
-0.2923635244369507,
-0.0968901738524437,
-0.23010870814323425,
0.24902629852294922,
0.21255932748317719,
-0.04107356444001198,
0.2579047977924347,
0.19966502487659454,
-0.090540312230587,
0.17038333415985107,
-0.07296402007341385,
0.08650121837854385,
-0.06717318296432495,
0.12807510793209076,
-0.06060725077986717,
0.2946866452693939,
0.3043147623538971,
-0.2099083662033081,
0.37264853715896606,
0.5471311807632446,
0.08810849487781525,
-0.05827545374631882,
0.046959757804870605,
0.050350122153759,
-0.280744731426239,
0.022021835669875145,
0.2729949355125427,
0.2720738351345062,
0.1772875040769577,
0.27834808826446533,
-0.0490121990442276,
0.1459725797176361,
-0.3035907447338104,
0.2970768213272095,
0.012063920497894287,
0.3535219728946686,
0.10320348292589188,
-0.19547314941883087,
-0.25250309705734253,
-0.3680439293384552,
-0.19386593997478485,
0.3127192258834839,
0.047413162887096405,
0.16847455501556396,
0.055196329951286316,
-0.08936956524848938,
0.2103198766708374,
-0.21870186924934387,
-0.09156568348407745,
-0.118467777967453,
-0.11995530873537064,
0.36635249853134155,
0.11068707704544067,
-0.31536930799484253,
0.11503738164901733,
0.08716684579849243,
0.21665415167808533,
-0.08048996329307556,
0.0658978670835495,
-0.3990318179130554,
-0.2614227831363678,
0.07431864738464355,
0.14678312838077545,
0.2636730670928955,
0.2047540247440338,
0.3777029514312744,
-0.1447579562664032,
0.06410190463066101,
-0.19444912672042847,
-0.015775348991155624,
0.06913919746875763,
-0.06015674024820328,
-0.029107777401804924,
0.23921017348766327,
0.002849392592906952,
0.1318606436252594,
-0.4177134335041046,
0.22051438689231873,
-0.03625292703509331,
-0.06512364000082016,
-0.07488160580396652,
-0.1147136241197586,
-0.007094749249517918,
-0.05642387270927429,
-0.21835419535636902,
0.004966349340975285,
-0.5623198747634888,
0.27896931767463684,
-0.022125178948044777,
0.2666032612323761,
-0.2222786843776703,
0.15998461842536926,
0.13556835055351257,
0.11305059492588043,
0.13485656678676605,
-0.050669241696596146,
-0.30499276518821716,
0.03977522253990173,
-0.4613496959209442,
-0.011503580957651138,
-0.07921656966209412,
-0.006916280835866928,
0.48737895488739014,
0.02190229669213295,
-0.4278293251991272,
0.4389081299304962,
-0.35197940468788147,
0.16251878440380096,
-0.03443820774555206,
-0.07149764895439148,
0.08826691657304764,
0.3660335838794708,
-0.31322479248046875,
0.11105822771787643,
0.24900862574577332,
0.03240855783224106,
-0.30868661403656006,
0.1469259262084961,
-0.09977243095636368,
0.26813939213752747,
-0.23486410081386566,
0.8984974026679993,
-0.14435666799545288,
-0.04943842813372612,
0.21725644171237946,
0.18652351200580597,
0.1856762021780014,
-0.40093719959259033,
-0.08350758254528046,
0.05929907038807869,
0.01719537377357483,
-0.037847623229026794,
0.2552926540374756,
-0.0462503582239151,
-0.16388794779777527,
0.014001019299030304,
-0.05777738243341446,
-0.004052989184856415,
-0.31233149766921997,
0.28899434208869934,
-0.18094785511493683,
0.08927398175001144,
-0.019488520920276642,
-0.02423344925045967,
-0.001789834350347519,
0.21795141696929932,
0.08272393047809601,
-0.06966042518615723,
0.27051401138305664,
-0.48002612590789795,
0.06117899343371391,
0.040010400116443634,
-0.5242887139320374,
0.3440461754798889,
-0.09293024986982346,
-0.38774725794792175,
-0.06324315071105957,
-0.11789645254611969,
0.11213840544223785,
-0.06932596117258072,
0.31468576192855835,
-0.2052694410085678,
-0.20159083604812622,
-0.11493121087551117,
-0.22011299431324005,
0.10470572859048843,
0.09694603085517883,
0.12030607461929321,
0.3900411128997803,
0.2860066592693329,
0.14577659964561462,
-0.3871022164821625,
-0.33294352889060974,
0.1496720314025879,
0.1803818643093109,
-0.1862143874168396,
-0.13367244601249695,
-0.33291181921958923,
-0.1665077954530716,
-0.23574095964431763,
0.2014361321926117,
-0.056279897689819336,
-0.0989857092499733,
-0.24057383835315704,
-0.43244823813438416,
-0.07363937795162201,
0.07286137342453003,
-0.02858644723892212,
0.3298444151878357,
0.11497189104557037,
-0.32352349162101746,
0.16459043323993683,
0.041481032967567444,
-0.11590223014354706,
0.3001171946525574,
0.3369603455066681,
-0.1790882647037506,
-0.1263280063867569,
0.22277706861495972,
-0.18061058223247528,
0.2763354778289795,
0.3738740384578705,
-0.03685527667403221,
0.037914078682661057,
0.0400560200214386,
0.31632137298583984,
-0.04527069628238678,
-0.1698710322380066,
0.26809653639793396,
-0.058296263217926025,
-0.013075320050120354,
-0.26445358991622925,
0.3409498631954193,
-0.10545413196086884,
-0.1943814754486084,
0.5854561924934387,
-0.025803662836551666,
-0.02143116481602192,
0.5604791641235352,
0.22255858778953552,
0.8603490591049194,
-0.21401216089725494,
0.02228366769850254,
-0.11932944506406784,
-0.18936866521835327,
0.12563534080982208,
-0.2565394937992096,
0.07521945238113403,
-0.35086995363235474,
-0.28803983330726624,
0.21003396809101105,
-0.061485446989536285,
0.10758920013904572,
0.42248719930648804,
-0.18970844149589539,
-0.07512632012367249,
0.15885816514492035,
-0.2798059582710266,
-0.27746686339378357,
0.39963197708129883,
-0.21133682131767273,
-0.23176202178001404,
-0.18138821423053741,
0.17001034319400787,
0.18362417817115784,
-0.20154432952404022,
-0.25263282656669617,
0.002505895681679249,
0.40826544165611267,
-0.09146721661090851,
-0.16679900884628296,
-0.17543759942054749,
-0.21720625460147858,
0.06457063555717468,
-0.13235576450824738,
-0.1478135883808136,
0.1755170077085495,
0.13809502124786377,
0.12237831950187683,
0.07068797945976257,
0.02307824417948723,
0.4213021397590637,
0.12323342263698578,
0.15122951567173004,
-0.11281631886959076,
-0.31178775429725647,
-0.027347175404429436,
-0.21297183632850647,
-0.16237138211727142,
0.03515177592635155,
-0.286560595035553,
-0.38983404636383057,
0.2479558289051056,
0.18524891138076782,
-0.12086161971092224,
0.04326462000608444,
-0.04351094365119934,
0.0045424774289131165,
-0.3280351459980011,
-0.2818494141101837,
0.20464107394218445,
-0.1068822592496872,
-0.16552038490772247,
0.09573773294687271,
0.08545742928981781,
-0.2777714133262634,
0.007913617417216301,
-0.1681649386882782,
0.044789835810661316,
0.15650899708271027,
0.20426568388938904,
0.1057296097278595,
-0.14168843626976013,
-0.3944171965122223,
-0.0675104558467865,
0.36020177602767944,
-0.5618730783462524,
0.3873865306377411,
0.008660873398184776,
-0.20950762927532196,
0.22655905783176422,
0.3055671453475952,
0.03253694251179695,
0.2070995271205902,
-0.2979159653186798,
0.14296554028987885,
-0.20158974826335907,
0.07216634601354599,
0.07507334649562836,
0.38468489050865173,
0.015504155308008194,
-0.24840261042118073,
0.07349786162376404,
0.478094220161438,
-0.45256951451301575,
0.1328156590461731,
-0.2951555848121643,
0.21491272747516632,
-0.30381089448928833,
-0.17342284321784973,
0.0729120746254921,
0.20302550494670868,
0.16783787310123444,
0.2629009187221527,
-0.31560221314430237,
-0.31832659244537354,
0.0517720989882946,
0.08479484170675278,
-0.24233761429786682,
0.2575959861278534,
0.011286984197795391,
0.06351588666439056,
-0.13625437021255493,
-0.19395941495895386,
0.33362457156181335,
-0.30811047554016113,
-0.02559623122215271,
-0.24613773822784424,
0.41568300127983093,
0.010023344308137894,
-0.350364089012146,
0.23730109632015228,
-0.03071867674589157,
0.5721353888511658,
-0.034434445202350616,
0.18778395652770996,
-0.1784466654062271,
-0.31634142994880676,
0.24840518832206726,
0.1112634539604187,
0.20909255743026733,
0.020375259220600128,
0.28507545590400696,
0.1863638013601303,
-0.24439607560634613,
-0.06868411600589752,
0.322410523891449,
0.3272123336791992,
0.24811038374900818,
-0.22922514379024506,
-0.058335281908512115,
0.3180481791496277,
-0.11034645140171051,
0.0003600447962526232,
-0.035138022154569626,
-0.23643195629119873,
0.26027950644493103,
0.14040455222129822,
0.26551926136016846,
0.028799809515476227,
0.13655982911586761,
0.07692103832960129,
-0.08381035178899765,
-0.06719908118247986,
0.04031549021601677,
0.18696221709251404,
-0.0018746629357337952,
-0.08800821006298065,
0.43055418133735657,
-0.027296006679534912,
0.2841881513595581,
0.30894649028778076,
-0.43370985984802246,
0.3852532207965851,
0.11910343915224075,
0.12139776349067688,
0.03538653627038002,
-0.03627113997936249,
0.21089300513267517,
0.217939555644989,
-0.059451088309288025,
0.06018558889627457,
0.14181259274482727,
0.2198617160320282,
0.10561751574277878,
-0.28780269622802734,
-0.15745534002780914,
0.5048241019248962,
-0.08978071063756943,
-0.13082148134708405,
-0.10922835022211075,
-0.2573073208332062,
-0.16261447966098785,
0.11711770296096802,
-0.04379117116332054,
0.30199456214904785,
0.5670789480209351,
0.25202295184135437,
0.3979179263114929,
-0.11360067129135132,
0.33507394790649414,
-0.038438379764556885,
0.10268649458885193,
-0.3060402274131775,
0.11422590911388397,
0.2889244854450226,
0.00867241621017456,
0.10956276953220367,
0.2500513195991516,
0.24067574739456177,
0.20385950803756714,
-0.2822396159172058,
0.2471766620874405,
-0.04378153383731842,
0.0011066701263189316,
-0.33572089672088623,
0.07937858998775482,
0.14019151031970978,
0.14540554583072662,
0.2973111569881439,
0.1983279436826706,
-0.2596539556980133,
-0.20461881160736084,
-0.05383533611893654,
-0.027726057916879654,
0.07875730097293854,
0.16242308914661407,
0.3740908205509186,
-0.37580782175064087,
-0.21472249925136566,
0.13325434923171997,
-0.2951822876930237,
-0.21756409108638763,
0.24925212562084198,
-0.5435282588005066,
-0.16353026032447815,
-0.1684042364358902,
0.13785354793071747,
-0.08228719234466553,
0.8893266320228577,
0.12608419358730316,
0.27438884973526,
-0.4082642197608948,
-0.426480233669281,
-0.4087658226490021,
0.05934753268957138,
-0.254557341337204,
0.37496495246887207,
0.16193078458309174,
0.4994617700576782,
0.2012673020362854,
0.14769920706748962,
0.41240447759628296,
-0.07986632734537125,
-0.023550773039460182,
0.5178928971290588,
-0.30444228649139404,
0.2887970805168152,
0.07089786231517792,
-0.16359739005565643,
-0.1315835863351822,
-0.3494099974632263,
0.27408769726753235,
0.14066527783870697,
0.13342508673667908,
-0.003296462818980217,
-0.07649517059326172,
0.508405864238739,
-0.058985792100429535,
0.42333459854125977,
-0.02591250278055668,
-0.02285003662109375,
-0.22453424334526062,
-0.20220986008644104,
0.003269210457801819,
-0.17545203864574432,
-0.003460024017840624,
0.046046316623687744,
0.3155647814273834,
0.1279527246952057,
0.13195201754570007,
0.096661277115345,
-0.4934071898460388,
0.18319639563560486,
-0.030642539262771606,
0.09875225275754929,
0.03925628215074539,
0.04915750026702881,
-0.0897219181060791,
0.1432693898677826,
0.0438588410615921,
0.23474934697151184,
0.09408369660377502,
-0.1277712881565094,
-0.3882213234901428,
-0.24908147752285004,
0.29666560888290405,
0.06863434612751007,
-0.2452336549758911,
-0.08578995615243912,
0.3204103708267212,
0.42491281032562256,
0.16140896081924438,
-0.4235752820968628,
-0.07634356617927551,
0.09229552000761032,
-0.002853360027074814,
-0.23122340440750122,
0.18245619535446167,
0.11866039037704468,
-0.01945655792951584,
-0.16180387139320374,
0.2068738341331482,
-0.1148134097456932,
-0.19382473826408386,
-0.39447182416915894,
-0.40692758560180664
] |
https://github.com/huggingface/datasets/issues/2650 | [load_dataset] shard and parallelize the process | Posted a PR to address the building side, still needs something to load sharded arrow files + tests | - Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core.
- If the build crashes, everything done up to that point gets lost
Request: Shard the build over multiple arrow files, which would enable:
- much faster build by parallelizing the build process
- if the process crashed, the completed arrow files don't need to be re-built again
Thank you!
@lhoestq | 18 | [load_dataset] shard and parallelize the process
- Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core.
- If the build crashes, everything done up to that point gets lost
Request: Shard the build over multiple arrow files, which would enable:
- much faster build by parallelizing the build process
- if the process crashed, the completed arrow files don't need to be re-built again
Thank you!
@lhoestq
Posted a PR to address the building side, still needs something to load sharded arrow files + tests | [
-0.7903308868408203,
-0.008419990539550781,
-0.23836027085781097,
0.14159858226776123,
-0.05709855258464813,
0.07170522958040237,
0.09555792808532715,
0.4681587517261505,
0.03176653012633324,
0.15775750577449799,
0.13327528536319733,
0.33828017115592957,
0.06595585495233536,
0.21931301057338715,
-0.09302643686532974,
-0.09908050298690796,
-0.08203569799661636,
0.3162359297275543,
-0.2450856864452362,
0.008565559983253479,
-0.14338022470474243,
-0.07550179213285446,
-0.0025423243641853333,
0.04479244723916054,
-0.1543789803981781,
-0.08558535575866699,
0.1207188069820404,
0.38527265191078186,
-0.2077302783727646,
-0.44385698437690735,
-0.1257428526878357,
0.15709622204303741,
-0.10585188120603561,
0.110800601541996,
-0.00009705151751404628,
0.05163495987653732,
0.3837971091270447,
0.10373122990131378,
-0.2828178107738495,
0.1411125510931015,
-0.3172454535961151,
-0.29404589533805847,
0.1084766760468483,
-0.13052794337272644,
0.22932380437850952,
-0.3141365647315979,
0.23653502762317657,
-0.1799592673778534,
0.39668142795562744,
-0.07973580062389374,
0.3415466547012329,
0.1345561444759369,
-0.1270754337310791,
-0.20493580400943756,
0.1619810163974762,
-0.16453860700130463,
-0.27541857957839966,
0.03844553232192993,
0.272858202457428,
0.19143341481685638,
-0.21777302026748657,
0.2960987389087677,
0.06079442799091339,
0.07424340397119522,
0.10986821353435516,
-0.15122535824775696,
-0.04468321055173874,
-0.2500826418399811,
0.011477990075945854,
0.11122985929250717,
0.38156044483184814,
-0.11844427138566971,
-0.014674888923764229,
-0.0617235004901886,
-0.09150317311286926,
-0.3168744742870331,
0.04250849410891533,
0.07756860554218292,
-0.2676609456539154,
0.06622554361820221,
-0.0882897675037384,
-0.24603858590126038,
-0.21144959330558777,
-0.22222034633159637,
0.42961224913597107,
0.037429869174957275,
0.04707677289843559,
0.08162681013345718,
0.3955363631248474,
0.2370840311050415,
0.09899690747261047,
0.00607164204120636,
-0.004649445414543152,
-0.06251940131187439,
-0.3310821056365967,
-0.019388731569051743,
-0.017255112528800964,
-0.143591046333313,
0.09940389543771744,
0.21819064021110535,
0.21384446322917938,
0.35580378770828247,
0.33728498220443726,
0.12404501438140869,
-0.04343083128333092,
-0.037751421332359314,
0.17569464445114136,
-0.4160517454147339,
0.2009287029504776,
-0.031101690605282784,
-0.2899516522884369,
-0.028974823653697968,
-0.2473769634962082,
-0.310382604598999,
-0.02789699286222458,
0.08017405867576599,
0.0027135610580444336,
-0.0679236575961113,
0.05825190991163254,
-0.042937010526657104,
0.15651088953018188,
-0.14331039786338806,
0.12672942876815796,
0.4180452227592468,
0.06631693989038467,
0.1784774363040924,
-0.13231414556503296,
-0.21476395428180695,
-0.25359511375427246,
-0.2662907540798187,
-0.1420704573392868,
-0.17023073136806488,
-0.25006237626075745,
0.24237748980522156,
0.13508249819278717,
0.029384374618530273,
0.17878007888793945,
0.08620742708444595,
0.05560201779007912,
-0.035930439829826355,
0.6922669410705566,
0.1035701334476471,
0.03495386242866516,
0.13585034012794495,
-0.05337534099817276,
-0.12915277481079102,
-0.04516668990254402,
0.30223768949508667,
-0.1567244529724121,
0.11840394884347916,
-0.16220086812973022,
-0.5937501788139343,
0.06573361158370972,
0.3404948115348816,
0.1920585185289383,
0.13748203217983246,
-0.2275441586971283,
0.08074595034122467,
-0.16745951771736145,
0.04133700951933861,
0.056248873472213745,
0.22653837502002716,
0.0341654010117054,
-0.14244534075260162,
0.23298928141593933,
0.19388312101364136,
-0.24789199233055115,
0.050340160727500916,
-0.3151797354221344,
-0.23139044642448425,
-0.003483012318611145,
0.23295368254184723,
-0.34598249197006226,
-0.02046915888786316,
-0.04535975307226181,
0.17060233652591705,
0.5753725171089172,
-0.17984142899513245,
-0.18848612904548645,
0.32806137204170227,
-0.17628338932991028,
-0.295490562915802,
0.204116553068161,
0.3370152413845062,
0.1600445955991745,
0.019267838448286057,
-0.2303573191165924,
0.23132003843784332,
-0.16562190651893616,
0.08005660772323608,
-0.19862312078475952,
-0.2647254765033722,
-0.44444596767425537,
0.28646665811538696,
0.029144033789634705,
-0.1735154390335083,
0.18767136335372925,
-0.22702465951442719,
0.19171655178070068,
-0.1591993123292923,
-0.09410017728805542,
0.07270373404026031,
0.07878808677196503,
-0.2583844065666199,
-0.0726441815495491,
0.1576502025127411,
-0.518139660358429,
0.20818638801574707,
-0.23782014846801758,
-0.16296525299549103,
0.059875182807445526,
-0.15834787487983704,
-0.04155295342206955,
0.061131127178668976,
-0.19941894710063934,
0.13098864257335663,
0.23218858242034912,
0.03197791799902916,
-0.15581081807613373,
-0.2840600609779358,
-0.33057549595832825,
-0.010747920721769333,
-0.47123679518699646,
-0.006376062519848347,
-0.19810283184051514,
-0.07413347065448761,
-0.06907768547534943,
0.052108511328697205,
-0.04511037841439247,
-0.11383382230997086,
-0.109732486307621,
-0.1506597250699997,
-0.0895746573805809,
0.40420854091644287,
-0.04175656661391258,
0.37101709842681885,
0.40587368607521057,
0.18154668807983398,
-0.0710606649518013,
-0.23507295548915863,
0.14122819900512695,
-0.12363579869270325,
-0.061049461364746094,
-0.17639590799808502,
0.05703139677643776,
0.2284354716539383,
-0.035345423966646194,
0.2612059712409973,
0.19957061111927032,
-0.07725950330495834,
0.08263649791479111,
-0.11256502568721771,
-0.10835836827754974,
-0.03667159378528595,
0.22305060923099518,
-0.020360052585601807,
0.318074107170105,
0.23511920869350433,
-0.2142067551612854,
0.23148459196090698,
0.4000014066696167,
-0.0019528456032276154,
0.01734292134642601,
0.1007605642080307,
0.09218943864107132,
-0.18632686138153076,
0.10054665058851242,
0.23655928671360016,
0.20218156278133392,
0.23562517762184143,
0.13389287889003754,
0.01405458152294159,
0.00031714141368865967,
-0.2997000813484192,
0.23911643028259277,
0.07945536077022552,
0.34885644912719727,
0.03611306846141815,
-0.1392536610364914,
-0.15426819026470184,
-0.3086874485015869,
-0.31913307309150696,
0.13353991508483887,
0.0017394572496414185,
0.1077737957239151,
-0.0407603420317173,
-0.08266482502222061,
0.1478496789932251,
-0.16281484067440033,
0.09322161227464676,
-0.007587447762489319,
-0.14620022475719452,
0.250552773475647,
-0.0788806825876236,
-0.355172336101532,
0.24013611674308777,
-0.08320639282464981,
0.3366306722164154,
-0.02746160700917244,
-0.006846010684967041,
-0.4222637414932251,
-0.3927353620529175,
0.0826062560081482,
0.17006686329841614,
0.2328433096408844,
0.2878982424736023,
0.4115256369113922,
-0.13778427243232727,
0.17573705315589905,
-0.20407702028751373,
-0.16240429878234863,
0.06422759592533112,
0.05054999887943268,
-0.07048477977514267,
0.07080540060997009,
0.11087393015623093,
0.0867885947227478,
-0.34173375368118286,
0.2036561369895935,
-0.10153365880250931,
-0.08797861635684967,
-0.08896277099847794,
-0.12920056283473969,
-0.16078892350196838,
-0.018852949142456055,
-0.33249226212501526,
0.03916940093040466,
-0.6198057532310486,
0.30595338344573975,
0.033552464097738266,
0.1764010637998581,
-0.21909236907958984,
0.2943303883075714,
0.2546481788158417,
-0.00961354747414589,
0.1956837922334671,
-0.014878608286380768,
-0.31504759192466736,
0.017931688576936722,
-0.4205004572868347,
-0.11648552119731903,
-0.11095049977302551,
0.04545203596353531,
0.4150702655315399,
-0.018490854650735855,
-0.510834276676178,
0.29666438698768616,
-0.3966544270515442,
0.1161385327577591,
-0.06525812298059464,
-0.14474603533744812,
0.23708152770996094,
0.28251293301582336,
-0.32391878962516785,
-0.027931485325098038,
0.13514289259910583,
0.07577496767044067,
-0.2991352081298828,
0.026251889765262604,
-0.13626593351364136,
0.2758637070655823,
-0.12568046152591705,
0.9728964567184448,
-0.19779027998447418,
-0.19416943192481995,
0.16382718086242676,
0.12010910362005234,
0.3154791295528412,
-0.29397380352020264,
-0.06654330343008041,
0.10580767691135406,
0.008460387587547302,
0.05010298639535904,
0.21139618754386902,
-0.05868305265903473,
-0.2631087303161621,
-0.06353995203971863,
-0.013935988768935204,
0.07062412053346634,
-0.14303988218307495,
0.22559821605682373,
-0.2228718101978302,
0.03231555595993996,
0.017537828534841537,
-0.019108165055513382,
0.05755537375807762,
0.2076297104358673,
0.24903389811515808,
0.047489725053310394,
0.23913508653640747,
-0.3958854377269745,
-0.17360252141952515,
0.09572935104370117,
-0.34882357716560364,
0.3482950031757355,
-0.07622748613357544,
-0.17478539049625397,
-0.05362449213862419,
-0.19929549098014832,
0.056121401488780975,
-0.13035538792610168,
0.12835684418678284,
-0.0687480941414833,
-0.18702411651611328,
-0.10118113458156586,
-0.009024355560541153,
-0.15334996581077576,
0.13224326074123383,
0.016995485872030258,
0.28483453392982483,
0.17112763226032257,
0.25591808557510376,
-0.3121747076511383,
-0.3182238042354584,
0.10721755772829056,
0.19545011222362518,
-0.18578742444515228,
-0.10088226944208145,
-0.35595768690109253,
-0.1766461730003357,
-0.2900749146938324,
0.23737597465515137,
-0.18880674242973328,
-0.138002410531044,
-0.2166803479194641,
-0.27853184938430786,
-0.17357969284057617,
0.054061152040958405,
-0.04222753643989563,
0.26964446902275085,
0.15345820784568787,
-0.23805180191993713,
0.2445749044418335,
-0.033696845173835754,
0.010321326553821564,
0.2651325762271881,
0.43232157826423645,
-0.1270911991596222,
-0.06909075379371643,
0.10591810196638107,
-0.031927336007356644,
0.2892662286758423,
0.2796313166618347,
-0.04746628180146217,
-0.11362265795469284,
0.04404374212026596,
0.27846330404281616,
-0.22039461135864258,
0.01810029335319996,
0.1642528623342514,
-0.003522483166307211,
-0.03926790878176689,
-0.12714432179927826,
0.48983052372932434,
-0.14555402100086212,
-0.24013765156269073,
0.5912426114082336,
-0.02642148733139038,
0.029372883960604668,
0.392494797706604,
0.36632615327835083,
0.9272392988204956,
-0.21200548112392426,
0.16844427585601807,
-0.010845936834812164,
-0.1512596160173416,
-0.04343964532017708,
-0.058119986206293106,
-0.01221197098493576,
-0.25517508387565613,
-0.26046112179756165,
0.16718295216560364,
-0.1291898936033249,
0.03699679672718048,
0.39474815130233765,
-0.21280896663665771,
-0.09379412978887558,
0.1358374059200287,
-0.2622056007385254,
-0.20604892075061798,
0.47558343410491943,
-0.13121236860752106,
-0.2903992831707001,
-0.16235506534576416,
0.23196876049041748,
0.17511682212352753,
-0.28011077642440796,
-0.20966827869415283,
0.08529006689786911,
0.3722456097602844,
-0.025734703987836838,
-0.10711038112640381,
-0.07099875062704086,
-0.15991611778736115,
0.16336499154567719,
-0.23855936527252197,
-0.24017412960529327,
0.10000501573085785,
0.0580185167491436,
-0.024984553456306458,
0.1633186936378479,
-0.14108730852603912,
0.5075174570083618,
0.17993728816509247,
0.05342118442058563,
-0.008327553980052471,
-0.36863526701927185,
0.026360277086496353,
-0.20734736323356628,
-0.150211364030838,
0.018938474357128143,
-0.24547573924064636,
-0.404323935508728,
0.055130377411842346,
0.19717459380626678,
-0.09045344591140747,
0.04678335413336754,
-0.16062884032726288,
0.06013540178537369,
-0.3904876410961151,
-0.19365502893924713,
0.2493716925382614,
0.023441657423973083,
-0.0814470648765564,
0.10087455064058304,
0.3284032344818115,
-0.25454801321029663,
0.024481547996401787,
-0.08440572768449783,
-0.07776612043380737,
0.04462653398513794,
0.21432392299175262,
0.10374322533607483,
-0.12045396119356155,
-0.4285353422164917,
0.0482332780957222,
0.25651755928993225,
-0.4275144040584564,
0.22971303761005402,
-0.12196148931980133,
-0.2603393495082855,
0.15968497097492218,
0.25121453404426575,
0.15409442782402039,
0.13071270287036896,
-0.16357532143592834,
-0.018976762890815735,
-0.32399052381515503,
0.2737765312194824,
0.013168567791581154,
0.44028493762016296,
-0.06381993740797043,
-0.3288698196411133,
0.035522907972335815,
0.3536405563354492,
-0.4960681200027466,
0.23170003294944763,
-0.29830268025398254,
0.1794019490480423,
-0.085911825299263,
-0.10864713042974472,
0.15072163939476013,
0.14343427121639252,
0.20552927255630493,
0.1847325563430786,
-0.37693944573402405,
-0.3349057734012604,
0.050633061677217484,
0.08233978599309921,
-0.29286518692970276,
0.26039227843284607,
-0.015007061883807182,
-0.04569333791732788,
-0.21753601729869843,
-0.15549276769161224,
0.14765873551368713,
-0.25597649812698364,
-0.17138633131980896,
-0.18266135454177856,
0.2842918038368225,
0.003193497657775879,
-0.32637500762939453,
0.3177737295627594,
-0.0716511607170105,
0.4945566654205322,
-0.09249730408191681,
0.12249284237623215,
-0.08102564513683319,
-0.311516672372818,
0.3444673418998718,
0.20960727334022522,
0.2091791331768036,
0.07608229666948318,
0.2990204691886902,
0.21366697549819946,
-0.10550718009471893,
-0.10687185823917389,
0.3865197002887726,
0.3156161904335022,
0.19532153010368347,
-0.1793639361858368,
0.015483183786273003,
0.39001041650772095,
-0.12267671525478363,
0.008416048251092434,
0.01665317825973034,
-0.25843751430511475,
0.23969250917434692,
-0.029863156378269196,
0.16166524589061737,
0.057017579674720764,
0.1475837230682373,
0.11199771612882614,
-0.07666096836328506,
-0.13262367248535156,
0.039843782782554626,
-0.07378913462162018,
-0.06562337279319763,
-0.22659744322299957,
0.26424935460090637,
-0.008257109671831131,
0.32002970576286316,
0.2245362550020218,
-0.30735695362091064,
0.4796135723590851,
0.2657303214073181,
0.2018904685974121,
-0.031052328646183014,
-0.0253305584192276,
0.21241039037704468,
0.1384146362543106,
-0.15989366173744202,
0.1955738663673401,
0.11045195162296295,
0.3890169858932495,
0.20702828466892242,
-0.26438531279563904,
-0.14220619201660156,
0.3474678099155426,
-0.05104447901248932,
-0.18880178034305573,
-0.14875197410583496,
-0.2682725489139557,
-0.006200678646564484,
0.13765913248062134,
0.11419785022735596,
0.25534048676490784,
0.5669097900390625,
0.2846606969833374,
0.3670644760131836,
-0.0810493752360344,
0.2744308114051819,
0.16079559922218323,
0.15854674577713013,
-0.2085420787334442,
0.14828427135944366,
0.2891601324081421,
-0.030688144266605377,
0.1601211577653885,
0.19261305034160614,
0.2489517331123352,
0.17140696942806244,
-0.3200194835662842,
0.3639095425605774,
0.06608983129262924,
-0.06798803806304932,
-0.33791571855545044,
0.16938424110412598,
0.23817981779575348,
0.05479089170694351,
0.33922457695007324,
0.26614582538604736,
-0.29706400632858276,
-0.10968524217605591,
-0.08695411682128906,
-0.152435764670372,
-0.09058566391468048,
0.028579406440258026,
0.3185448944568634,
-0.4635984003543854,
-0.2894402742385864,
0.22068369388580322,
-0.298660010099411,
-0.22488290071487427,
0.38463354110717773,
-0.4825999140739441,
-0.1273563802242279,
-0.1957327127456665,
0.15770447254180908,
-0.1625559777021408,
0.9749763607978821,
0.10123089700937271,
0.3574780821800232,
-0.23294298350811005,
-0.2954126000404358,
-0.47324949502944946,
0.12877897918224335,
-0.17429591715335846,
0.11735226213932037,
0.16000744700431824,
0.390790730714798,
0.2397761344909668,
0.19930171966552734,
0.45087677240371704,
-0.09386035054922104,
0.03202235326170921,
0.2735453248023987,
-0.3212478756904602,
0.3342587947845459,
0.19840452075004578,
-0.15048184990882874,
-0.05879998952150345,
-0.43763357400894165,
0.11123026907444,
0.09491021931171417,
0.17921504378318787,
0.03972439840435982,
-0.1508672535419464,
0.4556538164615631,
-0.058228716254234314,
0.5231819152832031,
-0.09591992199420929,
0.14698511362075806,
-0.2517144978046417,
-0.22983579337596893,
-0.0881885439157486,
-0.3158370852470398,
0.07122618705034256,
0.07809144258499146,
0.29486095905303955,
0.07124132663011551,
0.07777577638626099,
0.1562557965517044,
-0.34245413541793823,
0.09799802303314209,
0.017032701522111893,
-0.10916326940059662,
0.014405416324734688,
0.017735609784722328,
-0.06352578848600388,
0.18987815082073212,
0.0024494826793670654,
0.3096039891242981,
0.11411391198635101,
-0.13508081436157227,
-0.25910112261772156,
-0.26855984330177307,
0.3818162977695465,
0.010827918536961079,
-0.20480652153491974,
0.05144035443663597,
0.25904664397239685,
0.21693027019500732,
0.2717994749546051,
-0.3507140278816223,
-0.0808425173163414,
0.11878655105829239,
0.028869839385151863,
-0.2071540355682373,
0.20733918249607086,
0.0770246684551239,
0.016444075852632523,
-0.19135206937789917,
0.26842430233955383,
-0.10272593051195145,
-0.1331329196691513,
-0.3802950978279114,
-0.49573302268981934
] |
https://github.com/huggingface/datasets/issues/2649 | adding progress bar / ETA for `load_dataset` | There are progress bars when downloading data and when preparing them as Arrow files.
The "total silence" part mentioned in OP refer to checksums verifications which have had some changes in the latest release 2.10:
- they're disabled by default (other less costly verifications are still done like checking the generated dataset size)
- they're using a tqdm bar as well | Please consider:
```
Downloading and preparing dataset oscar/unshuffled_deduplicated_en (download: 462.40 GiB, generated: 1.18 TiB, post-processed: Unknown size, total: 1.63 TiB) to cache/oscar/unshuffled_deduplicated_en/1.0.0/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2...
HF google storage unreachable. Downloading and preparing it from source
```
and no indication whatsoever of whether things work well or when it'll be done. It's important to have an estimated completion time for when doing slurm jobs since some instances have a cap on run-time.
I think for this particular job it sat for 30min in total silence and then after 30min it started generating:
```
897850 examples [07:24, 10286.71 examples/s]
```
which is already great!
Request:
1. ETA - knowing how many hours to allocate for a slurm job
2. progress bar - helps to know things are working and aren't stuck and where we are at.
Thank you!
@lhoestq
| 61 | adding progress bar / ETA for `load_dataset`
Please consider:
```
Downloading and preparing dataset oscar/unshuffled_deduplicated_en (download: 462.40 GiB, generated: 1.18 TiB, post-processed: Unknown size, total: 1.63 TiB) to cache/oscar/unshuffled_deduplicated_en/1.0.0/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2...
HF google storage unreachable. Downloading and preparing it from source
```
and no indication whatsoever of whether things work well or when it'll be done. It's important to have an estimated completion time for when doing slurm jobs since some instances have a cap on run-time.
I think for this particular job it sat for 30min in total silence and then after 30min it started generating:
```
897850 examples [07:24, 10286.71 examples/s]
```
which is already great!
Request:
1. ETA - knowing how many hours to allocate for a slurm job
2. progress bar - helps to know things are working and aren't stuck and where we are at.
Thank you!
@lhoestq
There are progress bars when downloading data and when preparing them as Arrow files.
The "total silence" part mentioned in OP refer to checksums verifications which have had some changes in the latest release 2.10:
- they're disabled by default (other less costly verifications are still done like checking the generated dataset size)
- they're using a tqdm bar as well | [
-0.45116326212882996,
0.504051685333252,
-0.11903803050518036,
-0.3141568899154663,
0.014354053884744644,
-0.21099728345870972,
0.45120275020599365,
0.040070563554763794,
-0.12422239780426025,
0.24686919152736664,
0.18651920557022095,
0.25276854634284973,
-0.03943493217229843,
0.25350695848464966,
-0.02357124537229538,
0.26639416813850403,
0.06369876861572266,
-0.025775864720344543,
-0.010898374021053314,
0.22704662382602692,
-0.2231416404247284,
0.2936559021472931,
-0.09821255505084991,
-0.3926704525947571,
-0.14350096881389618,
-0.015315195545554161,
0.0010058451443910599,
-0.003441132605075836,
-0.1922500729560852,
-0.35444656014442444,
0.07722150534391403,
0.5969762206077576,
0.017765235155820847,
0.2519401013851166,
-0.00012687110574916005,
-0.4016416668891907,
0.5891340970993042,
-0.0783105120062828,
-0.5691039562225342,
-0.04734751582145691,
-0.22404688596725464,
-0.7031558752059937,
0.11048270016908646,
-0.06771406531333923,
0.3303639590740204,
0.3730654716491699,
0.05145809054374695,
-0.3995654582977295,
0.021877937018871307,
-0.12119468301534653,
0.04310334101319313,
-0.01526450552046299,
-0.10524630546569824,
0.03638054057955742,
0.6608362197875977,
-0.08537253737449646,
-0.1664467304944992,
0.28722167015075684,
0.6021050214767456,
-0.10510899871587753,
-0.23694324493408203,
0.5251094698905945,
0.4118539094924927,
0.06129446625709534,
0.07280389219522476,
0.22893017530441284,
-0.025657981634140015,
-0.24684834480285645,
0.19756969809532166,
0.23820790648460388,
0.7124399542808533,
-0.15308037400245667,
-0.5058065056800842,
-0.37792128324508667,
0.031070958822965622,
-0.07370638102293015,
0.17479655146598816,
0.03255392238497734,
-0.06993262469768524,
-0.13295036554336548,
-0.46262237429618835,
-0.0011277697049081326,
0.015032567083835602,
-0.1967884749174118,
0.0925510823726654,
-0.004811979830265045,
-0.09956056624650955,
0.040613897144794464,
0.03672875463962555,
0.24580609798431396,
-0.03892024978995323,
0.1601448953151703,
-0.12936608493328094,
0.31295597553253174,
-0.3093931972980499,
-0.07803944498300552,
0.15668658912181854,
-0.1499861180782318,
0.05333960801362991,
0.8642629981040955,
-0.26867833733558655,
0.24225306510925293,
-0.165883868932724,
0.12526530027389526,
-0.05237269774079323,
0.3519637882709503,
0.20859459042549133,
-0.5966097116470337,
0.41388601064682007,
0.02753402478992939,
0.39937371015548706,
-0.03620012849569321,
-0.1509106606245041,
-0.23850300908088684,
0.11626319587230682,
0.30124518275260925,
-0.039714016020298004,
-0.29478543996810913,
-0.1627294421195984,
0.23102913796901703,
0.24146032333374023,
-0.4460373520851135,
-0.13966551423072815,
0.21550476551055908,
-0.20176668465137482,
-0.04631367325782776,
0.02753361314535141,
-0.000622279942035675,
0.03777214139699936,
-0.2134362906217575,
0.026484377682209015,
-0.1333252191543579,
-0.4700201749801636,
0.25255298614501953,
0.2956727147102356,
0.2250412255525589,
0.07950606197118759,
-0.18376070261001587,
-0.1254650205373764,
0.1576072871685028,
0.16508634388446808,
-0.1629544496536255,
0.07733243703842163,
0.18955640494823456,
0.07280455529689789,
0.026228250935673714,
-0.15619443356990814,
0.07751117646694183,
-0.1818239390850067,
0.17236988246440887,
0.30078279972076416,
-0.3264693319797516,
-0.2674173414707184,
0.00250343419611454,
-0.3225139379501343,
0.11780628561973572,
-0.24097806215286255,
0.2799989879131317,
0.0427277572453022,
0.26095050573349,
0.1717662215232849,
0.11667054146528244,
-0.12192873656749725,
0.0022410256788134575,
0.4131704568862915,
0.5270693898200989,
-0.327890008687973,
-0.00023070722818374634,
-0.10734079778194427,
-0.29054388403892517,
0.36136332154273987,
0.019883856177330017,
0.20104996860027313,
0.03925870731472969,
-0.07984322309494019,
0.12799569964408875,
-0.13083815574645996,
-0.21214304864406586,
-0.3006732165813446,
0.3089088797569275,
-0.12889668345451355,
-0.028979288414120674,
0.21622633934020996,
0.10540435463190079,
0.2289941906929016,
-0.07872071862220764,
0.16224855184555054,
0.08176547288894653,
-0.21366484463214874,
-0.2991390824317932,
-0.33340808749198914,
-0.31250959634780884,
-0.019350197166204453,
0.3430982232093811,
0.3208298981189728,
-0.20380455255508423,
-0.0058466121554374695,
0.06773205101490021,
0.19590476155281067,
0.3460337221622467,
0.36568328738212585,
-0.0007405318319797516,
0.5533142685890198,
-0.09513750672340393,
-0.08656878024339676,
0.020784892141819,
-0.2996053695678711,
0.24790489673614502,
0.07439668476581573,
0.3658164143562317,
-0.3271300792694092,
-0.10550425946712494,
-0.17442172765731812,
-0.1062811091542244,
0.03175252676010132,
-0.14803043007850647,
-0.130984827876091,
-0.09875203669071198,
0.15755416452884674,
0.09205637872219086,
-0.06399066001176834,
0.2662426233291626,
-0.502726674079895,
0.013181410729885101,
0.036589883267879486,
0.3008854389190674,
0.15829961001873016,
-0.3477556109428406,
0.09077030420303345,
0.06581887602806091,
-0.16855737566947937,
-0.1344551295042038,
-0.033281587064266205,
0.24835747480392456,
0.0843554213643074,
0.336858332157135,
0.2850519120693207,
0.22488507628440857,
0.0039027445018291473,
0.07761609554290771,
0.10087377578020096,
-0.25968363881111145,
0.04457941651344299,
-0.13689929246902466,
-0.1482299566268921,
0.35624366998672485,
-0.3609103262424469,
0.1486196219921112,
-0.02620479092001915,
-0.28514373302459717,
0.21105517446994781,
0.027751531451940536,
-0.2114322930574417,
-0.10272133350372314,
0.21801388263702393,
0.2617974579334259,
0.4434337913990021,
-0.3375956118106842,
0.1003163754940033,
0.3315388858318329,
0.33583223819732666,
0.01960253342986107,
-0.4048207998275757,
0.3033958971500397,
0.15170523524284363,
-0.20602324604988098,
0.07401684671640396,
0.08336222171783447,
0.20070654153823853,
0.07810767740011215,
0.2870044708251953,
0.0596659779548645,
-0.08092421293258667,
-0.25293201208114624,
-0.0510026291012764,
-0.02406483143568039,
-0.08752833306789398,
0.34338486194610596,
-0.0989803820848465,
-0.07922583818435669,
-0.07584969699382782,
-0.3905400037765503,
0.04116259515285492,
0.46369901299476624,
-0.15814483165740967,
-0.3059181869029999,
0.06679165363311768,
-0.1869063377380371,
0.08939927071332932,
0.18287920951843262,
-0.08802945911884308,
-0.48654624819755554,
0.03566158190369606,
0.2232629954814911,
0.08635435998439789,
0.09450423717498779,
-0.19481101632118225,
0.40515005588531494,
-0.11482632160186768,
0.1533469557762146,
-0.32826027274131775,
-0.4720408618450165,
0.09148302674293518,
-0.01437265332788229,
0.23926030099391937,
-0.17607012391090393,
0.35382863879203796,
-0.21787935495376587,
0.27849382162094116,
-0.2935929596424103,
-0.4412514865398407,
0.02695569209754467,
-0.13650517165660858,
-0.02173691801726818,
0.05392134189605713,
0.001961752772331238,
0.013844326138496399,
0.1368865668773651,
0.16068525612354279,
-0.13109400868415833,
-0.3447449505329132,
-0.2575312852859497,
-0.08258882164955139,
-0.008400842547416687,
-0.16535046696662903,
0.17239420115947723,
-0.30152517557144165,
-0.16613705456256866,
0.29732728004455566,
-0.18899312615394592,
-0.025537163019180298,
-0.4239974915981293,
-0.2477499395608902,
0.26579368114471436,
0.14989595115184784,
-0.5227910876274109,
-0.18175175786018372,
-0.6278247833251953,
0.380393385887146,
-0.2587292492389679,
-0.16630855202674866,
0.26462188363075256,
-0.09006421267986298,
-0.005988031625747681,
0.048684101551771164,
-0.48164474964141846,
-0.06010324880480766,
-0.2604537904262543,
0.2782718539237976,
0.008124422281980515,
-0.22514434158802032,
0.3111109733581543,
0.13352662324905396,
-0.09264020621776581,
-0.03932815045118332,
-0.5231263041496277,
0.2971002459526062,
0.17670807242393494,
0.22554194927215576,
-0.06289375573396683,
0.131312757730484,
0.021942850202322006,
0.6812026500701904,
0.07352207601070404,
-0.034522537142038345,
0.19005416333675385,
0.26194557547569275,
0.16311798989772797,
-0.02097676694393158,
0.16690723598003387,
0.27702128887176514,
-0.06683176755905151,
-0.028842179104685783,
0.16533754765987396,
0.20680052042007446,
-0.006946420297026634,
-0.24539229273796082,
0.09033055603504181,
-0.3832249045372009,
-0.1740981638431549,
0.18009766936302185,
-0.4566786289215088,
-0.07235247641801834,
-0.06666962057352066,
0.08061570674180984,
-0.008007561787962914,
-0.3138384222984314,
0.11797234416007996,
0.33938759565353394,
0.31878533959388733,
-0.17812608182430267,
-0.22950133681297302,
0.3524373173713684,
-0.5118747353553772,
0.2462906837463379,
0.08723446726799011,
0.029409613460302353,
-0.21872621774673462,
0.12549325823783875,
0.15597066283226013,
-0.21830755472183228,
0.23901280760765076,
-0.46865442395210266,
0.09687863290309906,
0.21325397491455078,
-0.13348457217216492,
0.04981435090303421,
-0.42809808254241943,
-0.0787743479013443,
-0.21373192965984344,
0.3894474506378174,
0.19808296859264374,
-0.44595059752464294,
0.1928996741771698,
0.0762118548154831,
-0.12892365455627441,
-0.1406707465648651,
-0.11697590351104736,
-0.39683982729911804,
-0.2455577254295349,
-0.09095449000597,
0.19613395631313324,
-0.03502332791686058,
0.15119338035583496,
-0.19700568914413452,
-0.1439177542924881,
0.033017292618751526,
-0.08696926385164261,
0.19812151789665222,
-0.07945437729358673,
0.08490350097417831,
0.16438452899456024,
0.3639216721057892,
0.030468877404928207,
-0.031358785927295685,
0.3162824511528015,
0.39617252349853516,
-0.1559351682662964,
0.006887055933475494,
0.46502870321273804,
-0.6639229655265808,
0.17522084712982178,
0.6575638055801392,
0.19888253509998322,
0.2864235043525696,
0.13792741298675537,
0.28353625535964966,
-0.38368451595306396,
0.15060825645923615,
-0.1370955854654312,
0.1613614857196808,
-0.11929143965244293,
-0.3437553644180298,
0.18881049752235413,
-0.03694663941860199,
-0.036664508283138275,
0.7020107507705688,
-0.09138746559619904,
-0.1559804379940033,
0.0016967374831438065,
0.06862696260213852,
1.2660353183746338,
-0.4696913957595825,
-0.12739546597003937,
-0.122040756046772,
-0.30770325660705566,
0.009836065582931042,
-0.2914249002933502,
0.09375922381877899,
-0.18240806460380554,
0.007470058277249336,
0.03508275747299194,
-0.24367006123065948,
0.052016813308000565,
0.025101689621806145,
-0.21276363730430603,
-0.11900252848863602,
-0.17275172472000122,
0.16959132254123688,
-0.0700792595744133,
0.42670491337776184,
-0.3440400958061218,
-0.1472240835428238,
0.12986496090888977,
0.059135906398296356,
0.074888676404953,
0.38448652625083923,
-0.270950585603714,
-0.003828762099146843,
-0.17876438796520233,
0.3217777609825134,
-0.629841685295105,
0.06806940585374832,
0.24451018869876862,
-0.2518959641456604,
-0.013770289719104767,
-0.503329336643219,
-0.06010067090392113,
-0.18975508213043213,
0.4561508297920227,
-0.16712722182273865,
-0.1544477939605713,
0.3474300503730774,
-0.10014291852712631,
0.22252431511878967,
0.17398664355278015,
0.14568786323070526,
0.24815230071544647,
-0.515824019908905,
-0.13395088911056519,
0.22440603375434875,
-0.1223367303609848,
-0.4861011505126953,
-0.10922195762395859,
-0.002771444618701935,
-0.05224087834358215,
0.017292769625782967,
0.27805501222610474,
0.34648242592811584,
0.06451819837093353,
-0.23663370311260223,
-0.010726852342486382,
0.5268146991729736,
-0.04784475639462471,
0.38575631380081177,
-0.1118631362915039,
-0.37429147958755493,
-0.1688951998949051,
0.24053019285202026,
-0.17818960547447205,
-0.22658392786979675,
0.23614229261875153,
0.16811281442642212,
-0.3372379541397095,
-0.03672877699136734,
-0.19392549991607666,
0.24518349766731262,
-0.3009147644042969,
0.03665189445018768,
-0.27614322304725647,
0.2717869281768799,
0.029408905655145645,
0.05803670361638069,
0.19203245639801025,
0.14688660204410553,
-0.034899719059467316,
-0.26312607526779175,
-0.22877709567546844,
0.10440625995397568,
0.07360852509737015,
0.20152360200881958,
-0.5069295763969421,
0.02763848379254341,
0.31329745054244995,
0.14336614310741425,
-0.20864856243133545,
-0.1156742200255394,
-0.30020672082901,
0.2644627094268799,
-0.16476106643676758,
-0.1547197699546814,
0.1457691788673401,
-0.181995689868927,
-0.1413930058479309,
0.10787544399499893,
-0.39100176095962524,
0.012815099209547043,
-0.1927424818277359,
0.21843913197517395,
-0.13322162628173828,
-0.12601812183856964,
-0.011459393426775932,
0.05587223172187805,
-0.15974585711956024,
0.03776303678750992,
-0.0508459135890007,
0.10716205090284348,
-0.027891822159290314,
0.07395681738853455,
0.08826661854982376,
0.37054550647735596,
-0.10040239989757538,
0.0029289983212947845,
0.15588973462581635,
0.6910924911499023,
0.19747859239578247,
0.24125555157661438,
0.24133534729480743,
0.08553391695022583,
0.3676544725894928,
0.07555865496397018,
0.209977388381958,
0.06656112521886826,
0.09980441629886627,
0.06074610352516174,
0.21375983953475952,
-0.6665540933609009,
0.2663898468017578,
0.3332297205924988,
0.09754902869462967,
-0.49746841192245483,
0.44090044498443604,
0.03667699545621872,
-0.014670807868242264,
0.39409831166267395,
-0.13295195996761322,
0.3092031180858612,
-0.0780038833618164,
0.10591177642345428,
0.22911638021469116,
0.23540067672729492,
0.05775897949934006,
0.2594671845436096,
0.2622963488101959,
-0.002247750759124756,
-0.14689573645591736,
0.015244774520397186,
-0.00013764575123786926,
0.3005940020084381,
0.29838767647743225,
0.07782146334648132,
-0.08536716550588608,
-0.11084502935409546,
0.03487909212708473,
0.524977445602417,
-0.03910582512617111,
0.5415263175964355,
-0.37609991431236267,
-0.26458364725112915,
-0.31947240233421326,
0.4355635941028595,
-0.15544962882995605,
0.04194093123078346,
0.17186595499515533,
0.5440448522567749,
0.0823063850402832,
0.036937057971954346,
0.0024631917476654053,
0.12976966798305511,
0.0745077133178711,
-0.13549010455608368,
-0.17375005781650543,
-0.3697468042373657,
-0.12340185791254044,
0.1886502504348755,
0.21045628190040588,
0.07298634201288223,
0.4369884431362152,
0.143596351146698,
0.05376163497567177,
-0.10194211453199387,
-0.007744673639535904,
-0.20145466923713684,
0.367271363735199,
-0.21514542400836945,
-0.09240768849849701,
0.26896268129348755,
-0.01333780586719513,
0.33380261063575745,
0.21728071570396423,
0.20013278722763062,
0.3388410806655884,
-0.31412142515182495,
0.002525819931179285,
0.23371370136737823,
0.08676645904779434,
-0.19043971598148346,
0.5563533306121826,
0.34293338656425476,
-0.19632430374622345,
0.15130232274532318,
-0.03196503221988678,
-0.056522436439991,
0.24727176129817963,
0.012536019086837769,
-0.2699350118637085,
0.22782567143440247,
0.611916720867157,
0.13014182448387146,
-0.11007988452911377,
0.0823674127459526,
-0.08585508912801743,
-0.11971154808998108,
-0.1858685463666916,
0.1284942477941513,
-0.18387730419635773,
-0.02015298791229725,
-0.005386939272284508,
0.03138355538249016,
-0.12141558527946472,
0.20297721028327942,
0.2212298959493637,
0.5499907732009888,
-0.1659165918827057,
-0.5751977562904358,
-0.3972446620464325,
-0.13596433401107788,
0.039693690836429596,
-0.10650382936000824,
-0.23494310677051544,
0.4750085175037384,
0.17641611397266388,
0.40356844663619995,
0.3400234282016754,
-0.34487029910087585,
-0.07632286846637726,
0.24633648991584778,
-0.5668650269508362,
0.28470712900161743,
0.08533786237239838,
0.08482490479946136,
-0.14405155181884766,
-0.11072751134634018,
-0.033315908163785934,
-0.04119373857975006,
-0.07611620426177979,
-0.10771776735782623,
-0.11931528151035309,
0.2251678705215454,
0.06282338500022888,
0.7427425980567932,
-0.1694161742925644,
0.4348400831222534,
0.12095183879137039,
-0.10108640044927597,
-0.021944914013147354,
0.06713832914829254,
0.1932719349861145,
0.09665396809577942,
0.04150436818599701,
0.22969120740890503,
0.13848274946212769,
0.4644326865673065,
-0.28675180673599243,
0.6494868993759155,
-0.05012251064181328,
0.3203476369380951,
-0.061959922313690186,
-0.18557368218898773,
0.07270174473524094,
-0.030562644824385643,
-0.015410592779517174,
-0.09878133982419968,
0.187456876039505,
0.23755855858325958,
-0.5454809665679932,
-0.08683805912733078,
0.1447852998971939,
-0.17039547860622406,
-0.1581699550151825,
-0.09522365778684616,
0.0521087646484375,
0.04591739922761917,
-0.01766298897564411,
-0.6116417646408081,
0.0004496052861213684,
0.1089637503027916,
0.09754842519760132,
-0.04740029200911522,
0.30405277013778687,
0.20842158794403076,
-0.05288108438253403,
-0.12472471594810486,
-0.2977604568004608,
-0.18101811408996582,
0.07351667433977127,
-0.6486734747886658,
-0.34428685903549194
] |
https://github.com/huggingface/datasets/issues/2646 | downloading of yahoo_answers_topics dataset failed | Hi ! I just tested and it worked fine today for me.
I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996
Feel free to try again today, now that the quota was reset | ## Describe the bug
I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset
## Steps to reproduce the bug
self.dataset = load_dataset(
'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]')
# Sample code to reproduce the bug
self.dataset = load_dataset(
'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]')
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files
| 53 | downloading of yahoo_answers_topics dataset failed
## Describe the bug
I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset
## Steps to reproduce the bug
self.dataset = load_dataset(
'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]')
# Sample code to reproduce the bug
self.dataset = load_dataset(
'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]')
## Expected results
A clear and concise description of the expected results.
## Actual results
Specify the actual results or traceback.
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files
Hi ! I just tested and it worked fine today for me.
I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996
Feel free to try again today, now that the quota was reset | [
-0.41733548045158386,
0.1438477635383606,
-0.05226645618677139,
0.21039235591888428,
0.23814591765403748,
-0.05664824694395065,
0.23771104216575623,
0.29057973623275757,
0.14424476027488708,
0.057315029203891754,
-0.0823221430182457,
-0.03472360223531723,
0.009593366645276546,
0.2967810034751892,
-0.11418575048446655,
0.15321998298168182,
0.12071161717176437,
-0.24233406782150269,
-0.32901936769485474,
0.18728233873844147,
0.008297104388475418,
0.347517728805542,
-0.13651207089424133,
-0.18602831661701202,
-0.22259460389614105,
0.08021332323551178,
0.03242751210927963,
0.18776828050613403,
-0.306018590927124,
-0.193961963057518,
0.4998633861541748,
0.16810910403728485,
0.048498041927814484,
0.24203276634216309,
-0.00011594981333473697,
-0.04564514011144638,
0.3564915657043457,
-0.023052074015140533,
-0.2754576504230499,
-0.17193691432476044,
-0.6136648058891296,
-0.36410757899284363,
-0.16250328719615936,
-0.0510159395635128,
0.25780293345451355,
0.4485146105289459,
-0.07898785918951035,
-0.07273993641138077,
0.29116082191467285,
0.36133861541748047,
0.224693164229393,
0.507826566696167,
0.5233134627342224,
0.021283116191625595,
0.6007750630378723,
0.02842789888381958,
-0.1523158699274063,
0.3020836114883423,
0.04853476211428642,
0.09556838870048523,
0.03578970208764076,
0.22617532312870026,
-0.054771583527326584,
0.2072293609380722,
0.05097762495279312,
-0.13150706887245178,
0.01011640578508377,
-0.2643211781978607,
0.1809990108013153,
0.3761470913887024,
0.7534171938896179,
-0.06762411445379257,
-0.3866150677204132,
-0.23356762528419495,
-0.13775353133678436,
-0.09534357488155365,
0.36242491006851196,
0.19675412774085999,
-0.17909403145313263,
0.11823518574237823,
-0.3431762754917145,
-0.05590210482478142,
-0.1109953299164772,
0.2298998087644577,
0.1896430253982544,
-0.058919087052345276,
-0.20492108166217804,
-0.024371378123760223,
-0.07471494376659393,
-0.11851362884044647,
0.35728180408477783,
-0.2774004638195038,
-0.0273524709045887,
0.13897527754306793,
-0.5924151539802551,
-0.16301777958869934,
-0.14722293615341187,
0.37855932116508484,
0.5116471648216248,
0.5190520882606506,
0.01236146129667759,
0.11494310200214386,
-0.2776394486427307,
-0.10243365913629532,
0.3908935487270355,
0.40256351232528687,
-0.021543987095355988,
0.1509060561656952,
0.43782156705856323,
0.35996413230895996,
0.04425951465964317,
0.09894430637359619,
0.060657136142253876,
-0.12731347978115082,
0.39560070633888245,
-0.04895218461751938,
0.2884015440940857,
-0.48711490631103516,
-0.30834147334098816,
0.26668715476989746,
-0.2881494164466858,
-0.25567886233329773,
-0.034938257187604904,
0.12877357006072998,
-0.2728327214717865,
0.3193664252758026,
-0.15816347301006317,
0.23163531720638275,
0.07612118870019913,
-0.10683128982782364,
-0.2661252021789551,
-0.045729782432317734,
-0.19171500205993652,
0.1251802295446396,
0.40902748703956604,
-0.3089468479156494,
0.38473963737487793,
0.05831301957368851,
-0.0366223007440567,
-0.10107631981372833,
0.07025066763162613,
-0.009756906889379025,
-0.36268922686576843,
0.47964993119239807,
-0.028375860303640366,
0.3199997842311859,
0.06338926404714584,
0.20569856464862823,
-0.0027630552649497986,
0.1886621117591858,
-0.36185330152511597,
-0.3521515429019928,
0.04515950754284859,
0.19000962376594543,
-0.36506444215774536,
-0.14905008673667908,
-0.21039655804634094,
-0.0985894650220871,
0.08868975937366486,
-0.09896336495876312,
-0.0011397600173950195,
-0.08086640387773514,
-0.1798318326473236,
-0.18776080012321472,
0.17093437910079956,
0.29472941160202026,
-0.12140336632728577,
0.04928047955036163,
-0.21265479922294617,
-0.22955676913261414,
0.007560253143310547,
0.09889824688434601,
-0.1021207794547081,
0.051604289561510086,
-0.31215718388557434,
0.19101642072200775,
-0.030474655330181122,
-0.04412898048758507,
-0.8213798999786377,
0.11200755834579468,
0.21273277699947357,
0.19958563148975372,
0.022696033120155334,
0.11586056649684906,
-0.011539392173290253,
-0.05587734282016754,
0.0683131292462349,
0.2879425287246704,
-0.11135642230510712,
0.05319777876138687,
-0.21354897320270538,
-0.21468216180801392,
-0.1412280648946762,
0.19240693747997284,
0.21788464486598969,
0.17952744662761688,
0.14983442425727844,
-0.0014783861115574837,
0.2000288963317871,
0.060104820877313614,
0.02646525949239731,
0.42253655195236206,
0.23250873386859894,
0.12644271552562714,
-0.17918434739112854,
-0.4266209304332733,
-0.6495075821876526,
0.27391332387924194,
-0.15104442834854126,
-0.11017227172851562,
-0.01695139706134796,
-0.1082538291811943,
-0.48121508955955505,
-0.1396789848804474,
-0.06710393726825714,
-0.12086091935634613,
0.0543915331363678,
0.11840109527111053,
0.19212909042835236,
0.04739604517817497,
-0.08080853521823883,
0.6759994029998779,
-0.22778679430484772,
0.12510055303573608,
-0.2809182405471802,
0.3650694787502289,
-0.14652608335018158,
-0.11498253047466278,
0.18662309646606445,
-0.057082824409008026,
0.15391972661018372,
0.026279810816049576,
-0.16387179493904114,
0.3405664265155792,
0.0817585438489914,
-0.04817694425582886,
0.1589743196964264,
0.31929856538772583,
0.13570551574230194,
-0.20034457743167877,
-0.10710219293832779,
0.26863282918930054,
0.08881227672100067,
-0.019364789128303528,
-0.3108477294445038,
0.10763728618621826,
-0.39529499411582947,
0.08627574145793915,
-0.08472472429275513,
0.27488914132118225,
0.24876868724822998,
-0.15296532213687897,
-0.23547175526618958,
0.0756012499332428,
0.49028220772743225,
0.1661134511232376,
-0.015918152406811714,
0.02761288359761238,
-0.23708327114582062,
0.07203100621700287,
0.3816647231578827,
-0.18540708720684052,
-0.023677676916122437,
0.23152941465377808,
-0.04244312644004822,
-0.08485940098762512,
0.052493318915367126,
0.3492450416088104,
0.4121186137199402,
0.07744982838630676,
0.12707921862602234,
0.01925792545080185,
-0.06982383131980896,
-0.2119280844926834,
-0.00972740352153778,
0.10506843030452728,
0.05166260153055191,
0.3873595893383026,
0.08917570859193802,
0.020165327936410904,
-0.31565210223197937,
0.017886344343423843,
0.06627391278743744,
0.2733681797981262,
-0.49596157670021057,
-0.0993703156709671,
-0.22574903070926666,
-0.008332658559083939,
-0.17963667213916779,
-0.2272876501083374,
-0.4338911175727844,
-0.4144546091556549,
-0.041473016142845154,
0.4321185052394867,
-0.007369471713900566,
0.15849724411964417,
-0.17600560188293457,
0.07660099864006042,
0.12989836931228638,
-0.12989185750484467,
-0.011058807373046875,
0.12393730878829956,
-0.03055752068758011,
0.06747686862945557,
0.4870757758617401,
-0.1200207769870758,
0.2683667242527008,
-0.37970831990242004,
0.0057565923780202866,
-0.5876283645629883,
-0.02524155005812645,
0.031945228576660156,
-0.042975641787052155,
0.32965248823165894,
0.06819991022348404,
0.391246497631073,
-0.33512258529663086,
0.08925879746675491,
0.04128279909491539,
0.030079619958996773,
-0.2807070016860962,
0.1720670759677887,
0.05882486701011658,
0.04290398582816124,
0.07939708232879639,
-0.1639140248298645,
-0.15928849577903748,
-0.2847834825515747,
0.02461617812514305,
-0.10460308194160461,
0.04293696582317352,
0.33334431052207947,
-0.05963340401649475,
-0.005599392578005791,
0.03069748356938362,
0.02336447685956955,
-0.38655829429626465,
-0.6483176946640015,
0.5215488076210022,
0.0017797616310417652,
-0.41738271713256836,
0.06354974210262299,
0.10822989046573639,
-0.13241082429885864,
0.3234138488769531,
-0.521242082118988,
-0.07968620210886002,
-0.34604883193969727,
0.2091493308544159,
0.10916662216186523,
0.18931350111961365,
0.41147059202194214,
-0.21022532880306244,
-0.05873803049325943,
-0.0052900612354278564,
-0.1677405685186386,
0.09513725340366364,
-0.05658157169818878,
0.2765410840511322,
0.07609216868877411,
0.09333960711956024,
-0.033704787492752075,
0.6843778491020203,
0.25694528222084045,
0.33063703775405884,
0.4992992579936981,
0.15539711713790894,
0.34062033891677856,
0.014070689678192139,
-0.13944517076015472,
0.03007822297513485,
-0.2988114058971405,
0.11100898683071136,
0.0800209641456604,
0.17965885996818542,
0.21047747135162354,
-0.24740825593471527,
-0.10856212675571442,
-0.2964664101600647,
-0.16315828263759613,
0.061719633638858795,
-0.1888984739780426,
0.39153435826301575,
0.22359441220760345,
0.0087212473154068,
0.1550949215888977,
-0.36798375844955444,
0.14915907382965088,
0.16195054352283478,
-0.04544927924871445,
-0.07424253970384598,
-0.5089079737663269,
-0.05375102907419205,
-0.3977298438549042,
0.22917789220809937,
0.06533805280923843,
0.4077838361263275,
-0.0808594822883606,
0.09330672770738602,
-0.012724705040454865,
-0.030802249908447266,
0.46124178171157837,
-0.1670762300491333,
0.2261897623538971,
-0.055892687290906906,
-0.006608240306377411,
-0.25439023971557617,
-0.2947319447994232,
-0.04101157188415527,
0.09760356694459915,
0.044507913291454315,
0.29305511713027954,
-0.5040320158004761,
0.08144267648458481,
0.20378649234771729,
0.3086690306663513,
0.008998267352581024,
-0.2055959850549698,
-0.22821924090385437,
-0.21562480926513672,
-0.46260496973991394,
0.013048231601715088,
0.12287332862615585,
0.19125783443450928,
-0.09616328775882721,
-0.055462948977947235,
0.06833244115114212,
-0.029507430270314217,
0.031482383608818054,
-0.3027850091457367,
0.2211991548538208,
0.13626337051391602,
0.25315314531326294,
0.049770452082157135,
-0.003372699022293091,
0.021034717559814453,
0.8041910529136658,
-0.07977606356143951,
-0.24889853596687317,
0.18162810802459717,
-0.2381039708852768,
-0.227702796459198,
0.24971601366996765,
-0.10226969420909882,
-0.10964644700288773,
0.28628426790237427,
0.01199435442686081,
-0.004021022468805313,
-0.08686891943216324,
0.3564192056655884,
0.08563444763422012,
-0.2989562451839447,
-0.3246108293533325,
0.3209981620311737,
0.08312632143497467,
-0.042506568133831024,
0.3991125524044037,
0.2725449204444885,
0.04911859333515167,
-0.17125068604946136,
-0.03998642414808273,
0.8578278422355652,
0.049832846969366074,
0.08521877229213715,
0.02026144042611122,
-0.05678863450884819,
0.4342232942581177,
-0.24643799662590027,
-0.07296387106180191,
-0.24069930613040924,
-0.33263087272644043,
-0.08466414362192154,
-0.2092352658510208,
0.08274039626121521,
-0.003093261271715164,
-0.06268876045942307,
0.3957352936267853,
-0.20627570152282715,
0.39183828234672546,
0.14504483342170715,
0.16941219568252563,
-0.352195680141449,
0.12403258681297302,
-0.1580902487039566,
0.155044823884964,
-0.20776398479938507,
0.41879719495773315,
-0.13723137974739075,
-0.0071837566792964935,
-0.30309203267097473,
-0.17014481127262115,
-0.793359637260437,
0.1383819580078125,
0.04771031439304352,
0.014849843457341194,
0.34364157915115356,
-0.10294695198535919,
0.010862834751605988,
0.21927869319915771,
0.5752386450767517,
0.02042059227824211,
-0.3639789819717407,
0.19804613292217255,
-0.07578074187040329,
-0.025416815653443336,
-0.013243568129837513,
-0.07633613795042038,
0.3167339265346527,
-0.3335459530353546,
-0.20464642345905304,
0.1010548323392868,
-0.11295220255851746,
-0.40470999479293823,
-0.1654866635799408,
-0.1741245537996292,
0.15974369645118713,
-0.43952950835227966,
-0.11076050996780396,
-0.1657617688179016,
0.11473317444324493,
-0.29087159037590027,
0.14865203201770782,
0.24632416665554047,
0.004293309524655342,
0.19184273481369019,
0.11457350850105286,
-0.0875283032655716,
-0.2222452610731125,
0.5563123822212219,
-0.10805165022611618,
0.0043463632464408875,
0.3435761630535126,
0.21703080832958221,
-0.23110324144363403,
-0.16219308972358704,
0.1701335310935974,
-0.01658141426742077,
-0.5097993612289429,
0.03853403404355049,
-0.3021158277988434,
0.20160721242427826,
-0.2905811667442322,
0.47397682070732117,
0.3647392988204956,
0.24169275164604187,
0.3363366723060608,
-0.7355575561523438,
0.03863893449306488,
-0.03772851824760437,
0.05337965115904808,
0.22918203473091125,
-0.2330833375453949,
-0.39010515809059143,
0.21198749542236328,
-0.22080419957637787,
-0.27807748317718506,
-0.05577196925878525,
-0.3257574439048767,
-0.07682407647371292,
0.004998417571187019,
0.017316453158855438,
0.358907550573349,
-0.21683749556541443,
0.1106584221124649,
0.01868627220392227,
-0.1566232293844223,
-0.21690338850021362,
-0.1430363953113556,
0.12129269540309906,
0.057818397879600525,
-0.28036120533943176,
0.14901907742023468,
-0.23652394115924835,
-0.1292472779750824,
0.1539892703294754,
0.013159967958927155,
0.27730807662010193,
0.03675645962357521,
0.011303073726594448,
-0.0722261369228363,
-0.06030266731977463,
-0.2676010727882385,
0.11692214757204056,
-0.18615779280662537,
0.27025601267814636,
0.03706920146942139,
0.23603186011314392,
0.30515581369400024,
-0.04307688772678375,
-0.403519868850708,
0.09676002711057663,
0.07117754220962524,
-0.08676601946353912,
0.2332342267036438,
-0.459353506565094,
-0.08462411165237427,
0.2411808967590332,
0.422911137342453,
0.30796658992767334,
-0.29834017157554626,
0.03827328979969025,
0.20609837770462036,
0.24269552528858185,
-0.2796032726764679,
-0.13084162771701813,
0.25741395354270935,
-0.0331757627427578,
-0.06990566849708557,
-0.08074720948934555,
0.3395253121852875,
-0.2981322109699249,
0.27629345655441284,
0.1378074288368225,
0.182601660490036,
0.23483291268348694,
0.16144397854804993,
0.39459228515625,
0.07804937660694122,
0.10839471220970154,
0.23433317244052887,
-0.1447659730911255,
-0.07485821098089218,
0.06264112144708633,
0.029349766671657562,
0.021352063864469528,
-0.25436902046203613,
0.2525362968444824,
-0.15747109055519104,
-0.4455314874649048,
0.2843334972858429,
0.19481229782104492,
-0.1493370532989502,
-0.07749354094266891,
-0.09526529908180237,
0.4345988929271698,
-0.1961721032857895,
0.027762629091739655,
-0.44972893595695496,
0.05999157950282097,
-0.028885677456855774,
0.13808950781822205,
-0.01341138407588005,
-0.3608104884624481,
-0.1873149573802948,
0.31624171137809753,
-0.12228724360466003,
-0.08870743215084076,
0.40752744674682617,
0.06354184448719025,
-0.3009319305419922,
-0.5092544555664062,
0.2208695113658905,
0.011024827137589455,
0.023163728415966034,
-0.1912495642900467,
0.16642233729362488,
-0.033276572823524475,
-0.19033193588256836,
0.09440366923809052,
0.4231260120868683,
0.2981809079647064,
0.1958504468202591,
0.06105436384677887,
-0.030747681856155396,
0.07872240245342255,
-0.05981519818305969,
0.08525580167770386,
0.3819755017757416,
0.14421948790550232,
-0.1878294050693512,
0.32431212067604065,
0.12665025889873505,
-0.2077419012784958,
0.16123466193675995,
-0.1640615314245224,
-0.0760764330625534,
-0.16650353372097015,
0.10689155012369156,
-0.2139306217432022,
0.22733035683631897,
-0.03712645173072815,
-0.053602807223796844,
-0.24775376915931702,
-0.2532760500907898,
0.12402668595314026,
-0.035630565136671066,
0.05324433743953705,
-0.2184622585773468,
0.07322322577238083,
-0.2117638736963272,
0.43915826082229614,
0.5012017488479614,
0.2203858196735382,
-0.19893541932106018,
-0.3539735674858093,
-0.764501690864563,
0.07551346719264984,
-0.10555779933929443,
0.17956984043121338,
0.1648111194372177,
0.05905308574438095,
-0.23504158854484558,
0.30775946378707886,
0.2918091118335724,
-0.16637302935123444,
-0.2167537957429886,
0.15518172085285187,
-0.28011441230773926,
0.027818385511636734,
-0.0017777979373931885,
0.03929124027490616,
-0.10635551065206528,
-0.3270181119441986,
0.4496085047721863,
-0.017486682161688805,
-0.05183915048837662,
0.057966988533735275,
-0.15737533569335938,
-0.02242949791252613,
-0.06601079553365707,
0.1293935477733612,
0.13142021000385284,
0.41327521204948425,
0.11155834048986435,
-0.2058253288269043,
-0.16116803884506226,
-0.12335014343261719,
-0.08852536231279373,
0.024566534906625748,
-0.1909864842891693,
0.4489952325820923,
-0.07435576617717743,
0.014036398380994797,
-0.2581718862056732,
0.4458041191101074,
0.07537106424570084,
-0.1675119698047638,
-0.2399929165840149,
-0.05709991604089737,
-0.030900588259100914,
0.023736342787742615,
0.1177295446395874,
-0.057735756039619446,
-0.1664673238992691,
0.20779336988925934,
-0.22802430391311646,
-0.14090192317962646,
0.29951944947242737,
-0.02603626251220703,
-0.12052319943904877,
-0.211377814412117,
0.08014552295207977,
0.1370508074760437,
-0.21186424791812897,
-0.4640897214412689,
0.1963193416595459,
0.3802844285964966,
0.1471930295228958,
-0.26400312781333923,
0.25811609625816345,
-0.15816880762577057,
0.15857362747192383,
0.12852825224399567,
0.38422641158103943,
0.06330441683530807,
-0.21606594324111938,
0.31938594579696655,
-0.13476434350013733
] |
https://github.com/huggingface/datasets/issues/2645 | load_dataset processing failed with OS error after downloading a dataset | Hi ! It looks like an issue with pytorch.
Could you try to run `import torch` and see if it raises an error ? | ## Describe the bug
After downloading a dataset like opus100, there is a bug that
OSError: Cannot find data file.
Original error:
dlopen: cannot load any more object with static TLS
## Steps to reproduce the bug
```python
from datasets import load_dataset
this_dataset = load_dataset('opus100', 'af-en')
```
## Expected results
there is no error when running load_dataset.
## Actual results
Specify the actual results or traceback.
Traceback (most recent call last):
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split
example = self.info.features.encode_example(record)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example
example = cast_to_python_objects(example)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob
return _cast_to_python_objects(obj)[0]
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o
import torch
File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module>
_load_global_deps()
File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen: cannot load any more object with static TLS
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "download_hub_opus100.py", line 9, in <module>
this_dataset = load_dataset('opus100', language_pair)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep
+ str(e)
OSError: Cannot find data file.
Original error:
dlopen: cannot load any more object with static TLS
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid
- Python version: 3.6.6
- PyArrow version: 3.0.0
| 24 | load_dataset processing failed with OS error after downloading a dataset
## Describe the bug
After downloading a dataset like opus100, there is a bug that
OSError: Cannot find data file.
Original error:
dlopen: cannot load any more object with static TLS
## Steps to reproduce the bug
```python
from datasets import load_dataset
this_dataset = load_dataset('opus100', 'af-en')
```
## Expected results
there is no error when running load_dataset.
## Actual results
Specify the actual results or traceback.
Traceback (most recent call last):
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split
example = self.info.features.encode_example(record)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example
example = cast_to_python_objects(example)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob
return _cast_to_python_objects(obj)[0]
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o
import torch
File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module>
_load_global_deps()
File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen: cannot load any more object with static TLS
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "download_hub_opus100.py", line 9, in <module>
this_dataset = load_dataset('opus100', language_pair)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep
+ str(e)
OSError: Cannot find data file.
Original error:
dlopen: cannot load any more object with static TLS
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid
- Python version: 3.6.6
- PyArrow version: 3.0.0
Hi ! It looks like an issue with pytorch.
Could you try to run `import torch` and see if it raises an error ? | [
-0.4430498778820038,
0.20311975479125977,
-0.0454363077878952,
0.4847753047943115,
0.3039815425872803,
-0.0233757384121418,
0.2349690943956375,
0.36604616045951843,
-0.10822843015193939,
0.09275230765342712,
-0.16256898641586304,
0.46781426668167114,
-0.007434778846800327,
-0.08360806852579117,
-0.017416764050722122,
-0.13232514262199402,
0.03872225433588028,
0.2778642177581787,
-0.6045763492584229,
-0.048267703503370285,
-0.43124693632125854,
0.31153810024261475,
-0.10302937030792236,
-0.09901668131351471,
0.03786104917526245,
0.0749128982424736,
-0.19062979519367218,
0.31971561908721924,
-0.09478853642940521,
-0.2602507174015045,
-0.02093365415930748,
-0.17103666067123413,
0.28401246666908264,
0.5108675360679626,
-0.00011839857324957848,
0.29027432203292847,
0.09254594147205353,
-0.0907711461186409,
-0.4023878574371338,
-0.1111454963684082,
-0.08325855433940887,
-0.10316018015146255,
0.14823758602142334,
-0.379036009311676,
-0.042459048330783844,
-0.21750019490718842,
-0.028211483731865883,
-0.5162988305091858,
0.21042080223560333,
0.3379336893558502,
0.1746215522289276,
0.3742228150367737,
0.29021361470222473,
-0.14841172099113464,
0.25406214594841003,
-0.028348863124847412,
-0.04140782356262207,
0.04845505952835083,
0.15569531917572021,
-0.05658092349767685,
0.06519610434770584,
0.29202985763549805,
-0.1614065319299698,
0.1469639390707016,
0.20899048447608948,
0.058135781437158585,
0.27018678188323975,
-0.3370184302330017,
0.3568374812602997,
0.1577441394329071,
0.540391743183136,
-0.028047114610671997,
-0.33318644762039185,
-0.18784835934638977,
0.01304890587925911,
-0.42981070280075073,
0.2435782253742218,
0.22146004438400269,
-0.028591299429535866,
0.08683488517999649,
0.14127473533153534,
-0.12389463931322098,
-0.09403373301029205,
0.30540186166763306,
-0.042060330510139465,
0.20012113451957703,
-0.05761876702308655,
-0.05916440486907959,
0.06311526894569397,
0.2239580899477005,
0.27935177087783813,
0.04977947473526001,
-0.010078314691781998,
0.31725701689720154,
-0.474525511264801,
0.17730988562107086,
0.17190013825893402,
0.0040305182337760925,
0.09337135404348373,
-0.06502765417098999,
0.10361333936452866,
-0.23186266422271729,
-0.02301087975502014,
-0.07365382462739944,
0.2052522599697113,
0.04714738205075264,
-0.2928021252155304,
-0.1984696388244629,
0.140468567609787,
0.06259243190288544,
-0.1818162500858307,
-0.09568443149328232,
-0.19329294562339783,
-0.34106379747390747,
0.07598505914211273,
0.13471603393554688,
0.5756466388702393,
-0.1788666993379593,
-0.35670536756515503,
-0.05379436910152435,
-0.1881234347820282,
-0.05321462079882622,
0.10692337155342102,
0.28919312357902527,
-0.06075600907206535,
0.4205155372619629,
0.24402405321598053,
0.13031429052352905,
-0.38333114981651306,
0.01570308953523636,
-0.1193971335887909,
-0.23960594832897186,
-0.1751902848482132,
-0.018225932493805885,
0.06444019079208374,
-0.48655271530151367,
0.31543222069740295,
0.1732185184955597,
-0.07354369759559631,
-0.3623708486557007,
0.37775877118110657,
-0.07942135632038116,
-0.09546125680208206,
0.2311086803674698,
-0.002141423523426056,
-0.12617181241512299,
0.14796432852745056,
-0.013793345540761948,
0.09772471338510513,
0.4053345024585724,
-0.49590015411376953,
-0.5249581933021545,
-0.47872698307037354,
0.17132878303527832,
-0.3053378462791443,
0.13985255360603333,
0.30708828568458557,
-0.17518983781337738,
0.15074032545089722,
-0.1544899344444275,
-0.09859130531549454,
-0.2091851830482483,
-0.33282628655433655,
-0.19358770549297333,
0.40815696120262146,
0.4952765107154846,
-0.31944793462753296,
0.05533464998006821,
-0.25243258476257324,
-0.18812666833400726,
-0.10420262068510056,
-0.02304665744304657,
-0.0677800327539444,
0.38774341344833374,
-0.5029057860374451,
-0.261357843875885,
0.2853178083896637,
-0.44295164942741394,
-0.675349235534668,
0.02942718379199505,
-0.24769462645053864,
0.042422764003276825,
0.31827354431152344,
0.05899667739868164,
0.374020516872406,
-0.009453430771827698,
-0.1303219497203827,
0.21319405734539032,
0.13549117743968964,
0.018598517403006554,
-0.14829692244529724,
-0.14801053702831268,
0.04531942680478096,
0.24368788301944733,
0.0738343894481659,
0.07524051517248154,
0.12761330604553223,
0.11370627582073212,
0.2993844747543335,
-0.14386077225208282,
-0.18325482308864594,
0.10969286412000656,
0.26585930585861206,
0.1396883875131607,
0.2437562346458435,
-0.0872693657875061,
-0.46745777130126953,
0.0827426090836525,
-0.05335012823343277,
0.03266758471727371,
-0.21871615946292877,
-0.04481284320354462,
-0.1293059140443802,
0.09564331918954849,
-0.2936306595802307,
-0.3219185173511505,
0.07301797717809677,
0.19819492101669312,
0.006688479334115982,
0.015833131968975067,
-0.0868256688117981,
0.3457709848880768,
0.11645139753818512,
0.1674298197031021,
-0.25083687901496887,
0.3303532600402832,
0.12076695263385773,
-0.037917885929346085,
-0.08129135519266129,
0.320413202047348,
0.0453064888715744,
-0.21024970710277557,
-0.2788042426109314,
0.4593667685985565,
0.14847984910011292,
-0.022526055574417114,
-0.09866098314523697,
0.17531821131706238,
0.2358965277671814,
-0.2645648419857025,
-0.09821807593107224,
0.040937796235084534,
0.2143259048461914,
0.07084424048662186,
0.10047869384288788,
0.004270724952220917,
-0.1008390486240387,
0.13193830847740173,
0.128681018948555,
-0.004212737083435059,
0.05995497107505798,
-0.23997916281223297,
0.03504866361618042,
-0.09277916699647903,
0.36477455496788025,
-0.010067887604236603,
0.3398686945438385,
0.11484157294034958,
-0.24863536655902863,
-0.11684107035398483,
0.44876348972320557,
-0.04094921052455902,
0.22450780868530273,
0.1049685999751091,
-0.21054935455322266,
0.23303547501564026,
-0.05826105922460556,
0.13383734226226807,
0.7634178996086121,
0.11589258164167404,
-0.3087421953678131,
0.030317243188619614,
0.15680494904518127,
-0.05605938285589218,
0.3047149181365967,
0.21357782185077667,
0.517604410648346,
0.4227154850959778,
0.05485532432794571,
0.21118678152561188,
-0.10410785675048828,
-0.4372713267803192,
0.13018302619457245,
0.24295231699943542,
-0.32689741253852844,
-0.02823660895228386,
-0.22753190994262695,
-0.0035174861550331116,
-0.1745341718196869,
-0.006303044036030769,
-0.19773966073989868,
-0.11052829027175903,
-0.003894038498401642,
0.11990614235401154,
-0.054134756326675415,
0.052162542939186096,
-0.27687713503837585,
0.08337661623954773,
0.23966069519519806,
-0.2275042086839676,
0.17650969326496124,
-0.07878760248422623,
-0.12283440679311752,
-0.07989466190338135,
0.3425709307193756,
-0.12984439730644226,
0.25657886266708374,
-0.325946569442749,
0.13476556539535522,
-0.17519772052764893,
-0.2120327353477478,
0.156097412109375,
0.2870916426181793,
0.15855127573013306,
0.1268409937620163,
0.2120095193386078,
0.17119593918323517,
-0.23682674765586853,
0.23345737159252167,
-0.1223335862159729,
-0.05518941581249237,
0.11134546995162964,
-0.012025232426822186,
0.24420948326587677,
-0.04728993400931358,
-0.46437057852745056,
-0.3488773703575134,
-0.488826185464859,
-0.0874159038066864,
-0.06712853908538818,
0.26880621910095215,
0.19940246641635895,
0.12610164284706116,
0.2629390358924866,
0.2930874824523926,
0.047304652631282806,
-0.019614093005657196,
-0.18872256577014923,
0.21649768948554993,
-0.3033241033554077,
-0.2178202122449875,
-0.25645843148231506,
0.07126821577548981,
0.2940010726451874,
0.03164789825677872,
-0.6996411681175232,
-0.3688041567802429,
-0.09585931152105331,
0.1920548975467682,
-0.47362256050109863,
-0.021840626373887062,
0.22433380782604218,
0.09825516492128372,
0.023132065311074257,
-0.3120467960834503,
0.0890539288520813,
0.08111904561519623,
-0.150928795337677,
0.2234877347946167,
-0.10417457669973373,
0.450555682182312,
-0.21828997135162354,
0.5835210084915161,
-0.08966106176376343,
-0.23262791335582733,
0.49435630440711975,
-0.152216374874115,
0.3561163544654846,
-0.15522482991218567,
-0.2526460886001587,
-0.20445330440998077,
-0.09172779321670532,
0.011841028928756714,
0.29499930143356323,
0.09037956595420837,
0.00965118408203125,
-0.26924818754196167,
0.020412050187587738,
-0.4474092423915863,
-0.21610240638256073,
0.1328553855419159,
-0.10353334248065948,
0.2543567717075348,
-0.07475484907627106,
0.2682149112224579,
-0.18866851925849915,
-0.08505507558584213,
0.11541083455085754,
0.2735351324081421,
0.116950623691082,
-0.04271697625517845,
0.006860643625259399,
-0.04283031448721886,
-0.11970359832048416,
0.24232812225818634,
-0.1672644466161728,
0.3011179566383362,
-0.03964962065219879,
-0.10389285534620285,
0.016812659800052643,
0.0017570257186889648,
0.8671804666519165,
0.1616339385509491,
0.06117580085992813,
0.07444974780082703,
0.0017684660851955414,
-0.20961202681064606,
-0.15318940579891205,
-0.04869995638728142,
0.5598668456077576,
0.4752475917339325,
0.6100470423698425,
-0.13610367476940155,
-0.20626254379749298,
0.198993980884552,
0.24311624467372894,
-0.0953742042183876,
-0.436749666929245,
-0.3278186619281769,
-0.33208274841308594,
-0.26505663990974426,
-0.05603673309087753,
-0.052191153168678284,
0.4572673738002777,
-0.19830025732517242,
0.02083474025130272,
-0.17824243009090424,
-0.40051576495170593,
-0.11744850873947144,
0.07239784300327301,
0.40807175636291504,
-0.04514582082629204,
0.34365975856781006,
0.19632183015346527,
0.3403642773628235,
0.30593055486679077,
0.6303967833518982,
-0.19953642785549164,
-0.590069055557251,
0.30275759100914,
-0.19650676846504211,
0.06575965881347656,
0.14682815968990326,
-0.05962071940302849,
-0.11455171555280685,
0.0031651370227336884,
0.18440544605255127,
-0.09195965528488159,
0.009287012740969658,
0.2338157445192337,
0.034593548625707626,
-0.3580454885959625,
-0.30232372879981995,
0.3559461236000061,
-0.025090117007493973,
0.003408677875995636,
0.33424803614616394,
-0.24283944070339203,
-0.1591668725013733,
0.5583696365356445,
-0.022191934287548065,
0.8753300309181213,
-0.19544388353824615,
-0.046154726296663284,
0.03394223377108574,
-0.24440176784992218,
0.7470530271530151,
-0.4442424774169922,
0.13048163056373596,
-0.3095657527446747,
-0.38407450914382935,
0.041841186583042145,
-0.22732943296432495,
0.19170060753822327,
0.012624450027942657,
-0.1538768857717514,
0.10415330529212952,
-0.14644855260849,
0.12133340537548065,
0.16882310807704926,
0.3585914671421051,
-0.19287659227848053,
-0.15478172898292542,
-0.20132045447826385,
-0.006766021251678467,
0.07250025123357773,
0.4714583158493042,
-0.15762737393379211,
-0.25676167011260986,
-0.18169070780277252,
-0.0251294132322073,
-0.058086276054382324,
0.18203693628311157,
-0.5054666996002197,
0.2635752260684967,
-0.0394347719848156,
-0.5898029804229736,
0.011645060032606125,
0.7242985963821411,
0.0000020265579223632812,
0.10093028098344803,
-0.09026342630386353,
0.272233784198761,
0.18933510780334473,
0.008151226677000523,
0.27043142914772034,
-0.09077277779579163,
0.24829234182834625,
-0.07753981649875641,
-0.1894853115081787,
0.06359332799911499,
-0.22812983393669128,
-0.24016022682189941,
0.4469696283340454,
-0.0698917806148529,
0.3370921015739441,
-0.24193942546844482,
-0.1958489567041397,
-0.1846798062324524,
-0.00306793674826622,
-0.10619920492172241,
0.0852934867143631,
0.08610757440328598,
-0.2696993350982666,
0.0032319948077201843,
-0.17891353368759155,
-0.41704240441322327,
-0.030387524515390396,
0.34359875321388245,
-0.10276734083890915,
0.19585862755775452,
0.5353896021842957,
0.2496228963136673,
0.07004722207784653,
-0.12866201996803284,
0.08761361986398697,
-0.07888207584619522,
-0.8638363480567932,
0.0030893408693373203,
0.13294313848018646,
0.19102980196475983,
-0.13249632716178894,
-0.3880007863044739,
-0.041608862578868866,
0.024645112454891205,
-0.259201318025589,
-0.8063879609107971,
-0.1279865950345993,
0.0003279373049736023,
-0.05551343038678169,
0.12090593576431274,
0.012571655213832855,
0.18140041828155518,
-0.10557219386100769,
-0.12669214606285095,
-0.21392914652824402,
0.11383671313524246,
-0.0415835976600647,
-0.03509038686752319,
0.20873717963695526,
-0.02619202435016632,
0.05221537873148918,
-0.1148364394903183,
0.12241321802139282,
0.13228169083595276,
-0.05459032207727432,
-0.15929803252220154,
-0.19863693416118622,
0.19145941734313965,
-0.16973689198493958,
-0.1901635378599167,
-0.06949879229068756,
-0.2603869140148163,
-0.08234661817550659,
-0.03080672398209572,
0.13417088985443115,
-0.12804031372070312,
-0.13420751690864563,
-0.18077456951141357,
0.052953366190195084,
0.1350383162498474,
-0.2587346136569977,
0.3014797866344452,
-0.15237782895565033,
0.15339797735214233,
-0.04651716724038124,
0.3444420099258423,
-0.1278182417154312,
0.06012268364429474,
-0.2831708788871765,
-0.21503350138664246,
-0.01946832984685898,
0.054130733013153076,
0.2921985387802124,
-0.2612037658691406,
0.04374217614531517,
0.2345067262649536,
0.06121092289686203,
0.2389378845691681,
-0.2238367795944214,
0.048034705221652985,
0.15480533242225647,
0.21381743252277374,
-0.20071712136268616,
0.046512357890605927,
0.22981001436710358,
0.2254764288663864,
-0.01679830253124237,
0.12261824309825897,
0.1225852370262146,
-0.060485176742076874,
-0.02988480031490326,
0.07910677045583725,
0.2626870274543762,
0.4071722626686096,
0.37076911330223083,
0.812510073184967,
0.031991105526685715,
0.22672876715660095,
-0.16816869378089905,
-0.20031654834747314,
-0.013751573860645294,
0.5678640604019165,
-0.15702438354492188,
0.14884249866008759,
0.16197746992111206,
0.14955934882164001,
0.07362740486860275,
-0.44035574793815613,
-0.10111431777477264,
-0.054724693298339844,
-0.017110027372837067,
0.17525877058506012,
-0.25500401854515076,
0.5106301307678223,
-0.22628462314605713,
0.07696682214736938,
-0.25330522656440735,
0.3183329105377197,
-0.10501105338335037,
0.08239784836769104,
-0.06454180181026459,
-0.17114178836345673,
0.1584533303976059,
0.06100353226065636,
-0.009204644709825516,
0.040818747133016586,
-0.2774721086025238,
0.22813059389591217,
-0.2549309730529785,
-0.1301790475845337,
-0.31340518593788147,
0.3595231771469116,
-0.05395134538412094,
-0.1707001030445099,
0.35957270860671997,
0.3049589991569519,
0.17471830546855927,
0.18919959664344788,
0.36371394991874695,
0.48313599824905396,
0.450318306684494,
-0.3225099444389343,
0.035887278616428375,
0.12696439027786255,
0.08912187814712524,
-0.023632071912288666,
-0.006764885038137436,
0.01396854966878891,
0.26684218645095825,
0.31736916303634644,
0.0636151134967804,
-0.1635797917842865,
0.050705816596746445,
0.027448154985904694,
0.18043166399002075,
-0.2532278001308441,
-0.02664659172296524,
-0.03678327053785324,
-0.17808745801448822,
-0.11434340476989746,
0.07040043920278549,
-0.22778385877609253,
-0.12537433207035065,
0.35111913084983826,
-0.04951201379299164,
-0.0020052576437592506,
0.059643834829330444,
0.021805457770824432,
-0.25923991203308105,
0.36522921919822693,
0.21829311549663544,
0.5810967683792114,
-0.2674705982208252,
-0.21735742688179016,
-0.6972262263298035,
0.3747776448726654,
-0.019284766167402267,
-0.2902251183986664,
0.21666978299617767,
-0.0611451119184494,
-0.035544879734516144,
0.15558217465877533,
0.35504740476608276,
-0.0920129343867302,
0.3595956563949585,
0.2411303073167801,
-0.4858280420303345,
-0.33351844549179077,
-0.4250917434692383,
0.20828646421432495,
-0.05540114641189575,
-0.4326458275318146,
0.07480276376008987,
0.035240739583969116,
0.05191553384065628,
-0.19041593372821808,
-0.13461896777153015,
-0.02487199194729328,
-0.07959909737110138,
0.44321292638778687,
-0.004205167293548584,
0.44305500388145447,
-0.08528316766023636,
-0.057390451431274414,
0.0039826855063438416,
-0.1729487031698227,
-0.13894054293632507,
0.16092941164970398,
0.32594355940818787,
0.06456992775201797,
-0.12522141635417938,
-0.307117760181427,
-0.29258865118026733,
0.41479164361953735,
-0.06716382503509521,
0.3546149730682373,
-0.3536362051963806,
0.09400522708892822,
-0.12472712993621826,
0.06841982901096344,
0.2927660346031189,
0.18029853701591492,
-0.15068994462490082,
0.15510746836662292,
-0.2595284581184387,
-0.18466946482658386,
0.4124612808227539,
-0.6139754056930542,
0.0659288763999939,
-0.061922747641801834,
0.350047767162323,
0.03162292018532753,
0.14756549894809723,
-0.36107632517814636,
0.074127696454525,
0.4486694633960724,
0.03582042455673218,
-0.3080541789531708,
-0.003214646130800247,
0.11850310862064362,
0.17007915675640106,
0.09246432781219482,
0.31084656715393066,
-0.04263082146644592,
-0.31244102120399475,
0.08733712136745453,
-0.12599638104438782
] |
https://github.com/huggingface/datasets/issues/2645 | load_dataset processing failed with OS error after downloading a dataset | > Hi ! It looks like an issue with pytorch.
>
> Could you try to run `import torch` and see if it raises an error ?
It works. Thank you! | ## Describe the bug
After downloading a dataset like opus100, there is a bug that
OSError: Cannot find data file.
Original error:
dlopen: cannot load any more object with static TLS
## Steps to reproduce the bug
```python
from datasets import load_dataset
this_dataset = load_dataset('opus100', 'af-en')
```
## Expected results
there is no error when running load_dataset.
## Actual results
Specify the actual results or traceback.
Traceback (most recent call last):
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split
example = self.info.features.encode_example(record)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example
example = cast_to_python_objects(example)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob
return _cast_to_python_objects(obj)[0]
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o
import torch
File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module>
_load_global_deps()
File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen: cannot load any more object with static TLS
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "download_hub_opus100.py", line 9, in <module>
this_dataset = load_dataset('opus100', language_pair)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep
+ str(e)
OSError: Cannot find data file.
Original error:
dlopen: cannot load any more object with static TLS
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid
- Python version: 3.6.6
- PyArrow version: 3.0.0
| 31 | load_dataset processing failed with OS error after downloading a dataset
## Describe the bug
After downloading a dataset like opus100, there is a bug that
OSError: Cannot find data file.
Original error:
dlopen: cannot load any more object with static TLS
## Steps to reproduce the bug
```python
from datasets import load_dataset
this_dataset = load_dataset('opus100', 'af-en')
```
## Expected results
there is no error when running load_dataset.
## Actual results
Specify the actual results or traceback.
Traceback (most recent call last):
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split
example = self.info.features.encode_example(record)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example
example = cast_to_python_objects(example)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob
return _cast_to_python_objects(obj)[0]
File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o
import torch
File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module>
_load_global_deps()
File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen: cannot load any more object with static TLS
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "download_hub_opus100.py", line 9, in <module>
this_dataset = load_dataset('opus100', language_pair)
File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep
+ str(e)
OSError: Cannot find data file.
Original error:
dlopen: cannot load any more object with static TLS
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid
- Python version: 3.6.6
- PyArrow version: 3.0.0
> Hi ! It looks like an issue with pytorch.
>
> Could you try to run `import torch` and see if it raises an error ?
It works. Thank you! | [
-0.4430498778820038,
0.20311975479125977,
-0.0454363077878952,
0.4847753047943115,
0.3039815425872803,
-0.0233757384121418,
0.2349690943956375,
0.36604616045951843,
-0.10822843015193939,
0.09275230765342712,
-0.16256898641586304,
0.46781426668167114,
-0.007434778846800327,
-0.08360806852579117,
-0.017416764050722122,
-0.13232514262199402,
0.03872225433588028,
0.2778642177581787,
-0.6045763492584229,
-0.048267703503370285,
-0.43124693632125854,
0.31153810024261475,
-0.10302937030792236,
-0.09901668131351471,
0.03786104917526245,
0.0749128982424736,
-0.19062979519367218,
0.31971561908721924,
-0.09478853642940521,
-0.2602507174015045,
-0.02093365415930748,
-0.17103666067123413,
0.28401246666908264,
0.5108675360679626,
-0.00011839857324957848,
0.29027432203292847,
0.09254594147205353,
-0.0907711461186409,
-0.4023878574371338,
-0.1111454963684082,
-0.08325855433940887,
-0.10316018015146255,
0.14823758602142334,
-0.379036009311676,
-0.042459048330783844,
-0.21750019490718842,
-0.028211483731865883,
-0.5162988305091858,
0.21042080223560333,
0.3379336893558502,
0.1746215522289276,
0.3742228150367737,
0.29021361470222473,
-0.14841172099113464,
0.25406214594841003,
-0.028348863124847412,
-0.04140782356262207,
0.04845505952835083,
0.15569531917572021,
-0.05658092349767685,
0.06519610434770584,
0.29202985763549805,
-0.1614065319299698,
0.1469639390707016,
0.20899048447608948,
0.058135781437158585,
0.27018678188323975,
-0.3370184302330017,
0.3568374812602997,
0.1577441394329071,
0.540391743183136,
-0.028047114610671997,
-0.33318644762039185,
-0.18784835934638977,
0.01304890587925911,
-0.42981070280075073,
0.2435782253742218,
0.22146004438400269,
-0.028591299429535866,
0.08683488517999649,
0.14127473533153534,
-0.12389463931322098,
-0.09403373301029205,
0.30540186166763306,
-0.042060330510139465,
0.20012113451957703,
-0.05761876702308655,
-0.05916440486907959,
0.06311526894569397,
0.2239580899477005,
0.27935177087783813,
0.04977947473526001,
-0.010078314691781998,
0.31725701689720154,
-0.474525511264801,
0.17730988562107086,
0.17190013825893402,
0.0040305182337760925,
0.09337135404348373,
-0.06502765417098999,
0.10361333936452866,
-0.23186266422271729,
-0.02301087975502014,
-0.07365382462739944,
0.2052522599697113,
0.04714738205075264,
-0.2928021252155304,
-0.1984696388244629,
0.140468567609787,
0.06259243190288544,
-0.1818162500858307,
-0.09568443149328232,
-0.19329294562339783,
-0.34106379747390747,
0.07598505914211273,
0.13471603393554688,
0.5756466388702393,
-0.1788666993379593,
-0.35670536756515503,
-0.05379436910152435,
-0.1881234347820282,
-0.05321462079882622,
0.10692337155342102,
0.28919312357902527,
-0.06075600907206535,
0.4205155372619629,
0.24402405321598053,
0.13031429052352905,
-0.38333114981651306,
0.01570308953523636,
-0.1193971335887909,
-0.23960594832897186,
-0.1751902848482132,
-0.018225932493805885,
0.06444019079208374,
-0.48655271530151367,
0.31543222069740295,
0.1732185184955597,
-0.07354369759559631,
-0.3623708486557007,
0.37775877118110657,
-0.07942135632038116,
-0.09546125680208206,
0.2311086803674698,
-0.002141423523426056,
-0.12617181241512299,
0.14796432852745056,
-0.013793345540761948,
0.09772471338510513,
0.4053345024585724,
-0.49590015411376953,
-0.5249581933021545,
-0.47872698307037354,
0.17132878303527832,
-0.3053378462791443,
0.13985255360603333,
0.30708828568458557,
-0.17518983781337738,
0.15074032545089722,
-0.1544899344444275,
-0.09859130531549454,
-0.2091851830482483,
-0.33282628655433655,
-0.19358770549297333,
0.40815696120262146,
0.4952765107154846,
-0.31944793462753296,
0.05533464998006821,
-0.25243258476257324,
-0.18812666833400726,
-0.10420262068510056,
-0.02304665744304657,
-0.0677800327539444,
0.38774341344833374,
-0.5029057860374451,
-0.261357843875885,
0.2853178083896637,
-0.44295164942741394,
-0.675349235534668,
0.02942718379199505,
-0.24769462645053864,
0.042422764003276825,
0.31827354431152344,
0.05899667739868164,
0.374020516872406,
-0.009453430771827698,
-0.1303219497203827,
0.21319405734539032,
0.13549117743968964,
0.018598517403006554,
-0.14829692244529724,
-0.14801053702831268,
0.04531942680478096,
0.24368788301944733,
0.0738343894481659,
0.07524051517248154,
0.12761330604553223,
0.11370627582073212,
0.2993844747543335,
-0.14386077225208282,
-0.18325482308864594,
0.10969286412000656,
0.26585930585861206,
0.1396883875131607,
0.2437562346458435,
-0.0872693657875061,
-0.46745777130126953,
0.0827426090836525,
-0.05335012823343277,
0.03266758471727371,
-0.21871615946292877,
-0.04481284320354462,
-0.1293059140443802,
0.09564331918954849,
-0.2936306595802307,
-0.3219185173511505,
0.07301797717809677,
0.19819492101669312,
0.006688479334115982,
0.015833131968975067,
-0.0868256688117981,
0.3457709848880768,
0.11645139753818512,
0.1674298197031021,
-0.25083687901496887,
0.3303532600402832,
0.12076695263385773,
-0.037917885929346085,
-0.08129135519266129,
0.320413202047348,
0.0453064888715744,
-0.21024970710277557,
-0.2788042426109314,
0.4593667685985565,
0.14847984910011292,
-0.022526055574417114,
-0.09866098314523697,
0.17531821131706238,
0.2358965277671814,
-0.2645648419857025,
-0.09821807593107224,
0.040937796235084534,
0.2143259048461914,
0.07084424048662186,
0.10047869384288788,
0.004270724952220917,
-0.1008390486240387,
0.13193830847740173,
0.128681018948555,
-0.004212737083435059,
0.05995497107505798,
-0.23997916281223297,
0.03504866361618042,
-0.09277916699647903,
0.36477455496788025,
-0.010067887604236603,
0.3398686945438385,
0.11484157294034958,
-0.24863536655902863,
-0.11684107035398483,
0.44876348972320557,
-0.04094921052455902,
0.22450780868530273,
0.1049685999751091,
-0.21054935455322266,
0.23303547501564026,
-0.05826105922460556,
0.13383734226226807,
0.7634178996086121,
0.11589258164167404,
-0.3087421953678131,
0.030317243188619614,
0.15680494904518127,
-0.05605938285589218,
0.3047149181365967,
0.21357782185077667,
0.517604410648346,
0.4227154850959778,
0.05485532432794571,
0.21118678152561188,
-0.10410785675048828,
-0.4372713267803192,
0.13018302619457245,
0.24295231699943542,
-0.32689741253852844,
-0.02823660895228386,
-0.22753190994262695,
-0.0035174861550331116,
-0.1745341718196869,
-0.006303044036030769,
-0.19773966073989868,
-0.11052829027175903,
-0.003894038498401642,
0.11990614235401154,
-0.054134756326675415,
0.052162542939186096,
-0.27687713503837585,
0.08337661623954773,
0.23966069519519806,
-0.2275042086839676,
0.17650969326496124,
-0.07878760248422623,
-0.12283440679311752,
-0.07989466190338135,
0.3425709307193756,
-0.12984439730644226,
0.25657886266708374,
-0.325946569442749,
0.13476556539535522,
-0.17519772052764893,
-0.2120327353477478,
0.156097412109375,
0.2870916426181793,
0.15855127573013306,
0.1268409937620163,
0.2120095193386078,
0.17119593918323517,
-0.23682674765586853,
0.23345737159252167,
-0.1223335862159729,
-0.05518941581249237,
0.11134546995162964,
-0.012025232426822186,
0.24420948326587677,
-0.04728993400931358,
-0.46437057852745056,
-0.3488773703575134,
-0.488826185464859,
-0.0874159038066864,
-0.06712853908538818,
0.26880621910095215,
0.19940246641635895,
0.12610164284706116,
0.2629390358924866,
0.2930874824523926,
0.047304652631282806,
-0.019614093005657196,
-0.18872256577014923,
0.21649768948554993,
-0.3033241033554077,
-0.2178202122449875,
-0.25645843148231506,
0.07126821577548981,
0.2940010726451874,
0.03164789825677872,
-0.6996411681175232,
-0.3688041567802429,
-0.09585931152105331,
0.1920548975467682,
-0.47362256050109863,
-0.021840626373887062,
0.22433380782604218,
0.09825516492128372,
0.023132065311074257,
-0.3120467960834503,
0.0890539288520813,
0.08111904561519623,
-0.150928795337677,
0.2234877347946167,
-0.10417457669973373,
0.450555682182312,
-0.21828997135162354,
0.5835210084915161,
-0.08966106176376343,
-0.23262791335582733,
0.49435630440711975,
-0.152216374874115,
0.3561163544654846,
-0.15522482991218567,
-0.2526460886001587,
-0.20445330440998077,
-0.09172779321670532,
0.011841028928756714,
0.29499930143356323,
0.09037956595420837,
0.00965118408203125,
-0.26924818754196167,
0.020412050187587738,
-0.4474092423915863,
-0.21610240638256073,
0.1328553855419159,
-0.10353334248065948,
0.2543567717075348,
-0.07475484907627106,
0.2682149112224579,
-0.18866851925849915,
-0.08505507558584213,
0.11541083455085754,
0.2735351324081421,
0.116950623691082,
-0.04271697625517845,
0.006860643625259399,
-0.04283031448721886,
-0.11970359832048416,
0.24232812225818634,
-0.1672644466161728,
0.3011179566383362,
-0.03964962065219879,
-0.10389285534620285,
0.016812659800052643,
0.0017570257186889648,
0.8671804666519165,
0.1616339385509491,
0.06117580085992813,
0.07444974780082703,
0.0017684660851955414,
-0.20961202681064606,
-0.15318940579891205,
-0.04869995638728142,
0.5598668456077576,
0.4752475917339325,
0.6100470423698425,
-0.13610367476940155,
-0.20626254379749298,
0.198993980884552,
0.24311624467372894,
-0.0953742042183876,
-0.436749666929245,
-0.3278186619281769,
-0.33208274841308594,
-0.26505663990974426,
-0.05603673309087753,
-0.052191153168678284,
0.4572673738002777,
-0.19830025732517242,
0.02083474025130272,
-0.17824243009090424,
-0.40051576495170593,
-0.11744850873947144,
0.07239784300327301,
0.40807175636291504,
-0.04514582082629204,
0.34365975856781006,
0.19632183015346527,
0.3403642773628235,
0.30593055486679077,
0.6303967833518982,
-0.19953642785549164,
-0.590069055557251,
0.30275759100914,
-0.19650676846504211,
0.06575965881347656,
0.14682815968990326,
-0.05962071940302849,
-0.11455171555280685,
0.0031651370227336884,
0.18440544605255127,
-0.09195965528488159,
0.009287012740969658,
0.2338157445192337,
0.034593548625707626,
-0.3580454885959625,
-0.30232372879981995,
0.3559461236000061,
-0.025090117007493973,
0.003408677875995636,
0.33424803614616394,
-0.24283944070339203,
-0.1591668725013733,
0.5583696365356445,
-0.022191934287548065,
0.8753300309181213,
-0.19544388353824615,
-0.046154726296663284,
0.03394223377108574,
-0.24440176784992218,
0.7470530271530151,
-0.4442424774169922,
0.13048163056373596,
-0.3095657527446747,
-0.38407450914382935,
0.041841186583042145,
-0.22732943296432495,
0.19170060753822327,
0.012624450027942657,
-0.1538768857717514,
0.10415330529212952,
-0.14644855260849,
0.12133340537548065,
0.16882310807704926,
0.3585914671421051,
-0.19287659227848053,
-0.15478172898292542,
-0.20132045447826385,
-0.006766021251678467,
0.07250025123357773,
0.4714583158493042,
-0.15762737393379211,
-0.25676167011260986,
-0.18169070780277252,
-0.0251294132322073,
-0.058086276054382324,
0.18203693628311157,
-0.5054666996002197,
0.2635752260684967,
-0.0394347719848156,
-0.5898029804229736,
0.011645060032606125,
0.7242985963821411,
0.0000020265579223632812,
0.10093028098344803,
-0.09026342630386353,
0.272233784198761,
0.18933510780334473,
0.008151226677000523,
0.27043142914772034,
-0.09077277779579163,
0.24829234182834625,
-0.07753981649875641,
-0.1894853115081787,
0.06359332799911499,
-0.22812983393669128,
-0.24016022682189941,
0.4469696283340454,
-0.0698917806148529,
0.3370921015739441,
-0.24193942546844482,
-0.1958489567041397,
-0.1846798062324524,
-0.00306793674826622,
-0.10619920492172241,
0.0852934867143631,
0.08610757440328598,
-0.2696993350982666,
0.0032319948077201843,
-0.17891353368759155,
-0.41704240441322327,
-0.030387524515390396,
0.34359875321388245,
-0.10276734083890915,
0.19585862755775452,
0.5353896021842957,
0.2496228963136673,
0.07004722207784653,
-0.12866201996803284,
0.08761361986398697,
-0.07888207584619522,
-0.8638363480567932,
0.0030893408693373203,
0.13294313848018646,
0.19102980196475983,
-0.13249632716178894,
-0.3880007863044739,
-0.041608862578868866,
0.024645112454891205,
-0.259201318025589,
-0.8063879609107971,
-0.1279865950345993,
0.0003279373049736023,
-0.05551343038678169,
0.12090593576431274,
0.012571655213832855,
0.18140041828155518,
-0.10557219386100769,
-0.12669214606285095,
-0.21392914652824402,
0.11383671313524246,
-0.0415835976600647,
-0.03509038686752319,
0.20873717963695526,
-0.02619202435016632,
0.05221537873148918,
-0.1148364394903183,
0.12241321802139282,
0.13228169083595276,
-0.05459032207727432,
-0.15929803252220154,
-0.19863693416118622,
0.19145941734313965,
-0.16973689198493958,
-0.1901635378599167,
-0.06949879229068756,
-0.2603869140148163,
-0.08234661817550659,
-0.03080672398209572,
0.13417088985443115,
-0.12804031372070312,
-0.13420751690864563,
-0.18077456951141357,
0.052953366190195084,
0.1350383162498474,
-0.2587346136569977,
0.3014797866344452,
-0.15237782895565033,
0.15339797735214233,
-0.04651716724038124,
0.3444420099258423,
-0.1278182417154312,
0.06012268364429474,
-0.2831708788871765,
-0.21503350138664246,
-0.01946832984685898,
0.054130733013153076,
0.2921985387802124,
-0.2612037658691406,
0.04374217614531517,
0.2345067262649536,
0.06121092289686203,
0.2389378845691681,
-0.2238367795944214,
0.048034705221652985,
0.15480533242225647,
0.21381743252277374,
-0.20071712136268616,
0.046512357890605927,
0.22981001436710358,
0.2254764288663864,
-0.01679830253124237,
0.12261824309825897,
0.1225852370262146,
-0.060485176742076874,
-0.02988480031490326,
0.07910677045583725,
0.2626870274543762,
0.4071722626686096,
0.37076911330223083,
0.812510073184967,
0.031991105526685715,
0.22672876715660095,
-0.16816869378089905,
-0.20031654834747314,
-0.013751573860645294,
0.5678640604019165,
-0.15702438354492188,
0.14884249866008759,
0.16197746992111206,
0.14955934882164001,
0.07362740486860275,
-0.44035574793815613,
-0.10111431777477264,
-0.054724693298339844,
-0.017110027372837067,
0.17525877058506012,
-0.25500401854515076,
0.5106301307678223,
-0.22628462314605713,
0.07696682214736938,
-0.25330522656440735,
0.3183329105377197,
-0.10501105338335037,
0.08239784836769104,
-0.06454180181026459,
-0.17114178836345673,
0.1584533303976059,
0.06100353226065636,
-0.009204644709825516,
0.040818747133016586,
-0.2774721086025238,
0.22813059389591217,
-0.2549309730529785,
-0.1301790475845337,
-0.31340518593788147,
0.3595231771469116,
-0.05395134538412094,
-0.1707001030445099,
0.35957270860671997,
0.3049589991569519,
0.17471830546855927,
0.18919959664344788,
0.36371394991874695,
0.48313599824905396,
0.450318306684494,
-0.3225099444389343,
0.035887278616428375,
0.12696439027786255,
0.08912187814712524,
-0.023632071912288666,
-0.006764885038137436,
0.01396854966878891,
0.26684218645095825,
0.31736916303634644,
0.0636151134967804,
-0.1635797917842865,
0.050705816596746445,
0.027448154985904694,
0.18043166399002075,
-0.2532278001308441,
-0.02664659172296524,
-0.03678327053785324,
-0.17808745801448822,
-0.11434340476989746,
0.07040043920278549,
-0.22778385877609253,
-0.12537433207035065,
0.35111913084983826,
-0.04951201379299164,
-0.0020052576437592506,
0.059643834829330444,
0.021805457770824432,
-0.25923991203308105,
0.36522921919822693,
0.21829311549663544,
0.5810967683792114,
-0.2674705982208252,
-0.21735742688179016,
-0.6972262263298035,
0.3747776448726654,
-0.019284766167402267,
-0.2902251183986664,
0.21666978299617767,
-0.0611451119184494,
-0.035544879734516144,
0.15558217465877533,
0.35504740476608276,
-0.0920129343867302,
0.3595956563949585,
0.2411303073167801,
-0.4858280420303345,
-0.33351844549179077,
-0.4250917434692383,
0.20828646421432495,
-0.05540114641189575,
-0.4326458275318146,
0.07480276376008987,
0.035240739583969116,
0.05191553384065628,
-0.19041593372821808,
-0.13461896777153015,
-0.02487199194729328,
-0.07959909737110138,
0.44321292638778687,
-0.004205167293548584,
0.44305500388145447,
-0.08528316766023636,
-0.057390451431274414,
0.0039826855063438416,
-0.1729487031698227,
-0.13894054293632507,
0.16092941164970398,
0.32594355940818787,
0.06456992775201797,
-0.12522141635417938,
-0.307117760181427,
-0.29258865118026733,
0.41479164361953735,
-0.06716382503509521,
0.3546149730682373,
-0.3536362051963806,
0.09400522708892822,
-0.12472712993621826,
0.06841982901096344,
0.2927660346031189,
0.18029853701591492,
-0.15068994462490082,
0.15510746836662292,
-0.2595284581184387,
-0.18466946482658386,
0.4124612808227539,
-0.6139754056930542,
0.0659288763999939,
-0.061922747641801834,
0.350047767162323,
0.03162292018532753,
0.14756549894809723,
-0.36107632517814636,
0.074127696454525,
0.4486694633960724,
0.03582042455673218,
-0.3080541789531708,
-0.003214646130800247,
0.11850310862064362,
0.17007915675640106,
0.09246432781219482,
0.31084656715393066,
-0.04263082146644592,
-0.31244102120399475,
0.08733712136745453,
-0.12599638104438782
] |
https://github.com/huggingface/datasets/issues/2644 | Batched `map` not allowed to return 0 items | Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed. | ## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 27 | Batched `map` not allowed to return 0 items
## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed. | [
-0.23283588886260986,
-0.3903886377811432,
-0.044456664472818375,
0.16448941826820374,
-0.10854439437389374,
-0.06876890361309052,
0.11633943021297455,
0.40563222765922546,
0.640041172504425,
0.11788118630647659,
-0.05657177418470383,
0.24608531594276428,
-0.3954412639141083,
0.10435447841882706,
-0.16292156279087067,
0.16080263257026672,
-0.04493313282728195,
0.14057859778404236,
-0.1691173017024994,
-0.191491961479187,
-0.33629295229911804,
0.1631994992494583,
-0.3979262709617615,
-0.05010448396205902,
-0.14877094328403473,
-0.29197582602500916,
0.2864803373813629,
-0.03621020168066025,
-0.16281411051750183,
-0.24540503323078156,
0.20609167218208313,
-0.23282980918884277,
-0.2091352790594101,
0.5783205628395081,
-0.00012992756091989577,
-0.023136593401432037,
0.1505938172340393,
-0.1851883977651596,
-0.08976182341575623,
-0.30296117067337036,
-0.19081798195838928,
-0.1715301126241684,
-0.11571837216615677,
-0.2824646234512329,
0.18194615840911865,
-0.2716503143310547,
-0.19563452899456024,
-0.44823965430259705,
0.10719678550958633,
0.25870078802108765,
0.043321676552295685,
0.4188176095485687,
0.00306624174118042,
0.1764478236436844,
0.331248015165329,
0.26640093326568604,
-0.07535170018672943,
0.12881119549274445,
0.7205766439437866,
-0.28810107707977295,
0.022627346217632294,
0.3385904133319855,
-0.3921833336353302,
0.0709071084856987,
0.13675561547279358,
-0.030903544276952744,
0.2301686704158783,
-0.5515584945678711,
0.2697506844997406,
0.3675672709941864,
-0.0899997428059578,
0.06078553572297096,
-0.4333372414112091,
-0.6687820553779602,
-0.04030396789312363,
-0.0954989492893219,
-0.03889784961938858,
0.28100037574768066,
-0.4210394024848938,
-0.05645928159356117,
-0.4846191108226776,
0.12179489433765411,
0.007894940674304962,
0.161854550242424,
0.030675403773784637,
0.45895424485206604,
-0.09304068982601166,
0.2003241777420044,
0.34510987997055054,
-0.16183219850063324,
-0.09940208494663239,
-0.16727103292942047,
-0.22362756729125977,
0.5847222805023193,
-0.03669866546988487,
-0.14598777890205383,
0.38932088017463684,
0.21976801753044128,
0.22303587198257446,
-0.3132428526878357,
-0.0503058135509491,
-0.07427572458982468,
0.2646799683570862,
-0.02343197911977768,
0.4159456789493561,
0.07937619090080261,
0.2686937749385834,
0.34931960701942444,
-0.005051963031291962,
-0.059093739837408066,
0.06769028306007385,
0.11316931247711182,
0.1134423166513443,
-0.08908388763666153,
-0.009652145206928253,
-0.07640837132930756,
0.2567858099937439,
-0.07875248789787292,
-0.12189864367246628,
0.23410043120384216,
-0.4100169837474823,
0.13690711557865143,
0.06204786151647568,
0.12508271634578705,
0.17005792260169983,
-0.1776706576347351,
0.12021270394325256,
0.11262881755828857,
-0.15702851116657257,
0.1897115707397461,
-0.07724665105342865,
-0.13161715865135193,
-0.1925024390220642,
-0.32082459330558777,
0.1964789181947708,
-0.33428582549095154,
0.24181680381298065,
-0.15858308970928192,
0.01982760801911354,
-0.06153256446123123,
0.09574013203382492,
-0.2645617723464966,
0.7512267231941223,
0.493787944316864,
-0.11951135098934174,
0.2913581132888794,
0.39662444591522217,
-0.21855707466602325,
-0.17528319358825684,
0.4062905013561249,
-0.38261428475379944,
-0.2777351438999176,
0.21004167199134827,
-0.040186405181884766,
-0.23807591199874878,
0.34657007455825806,
-0.5073054432868958,
0.21858470141887665,
0.1782456636428833,
0.08225134015083313,
0.29147300124168396,
-0.2697470784187317,
-0.10539453476667404,
-0.23601113259792328,
0.04256199300289154,
0.6938397288322449,
-0.6387723088264465,
-0.04992472380399704,
0.11018867045640945,
0.1013791412115097,
-0.06136622279882431,
0.3478797376155853,
-0.04546024277806282,
0.3481108248233795,
-0.4107356667518616,
0.3059868812561035,
0.08731213212013245,
-0.12647099792957306,
-0.3275631368160248,
0.3134201467037201,
-0.03581517934799194,
0.23563916981220245,
-0.0210551917552948,
-0.0642484799027443,
0.5519371032714844,
-0.187389075756073,
0.3676523268222809,
-0.17005857825279236,
-0.27995702624320984,
0.10416296869516373,
-0.05038146674633026,
-0.03984380140900612,
0.06037982553243637,
-0.2420823723077774,
0.19492411613464355,
0.01658719778060913,
0.0390780083835125,
-0.5488619208335876,
0.12863872945308685,
-0.15087907016277313,
0.33836275339126587,
0.2401704490184784,
0.2621085047721863,
0.12333135306835175,
0.018251677975058556,
-0.256351500749588,
-0.4713621139526367,
0.3001764714717865,
-0.4880332052707672,
0.021248795092105865,
-0.4338338375091553,
-0.10330385714769363,
0.030964776873588562,
0.18347446620464325,
-0.03501999005675316,
0.033095210790634155,
-0.07492085546255112,
-0.49758073687553406,
0.17657124996185303,
-0.021343067288398743,
-0.22623707354068756,
-0.23706933856010437,
-0.13586458563804626,
-0.008438942022621632,
-0.3567230999469757,
0.07135971635580063,
0.2501083314418793,
-0.2921575903892517,
-0.25420475006103516,
0.24663013219833374,
0.11493222415447235,
-0.11761093139648438,
0.11735454201698303,
0.1758526861667633,
-0.03481614217162132,
-0.16735751926898956,
-0.14001309871673584,
0.13125324249267578,
0.011728263460099697,
-0.04580094665288925,
0.10183711349964142,
0.14501343667507172,
0.3444766104221344,
-0.2378431260585785,
-0.06940696388483047,
0.5054206252098083,
-0.18761451542377472,
0.5359302163124084,
-0.1796860247850418,
0.0512385219335556,
-0.19963213801383972,
0.04260652884840965,
-0.205921471118927,
-0.3850509524345398,
0.07628356665372849,
-0.15773719549179077,
0.051337454468011856,
0.03191482275724411,
0.0012565776705741882,
-0.19891983270645142,
0.08561733365058899,
-0.04696185886859894,
0.16477906703948975,
0.01448873057961464,
-0.06305208057165146,
0.22668945789337158,
0.044692665338516235,
-0.014277782291173935,
0.3432701826095581,
0.21914267539978027,
-0.08872587978839874,
-0.15218213200569153,
0.2504407465457916,
0.00012241490185260773,
0.41391780972480774,
0.1816679835319519,
0.026053406298160553,
0.15500959753990173,
-0.003640808630734682,
-0.06572005152702332,
-0.25283387303352356,
-0.1814304143190384,
0.005715116858482361,
0.14953398704528809,
-0.3952977955341339,
-0.035420022904872894,
0.1101149469614029,
-0.15850390493869781,
0.06897607445716858,
-0.07650306075811386,
-0.2908565402030945,
-0.3032285273075104,
-0.04533350467681885,
0.26015812158584595,
-0.2722710072994232,
-0.02400803007185459,
-0.4013136625289917,
0.01165337860584259,
0.1975092589855194,
-0.2747194468975067,
-0.2812996506690979,
-0.16854678094387054,
-0.07561110705137253,
-0.07415923476219177,
0.0731138288974762,
-0.13398784399032593,
0.3615628182888031,
0.25213760137557983,
-0.2612815797328949,
-0.24377110600471497,
-0.09511386603116989,
0.0065137408673763275,
-0.5370396375656128,
0.20540322363376617,
0.41009238362312317,
0.3981708884239197,
-0.29238444566726685,
0.14706134796142578,
0.27938616275787354,
-0.10714307427406311,
-0.24806800484657288,
-0.007905741222202778,
0.022334039211273193,
0.15326271951198578,
-0.17921514809131622,
0.14743149280548096,
0.06446144729852676,
-0.32092979550361633,
0.1781848818063736,
-0.18915900588035583,
0.2615509033203125,
0.21945343911647797,
0.2780078947544098,
0.1538573056459427,
-0.36937737464904785,
-0.4285498559474945,
0.12235133349895477,
-0.14167660474777222,
0.44602087140083313,
0.03902261331677437,
-0.1469307690858841,
0.18440556526184082,
0.026218347251415253,
-0.18531909584999084,
0.24055702984333038,
-0.0966857373714447,
0.09396404027938843,
-0.05627422779798508,
0.12348277866840363,
0.1900070160627365,
0.3667996823787689,
0.4985279440879822,
0.08648860454559326,
0.046044573187828064,
-0.2846721112728119,
-0.10895583033561707,
0.0812639445066452,
0.022276949137449265,
-0.06451413780450821,
0.4225294888019562,
0.32178938388824463,
0.028700027614831924,
0.7504057884216309,
0.3654765486717224,
0.12721377611160278,
0.09464549273252487,
0.07253710925579071,
0.38223621249198914,
-0.11400645226240158,
-0.3796917200088501,
-0.2082245647907257,
0.15388457477092743,
-0.08407825231552124,
0.032513104379177094,
0.055055174976587296,
-0.06203421950340271,
-0.0012849271297454834,
0.061900507658720016,
-0.4879451096057892,
-0.18903662264347076,
0.42401063442230225,
-0.3093630373477936,
0.07615616917610168,
-0.07491452991962433,
0.09561683982610703,
-0.27880990505218506,
-0.18202731013298035,
-0.1637149155139923,
-0.3036249279975891,
0.6426761746406555,
-0.08232498168945312,
-0.0753786563873291,
-0.11549675464630127,
-0.6797435283660889,
0.33253389596939087,
0.2211797684431076,
-0.0848112478852272,
0.1067160815000534,
-0.18529433012008667,
0.06875687092542648,
0.31005731225013733,
0.9494892358779907,
-0.19327248632907867,
0.15665550529956818,
0.08142629265785217,
-0.024843700230121613,
-0.44353416562080383,
0.09980608522891998,
-0.32794123888015747,
0.2550871670246124,
0.24954193830490112,
0.5071650743484497,
-0.3575253486633301,
-0.07234404981136322,
-0.042053528130054474,
-0.02773299254477024,
0.0347222201526165,
-0.026486758142709732,
-0.17338036000728607,
-0.14954203367233276,
-0.13803215324878693,
0.364579975605011,
0.44694602489471436,
0.07268508523702621,
0.13567006587982178,
-0.20947101712226868,
-0.09888649731874466,
0.04817037284374237,
0.01759961247444153,
-0.13402992486953735,
0.4707481563091278,
0.015833480283617973,
0.05059841647744179,
0.2701374292373657,
0.11173467338085175,
0.22063003480434418,
0.49006280303001404,
-0.1534302532672882,
0.20740750432014465,
-0.18158674240112305,
0.030591290444135666,
0.3123358190059662,
0.43981611728668213,
0.00996495969593525,
0.05791469290852547,
0.3812752068042755,
0.3522171378135681,
-0.05150410905480385,
-0.29420220851898193,
0.1262359917163849,
0.0464041605591774,
-0.5417699217796326,
0.003656253218650818,
0.1158783882856369,
-0.09958198666572571,
0.08497066795825958,
0.6082315444946289,
0.5790842771530151,
-0.3638046085834503,
0.3609658479690552,
0.04329147934913635,
0.8923063278198242,
-0.01489342749118805,
0.10762733221054077,
0.1486806422472,
0.07094931602478027,
0.24982814490795135,
0.5552586913108826,
0.09436395764350891,
0.008422058075666428,
0.09743886440992355,
-0.040766678750514984,
-0.00821535661816597,
0.166874498128891,
0.3400382399559021,
0.10278649628162384,
0.2708594501018524,
0.08195768296718597,
0.12089388072490692,
-0.15034610033035278,
-0.28958961367607117,
0.287745863199234,
-0.330181360244751,
-0.3449309170246124,
-0.07553842663764954,
0.07857123017311096,
0.2657669484615326,
-0.05792974308133125,
-0.10584964603185654,
-0.03092428855597973,
-0.4037669897079468,
-0.19284549355506897,
-0.18520265817642212,
-0.44498997926712036,
0.021174337714910507,
0.2638932764530182,
-0.2862425446510315,
-0.03285892307758331,
0.05158500000834465,
-0.4806172251701355,
0.144731342792511,
-0.1111120879650116,
-0.13308334350585938,
0.38927868008613586,
0.17192377150058746,
0.021822908893227577,
-0.1521931141614914,
0.17261779308319092,
0.1998170018196106,
-0.180318221449852,
0.05755350738763809,
-0.451859712600708,
-0.17299476265907288,
0.06446629762649536,
0.40836626291275024,
-0.2023412436246872,
-0.22290021181106567,
-0.3968207836151123,
-0.19215935468673706,
0.10154205560684204,
0.03948810324072838,
-0.08833838999271393,
0.2670639157295227,
-0.07576552778482437,
0.39075034856796265,
-0.1920088529586792,
-0.45341864228248596,
-0.0437423400580883,
0.5255671739578247,
0.03462927043437958,
-0.1923189014196396,
0.41257113218307495,
0.15918509662151337,
-0.16444197297096252,
-0.06954256445169449,
0.13838917016983032,
0.34264421463012695,
-0.6278496384620667,
0.5433272123336792,
0.24986925721168518,
0.036990419030189514,
0.13783228397369385,
0.4185100495815277,
0.1368645429611206,
0.279864639043808,
-0.3155890703201294,
-0.18671876192092896,
-0.2580823004245758,
0.40863800048828125,
0.10354240238666534,
0.03598066419363022,
-0.1420464813709259,
-0.2367400974035263,
0.3288383185863495,
-0.195632204413414,
-0.15207576751708984,
0.06600487977266312,
-0.08657726645469666,
0.32883208990097046,
0.2184334546327591,
0.2640419602394104,
0.3569837212562561,
-0.0818118304014206,
-0.10281718522310257,
0.1315310299396515,
-0.2793508768081665,
-0.0736054927110672,
-0.04670844227075577,
0.17635492980480194,
0.10426028817892075,
-0.2203988879919052,
0.16272279620170593,
-0.4074191451072693,
-0.046006571501493454,
-0.40626657009124756,
0.2619493901729584,
0.49095988273620605,
-0.004013918340206146,
-0.23783405125141144,
0.37194621562957764,
0.06007876619696617,
-0.029745670035481453,
0.20644594728946686,
-0.17768722772598267,
-0.07059645652770996,
-0.06777859479188919,
0.30435359477996826,
0.16345907747745514,
0.0337509885430336,
0.08297426998615265,
0.07204823195934296,
0.01426205039024353,
0.0030941590666770935,
0.4227863848209381,
-0.20461170375347137,
-0.21244628727436066,
0.3322141766548157,
0.2543899118900299,
0.018419276922941208,
-0.020861200988292694,
-0.15182919800281525,
0.20981234312057495,
0.006031939759850502,
-0.15236219763755798,
0.028843529522418976,
0.15505163371562958,
0.3418106436729431,
0.2605258822441101,
0.36461400985717773,
-0.16854214668273926,
-0.2591925263404846,
0.01746796816587448,
0.18861588835716248,
0.021103911101818085,
0.030939985066652298,
0.18805836141109467,
0.3906846344470978,
0.3334280550479889,
-0.09894290566444397,
0.3222147822380066,
0.07886981964111328,
0.2825942933559418,
0.29012852907180786,
0.23771065473556519,
0.2660042345523834,
0.01397060975432396,
0.08644546568393707,
-0.20485380291938782,
-0.5083092451095581,
0.03778546303510666,
0.08903412520885468,
-0.002733588218688965,
0.3360840976238251,
0.12346326559782028,
0.15381143987178802,
-0.19242238998413086,
-0.27505719661712646,
0.04186003655195236,
0.002171628177165985,
-0.3454616367816925,
-0.06183398887515068,
-0.3136748671531677,
-0.2561419904232025,
0.4150926172733307,
-0.1609160155057907,
0.06273669749498367,
-0.3454863429069519,
0.3650224208831787,
-0.07760797441005707,
-0.09537091851234436,
-0.14416509866714478,
-0.3677254617214203,
0.02400274947285652,
0.22925904393196106,
-0.11037898063659668,
0.13786321878433228,
-0.09132421016693115,
-0.046329014003276825,
0.05049201846122742,
0.5798317193984985,
0.5111629366874695,
0.3985685706138611,
-0.024610470980405807,
0.4008248746395111,
0.13015714287757874,
-0.24362574517726898,
-0.2861928343772888,
0.36318978667259216,
-0.059528544545173645,
-0.02509395405650139,
0.20010904967784882,
-0.010452048853039742,
-0.04692584276199341,
-0.06305433809757233,
-0.0026363953948020935,
0.10762621462345123,
0.16351503133773804,
-0.1908559501171112,
-0.19742119312286377,
-0.23625341057777405,
-0.2687472105026245,
-0.049194030463695526,
-0.08179537206888199,
0.016053345054388046,
0.29386430978775024,
-0.09964172542095184,
0.04635611176490784,
0.07786108553409576,
-0.001332877203822136,
-0.041519004851579666,
0.2583119571208954,
0.4536592960357666,
0.0035889148712158203,
-0.48415112495422363,
0.17722250521183014,
-0.37189099192619324,
-0.030173547565937042,
-0.4928693175315857,
0.2783648371696472,
0.03891897201538086,
0.19725818932056427,
0.11981728672981262,
-0.12264204025268555,
0.31830745935440063,
-0.05017361789941788,
-0.04383482038974762,
0.354549378156662,
0.06481389701366425,
-0.27906376123428345,
-0.19281794130802155,
-0.01353541575372219,
0.010154742747545242,
-0.384270578622818,
0.10624586045742035,
-0.11351072043180466,
-0.07536035776138306,
-0.10560964047908783,
0.16992686688899994,
-0.15767142176628113,
0.027592439204454422,
0.17741486430168152,
0.33601710200309753,
-0.04189568758010864,
0.029431745409965515,
-0.01770586334168911,
-0.35040393471717834,
0.14641931653022766,
-0.1264902800321579,
0.13943716883659363,
0.3596004843711853,
0.461244136095047,
-0.32846248149871826,
-0.20270606875419617,
-0.024075431749224663,
0.04234639182686806,
0.004644881933927536,
0.036162104457616806,
-0.18189282715320587,
0.1435844600200653,
-0.3938450813293457,
-0.0358402244746685,
-0.12207356840372086,
0.022271066904067993,
0.08602305501699448,
0.027085641399025917,
-0.25258761644363403,
-0.35494348406791687,
0.382764607667923,
-0.6531074643135071,
-0.2620072662830353,
-0.06931838393211365,
0.3420589566230774,
0.211510568857193,
-0.2256408929824829,
-0.39285433292388916,
-0.17192015051841736,
0.26260173320770264,
-0.06935775279998779,
-0.06165449693799019,
-0.18479131162166595,
-0.5037387609481812,
-0.03442946448922157,
-0.15762397646903992,
0.11528322100639343,
0.03572019189596176,
0.006658660247921944,
0.23119619488716125,
-0.30986523628234863
] |
https://github.com/huggingface/datasets/issues/2644 | Batched `map` not allowed to return 0 items | Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week. | ## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 28 | Batched `map` not allowed to return 0 items
## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week. | [
-0.23283588886260986,
-0.3903886377811432,
-0.044456664472818375,
0.16448941826820374,
-0.10854439437389374,
-0.06876890361309052,
0.11633943021297455,
0.40563222765922546,
0.640041172504425,
0.11788118630647659,
-0.05657177418470383,
0.24608531594276428,
-0.3954412639141083,
0.10435447841882706,
-0.16292156279087067,
0.16080263257026672,
-0.04493313282728195,
0.14057859778404236,
-0.1691173017024994,
-0.191491961479187,
-0.33629295229911804,
0.1631994992494583,
-0.3979262709617615,
-0.05010448396205902,
-0.14877094328403473,
-0.29197582602500916,
0.2864803373813629,
-0.03621020168066025,
-0.16281411051750183,
-0.24540503323078156,
0.20609167218208313,
-0.23282980918884277,
-0.2091352790594101,
0.5783205628395081,
-0.00012992756091989577,
-0.023136593401432037,
0.1505938172340393,
-0.1851883977651596,
-0.08976182341575623,
-0.30296117067337036,
-0.19081798195838928,
-0.1715301126241684,
-0.11571837216615677,
-0.2824646234512329,
0.18194615840911865,
-0.2716503143310547,
-0.19563452899456024,
-0.44823965430259705,
0.10719678550958633,
0.25870078802108765,
0.043321676552295685,
0.4188176095485687,
0.00306624174118042,
0.1764478236436844,
0.331248015165329,
0.26640093326568604,
-0.07535170018672943,
0.12881119549274445,
0.7205766439437866,
-0.28810107707977295,
0.022627346217632294,
0.3385904133319855,
-0.3921833336353302,
0.0709071084856987,
0.13675561547279358,
-0.030903544276952744,
0.2301686704158783,
-0.5515584945678711,
0.2697506844997406,
0.3675672709941864,
-0.0899997428059578,
0.06078553572297096,
-0.4333372414112091,
-0.6687820553779602,
-0.04030396789312363,
-0.0954989492893219,
-0.03889784961938858,
0.28100037574768066,
-0.4210394024848938,
-0.05645928159356117,
-0.4846191108226776,
0.12179489433765411,
0.007894940674304962,
0.161854550242424,
0.030675403773784637,
0.45895424485206604,
-0.09304068982601166,
0.2003241777420044,
0.34510987997055054,
-0.16183219850063324,
-0.09940208494663239,
-0.16727103292942047,
-0.22362756729125977,
0.5847222805023193,
-0.03669866546988487,
-0.14598777890205383,
0.38932088017463684,
0.21976801753044128,
0.22303587198257446,
-0.3132428526878357,
-0.0503058135509491,
-0.07427572458982468,
0.2646799683570862,
-0.02343197911977768,
0.4159456789493561,
0.07937619090080261,
0.2686937749385834,
0.34931960701942444,
-0.005051963031291962,
-0.059093739837408066,
0.06769028306007385,
0.11316931247711182,
0.1134423166513443,
-0.08908388763666153,
-0.009652145206928253,
-0.07640837132930756,
0.2567858099937439,
-0.07875248789787292,
-0.12189864367246628,
0.23410043120384216,
-0.4100169837474823,
0.13690711557865143,
0.06204786151647568,
0.12508271634578705,
0.17005792260169983,
-0.1776706576347351,
0.12021270394325256,
0.11262881755828857,
-0.15702851116657257,
0.1897115707397461,
-0.07724665105342865,
-0.13161715865135193,
-0.1925024390220642,
-0.32082459330558777,
0.1964789181947708,
-0.33428582549095154,
0.24181680381298065,
-0.15858308970928192,
0.01982760801911354,
-0.06153256446123123,
0.09574013203382492,
-0.2645617723464966,
0.7512267231941223,
0.493787944316864,
-0.11951135098934174,
0.2913581132888794,
0.39662444591522217,
-0.21855707466602325,
-0.17528319358825684,
0.4062905013561249,
-0.38261428475379944,
-0.2777351438999176,
0.21004167199134827,
-0.040186405181884766,
-0.23807591199874878,
0.34657007455825806,
-0.5073054432868958,
0.21858470141887665,
0.1782456636428833,
0.08225134015083313,
0.29147300124168396,
-0.2697470784187317,
-0.10539453476667404,
-0.23601113259792328,
0.04256199300289154,
0.6938397288322449,
-0.6387723088264465,
-0.04992472380399704,
0.11018867045640945,
0.1013791412115097,
-0.06136622279882431,
0.3478797376155853,
-0.04546024277806282,
0.3481108248233795,
-0.4107356667518616,
0.3059868812561035,
0.08731213212013245,
-0.12647099792957306,
-0.3275631368160248,
0.3134201467037201,
-0.03581517934799194,
0.23563916981220245,
-0.0210551917552948,
-0.0642484799027443,
0.5519371032714844,
-0.187389075756073,
0.3676523268222809,
-0.17005857825279236,
-0.27995702624320984,
0.10416296869516373,
-0.05038146674633026,
-0.03984380140900612,
0.06037982553243637,
-0.2420823723077774,
0.19492411613464355,
0.01658719778060913,
0.0390780083835125,
-0.5488619208335876,
0.12863872945308685,
-0.15087907016277313,
0.33836275339126587,
0.2401704490184784,
0.2621085047721863,
0.12333135306835175,
0.018251677975058556,
-0.256351500749588,
-0.4713621139526367,
0.3001764714717865,
-0.4880332052707672,
0.021248795092105865,
-0.4338338375091553,
-0.10330385714769363,
0.030964776873588562,
0.18347446620464325,
-0.03501999005675316,
0.033095210790634155,
-0.07492085546255112,
-0.49758073687553406,
0.17657124996185303,
-0.021343067288398743,
-0.22623707354068756,
-0.23706933856010437,
-0.13586458563804626,
-0.008438942022621632,
-0.3567230999469757,
0.07135971635580063,
0.2501083314418793,
-0.2921575903892517,
-0.25420475006103516,
0.24663013219833374,
0.11493222415447235,
-0.11761093139648438,
0.11735454201698303,
0.1758526861667633,
-0.03481614217162132,
-0.16735751926898956,
-0.14001309871673584,
0.13125324249267578,
0.011728263460099697,
-0.04580094665288925,
0.10183711349964142,
0.14501343667507172,
0.3444766104221344,
-0.2378431260585785,
-0.06940696388483047,
0.5054206252098083,
-0.18761451542377472,
0.5359302163124084,
-0.1796860247850418,
0.0512385219335556,
-0.19963213801383972,
0.04260652884840965,
-0.205921471118927,
-0.3850509524345398,
0.07628356665372849,
-0.15773719549179077,
0.051337454468011856,
0.03191482275724411,
0.0012565776705741882,
-0.19891983270645142,
0.08561733365058899,
-0.04696185886859894,
0.16477906703948975,
0.01448873057961464,
-0.06305208057165146,
0.22668945789337158,
0.044692665338516235,
-0.014277782291173935,
0.3432701826095581,
0.21914267539978027,
-0.08872587978839874,
-0.15218213200569153,
0.2504407465457916,
0.00012241490185260773,
0.41391780972480774,
0.1816679835319519,
0.026053406298160553,
0.15500959753990173,
-0.003640808630734682,
-0.06572005152702332,
-0.25283387303352356,
-0.1814304143190384,
0.005715116858482361,
0.14953398704528809,
-0.3952977955341339,
-0.035420022904872894,
0.1101149469614029,
-0.15850390493869781,
0.06897607445716858,
-0.07650306075811386,
-0.2908565402030945,
-0.3032285273075104,
-0.04533350467681885,
0.26015812158584595,
-0.2722710072994232,
-0.02400803007185459,
-0.4013136625289917,
0.01165337860584259,
0.1975092589855194,
-0.2747194468975067,
-0.2812996506690979,
-0.16854678094387054,
-0.07561110705137253,
-0.07415923476219177,
0.0731138288974762,
-0.13398784399032593,
0.3615628182888031,
0.25213760137557983,
-0.2612815797328949,
-0.24377110600471497,
-0.09511386603116989,
0.0065137408673763275,
-0.5370396375656128,
0.20540322363376617,
0.41009238362312317,
0.3981708884239197,
-0.29238444566726685,
0.14706134796142578,
0.27938616275787354,
-0.10714307427406311,
-0.24806800484657288,
-0.007905741222202778,
0.022334039211273193,
0.15326271951198578,
-0.17921514809131622,
0.14743149280548096,
0.06446144729852676,
-0.32092979550361633,
0.1781848818063736,
-0.18915900588035583,
0.2615509033203125,
0.21945343911647797,
0.2780078947544098,
0.1538573056459427,
-0.36937737464904785,
-0.4285498559474945,
0.12235133349895477,
-0.14167660474777222,
0.44602087140083313,
0.03902261331677437,
-0.1469307690858841,
0.18440556526184082,
0.026218347251415253,
-0.18531909584999084,
0.24055702984333038,
-0.0966857373714447,
0.09396404027938843,
-0.05627422779798508,
0.12348277866840363,
0.1900070160627365,
0.3667996823787689,
0.4985279440879822,
0.08648860454559326,
0.046044573187828064,
-0.2846721112728119,
-0.10895583033561707,
0.0812639445066452,
0.022276949137449265,
-0.06451413780450821,
0.4225294888019562,
0.32178938388824463,
0.028700027614831924,
0.7504057884216309,
0.3654765486717224,
0.12721377611160278,
0.09464549273252487,
0.07253710925579071,
0.38223621249198914,
-0.11400645226240158,
-0.3796917200088501,
-0.2082245647907257,
0.15388457477092743,
-0.08407825231552124,
0.032513104379177094,
0.055055174976587296,
-0.06203421950340271,
-0.0012849271297454834,
0.061900507658720016,
-0.4879451096057892,
-0.18903662264347076,
0.42401063442230225,
-0.3093630373477936,
0.07615616917610168,
-0.07491452991962433,
0.09561683982610703,
-0.27880990505218506,
-0.18202731013298035,
-0.1637149155139923,
-0.3036249279975891,
0.6426761746406555,
-0.08232498168945312,
-0.0753786563873291,
-0.11549675464630127,
-0.6797435283660889,
0.33253389596939087,
0.2211797684431076,
-0.0848112478852272,
0.1067160815000534,
-0.18529433012008667,
0.06875687092542648,
0.31005731225013733,
0.9494892358779907,
-0.19327248632907867,
0.15665550529956818,
0.08142629265785217,
-0.024843700230121613,
-0.44353416562080383,
0.09980608522891998,
-0.32794123888015747,
0.2550871670246124,
0.24954193830490112,
0.5071650743484497,
-0.3575253486633301,
-0.07234404981136322,
-0.042053528130054474,
-0.02773299254477024,
0.0347222201526165,
-0.026486758142709732,
-0.17338036000728607,
-0.14954203367233276,
-0.13803215324878693,
0.364579975605011,
0.44694602489471436,
0.07268508523702621,
0.13567006587982178,
-0.20947101712226868,
-0.09888649731874466,
0.04817037284374237,
0.01759961247444153,
-0.13402992486953735,
0.4707481563091278,
0.015833480283617973,
0.05059841647744179,
0.2701374292373657,
0.11173467338085175,
0.22063003480434418,
0.49006280303001404,
-0.1534302532672882,
0.20740750432014465,
-0.18158674240112305,
0.030591290444135666,
0.3123358190059662,
0.43981611728668213,
0.00996495969593525,
0.05791469290852547,
0.3812752068042755,
0.3522171378135681,
-0.05150410905480385,
-0.29420220851898193,
0.1262359917163849,
0.0464041605591774,
-0.5417699217796326,
0.003656253218650818,
0.1158783882856369,
-0.09958198666572571,
0.08497066795825958,
0.6082315444946289,
0.5790842771530151,
-0.3638046085834503,
0.3609658479690552,
0.04329147934913635,
0.8923063278198242,
-0.01489342749118805,
0.10762733221054077,
0.1486806422472,
0.07094931602478027,
0.24982814490795135,
0.5552586913108826,
0.09436395764350891,
0.008422058075666428,
0.09743886440992355,
-0.040766678750514984,
-0.00821535661816597,
0.166874498128891,
0.3400382399559021,
0.10278649628162384,
0.2708594501018524,
0.08195768296718597,
0.12089388072490692,
-0.15034610033035278,
-0.28958961367607117,
0.287745863199234,
-0.330181360244751,
-0.3449309170246124,
-0.07553842663764954,
0.07857123017311096,
0.2657669484615326,
-0.05792974308133125,
-0.10584964603185654,
-0.03092428855597973,
-0.4037669897079468,
-0.19284549355506897,
-0.18520265817642212,
-0.44498997926712036,
0.021174337714910507,
0.2638932764530182,
-0.2862425446510315,
-0.03285892307758331,
0.05158500000834465,
-0.4806172251701355,
0.144731342792511,
-0.1111120879650116,
-0.13308334350585938,
0.38927868008613586,
0.17192377150058746,
0.021822908893227577,
-0.1521931141614914,
0.17261779308319092,
0.1998170018196106,
-0.180318221449852,
0.05755350738763809,
-0.451859712600708,
-0.17299476265907288,
0.06446629762649536,
0.40836626291275024,
-0.2023412436246872,
-0.22290021181106567,
-0.3968207836151123,
-0.19215935468673706,
0.10154205560684204,
0.03948810324072838,
-0.08833838999271393,
0.2670639157295227,
-0.07576552778482437,
0.39075034856796265,
-0.1920088529586792,
-0.45341864228248596,
-0.0437423400580883,
0.5255671739578247,
0.03462927043437958,
-0.1923189014196396,
0.41257113218307495,
0.15918509662151337,
-0.16444197297096252,
-0.06954256445169449,
0.13838917016983032,
0.34264421463012695,
-0.6278496384620667,
0.5433272123336792,
0.24986925721168518,
0.036990419030189514,
0.13783228397369385,
0.4185100495815277,
0.1368645429611206,
0.279864639043808,
-0.3155890703201294,
-0.18671876192092896,
-0.2580823004245758,
0.40863800048828125,
0.10354240238666534,
0.03598066419363022,
-0.1420464813709259,
-0.2367400974035263,
0.3288383185863495,
-0.195632204413414,
-0.15207576751708984,
0.06600487977266312,
-0.08657726645469666,
0.32883208990097046,
0.2184334546327591,
0.2640419602394104,
0.3569837212562561,
-0.0818118304014206,
-0.10281718522310257,
0.1315310299396515,
-0.2793508768081665,
-0.0736054927110672,
-0.04670844227075577,
0.17635492980480194,
0.10426028817892075,
-0.2203988879919052,
0.16272279620170593,
-0.4074191451072693,
-0.046006571501493454,
-0.40626657009124756,
0.2619493901729584,
0.49095988273620605,
-0.004013918340206146,
-0.23783405125141144,
0.37194621562957764,
0.06007876619696617,
-0.029745670035481453,
0.20644594728946686,
-0.17768722772598267,
-0.07059645652770996,
-0.06777859479188919,
0.30435359477996826,
0.16345907747745514,
0.0337509885430336,
0.08297426998615265,
0.07204823195934296,
0.01426205039024353,
0.0030941590666770935,
0.4227863848209381,
-0.20461170375347137,
-0.21244628727436066,
0.3322141766548157,
0.2543899118900299,
0.018419276922941208,
-0.020861200988292694,
-0.15182919800281525,
0.20981234312057495,
0.006031939759850502,
-0.15236219763755798,
0.028843529522418976,
0.15505163371562958,
0.3418106436729431,
0.2605258822441101,
0.36461400985717773,
-0.16854214668273926,
-0.2591925263404846,
0.01746796816587448,
0.18861588835716248,
0.021103911101818085,
0.030939985066652298,
0.18805836141109467,
0.3906846344470978,
0.3334280550479889,
-0.09894290566444397,
0.3222147822380066,
0.07886981964111328,
0.2825942933559418,
0.29012852907180786,
0.23771065473556519,
0.2660042345523834,
0.01397060975432396,
0.08644546568393707,
-0.20485380291938782,
-0.5083092451095581,
0.03778546303510666,
0.08903412520885468,
-0.002733588218688965,
0.3360840976238251,
0.12346326559782028,
0.15381143987178802,
-0.19242238998413086,
-0.27505719661712646,
0.04186003655195236,
0.002171628177165985,
-0.3454616367816925,
-0.06183398887515068,
-0.3136748671531677,
-0.2561419904232025,
0.4150926172733307,
-0.1609160155057907,
0.06273669749498367,
-0.3454863429069519,
0.3650224208831787,
-0.07760797441005707,
-0.09537091851234436,
-0.14416509866714478,
-0.3677254617214203,
0.02400274947285652,
0.22925904393196106,
-0.11037898063659668,
0.13786321878433228,
-0.09132421016693115,
-0.046329014003276825,
0.05049201846122742,
0.5798317193984985,
0.5111629366874695,
0.3985685706138611,
-0.024610470980405807,
0.4008248746395111,
0.13015714287757874,
-0.24362574517726898,
-0.2861928343772888,
0.36318978667259216,
-0.059528544545173645,
-0.02509395405650139,
0.20010904967784882,
-0.010452048853039742,
-0.04692584276199341,
-0.06305433809757233,
-0.0026363953948020935,
0.10762621462345123,
0.16351503133773804,
-0.1908559501171112,
-0.19742119312286377,
-0.23625341057777405,
-0.2687472105026245,
-0.049194030463695526,
-0.08179537206888199,
0.016053345054388046,
0.29386430978775024,
-0.09964172542095184,
0.04635611176490784,
0.07786108553409576,
-0.001332877203822136,
-0.041519004851579666,
0.2583119571208954,
0.4536592960357666,
0.0035889148712158203,
-0.48415112495422363,
0.17722250521183014,
-0.37189099192619324,
-0.030173547565937042,
-0.4928693175315857,
0.2783648371696472,
0.03891897201538086,
0.19725818932056427,
0.11981728672981262,
-0.12264204025268555,
0.31830745935440063,
-0.05017361789941788,
-0.04383482038974762,
0.354549378156662,
0.06481389701366425,
-0.27906376123428345,
-0.19281794130802155,
-0.01353541575372219,
0.010154742747545242,
-0.384270578622818,
0.10624586045742035,
-0.11351072043180466,
-0.07536035776138306,
-0.10560964047908783,
0.16992686688899994,
-0.15767142176628113,
0.027592439204454422,
0.17741486430168152,
0.33601710200309753,
-0.04189568758010864,
0.029431745409965515,
-0.01770586334168911,
-0.35040393471717834,
0.14641931653022766,
-0.1264902800321579,
0.13943716883659363,
0.3596004843711853,
0.461244136095047,
-0.32846248149871826,
-0.20270606875419617,
-0.024075431749224663,
0.04234639182686806,
0.004644881933927536,
0.036162104457616806,
-0.18189282715320587,
0.1435844600200653,
-0.3938450813293457,
-0.0358402244746685,
-0.12207356840372086,
0.022271066904067993,
0.08602305501699448,
0.027085641399025917,
-0.25258761644363403,
-0.35494348406791687,
0.382764607667923,
-0.6531074643135071,
-0.2620072662830353,
-0.06931838393211365,
0.3420589566230774,
0.211510568857193,
-0.2256408929824829,
-0.39285433292388916,
-0.17192015051841736,
0.26260173320770264,
-0.06935775279998779,
-0.06165449693799019,
-0.18479131162166595,
-0.5037387609481812,
-0.03442946448922157,
-0.15762397646903992,
0.11528322100639343,
0.03572019189596176,
0.006658660247921944,
0.23119619488716125,
-0.30986523628234863
] |
https://github.com/huggingface/datasets/issues/2644 | Batched `map` not allowed to return 0 items | Sure if you're interested feel free to open a PR :)
You can also ping me anytime if you have questions or if I can help ! | ## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 27 | Batched `map` not allowed to return 0 items
## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Sure if you're interested feel free to open a PR :)
You can also ping me anytime if you have questions or if I can help ! | [
-0.23283588886260986,
-0.3903886377811432,
-0.044456664472818375,
0.16448941826820374,
-0.10854439437389374,
-0.06876890361309052,
0.11633943021297455,
0.40563222765922546,
0.640041172504425,
0.11788118630647659,
-0.05657177418470383,
0.24608531594276428,
-0.3954412639141083,
0.10435447841882706,
-0.16292156279087067,
0.16080263257026672,
-0.04493313282728195,
0.14057859778404236,
-0.1691173017024994,
-0.191491961479187,
-0.33629295229911804,
0.1631994992494583,
-0.3979262709617615,
-0.05010448396205902,
-0.14877094328403473,
-0.29197582602500916,
0.2864803373813629,
-0.03621020168066025,
-0.16281411051750183,
-0.24540503323078156,
0.20609167218208313,
-0.23282980918884277,
-0.2091352790594101,
0.5783205628395081,
-0.00012992756091989577,
-0.023136593401432037,
0.1505938172340393,
-0.1851883977651596,
-0.08976182341575623,
-0.30296117067337036,
-0.19081798195838928,
-0.1715301126241684,
-0.11571837216615677,
-0.2824646234512329,
0.18194615840911865,
-0.2716503143310547,
-0.19563452899456024,
-0.44823965430259705,
0.10719678550958633,
0.25870078802108765,
0.043321676552295685,
0.4188176095485687,
0.00306624174118042,
0.1764478236436844,
0.331248015165329,
0.26640093326568604,
-0.07535170018672943,
0.12881119549274445,
0.7205766439437866,
-0.28810107707977295,
0.022627346217632294,
0.3385904133319855,
-0.3921833336353302,
0.0709071084856987,
0.13675561547279358,
-0.030903544276952744,
0.2301686704158783,
-0.5515584945678711,
0.2697506844997406,
0.3675672709941864,
-0.0899997428059578,
0.06078553572297096,
-0.4333372414112091,
-0.6687820553779602,
-0.04030396789312363,
-0.0954989492893219,
-0.03889784961938858,
0.28100037574768066,
-0.4210394024848938,
-0.05645928159356117,
-0.4846191108226776,
0.12179489433765411,
0.007894940674304962,
0.161854550242424,
0.030675403773784637,
0.45895424485206604,
-0.09304068982601166,
0.2003241777420044,
0.34510987997055054,
-0.16183219850063324,
-0.09940208494663239,
-0.16727103292942047,
-0.22362756729125977,
0.5847222805023193,
-0.03669866546988487,
-0.14598777890205383,
0.38932088017463684,
0.21976801753044128,
0.22303587198257446,
-0.3132428526878357,
-0.0503058135509491,
-0.07427572458982468,
0.2646799683570862,
-0.02343197911977768,
0.4159456789493561,
0.07937619090080261,
0.2686937749385834,
0.34931960701942444,
-0.005051963031291962,
-0.059093739837408066,
0.06769028306007385,
0.11316931247711182,
0.1134423166513443,
-0.08908388763666153,
-0.009652145206928253,
-0.07640837132930756,
0.2567858099937439,
-0.07875248789787292,
-0.12189864367246628,
0.23410043120384216,
-0.4100169837474823,
0.13690711557865143,
0.06204786151647568,
0.12508271634578705,
0.17005792260169983,
-0.1776706576347351,
0.12021270394325256,
0.11262881755828857,
-0.15702851116657257,
0.1897115707397461,
-0.07724665105342865,
-0.13161715865135193,
-0.1925024390220642,
-0.32082459330558777,
0.1964789181947708,
-0.33428582549095154,
0.24181680381298065,
-0.15858308970928192,
0.01982760801911354,
-0.06153256446123123,
0.09574013203382492,
-0.2645617723464966,
0.7512267231941223,
0.493787944316864,
-0.11951135098934174,
0.2913581132888794,
0.39662444591522217,
-0.21855707466602325,
-0.17528319358825684,
0.4062905013561249,
-0.38261428475379944,
-0.2777351438999176,
0.21004167199134827,
-0.040186405181884766,
-0.23807591199874878,
0.34657007455825806,
-0.5073054432868958,
0.21858470141887665,
0.1782456636428833,
0.08225134015083313,
0.29147300124168396,
-0.2697470784187317,
-0.10539453476667404,
-0.23601113259792328,
0.04256199300289154,
0.6938397288322449,
-0.6387723088264465,
-0.04992472380399704,
0.11018867045640945,
0.1013791412115097,
-0.06136622279882431,
0.3478797376155853,
-0.04546024277806282,
0.3481108248233795,
-0.4107356667518616,
0.3059868812561035,
0.08731213212013245,
-0.12647099792957306,
-0.3275631368160248,
0.3134201467037201,
-0.03581517934799194,
0.23563916981220245,
-0.0210551917552948,
-0.0642484799027443,
0.5519371032714844,
-0.187389075756073,
0.3676523268222809,
-0.17005857825279236,
-0.27995702624320984,
0.10416296869516373,
-0.05038146674633026,
-0.03984380140900612,
0.06037982553243637,
-0.2420823723077774,
0.19492411613464355,
0.01658719778060913,
0.0390780083835125,
-0.5488619208335876,
0.12863872945308685,
-0.15087907016277313,
0.33836275339126587,
0.2401704490184784,
0.2621085047721863,
0.12333135306835175,
0.018251677975058556,
-0.256351500749588,
-0.4713621139526367,
0.3001764714717865,
-0.4880332052707672,
0.021248795092105865,
-0.4338338375091553,
-0.10330385714769363,
0.030964776873588562,
0.18347446620464325,
-0.03501999005675316,
0.033095210790634155,
-0.07492085546255112,
-0.49758073687553406,
0.17657124996185303,
-0.021343067288398743,
-0.22623707354068756,
-0.23706933856010437,
-0.13586458563804626,
-0.008438942022621632,
-0.3567230999469757,
0.07135971635580063,
0.2501083314418793,
-0.2921575903892517,
-0.25420475006103516,
0.24663013219833374,
0.11493222415447235,
-0.11761093139648438,
0.11735454201698303,
0.1758526861667633,
-0.03481614217162132,
-0.16735751926898956,
-0.14001309871673584,
0.13125324249267578,
0.011728263460099697,
-0.04580094665288925,
0.10183711349964142,
0.14501343667507172,
0.3444766104221344,
-0.2378431260585785,
-0.06940696388483047,
0.5054206252098083,
-0.18761451542377472,
0.5359302163124084,
-0.1796860247850418,
0.0512385219335556,
-0.19963213801383972,
0.04260652884840965,
-0.205921471118927,
-0.3850509524345398,
0.07628356665372849,
-0.15773719549179077,
0.051337454468011856,
0.03191482275724411,
0.0012565776705741882,
-0.19891983270645142,
0.08561733365058899,
-0.04696185886859894,
0.16477906703948975,
0.01448873057961464,
-0.06305208057165146,
0.22668945789337158,
0.044692665338516235,
-0.014277782291173935,
0.3432701826095581,
0.21914267539978027,
-0.08872587978839874,
-0.15218213200569153,
0.2504407465457916,
0.00012241490185260773,
0.41391780972480774,
0.1816679835319519,
0.026053406298160553,
0.15500959753990173,
-0.003640808630734682,
-0.06572005152702332,
-0.25283387303352356,
-0.1814304143190384,
0.005715116858482361,
0.14953398704528809,
-0.3952977955341339,
-0.035420022904872894,
0.1101149469614029,
-0.15850390493869781,
0.06897607445716858,
-0.07650306075811386,
-0.2908565402030945,
-0.3032285273075104,
-0.04533350467681885,
0.26015812158584595,
-0.2722710072994232,
-0.02400803007185459,
-0.4013136625289917,
0.01165337860584259,
0.1975092589855194,
-0.2747194468975067,
-0.2812996506690979,
-0.16854678094387054,
-0.07561110705137253,
-0.07415923476219177,
0.0731138288974762,
-0.13398784399032593,
0.3615628182888031,
0.25213760137557983,
-0.2612815797328949,
-0.24377110600471497,
-0.09511386603116989,
0.0065137408673763275,
-0.5370396375656128,
0.20540322363376617,
0.41009238362312317,
0.3981708884239197,
-0.29238444566726685,
0.14706134796142578,
0.27938616275787354,
-0.10714307427406311,
-0.24806800484657288,
-0.007905741222202778,
0.022334039211273193,
0.15326271951198578,
-0.17921514809131622,
0.14743149280548096,
0.06446144729852676,
-0.32092979550361633,
0.1781848818063736,
-0.18915900588035583,
0.2615509033203125,
0.21945343911647797,
0.2780078947544098,
0.1538573056459427,
-0.36937737464904785,
-0.4285498559474945,
0.12235133349895477,
-0.14167660474777222,
0.44602087140083313,
0.03902261331677437,
-0.1469307690858841,
0.18440556526184082,
0.026218347251415253,
-0.18531909584999084,
0.24055702984333038,
-0.0966857373714447,
0.09396404027938843,
-0.05627422779798508,
0.12348277866840363,
0.1900070160627365,
0.3667996823787689,
0.4985279440879822,
0.08648860454559326,
0.046044573187828064,
-0.2846721112728119,
-0.10895583033561707,
0.0812639445066452,
0.022276949137449265,
-0.06451413780450821,
0.4225294888019562,
0.32178938388824463,
0.028700027614831924,
0.7504057884216309,
0.3654765486717224,
0.12721377611160278,
0.09464549273252487,
0.07253710925579071,
0.38223621249198914,
-0.11400645226240158,
-0.3796917200088501,
-0.2082245647907257,
0.15388457477092743,
-0.08407825231552124,
0.032513104379177094,
0.055055174976587296,
-0.06203421950340271,
-0.0012849271297454834,
0.061900507658720016,
-0.4879451096057892,
-0.18903662264347076,
0.42401063442230225,
-0.3093630373477936,
0.07615616917610168,
-0.07491452991962433,
0.09561683982610703,
-0.27880990505218506,
-0.18202731013298035,
-0.1637149155139923,
-0.3036249279975891,
0.6426761746406555,
-0.08232498168945312,
-0.0753786563873291,
-0.11549675464630127,
-0.6797435283660889,
0.33253389596939087,
0.2211797684431076,
-0.0848112478852272,
0.1067160815000534,
-0.18529433012008667,
0.06875687092542648,
0.31005731225013733,
0.9494892358779907,
-0.19327248632907867,
0.15665550529956818,
0.08142629265785217,
-0.024843700230121613,
-0.44353416562080383,
0.09980608522891998,
-0.32794123888015747,
0.2550871670246124,
0.24954193830490112,
0.5071650743484497,
-0.3575253486633301,
-0.07234404981136322,
-0.042053528130054474,
-0.02773299254477024,
0.0347222201526165,
-0.026486758142709732,
-0.17338036000728607,
-0.14954203367233276,
-0.13803215324878693,
0.364579975605011,
0.44694602489471436,
0.07268508523702621,
0.13567006587982178,
-0.20947101712226868,
-0.09888649731874466,
0.04817037284374237,
0.01759961247444153,
-0.13402992486953735,
0.4707481563091278,
0.015833480283617973,
0.05059841647744179,
0.2701374292373657,
0.11173467338085175,
0.22063003480434418,
0.49006280303001404,
-0.1534302532672882,
0.20740750432014465,
-0.18158674240112305,
0.030591290444135666,
0.3123358190059662,
0.43981611728668213,
0.00996495969593525,
0.05791469290852547,
0.3812752068042755,
0.3522171378135681,
-0.05150410905480385,
-0.29420220851898193,
0.1262359917163849,
0.0464041605591774,
-0.5417699217796326,
0.003656253218650818,
0.1158783882856369,
-0.09958198666572571,
0.08497066795825958,
0.6082315444946289,
0.5790842771530151,
-0.3638046085834503,
0.3609658479690552,
0.04329147934913635,
0.8923063278198242,
-0.01489342749118805,
0.10762733221054077,
0.1486806422472,
0.07094931602478027,
0.24982814490795135,
0.5552586913108826,
0.09436395764350891,
0.008422058075666428,
0.09743886440992355,
-0.040766678750514984,
-0.00821535661816597,
0.166874498128891,
0.3400382399559021,
0.10278649628162384,
0.2708594501018524,
0.08195768296718597,
0.12089388072490692,
-0.15034610033035278,
-0.28958961367607117,
0.287745863199234,
-0.330181360244751,
-0.3449309170246124,
-0.07553842663764954,
0.07857123017311096,
0.2657669484615326,
-0.05792974308133125,
-0.10584964603185654,
-0.03092428855597973,
-0.4037669897079468,
-0.19284549355506897,
-0.18520265817642212,
-0.44498997926712036,
0.021174337714910507,
0.2638932764530182,
-0.2862425446510315,
-0.03285892307758331,
0.05158500000834465,
-0.4806172251701355,
0.144731342792511,
-0.1111120879650116,
-0.13308334350585938,
0.38927868008613586,
0.17192377150058746,
0.021822908893227577,
-0.1521931141614914,
0.17261779308319092,
0.1998170018196106,
-0.180318221449852,
0.05755350738763809,
-0.451859712600708,
-0.17299476265907288,
0.06446629762649536,
0.40836626291275024,
-0.2023412436246872,
-0.22290021181106567,
-0.3968207836151123,
-0.19215935468673706,
0.10154205560684204,
0.03948810324072838,
-0.08833838999271393,
0.2670639157295227,
-0.07576552778482437,
0.39075034856796265,
-0.1920088529586792,
-0.45341864228248596,
-0.0437423400580883,
0.5255671739578247,
0.03462927043437958,
-0.1923189014196396,
0.41257113218307495,
0.15918509662151337,
-0.16444197297096252,
-0.06954256445169449,
0.13838917016983032,
0.34264421463012695,
-0.6278496384620667,
0.5433272123336792,
0.24986925721168518,
0.036990419030189514,
0.13783228397369385,
0.4185100495815277,
0.1368645429611206,
0.279864639043808,
-0.3155890703201294,
-0.18671876192092896,
-0.2580823004245758,
0.40863800048828125,
0.10354240238666534,
0.03598066419363022,
-0.1420464813709259,
-0.2367400974035263,
0.3288383185863495,
-0.195632204413414,
-0.15207576751708984,
0.06600487977266312,
-0.08657726645469666,
0.32883208990097046,
0.2184334546327591,
0.2640419602394104,
0.3569837212562561,
-0.0818118304014206,
-0.10281718522310257,
0.1315310299396515,
-0.2793508768081665,
-0.0736054927110672,
-0.04670844227075577,
0.17635492980480194,
0.10426028817892075,
-0.2203988879919052,
0.16272279620170593,
-0.4074191451072693,
-0.046006571501493454,
-0.40626657009124756,
0.2619493901729584,
0.49095988273620605,
-0.004013918340206146,
-0.23783405125141144,
0.37194621562957764,
0.06007876619696617,
-0.029745670035481453,
0.20644594728946686,
-0.17768722772598267,
-0.07059645652770996,
-0.06777859479188919,
0.30435359477996826,
0.16345907747745514,
0.0337509885430336,
0.08297426998615265,
0.07204823195934296,
0.01426205039024353,
0.0030941590666770935,
0.4227863848209381,
-0.20461170375347137,
-0.21244628727436066,
0.3322141766548157,
0.2543899118900299,
0.018419276922941208,
-0.020861200988292694,
-0.15182919800281525,
0.20981234312057495,
0.006031939759850502,
-0.15236219763755798,
0.028843529522418976,
0.15505163371562958,
0.3418106436729431,
0.2605258822441101,
0.36461400985717773,
-0.16854214668273926,
-0.2591925263404846,
0.01746796816587448,
0.18861588835716248,
0.021103911101818085,
0.030939985066652298,
0.18805836141109467,
0.3906846344470978,
0.3334280550479889,
-0.09894290566444397,
0.3222147822380066,
0.07886981964111328,
0.2825942933559418,
0.29012852907180786,
0.23771065473556519,
0.2660042345523834,
0.01397060975432396,
0.08644546568393707,
-0.20485380291938782,
-0.5083092451095581,
0.03778546303510666,
0.08903412520885468,
-0.002733588218688965,
0.3360840976238251,
0.12346326559782028,
0.15381143987178802,
-0.19242238998413086,
-0.27505719661712646,
0.04186003655195236,
0.002171628177165985,
-0.3454616367816925,
-0.06183398887515068,
-0.3136748671531677,
-0.2561419904232025,
0.4150926172733307,
-0.1609160155057907,
0.06273669749498367,
-0.3454863429069519,
0.3650224208831787,
-0.07760797441005707,
-0.09537091851234436,
-0.14416509866714478,
-0.3677254617214203,
0.02400274947285652,
0.22925904393196106,
-0.11037898063659668,
0.13786321878433228,
-0.09132421016693115,
-0.046329014003276825,
0.05049201846122742,
0.5798317193984985,
0.5111629366874695,
0.3985685706138611,
-0.024610470980405807,
0.4008248746395111,
0.13015714287757874,
-0.24362574517726898,
-0.2861928343772888,
0.36318978667259216,
-0.059528544545173645,
-0.02509395405650139,
0.20010904967784882,
-0.010452048853039742,
-0.04692584276199341,
-0.06305433809757233,
-0.0026363953948020935,
0.10762621462345123,
0.16351503133773804,
-0.1908559501171112,
-0.19742119312286377,
-0.23625341057777405,
-0.2687472105026245,
-0.049194030463695526,
-0.08179537206888199,
0.016053345054388046,
0.29386430978775024,
-0.09964172542095184,
0.04635611176490784,
0.07786108553409576,
-0.001332877203822136,
-0.041519004851579666,
0.2583119571208954,
0.4536592960357666,
0.0035889148712158203,
-0.48415112495422363,
0.17722250521183014,
-0.37189099192619324,
-0.030173547565937042,
-0.4928693175315857,
0.2783648371696472,
0.03891897201538086,
0.19725818932056427,
0.11981728672981262,
-0.12264204025268555,
0.31830745935440063,
-0.05017361789941788,
-0.04383482038974762,
0.354549378156662,
0.06481389701366425,
-0.27906376123428345,
-0.19281794130802155,
-0.01353541575372219,
0.010154742747545242,
-0.384270578622818,
0.10624586045742035,
-0.11351072043180466,
-0.07536035776138306,
-0.10560964047908783,
0.16992686688899994,
-0.15767142176628113,
0.027592439204454422,
0.17741486430168152,
0.33601710200309753,
-0.04189568758010864,
0.029431745409965515,
-0.01770586334168911,
-0.35040393471717834,
0.14641931653022766,
-0.1264902800321579,
0.13943716883659363,
0.3596004843711853,
0.461244136095047,
-0.32846248149871826,
-0.20270606875419617,
-0.024075431749224663,
0.04234639182686806,
0.004644881933927536,
0.036162104457616806,
-0.18189282715320587,
0.1435844600200653,
-0.3938450813293457,
-0.0358402244746685,
-0.12207356840372086,
0.022271066904067993,
0.08602305501699448,
0.027085641399025917,
-0.25258761644363403,
-0.35494348406791687,
0.382764607667923,
-0.6531074643135071,
-0.2620072662830353,
-0.06931838393211365,
0.3420589566230774,
0.211510568857193,
-0.2256408929824829,
-0.39285433292388916,
-0.17192015051841736,
0.26260173320770264,
-0.06935775279998779,
-0.06165449693799019,
-0.18479131162166595,
-0.5037387609481812,
-0.03442946448922157,
-0.15762397646903992,
0.11528322100639343,
0.03572019189596176,
0.006658660247921944,
0.23119619488716125,
-0.30986523628234863
] |
https://github.com/huggingface/datasets/issues/2644 | Batched `map` not allowed to return 0 items | Sorry to ping you, @lhoestq, did you have a chance to take a look at the proposed PR? Thank you! | ## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 20 | Batched `map` not allowed to return 0 items
## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Sorry to ping you, @lhoestq, did you have a chance to take a look at the proposed PR? Thank you! | [
-0.23283588886260986,
-0.3903886377811432,
-0.044456664472818375,
0.16448941826820374,
-0.10854439437389374,
-0.06876890361309052,
0.11633943021297455,
0.40563222765922546,
0.640041172504425,
0.11788118630647659,
-0.05657177418470383,
0.24608531594276428,
-0.3954412639141083,
0.10435447841882706,
-0.16292156279087067,
0.16080263257026672,
-0.04493313282728195,
0.14057859778404236,
-0.1691173017024994,
-0.191491961479187,
-0.33629295229911804,
0.1631994992494583,
-0.3979262709617615,
-0.05010448396205902,
-0.14877094328403473,
-0.29197582602500916,
0.2864803373813629,
-0.03621020168066025,
-0.16281411051750183,
-0.24540503323078156,
0.20609167218208313,
-0.23282980918884277,
-0.2091352790594101,
0.5783205628395081,
-0.00012992756091989577,
-0.023136593401432037,
0.1505938172340393,
-0.1851883977651596,
-0.08976182341575623,
-0.30296117067337036,
-0.19081798195838928,
-0.1715301126241684,
-0.11571837216615677,
-0.2824646234512329,
0.18194615840911865,
-0.2716503143310547,
-0.19563452899456024,
-0.44823965430259705,
0.10719678550958633,
0.25870078802108765,
0.043321676552295685,
0.4188176095485687,
0.00306624174118042,
0.1764478236436844,
0.331248015165329,
0.26640093326568604,
-0.07535170018672943,
0.12881119549274445,
0.7205766439437866,
-0.28810107707977295,
0.022627346217632294,
0.3385904133319855,
-0.3921833336353302,
0.0709071084856987,
0.13675561547279358,
-0.030903544276952744,
0.2301686704158783,
-0.5515584945678711,
0.2697506844997406,
0.3675672709941864,
-0.0899997428059578,
0.06078553572297096,
-0.4333372414112091,
-0.6687820553779602,
-0.04030396789312363,
-0.0954989492893219,
-0.03889784961938858,
0.28100037574768066,
-0.4210394024848938,
-0.05645928159356117,
-0.4846191108226776,
0.12179489433765411,
0.007894940674304962,
0.161854550242424,
0.030675403773784637,
0.45895424485206604,
-0.09304068982601166,
0.2003241777420044,
0.34510987997055054,
-0.16183219850063324,
-0.09940208494663239,
-0.16727103292942047,
-0.22362756729125977,
0.5847222805023193,
-0.03669866546988487,
-0.14598777890205383,
0.38932088017463684,
0.21976801753044128,
0.22303587198257446,
-0.3132428526878357,
-0.0503058135509491,
-0.07427572458982468,
0.2646799683570862,
-0.02343197911977768,
0.4159456789493561,
0.07937619090080261,
0.2686937749385834,
0.34931960701942444,
-0.005051963031291962,
-0.059093739837408066,
0.06769028306007385,
0.11316931247711182,
0.1134423166513443,
-0.08908388763666153,
-0.009652145206928253,
-0.07640837132930756,
0.2567858099937439,
-0.07875248789787292,
-0.12189864367246628,
0.23410043120384216,
-0.4100169837474823,
0.13690711557865143,
0.06204786151647568,
0.12508271634578705,
0.17005792260169983,
-0.1776706576347351,
0.12021270394325256,
0.11262881755828857,
-0.15702851116657257,
0.1897115707397461,
-0.07724665105342865,
-0.13161715865135193,
-0.1925024390220642,
-0.32082459330558777,
0.1964789181947708,
-0.33428582549095154,
0.24181680381298065,
-0.15858308970928192,
0.01982760801911354,
-0.06153256446123123,
0.09574013203382492,
-0.2645617723464966,
0.7512267231941223,
0.493787944316864,
-0.11951135098934174,
0.2913581132888794,
0.39662444591522217,
-0.21855707466602325,
-0.17528319358825684,
0.4062905013561249,
-0.38261428475379944,
-0.2777351438999176,
0.21004167199134827,
-0.040186405181884766,
-0.23807591199874878,
0.34657007455825806,
-0.5073054432868958,
0.21858470141887665,
0.1782456636428833,
0.08225134015083313,
0.29147300124168396,
-0.2697470784187317,
-0.10539453476667404,
-0.23601113259792328,
0.04256199300289154,
0.6938397288322449,
-0.6387723088264465,
-0.04992472380399704,
0.11018867045640945,
0.1013791412115097,
-0.06136622279882431,
0.3478797376155853,
-0.04546024277806282,
0.3481108248233795,
-0.4107356667518616,
0.3059868812561035,
0.08731213212013245,
-0.12647099792957306,
-0.3275631368160248,
0.3134201467037201,
-0.03581517934799194,
0.23563916981220245,
-0.0210551917552948,
-0.0642484799027443,
0.5519371032714844,
-0.187389075756073,
0.3676523268222809,
-0.17005857825279236,
-0.27995702624320984,
0.10416296869516373,
-0.05038146674633026,
-0.03984380140900612,
0.06037982553243637,
-0.2420823723077774,
0.19492411613464355,
0.01658719778060913,
0.0390780083835125,
-0.5488619208335876,
0.12863872945308685,
-0.15087907016277313,
0.33836275339126587,
0.2401704490184784,
0.2621085047721863,
0.12333135306835175,
0.018251677975058556,
-0.256351500749588,
-0.4713621139526367,
0.3001764714717865,
-0.4880332052707672,
0.021248795092105865,
-0.4338338375091553,
-0.10330385714769363,
0.030964776873588562,
0.18347446620464325,
-0.03501999005675316,
0.033095210790634155,
-0.07492085546255112,
-0.49758073687553406,
0.17657124996185303,
-0.021343067288398743,
-0.22623707354068756,
-0.23706933856010437,
-0.13586458563804626,
-0.008438942022621632,
-0.3567230999469757,
0.07135971635580063,
0.2501083314418793,
-0.2921575903892517,
-0.25420475006103516,
0.24663013219833374,
0.11493222415447235,
-0.11761093139648438,
0.11735454201698303,
0.1758526861667633,
-0.03481614217162132,
-0.16735751926898956,
-0.14001309871673584,
0.13125324249267578,
0.011728263460099697,
-0.04580094665288925,
0.10183711349964142,
0.14501343667507172,
0.3444766104221344,
-0.2378431260585785,
-0.06940696388483047,
0.5054206252098083,
-0.18761451542377472,
0.5359302163124084,
-0.1796860247850418,
0.0512385219335556,
-0.19963213801383972,
0.04260652884840965,
-0.205921471118927,
-0.3850509524345398,
0.07628356665372849,
-0.15773719549179077,
0.051337454468011856,
0.03191482275724411,
0.0012565776705741882,
-0.19891983270645142,
0.08561733365058899,
-0.04696185886859894,
0.16477906703948975,
0.01448873057961464,
-0.06305208057165146,
0.22668945789337158,
0.044692665338516235,
-0.014277782291173935,
0.3432701826095581,
0.21914267539978027,
-0.08872587978839874,
-0.15218213200569153,
0.2504407465457916,
0.00012241490185260773,
0.41391780972480774,
0.1816679835319519,
0.026053406298160553,
0.15500959753990173,
-0.003640808630734682,
-0.06572005152702332,
-0.25283387303352356,
-0.1814304143190384,
0.005715116858482361,
0.14953398704528809,
-0.3952977955341339,
-0.035420022904872894,
0.1101149469614029,
-0.15850390493869781,
0.06897607445716858,
-0.07650306075811386,
-0.2908565402030945,
-0.3032285273075104,
-0.04533350467681885,
0.26015812158584595,
-0.2722710072994232,
-0.02400803007185459,
-0.4013136625289917,
0.01165337860584259,
0.1975092589855194,
-0.2747194468975067,
-0.2812996506690979,
-0.16854678094387054,
-0.07561110705137253,
-0.07415923476219177,
0.0731138288974762,
-0.13398784399032593,
0.3615628182888031,
0.25213760137557983,
-0.2612815797328949,
-0.24377110600471497,
-0.09511386603116989,
0.0065137408673763275,
-0.5370396375656128,
0.20540322363376617,
0.41009238362312317,
0.3981708884239197,
-0.29238444566726685,
0.14706134796142578,
0.27938616275787354,
-0.10714307427406311,
-0.24806800484657288,
-0.007905741222202778,
0.022334039211273193,
0.15326271951198578,
-0.17921514809131622,
0.14743149280548096,
0.06446144729852676,
-0.32092979550361633,
0.1781848818063736,
-0.18915900588035583,
0.2615509033203125,
0.21945343911647797,
0.2780078947544098,
0.1538573056459427,
-0.36937737464904785,
-0.4285498559474945,
0.12235133349895477,
-0.14167660474777222,
0.44602087140083313,
0.03902261331677437,
-0.1469307690858841,
0.18440556526184082,
0.026218347251415253,
-0.18531909584999084,
0.24055702984333038,
-0.0966857373714447,
0.09396404027938843,
-0.05627422779798508,
0.12348277866840363,
0.1900070160627365,
0.3667996823787689,
0.4985279440879822,
0.08648860454559326,
0.046044573187828064,
-0.2846721112728119,
-0.10895583033561707,
0.0812639445066452,
0.022276949137449265,
-0.06451413780450821,
0.4225294888019562,
0.32178938388824463,
0.028700027614831924,
0.7504057884216309,
0.3654765486717224,
0.12721377611160278,
0.09464549273252487,
0.07253710925579071,
0.38223621249198914,
-0.11400645226240158,
-0.3796917200088501,
-0.2082245647907257,
0.15388457477092743,
-0.08407825231552124,
0.032513104379177094,
0.055055174976587296,
-0.06203421950340271,
-0.0012849271297454834,
0.061900507658720016,
-0.4879451096057892,
-0.18903662264347076,
0.42401063442230225,
-0.3093630373477936,
0.07615616917610168,
-0.07491452991962433,
0.09561683982610703,
-0.27880990505218506,
-0.18202731013298035,
-0.1637149155139923,
-0.3036249279975891,
0.6426761746406555,
-0.08232498168945312,
-0.0753786563873291,
-0.11549675464630127,
-0.6797435283660889,
0.33253389596939087,
0.2211797684431076,
-0.0848112478852272,
0.1067160815000534,
-0.18529433012008667,
0.06875687092542648,
0.31005731225013733,
0.9494892358779907,
-0.19327248632907867,
0.15665550529956818,
0.08142629265785217,
-0.024843700230121613,
-0.44353416562080383,
0.09980608522891998,
-0.32794123888015747,
0.2550871670246124,
0.24954193830490112,
0.5071650743484497,
-0.3575253486633301,
-0.07234404981136322,
-0.042053528130054474,
-0.02773299254477024,
0.0347222201526165,
-0.026486758142709732,
-0.17338036000728607,
-0.14954203367233276,
-0.13803215324878693,
0.364579975605011,
0.44694602489471436,
0.07268508523702621,
0.13567006587982178,
-0.20947101712226868,
-0.09888649731874466,
0.04817037284374237,
0.01759961247444153,
-0.13402992486953735,
0.4707481563091278,
0.015833480283617973,
0.05059841647744179,
0.2701374292373657,
0.11173467338085175,
0.22063003480434418,
0.49006280303001404,
-0.1534302532672882,
0.20740750432014465,
-0.18158674240112305,
0.030591290444135666,
0.3123358190059662,
0.43981611728668213,
0.00996495969593525,
0.05791469290852547,
0.3812752068042755,
0.3522171378135681,
-0.05150410905480385,
-0.29420220851898193,
0.1262359917163849,
0.0464041605591774,
-0.5417699217796326,
0.003656253218650818,
0.1158783882856369,
-0.09958198666572571,
0.08497066795825958,
0.6082315444946289,
0.5790842771530151,
-0.3638046085834503,
0.3609658479690552,
0.04329147934913635,
0.8923063278198242,
-0.01489342749118805,
0.10762733221054077,
0.1486806422472,
0.07094931602478027,
0.24982814490795135,
0.5552586913108826,
0.09436395764350891,
0.008422058075666428,
0.09743886440992355,
-0.040766678750514984,
-0.00821535661816597,
0.166874498128891,
0.3400382399559021,
0.10278649628162384,
0.2708594501018524,
0.08195768296718597,
0.12089388072490692,
-0.15034610033035278,
-0.28958961367607117,
0.287745863199234,
-0.330181360244751,
-0.3449309170246124,
-0.07553842663764954,
0.07857123017311096,
0.2657669484615326,
-0.05792974308133125,
-0.10584964603185654,
-0.03092428855597973,
-0.4037669897079468,
-0.19284549355506897,
-0.18520265817642212,
-0.44498997926712036,
0.021174337714910507,
0.2638932764530182,
-0.2862425446510315,
-0.03285892307758331,
0.05158500000834465,
-0.4806172251701355,
0.144731342792511,
-0.1111120879650116,
-0.13308334350585938,
0.38927868008613586,
0.17192377150058746,
0.021822908893227577,
-0.1521931141614914,
0.17261779308319092,
0.1998170018196106,
-0.180318221449852,
0.05755350738763809,
-0.451859712600708,
-0.17299476265907288,
0.06446629762649536,
0.40836626291275024,
-0.2023412436246872,
-0.22290021181106567,
-0.3968207836151123,
-0.19215935468673706,
0.10154205560684204,
0.03948810324072838,
-0.08833838999271393,
0.2670639157295227,
-0.07576552778482437,
0.39075034856796265,
-0.1920088529586792,
-0.45341864228248596,
-0.0437423400580883,
0.5255671739578247,
0.03462927043437958,
-0.1923189014196396,
0.41257113218307495,
0.15918509662151337,
-0.16444197297096252,
-0.06954256445169449,
0.13838917016983032,
0.34264421463012695,
-0.6278496384620667,
0.5433272123336792,
0.24986925721168518,
0.036990419030189514,
0.13783228397369385,
0.4185100495815277,
0.1368645429611206,
0.279864639043808,
-0.3155890703201294,
-0.18671876192092896,
-0.2580823004245758,
0.40863800048828125,
0.10354240238666534,
0.03598066419363022,
-0.1420464813709259,
-0.2367400974035263,
0.3288383185863495,
-0.195632204413414,
-0.15207576751708984,
0.06600487977266312,
-0.08657726645469666,
0.32883208990097046,
0.2184334546327591,
0.2640419602394104,
0.3569837212562561,
-0.0818118304014206,
-0.10281718522310257,
0.1315310299396515,
-0.2793508768081665,
-0.0736054927110672,
-0.04670844227075577,
0.17635492980480194,
0.10426028817892075,
-0.2203988879919052,
0.16272279620170593,
-0.4074191451072693,
-0.046006571501493454,
-0.40626657009124756,
0.2619493901729584,
0.49095988273620605,
-0.004013918340206146,
-0.23783405125141144,
0.37194621562957764,
0.06007876619696617,
-0.029745670035481453,
0.20644594728946686,
-0.17768722772598267,
-0.07059645652770996,
-0.06777859479188919,
0.30435359477996826,
0.16345907747745514,
0.0337509885430336,
0.08297426998615265,
0.07204823195934296,
0.01426205039024353,
0.0030941590666770935,
0.4227863848209381,
-0.20461170375347137,
-0.21244628727436066,
0.3322141766548157,
0.2543899118900299,
0.018419276922941208,
-0.020861200988292694,
-0.15182919800281525,
0.20981234312057495,
0.006031939759850502,
-0.15236219763755798,
0.028843529522418976,
0.15505163371562958,
0.3418106436729431,
0.2605258822441101,
0.36461400985717773,
-0.16854214668273926,
-0.2591925263404846,
0.01746796816587448,
0.18861588835716248,
0.021103911101818085,
0.030939985066652298,
0.18805836141109467,
0.3906846344470978,
0.3334280550479889,
-0.09894290566444397,
0.3222147822380066,
0.07886981964111328,
0.2825942933559418,
0.29012852907180786,
0.23771065473556519,
0.2660042345523834,
0.01397060975432396,
0.08644546568393707,
-0.20485380291938782,
-0.5083092451095581,
0.03778546303510666,
0.08903412520885468,
-0.002733588218688965,
0.3360840976238251,
0.12346326559782028,
0.15381143987178802,
-0.19242238998413086,
-0.27505719661712646,
0.04186003655195236,
0.002171628177165985,
-0.3454616367816925,
-0.06183398887515068,
-0.3136748671531677,
-0.2561419904232025,
0.4150926172733307,
-0.1609160155057907,
0.06273669749498367,
-0.3454863429069519,
0.3650224208831787,
-0.07760797441005707,
-0.09537091851234436,
-0.14416509866714478,
-0.3677254617214203,
0.02400274947285652,
0.22925904393196106,
-0.11037898063659668,
0.13786321878433228,
-0.09132421016693115,
-0.046329014003276825,
0.05049201846122742,
0.5798317193984985,
0.5111629366874695,
0.3985685706138611,
-0.024610470980405807,
0.4008248746395111,
0.13015714287757874,
-0.24362574517726898,
-0.2861928343772888,
0.36318978667259216,
-0.059528544545173645,
-0.02509395405650139,
0.20010904967784882,
-0.010452048853039742,
-0.04692584276199341,
-0.06305433809757233,
-0.0026363953948020935,
0.10762621462345123,
0.16351503133773804,
-0.1908559501171112,
-0.19742119312286377,
-0.23625341057777405,
-0.2687472105026245,
-0.049194030463695526,
-0.08179537206888199,
0.016053345054388046,
0.29386430978775024,
-0.09964172542095184,
0.04635611176490784,
0.07786108553409576,
-0.001332877203822136,
-0.041519004851579666,
0.2583119571208954,
0.4536592960357666,
0.0035889148712158203,
-0.48415112495422363,
0.17722250521183014,
-0.37189099192619324,
-0.030173547565937042,
-0.4928693175315857,
0.2783648371696472,
0.03891897201538086,
0.19725818932056427,
0.11981728672981262,
-0.12264204025268555,
0.31830745935440063,
-0.05017361789941788,
-0.04383482038974762,
0.354549378156662,
0.06481389701366425,
-0.27906376123428345,
-0.19281794130802155,
-0.01353541575372219,
0.010154742747545242,
-0.384270578622818,
0.10624586045742035,
-0.11351072043180466,
-0.07536035776138306,
-0.10560964047908783,
0.16992686688899994,
-0.15767142176628113,
0.027592439204454422,
0.17741486430168152,
0.33601710200309753,
-0.04189568758010864,
0.029431745409965515,
-0.01770586334168911,
-0.35040393471717834,
0.14641931653022766,
-0.1264902800321579,
0.13943716883659363,
0.3596004843711853,
0.461244136095047,
-0.32846248149871826,
-0.20270606875419617,
-0.024075431749224663,
0.04234639182686806,
0.004644881933927536,
0.036162104457616806,
-0.18189282715320587,
0.1435844600200653,
-0.3938450813293457,
-0.0358402244746685,
-0.12207356840372086,
0.022271066904067993,
0.08602305501699448,
0.027085641399025917,
-0.25258761644363403,
-0.35494348406791687,
0.382764607667923,
-0.6531074643135071,
-0.2620072662830353,
-0.06931838393211365,
0.3420589566230774,
0.211510568857193,
-0.2256408929824829,
-0.39285433292388916,
-0.17192015051841736,
0.26260173320770264,
-0.06935775279998779,
-0.06165449693799019,
-0.18479131162166595,
-0.5037387609481812,
-0.03442946448922157,
-0.15762397646903992,
0.11528322100639343,
0.03572019189596176,
0.006658660247921944,
0.23119619488716125,
-0.30986523628234863
] |
https://github.com/huggingface/datasets/issues/2644 | Batched `map` not allowed to return 0 items | Yes and it's all good, thank you :)
Feel free to close this issue if it's good for you | ## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 19 | Batched `map` not allowed to return 0 items
## Describe the bug
I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`.
However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case.
For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs.
## Steps to reproduce the bug
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
# The following line simulates no matches found, so we return an empty batch
result = {'key': []}
return result
filtered_dataset = dataset.map(
select_rows,
remove_columns = dataset.column_names,
batched = True,
num_proc = 1,
desc = "Selecting rows with images that exist"
)
```
The code above immediately triggers the exception. If we use the following instead:
```python
def select_rows(examples):
# `key` is a column name that exists in the original dataset
result = {'key': []} # or defaultdict or whatever
# code to check for condition and append elements to result
# some_items_found will be set to True if there were any matching elements in the batch
return result if some_items_found else {}
```
Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it.
In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items.
## Expected results
The dataset would be filtered and only the matching fields would be returned.
## Actual results
An exception is encountered, as described. Using a workaround makes it fail further along the line.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Yes and it's all good, thank you :)
Feel free to close this issue if it's good for you | [
-0.23283588886260986,
-0.3903886377811432,
-0.044456664472818375,
0.16448941826820374,
-0.10854439437389374,
-0.06876890361309052,
0.11633943021297455,
0.40563222765922546,
0.640041172504425,
0.11788118630647659,
-0.05657177418470383,
0.24608531594276428,
-0.3954412639141083,
0.10435447841882706,
-0.16292156279087067,
0.16080263257026672,
-0.04493313282728195,
0.14057859778404236,
-0.1691173017024994,
-0.191491961479187,
-0.33629295229911804,
0.1631994992494583,
-0.3979262709617615,
-0.05010448396205902,
-0.14877094328403473,
-0.29197582602500916,
0.2864803373813629,
-0.03621020168066025,
-0.16281411051750183,
-0.24540503323078156,
0.20609167218208313,
-0.23282980918884277,
-0.2091352790594101,
0.5783205628395081,
-0.00012992756091989577,
-0.023136593401432037,
0.1505938172340393,
-0.1851883977651596,
-0.08976182341575623,
-0.30296117067337036,
-0.19081798195838928,
-0.1715301126241684,
-0.11571837216615677,
-0.2824646234512329,
0.18194615840911865,
-0.2716503143310547,
-0.19563452899456024,
-0.44823965430259705,
0.10719678550958633,
0.25870078802108765,
0.043321676552295685,
0.4188176095485687,
0.00306624174118042,
0.1764478236436844,
0.331248015165329,
0.26640093326568604,
-0.07535170018672943,
0.12881119549274445,
0.7205766439437866,
-0.28810107707977295,
0.022627346217632294,
0.3385904133319855,
-0.3921833336353302,
0.0709071084856987,
0.13675561547279358,
-0.030903544276952744,
0.2301686704158783,
-0.5515584945678711,
0.2697506844997406,
0.3675672709941864,
-0.0899997428059578,
0.06078553572297096,
-0.4333372414112091,
-0.6687820553779602,
-0.04030396789312363,
-0.0954989492893219,
-0.03889784961938858,
0.28100037574768066,
-0.4210394024848938,
-0.05645928159356117,
-0.4846191108226776,
0.12179489433765411,
0.007894940674304962,
0.161854550242424,
0.030675403773784637,
0.45895424485206604,
-0.09304068982601166,
0.2003241777420044,
0.34510987997055054,
-0.16183219850063324,
-0.09940208494663239,
-0.16727103292942047,
-0.22362756729125977,
0.5847222805023193,
-0.03669866546988487,
-0.14598777890205383,
0.38932088017463684,
0.21976801753044128,
0.22303587198257446,
-0.3132428526878357,
-0.0503058135509491,
-0.07427572458982468,
0.2646799683570862,
-0.02343197911977768,
0.4159456789493561,
0.07937619090080261,
0.2686937749385834,
0.34931960701942444,
-0.005051963031291962,
-0.059093739837408066,
0.06769028306007385,
0.11316931247711182,
0.1134423166513443,
-0.08908388763666153,
-0.009652145206928253,
-0.07640837132930756,
0.2567858099937439,
-0.07875248789787292,
-0.12189864367246628,
0.23410043120384216,
-0.4100169837474823,
0.13690711557865143,
0.06204786151647568,
0.12508271634578705,
0.17005792260169983,
-0.1776706576347351,
0.12021270394325256,
0.11262881755828857,
-0.15702851116657257,
0.1897115707397461,
-0.07724665105342865,
-0.13161715865135193,
-0.1925024390220642,
-0.32082459330558777,
0.1964789181947708,
-0.33428582549095154,
0.24181680381298065,
-0.15858308970928192,
0.01982760801911354,
-0.06153256446123123,
0.09574013203382492,
-0.2645617723464966,
0.7512267231941223,
0.493787944316864,
-0.11951135098934174,
0.2913581132888794,
0.39662444591522217,
-0.21855707466602325,
-0.17528319358825684,
0.4062905013561249,
-0.38261428475379944,
-0.2777351438999176,
0.21004167199134827,
-0.040186405181884766,
-0.23807591199874878,
0.34657007455825806,
-0.5073054432868958,
0.21858470141887665,
0.1782456636428833,
0.08225134015083313,
0.29147300124168396,
-0.2697470784187317,
-0.10539453476667404,
-0.23601113259792328,
0.04256199300289154,
0.6938397288322449,
-0.6387723088264465,
-0.04992472380399704,
0.11018867045640945,
0.1013791412115097,
-0.06136622279882431,
0.3478797376155853,
-0.04546024277806282,
0.3481108248233795,
-0.4107356667518616,
0.3059868812561035,
0.08731213212013245,
-0.12647099792957306,
-0.3275631368160248,
0.3134201467037201,
-0.03581517934799194,
0.23563916981220245,
-0.0210551917552948,
-0.0642484799027443,
0.5519371032714844,
-0.187389075756073,
0.3676523268222809,
-0.17005857825279236,
-0.27995702624320984,
0.10416296869516373,
-0.05038146674633026,
-0.03984380140900612,
0.06037982553243637,
-0.2420823723077774,
0.19492411613464355,
0.01658719778060913,
0.0390780083835125,
-0.5488619208335876,
0.12863872945308685,
-0.15087907016277313,
0.33836275339126587,
0.2401704490184784,
0.2621085047721863,
0.12333135306835175,
0.018251677975058556,
-0.256351500749588,
-0.4713621139526367,
0.3001764714717865,
-0.4880332052707672,
0.021248795092105865,
-0.4338338375091553,
-0.10330385714769363,
0.030964776873588562,
0.18347446620464325,
-0.03501999005675316,
0.033095210790634155,
-0.07492085546255112,
-0.49758073687553406,
0.17657124996185303,
-0.021343067288398743,
-0.22623707354068756,
-0.23706933856010437,
-0.13586458563804626,
-0.008438942022621632,
-0.3567230999469757,
0.07135971635580063,
0.2501083314418793,
-0.2921575903892517,
-0.25420475006103516,
0.24663013219833374,
0.11493222415447235,
-0.11761093139648438,
0.11735454201698303,
0.1758526861667633,
-0.03481614217162132,
-0.16735751926898956,
-0.14001309871673584,
0.13125324249267578,
0.011728263460099697,
-0.04580094665288925,
0.10183711349964142,
0.14501343667507172,
0.3444766104221344,
-0.2378431260585785,
-0.06940696388483047,
0.5054206252098083,
-0.18761451542377472,
0.5359302163124084,
-0.1796860247850418,
0.0512385219335556,
-0.19963213801383972,
0.04260652884840965,
-0.205921471118927,
-0.3850509524345398,
0.07628356665372849,
-0.15773719549179077,
0.051337454468011856,
0.03191482275724411,
0.0012565776705741882,
-0.19891983270645142,
0.08561733365058899,
-0.04696185886859894,
0.16477906703948975,
0.01448873057961464,
-0.06305208057165146,
0.22668945789337158,
0.044692665338516235,
-0.014277782291173935,
0.3432701826095581,
0.21914267539978027,
-0.08872587978839874,
-0.15218213200569153,
0.2504407465457916,
0.00012241490185260773,
0.41391780972480774,
0.1816679835319519,
0.026053406298160553,
0.15500959753990173,
-0.003640808630734682,
-0.06572005152702332,
-0.25283387303352356,
-0.1814304143190384,
0.005715116858482361,
0.14953398704528809,
-0.3952977955341339,
-0.035420022904872894,
0.1101149469614029,
-0.15850390493869781,
0.06897607445716858,
-0.07650306075811386,
-0.2908565402030945,
-0.3032285273075104,
-0.04533350467681885,
0.26015812158584595,
-0.2722710072994232,
-0.02400803007185459,
-0.4013136625289917,
0.01165337860584259,
0.1975092589855194,
-0.2747194468975067,
-0.2812996506690979,
-0.16854678094387054,
-0.07561110705137253,
-0.07415923476219177,
0.0731138288974762,
-0.13398784399032593,
0.3615628182888031,
0.25213760137557983,
-0.2612815797328949,
-0.24377110600471497,
-0.09511386603116989,
0.0065137408673763275,
-0.5370396375656128,
0.20540322363376617,
0.41009238362312317,
0.3981708884239197,
-0.29238444566726685,
0.14706134796142578,
0.27938616275787354,
-0.10714307427406311,
-0.24806800484657288,
-0.007905741222202778,
0.022334039211273193,
0.15326271951198578,
-0.17921514809131622,
0.14743149280548096,
0.06446144729852676,
-0.32092979550361633,
0.1781848818063736,
-0.18915900588035583,
0.2615509033203125,
0.21945343911647797,
0.2780078947544098,
0.1538573056459427,
-0.36937737464904785,
-0.4285498559474945,
0.12235133349895477,
-0.14167660474777222,
0.44602087140083313,
0.03902261331677437,
-0.1469307690858841,
0.18440556526184082,
0.026218347251415253,
-0.18531909584999084,
0.24055702984333038,
-0.0966857373714447,
0.09396404027938843,
-0.05627422779798508,
0.12348277866840363,
0.1900070160627365,
0.3667996823787689,
0.4985279440879822,
0.08648860454559326,
0.046044573187828064,
-0.2846721112728119,
-0.10895583033561707,
0.0812639445066452,
0.022276949137449265,
-0.06451413780450821,
0.4225294888019562,
0.32178938388824463,
0.028700027614831924,
0.7504057884216309,
0.3654765486717224,
0.12721377611160278,
0.09464549273252487,
0.07253710925579071,
0.38223621249198914,
-0.11400645226240158,
-0.3796917200088501,
-0.2082245647907257,
0.15388457477092743,
-0.08407825231552124,
0.032513104379177094,
0.055055174976587296,
-0.06203421950340271,
-0.0012849271297454834,
0.061900507658720016,
-0.4879451096057892,
-0.18903662264347076,
0.42401063442230225,
-0.3093630373477936,
0.07615616917610168,
-0.07491452991962433,
0.09561683982610703,
-0.27880990505218506,
-0.18202731013298035,
-0.1637149155139923,
-0.3036249279975891,
0.6426761746406555,
-0.08232498168945312,
-0.0753786563873291,
-0.11549675464630127,
-0.6797435283660889,
0.33253389596939087,
0.2211797684431076,
-0.0848112478852272,
0.1067160815000534,
-0.18529433012008667,
0.06875687092542648,
0.31005731225013733,
0.9494892358779907,
-0.19327248632907867,
0.15665550529956818,
0.08142629265785217,
-0.024843700230121613,
-0.44353416562080383,
0.09980608522891998,
-0.32794123888015747,
0.2550871670246124,
0.24954193830490112,
0.5071650743484497,
-0.3575253486633301,
-0.07234404981136322,
-0.042053528130054474,
-0.02773299254477024,
0.0347222201526165,
-0.026486758142709732,
-0.17338036000728607,
-0.14954203367233276,
-0.13803215324878693,
0.364579975605011,
0.44694602489471436,
0.07268508523702621,
0.13567006587982178,
-0.20947101712226868,
-0.09888649731874466,
0.04817037284374237,
0.01759961247444153,
-0.13402992486953735,
0.4707481563091278,
0.015833480283617973,
0.05059841647744179,
0.2701374292373657,
0.11173467338085175,
0.22063003480434418,
0.49006280303001404,
-0.1534302532672882,
0.20740750432014465,
-0.18158674240112305,
0.030591290444135666,
0.3123358190059662,
0.43981611728668213,
0.00996495969593525,
0.05791469290852547,
0.3812752068042755,
0.3522171378135681,
-0.05150410905480385,
-0.29420220851898193,
0.1262359917163849,
0.0464041605591774,
-0.5417699217796326,
0.003656253218650818,
0.1158783882856369,
-0.09958198666572571,
0.08497066795825958,
0.6082315444946289,
0.5790842771530151,
-0.3638046085834503,
0.3609658479690552,
0.04329147934913635,
0.8923063278198242,
-0.01489342749118805,
0.10762733221054077,
0.1486806422472,
0.07094931602478027,
0.24982814490795135,
0.5552586913108826,
0.09436395764350891,
0.008422058075666428,
0.09743886440992355,
-0.040766678750514984,
-0.00821535661816597,
0.166874498128891,
0.3400382399559021,
0.10278649628162384,
0.2708594501018524,
0.08195768296718597,
0.12089388072490692,
-0.15034610033035278,
-0.28958961367607117,
0.287745863199234,
-0.330181360244751,
-0.3449309170246124,
-0.07553842663764954,
0.07857123017311096,
0.2657669484615326,
-0.05792974308133125,
-0.10584964603185654,
-0.03092428855597973,
-0.4037669897079468,
-0.19284549355506897,
-0.18520265817642212,
-0.44498997926712036,
0.021174337714910507,
0.2638932764530182,
-0.2862425446510315,
-0.03285892307758331,
0.05158500000834465,
-0.4806172251701355,
0.144731342792511,
-0.1111120879650116,
-0.13308334350585938,
0.38927868008613586,
0.17192377150058746,
0.021822908893227577,
-0.1521931141614914,
0.17261779308319092,
0.1998170018196106,
-0.180318221449852,
0.05755350738763809,
-0.451859712600708,
-0.17299476265907288,
0.06446629762649536,
0.40836626291275024,
-0.2023412436246872,
-0.22290021181106567,
-0.3968207836151123,
-0.19215935468673706,
0.10154205560684204,
0.03948810324072838,
-0.08833838999271393,
0.2670639157295227,
-0.07576552778482437,
0.39075034856796265,
-0.1920088529586792,
-0.45341864228248596,
-0.0437423400580883,
0.5255671739578247,
0.03462927043437958,
-0.1923189014196396,
0.41257113218307495,
0.15918509662151337,
-0.16444197297096252,
-0.06954256445169449,
0.13838917016983032,
0.34264421463012695,
-0.6278496384620667,
0.5433272123336792,
0.24986925721168518,
0.036990419030189514,
0.13783228397369385,
0.4185100495815277,
0.1368645429611206,
0.279864639043808,
-0.3155890703201294,
-0.18671876192092896,
-0.2580823004245758,
0.40863800048828125,
0.10354240238666534,
0.03598066419363022,
-0.1420464813709259,
-0.2367400974035263,
0.3288383185863495,
-0.195632204413414,
-0.15207576751708984,
0.06600487977266312,
-0.08657726645469666,
0.32883208990097046,
0.2184334546327591,
0.2640419602394104,
0.3569837212562561,
-0.0818118304014206,
-0.10281718522310257,
0.1315310299396515,
-0.2793508768081665,
-0.0736054927110672,
-0.04670844227075577,
0.17635492980480194,
0.10426028817892075,
-0.2203988879919052,
0.16272279620170593,
-0.4074191451072693,
-0.046006571501493454,
-0.40626657009124756,
0.2619493901729584,
0.49095988273620605,
-0.004013918340206146,
-0.23783405125141144,
0.37194621562957764,
0.06007876619696617,
-0.029745670035481453,
0.20644594728946686,
-0.17768722772598267,
-0.07059645652770996,
-0.06777859479188919,
0.30435359477996826,
0.16345907747745514,
0.0337509885430336,
0.08297426998615265,
0.07204823195934296,
0.01426205039024353,
0.0030941590666770935,
0.4227863848209381,
-0.20461170375347137,
-0.21244628727436066,
0.3322141766548157,
0.2543899118900299,
0.018419276922941208,
-0.020861200988292694,
-0.15182919800281525,
0.20981234312057495,
0.006031939759850502,
-0.15236219763755798,
0.028843529522418976,
0.15505163371562958,
0.3418106436729431,
0.2605258822441101,
0.36461400985717773,
-0.16854214668273926,
-0.2591925263404846,
0.01746796816587448,
0.18861588835716248,
0.021103911101818085,
0.030939985066652298,
0.18805836141109467,
0.3906846344470978,
0.3334280550479889,
-0.09894290566444397,
0.3222147822380066,
0.07886981964111328,
0.2825942933559418,
0.29012852907180786,
0.23771065473556519,
0.2660042345523834,
0.01397060975432396,
0.08644546568393707,
-0.20485380291938782,
-0.5083092451095581,
0.03778546303510666,
0.08903412520885468,
-0.002733588218688965,
0.3360840976238251,
0.12346326559782028,
0.15381143987178802,
-0.19242238998413086,
-0.27505719661712646,
0.04186003655195236,
0.002171628177165985,
-0.3454616367816925,
-0.06183398887515068,
-0.3136748671531677,
-0.2561419904232025,
0.4150926172733307,
-0.1609160155057907,
0.06273669749498367,
-0.3454863429069519,
0.3650224208831787,
-0.07760797441005707,
-0.09537091851234436,
-0.14416509866714478,
-0.3677254617214203,
0.02400274947285652,
0.22925904393196106,
-0.11037898063659668,
0.13786321878433228,
-0.09132421016693115,
-0.046329014003276825,
0.05049201846122742,
0.5798317193984985,
0.5111629366874695,
0.3985685706138611,
-0.024610470980405807,
0.4008248746395111,
0.13015714287757874,
-0.24362574517726898,
-0.2861928343772888,
0.36318978667259216,
-0.059528544545173645,
-0.02509395405650139,
0.20010904967784882,
-0.010452048853039742,
-0.04692584276199341,
-0.06305433809757233,
-0.0026363953948020935,
0.10762621462345123,
0.16351503133773804,
-0.1908559501171112,
-0.19742119312286377,
-0.23625341057777405,
-0.2687472105026245,
-0.049194030463695526,
-0.08179537206888199,
0.016053345054388046,
0.29386430978775024,
-0.09964172542095184,
0.04635611176490784,
0.07786108553409576,
-0.001332877203822136,
-0.041519004851579666,
0.2583119571208954,
0.4536592960357666,
0.0035889148712158203,
-0.48415112495422363,
0.17722250521183014,
-0.37189099192619324,
-0.030173547565937042,
-0.4928693175315857,
0.2783648371696472,
0.03891897201538086,
0.19725818932056427,
0.11981728672981262,
-0.12264204025268555,
0.31830745935440063,
-0.05017361789941788,
-0.04383482038974762,
0.354549378156662,
0.06481389701366425,
-0.27906376123428345,
-0.19281794130802155,
-0.01353541575372219,
0.010154742747545242,
-0.384270578622818,
0.10624586045742035,
-0.11351072043180466,
-0.07536035776138306,
-0.10560964047908783,
0.16992686688899994,
-0.15767142176628113,
0.027592439204454422,
0.17741486430168152,
0.33601710200309753,
-0.04189568758010864,
0.029431745409965515,
-0.01770586334168911,
-0.35040393471717834,
0.14641931653022766,
-0.1264902800321579,
0.13943716883659363,
0.3596004843711853,
0.461244136095047,
-0.32846248149871826,
-0.20270606875419617,
-0.024075431749224663,
0.04234639182686806,
0.004644881933927536,
0.036162104457616806,
-0.18189282715320587,
0.1435844600200653,
-0.3938450813293457,
-0.0358402244746685,
-0.12207356840372086,
0.022271066904067993,
0.08602305501699448,
0.027085641399025917,
-0.25258761644363403,
-0.35494348406791687,
0.382764607667923,
-0.6531074643135071,
-0.2620072662830353,
-0.06931838393211365,
0.3420589566230774,
0.211510568857193,
-0.2256408929824829,
-0.39285433292388916,
-0.17192015051841736,
0.26260173320770264,
-0.06935775279998779,
-0.06165449693799019,
-0.18479131162166595,
-0.5037387609481812,
-0.03442946448922157,
-0.15762397646903992,
0.11528322100639343,
0.03572019189596176,
0.006658660247921944,
0.23119619488716125,
-0.30986523628234863
] |
https://github.com/huggingface/datasets/issues/2643 | Enum used in map functions will raise a RecursionError with dill. | I'm running into this as well. (Thank you so much for reporting @jorgeecardona β was staring at this massive stack trace and unsure what exactly was wrong!) | ## Describe the bug
Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from enum import Enum
class A(Enum):
a = 'a'
def main():
a = A.a
def f(x):
return {} if a == a.a else x
ds = load_dataset('cnn_dailymail', '3.0.0')['test']
ds = ds.map(f, num_proc=15)
if __name__ == "__main__":
main()
```
## Expected results
The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood.
## Actual results
```python
File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type
pickler.save_reduce(_create_type, (type(obj), obj.__name__,
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save
self.framer.commit_frame()
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame
if f.tell() >= self._FRAME_SIZE_TARGET or force:
RecursionError: maximum recursion depth exceeded while calling a Python object
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 3.0.0
| 27 | Enum used in map functions will raise a RecursionError with dill.
## Describe the bug
Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from enum import Enum
class A(Enum):
a = 'a'
def main():
a = A.a
def f(x):
return {} if a == a.a else x
ds = load_dataset('cnn_dailymail', '3.0.0')['test']
ds = ds.map(f, num_proc=15)
if __name__ == "__main__":
main()
```
## Expected results
The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood.
## Actual results
```python
File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type
pickler.save_reduce(_create_type, (type(obj), obj.__name__,
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save
self.framer.commit_frame()
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame
if f.tell() >= self._FRAME_SIZE_TARGET or force:
RecursionError: maximum recursion depth exceeded while calling a Python object
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 3.0.0
I'm running into this as well. (Thank you so much for reporting @jorgeecardona β was staring at this massive stack trace and unsure what exactly was wrong!) | [
0.10536050796508789,
0.1992540955543518,
0.04053202643990517,
0.1406988501548767,
-0.074371837079525,
-0.07834361493587494,
0.14776025712490082,
0.2337796837091446,
0.12631797790527344,
0.16906453669071198,
0.145333394408226,
0.9332157373428345,
-0.2908698618412018,
-0.3072981834411621,
-0.07833769172430038,
0.09344574809074402,
0.022367559373378754,
0.04552239552140236,
-0.6181131601333618,
-0.24567840993404388,
-0.33751407265663147,
-0.005242444574832916,
-0.10244708508253098,
-0.010089285671710968,
-0.21160176396369934,
0.22399938106536865,
0.047766558825969696,
0.4010351598262787,
0.0841139554977417,
-0.2200678139925003,
0.3333719074726105,
-0.0734497606754303,
0.1974623203277588,
0.3142178952693939,
-0.00011139166599605232,
0.08502484858036041,
0.1187562346458435,
-0.22744101285934448,
-0.3654651939868927,
-0.23953421413898468,
0.14749082922935486,
0.12261894345283508,
0.07264391332864761,
-0.4154757857322693,
0.2226356863975525,
0.3753209412097931,
-0.002573734149336815,
-0.2636494040489197,
-0.06216245889663696,
0.05436847731471062,
0.17183662950992584,
-0.13968119025230408,
0.21704046428203583,
0.0761602446436882,
0.44350969791412354,
-0.018286719918251038,
0.04481586068868637,
0.5206541419029236,
0.16536018252372742,
-0.30559614300727844,
-0.16434839367866516,
0.17223665118217468,
-0.0976959690451622,
-0.02541101723909378,
0.38833504915237427,
-0.11360875517129898,
0.6294158101081848,
-0.028845779597759247,
-0.1640147864818573,
0.2222030758857727,
-0.12903133034706116,
-0.28409600257873535,
-0.22954688966274261,
0.04017111659049988,
-0.0794379934668541,
-0.10172346234321594,
0.3087863326072693,
-0.018028341233730316,
-0.013356540352106094,
-0.0775611400604248,
0.12406980246305466,
-0.21598923206329346,
0.005678147077560425,
0.42788034677505493,
-0.16410481929779053,
0.5943021774291992,
0.13781286776065826,
0.16610416769981384,
0.2780689299106598,
-0.1684817671775818,
-0.19653746485710144,
0.1178518533706665,
0.10200686752796173,
0.09503292292356491,
-0.2208733707666397,
-0.09397907555103302,
0.28465861082077026,
-0.36015334725379944,
0.33536115288734436,
-0.1542602926492691,
0.01431672740727663,
0.10366407781839371,
-0.0685880109667778,
0.3336906433105469,
0.38991236686706543,
-0.14183396100997925,
-0.051656581461429596,
0.5599201321601868,
0.21554262936115265,
-0.11224401742219925,
0.03070276603102684,
0.36070412397384644,
0.060011982917785645,
0.09190644323825836,
-0.00836215727031231,
-0.11108765751123428,
0.011287838220596313,
-0.09541133791208267,
-0.10620450228452682,
0.4172789752483368,
-0.4747125804424286,
-0.11361280828714371,
0.13495540618896484,
0.12400197237730026,
-0.10585035383701324,
0.02118699625134468,
0.13413606584072113,
0.08970104157924652,
-0.05256481468677521,
0.4216710031032562,
-0.2110072374343872,
-0.006029387935996056,
0.02341897413134575,
-0.2131146490573883,
-0.1768057644367218,
0.054826680570840836,
0.2632887661457062,
0.07132747024297714,
0.13230007886886597,
-0.02237333171069622,
0.08259163796901703,
-0.2246844321489334,
0.17830726504325867,
0.10253119468688965,
-0.5080523490905762,
-0.08321276307106018,
0.2530030608177185,
-0.2604120373725891,
-0.2579993009567261,
0.25153133273124695,
-0.4531785845756531,
-0.09232640266418457,
-0.3719530403614044,
0.21415144205093384,
0.1512584686279297,
0.14207611978054047,
0.14658427238464355,
-0.11815948784351349,
0.3029903471469879,
-0.13724569976329803,
0.15522950887680054,
-0.41854941844940186,
-0.31117185950279236,
-0.24511092901229858,
0.07526475936174393,
-0.03098440170288086,
-0.07239710539579391,
-0.20129211246967316,
-0.2666211426258087,
0.15930351614952087,
0.1756729781627655,
-0.04904093220829964,
-0.18481995165348053,
-0.14143884181976318,
-0.2404542863368988,
0.2867940068244934,
-0.10299091786146164,
-0.1263522356748581,
-0.3646343946456909,
-0.06305734813213348,
-0.0521465465426445,
0.16916541755199432,
-0.25418615341186523,
-0.16374409198760986,
0.20213820040225983,
-0.2736370861530304,
0.5204456448554993,
0.17516857385635376,
0.11386428773403168,
-0.014207771047949791,
-0.32020312547683716,
-0.11339583992958069,
0.32788795232772827,
0.12095291912555695,
-0.1715015470981598,
-0.0926162526011467,
-0.2653787136077881,
-0.19638152420520782,
0.3977227509021759,
-0.2698430120944977,
0.040584176778793335,
0.1311580389738083,
0.10833695530891418,
0.0882655531167984,
0.06282946467399597,
-0.15359535813331604,
-0.3434669077396393,
0.19828972220420837,
-0.25587570667266846,
-0.021507009863853455,
0.01648785173892975,
-0.10047411173582077,
0.09639722853899002,
0.25805336236953735,
-0.035101596266031265,
-0.09730735421180725,
0.1891377866268158,
0.09944027662277222,
-0.10807327926158905,
-0.021637974306941032,
-0.0003865770995616913,
-0.32918548583984375,
-0.4009245038032532,
-0.02943895198404789,
0.05246354267001152,
0.302303671836853,
-0.23050807416439056,
-0.23220591247081757,
-0.2058907002210617,
0.16535840928554535,
-0.09190059453248978,
0.0035681133158504963,
-0.25168707966804504,
0.029070265591144562,
0.3874914050102234,
-0.5933547616004944,
-0.2805406451225281,
-0.05451720952987671,
-0.11675310879945755,
-0.274884968996048,
0.03684268519282341,
0.4684727191925049,
0.14549162983894348,
-0.2771622836589813,
0.24590042233467102,
0.17548498511314392,
0.17584985494613647,
0.12285985797643661,
0.06971684843301773,
0.22729669511318207,
-0.19982630014419556,
-0.11351725459098816,
-0.029024280607700348,
-0.37368330359458923,
-0.10196700692176819,
0.09346865117549896,
0.03451031818985939,
0.11486116796731949,
-0.03885059803724289,
-0.2529439330101013,
0.16791503131389618,
0.24728283286094666,
0.2872363030910492,
0.26803821325302124,
-0.1414111852645874,
0.08006972819566727,
0.16837389767169952,
0.056109387427568436,
0.11422751098871231,
-0.08797621726989746,
0.09766960144042969,
0.14238858222961426,
-0.11716938763856888,
0.11365190148353577,
-0.07366815954446793,
0.07546117156744003,
0.39816951751708984,
0.14574071764945984,
-0.06001133471727371,
0.04964752867817879,
-0.04125552624464035,
-0.28833475708961487,
-0.053686633706092834,
0.10213038325309753,
-0.06843984127044678,
0.07459050416946411,
-0.45670151710510254,
0.4747103750705719,
0.13333117961883545,
-0.5235560536384583,
-0.24588850140571594,
-0.21182909607887268,
-0.17015430331230164,
0.12948107719421387,
-0.5239453315734863,
0.21116334199905396,
-0.1791205257177353,
-0.44667190313339233,
0.19966603815555573,
-0.34406334161758423,
0.28589871525764465,
-0.3210591673851013,
-0.29670313000679016,
-0.023546503856778145,
0.15815450251102448,
-0.17906038463115692,
0.03748944774270058,
0.26271480321884155,
-0.3319721221923828,
0.03557855635881424,
-0.20127052068710327,
0.1469755470752716,
0.032461017370224,
0.1711263507604599,
0.27424055337905884,
0.09315676987171173,
-0.4386811852455139,
-0.4228982627391815,
0.13251590728759766,
0.13393571972846985,
-0.05866554379463196,
0.060103870928287506,
0.29634734988212585,
0.2722685635089874,
-0.22220149636268616,
-0.3065885007381439,
-0.19730694591999054,
-0.3845987617969513,
-0.20849983394145966,
0.07037955522537231,
0.4546928405761719,
0.27421656250953674,
-0.016064157709479332,
0.47584104537963867,
0.33242887258529663,
0.3127489387989044,
-0.32348012924194336,
0.37576693296432495,
0.20174892246723175,
-0.1626095026731491,
-0.20931531488895416,
-0.16371820867061615,
-0.5420069694519043,
0.08442652225494385,
0.11821475625038147,
-0.5454444289207458,
-0.20521090924739838,
0.18917448818683624,
0.0723089724779129,
-0.24910080432891846,
-0.1957809329032898,
0.1190049946308136,
0.22331921756267548,
0.06280919909477234,
-0.021954292431473732,
-0.272602379322052,
0.22372248768806458,
0.27336645126342773,
0.15183986723423004,
0.17838674783706665,
-0.010950978845357895,
-0.04324349761009216,
0.3684875965118408,
0.34897297620773315,
-0.02533140406012535,
0.41160041093826294,
0.3529874384403229,
-0.08655010163784027,
0.0425221212208271,
0.036326467990875244,
0.11211971938610077,
0.03950623422861099,
-0.08969473093748093,
0.13299454748630524,
-0.1452876627445221,
-0.6623028516769409,
0.03204921633005142,
0.14800982177257538,
0.3037307858467102,
-0.492302268743515,
0.2677824795246124,
-0.39397698640823364,
0.0531446672976017,
-0.30421045422554016,
0.2357543706893921,
0.124234139919281,
0.2263367772102356,
0.10904479026794434,
-0.09142552316188812,
0.19035741686820984,
-0.11923714727163315,
-0.09248730540275574,
-0.1650366187095642,
-0.0067228227853775024,
0.11854119598865509,
0.3353762626647949,
0.37176600098609924,
-0.045358914881944656,
-0.37601420283317566,
-0.12439614534378052,
-0.10633163899183273,
0.40100955963134766,
-0.3481982350349426,
0.07695747911930084,
0.4122266471385956,
-0.2628345191478729,
-0.2899605631828308,
-0.1358061134815216,
0.07485605776309967,
0.04181499034166336,
0.3262097239494324,
-0.12381023168563843,
-0.49230340123176575,
0.11857873201370239,
0.42199817299842834,
0.008125340566039085,
0.11812521517276764,
-0.0038846349343657494,
-0.05889834836125374,
-0.18780308961868286,
-0.2951493561267853,
-0.011558324098587036,
-0.1458282172679901,
0.12250430136919022,
0.21502859890460968,
-0.01799982786178589,
-0.11493118107318878,
0.1004171147942543,
-0.08380275964736938,
-0.1668771356344223,
0.2862614691257477,
-0.12395123392343521,
0.1584714651107788,
0.1450294554233551,
0.3025131821632385,
0.2738066613674164,
0.3276346027851105,
-0.33748188614845276,
0.1992717981338501,
0.29324716329574585,
0.22560034692287445,
0.1761762797832489,
0.055247560143470764,
0.20080310106277466,
0.1537928283214569,
0.010555283166468143,
-0.19051624834537506,
-0.1788254678249359,
-0.3223811686038971,
0.08727770298719406,
0.05002891644835472,
-0.12192819267511368,
-0.38156837224960327,
0.0662228912115097,
0.1693701148033142,
-0.01104668527841568,
0.0616263709962368,
-0.36573588848114014,
-0.010244149714708328,
0.49813342094421387,
0.35206738114356995,
0.8710968494415283,
0.21961896121501923,
-0.046106453984975815,
0.09723121672868729,
-0.026317769661545753,
-0.22970564663410187,
0.30248868465423584,
-0.18043194711208344,
-0.29866117238998413,
0.004067814908921719,
-0.07449685037136078,
-0.12460891902446747,
-0.021566540002822876,
-0.015255153179168701,
-0.3948974609375,
0.023443954065442085,
-0.19974911212921143,
0.041967377066612244,
0.028236685320734978,
-0.05260264873504639,
-0.060700252652168274,
-0.1094832718372345,
0.293958842754364,
0.1608690619468689,
0.09298726916313171,
0.07982437312602997,
-0.06561335921287537,
-0.09195254743099213,
-0.24051238596439362,
-0.38051021099090576,
-0.15403635799884796,
0.14417529106140137,
-0.11376603692770004,
0.4462919235229492,
0.3543662428855896,
-0.2859049439430237,
0.13251641392707825,
0.36255526542663574,
-0.26756662130355835,
0.12171044945716858,
-0.06499632447957993,
-0.02340809255838394,
0.041926059871912,
0.1990354061126709,
0.2569914758205414,
-0.06536500155925751,
0.5327140688896179,
-0.008403303101658821,
-0.23212262988090515,
0.14574334025382996,
-0.09407719224691391,
-0.27417832612991333,
-0.08680370450019836,
0.3060581684112549,
0.31087440252304077,
-0.01821800507605076,
0.055696040391922,
-0.057049334049224854,
-0.17519401013851166,
-0.17226196825504303,
0.14878107607364655,
0.1978512555360794,
-0.17348074913024902,
0.2513154149055481,
0.09073986113071442,
-0.2189706414937973,
-0.08010596036911011,
0.4010273218154907,
0.4048638343811035,
0.5142772197723389,
0.3133557140827179,
-0.06605415791273117,
-0.11954428255558014,
-0.15255041420459747,
-0.3521788418292999,
-0.3539166748523712,
0.23963922262191772,
0.20173192024230957,
0.01848304085433483,
-0.14710912108421326,
-0.33260539174079895,
-0.09506793320178986,
0.08194122463464737,
0.27813786268234253,
-0.4085239768028259,
-0.27973824739456177,
-0.3357228636741638,
0.09742653369903564,
-0.12044745683670044,
0.21470953524112701,
-0.25884658098220825,
-0.037536412477493286,
-0.3156370520591736,
0.2042546570301056,
-0.32190611958503723,
0.03818473964929581,
-0.3997868001461029,
0.1722809225320816,
-0.1483062505722046,
-0.24815267324447632,
0.01823156699538231,
0.030765049159526825,
0.16738761961460114,
0.23041798174381256,
-0.28739026188850403,
-0.11219979077577591,
-0.24056443572044373,
0.08654582500457764,
0.14103975892066956,
-0.1369149535894394,
0.13077454268932343,
-0.1663818210363388,
0.07748980075120926,
-0.18978770077228546,
0.03259819746017456,
-0.15484660863876343,
-0.1185716986656189,
0.36417654156684875,
0.1978074610233307,
0.15579941868782043,
0.1883445680141449,
0.2656758427619934,
-0.14319494366645813,
0.28395694494247437,
-0.1587207019329071,
0.013291742652654648,
-0.22597019374370575,
-0.08386300504207611,
-0.08421792834997177,
0.07267694920301437,
-0.21821166574954987,
-0.23917809128761292,
0.2639331817626953,
-0.015074387192726135,
-0.19120094180107117,
-0.08650584518909454,
0.1725258231163025,
0.20492763817310333,
-0.37964722514152527,
-0.15305867791175842,
0.5407618880271912,
0.20504361391067505,
-0.004619501531124115,
-0.034104544669389725,
0.5727971792221069,
-0.09246060252189636,
0.2316608726978302,
0.306114137172699,
-0.15375694632530212,
-0.1879761517047882,
-0.15030741691589355,
-0.011799285188317299,
-0.347412645816803,
0.05281355232000351,
0.2156006097793579,
0.4500204622745514,
-0.1907600313425064,
0.15370334684848785,
0.15344218909740448,
-0.13423533737659454,
0.5434712171554565,
0.014411598443984985,
0.13494573533535004,
0.15740768611431122,
-0.0015678182244300842,
0.04443731531500816,
0.37951648235321045,
-0.4899706542491913,
0.4982149302959442,
0.617263913154602,
0.23855960369110107,
0.35349610447883606,
0.113644540309906,
0.17976757884025574,
-0.18039923906326294,
0.031092774122953415,
-0.16140951216220856,
0.20594173669815063,
-0.3470534682273865,
-0.018273841589689255,
-0.017569905146956444,
-0.12879706919193268,
0.002570703625679016,
0.03179938718676567,
-0.03310787305235863,
-0.14632855355739594,
0.22259248793125153,
0.10307324677705765,
-0.25223731994628906,
-0.36131539940834045,
-0.02937939018011093,
-0.19579294323921204,
0.019742585718631744,
-0.22029881179332733,
-0.05942916125059128,
0.12754835188388824,
0.1394573450088501,
-0.36283454298973083,
0.12339918315410614,
0.2021777480840683,
0.5606964230537415,
-0.4515576958656311,
-0.25359421968460083,
0.29515284299850464,
0.08716598898172379,
-0.2988339364528656,
0.1697479784488678,
-0.23222604393959045,
-0.17149393260478973,
0.4422871470451355,
0.07521595805883408,
-0.24496318399906158,
-0.18336747586727142,
0.1342608630657196,
0.492442786693573,
0.26433029770851135,
0.09721333533525467,
0.21301373839378357,
0.20478034019470215,
0.16330775618553162,
-0.20802727341651917,
-0.26056331396102905,
-0.15556767582893372,
0.19888566434383392,
-0.0063207559287548065,
0.3195682764053345,
0.07287756353616714,
0.09287787228822708,
-0.042535971850156784,
0.23829561471939087,
0.21525651216506958,
0.17456910014152527,
-0.04642480984330177,
-0.0878162607550621,
-0.269260972738266,
0.3507026731967926,
-0.13880164921283722,
-0.20813389122486115,
0.3059596121311188,
-0.01117275096476078,
0.06573672592639923,
0.15031032264232635,
-0.11548589169979095,
-0.2089879810810089,
0.16076263785362244,
0.4486097991466522,
-0.2906092405319214,
-0.1849915087223053,
-0.10596230626106262,
-0.151067852973938,
0.2687520980834961,
-0.5409831404685974,
0.13426323235034943,
0.14736494421958923,
0.07054373621940613,
-0.2318168729543686,
0.014069631695747375,
-0.011606043204665184,
0.3986548185348511,
0.425405353307724,
0.11474434286355972,
0.4639269709587097,
-0.1939549446105957,
-0.10574540495872498,
0.20565801858901978,
0.015728918835520744,
-0.02135084755718708,
-0.16918471455574036,
-0.11767913401126862,
0.36526352167129517,
-0.08496975898742676,
-0.23371358215808868,
-0.12840311229228973,
0.5321090221405029,
-0.106932133436203,
-0.18596813082695007,
-0.1602981984615326,
0.3123151361942291,
-0.013214603066444397,
0.02395874448120594,
-0.4056393802165985,
0.20579737424850464,
0.16618353128433228,
0.29693111777305603,
-0.065343476831913,
-0.23560680449008942,
0.7419949173927307,
0.06212272495031357,
-0.05409790948033333,
-0.12703488767147064,
0.020278513431549072,
-0.5549426078796387,
-0.16971229016780853,
-0.2463076114654541,
-0.12686865031719208,
0.21109338104724884,
0.1947374939918518,
-0.522110641002655,
-0.15029233694076538,
0.14504502713680267,
0.07150274515151978,
-0.20047539472579956,
0.6373543739318848,
-0.23666620254516602,
-0.3341541886329651,
0.2838113605976105,
-0.0978844091296196
] |
https://github.com/huggingface/datasets/issues/2643 | Enum used in map functions will raise a RecursionError with dill. | Hi ! Thanks for reporting :)
Until this is fixed on `dill`'s side, we could implement a custom saving in our Pickler indefined in utils.py_utils.py
There is already a suggestion in this message about how to do it:
https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
Let me know if such a workaround could help, and feel free to open a PR if you want to contribute ! | ## Describe the bug
Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from enum import Enum
class A(Enum):
a = 'a'
def main():
a = A.a
def f(x):
return {} if a == a.a else x
ds = load_dataset('cnn_dailymail', '3.0.0')['test']
ds = ds.map(f, num_proc=15)
if __name__ == "__main__":
main()
```
## Expected results
The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood.
## Actual results
```python
File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type
pickler.save_reduce(_create_type, (type(obj), obj.__name__,
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save
self.framer.commit_frame()
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame
if f.tell() >= self._FRAME_SIZE_TARGET or force:
RecursionError: maximum recursion depth exceeded while calling a Python object
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 3.0.0
| 61 | Enum used in map functions will raise a RecursionError with dill.
## Describe the bug
Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from enum import Enum
class A(Enum):
a = 'a'
def main():
a = A.a
def f(x):
return {} if a == a.a else x
ds = load_dataset('cnn_dailymail', '3.0.0')['test']
ds = ds.map(f, num_proc=15)
if __name__ == "__main__":
main()
```
## Expected results
The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood.
## Actual results
```python
File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type
pickler.save_reduce(_create_type, (type(obj), obj.__name__,
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save
self.framer.commit_frame()
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame
if f.tell() >= self._FRAME_SIZE_TARGET or force:
RecursionError: maximum recursion depth exceeded while calling a Python object
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 3.0.0
Hi ! Thanks for reporting :)
Until this is fixed on `dill`'s side, we could implement a custom saving in our Pickler indefined in utils.py_utils.py
There is already a suggestion in this message about how to do it:
https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
Let me know if such a workaround could help, and feel free to open a PR if you want to contribute ! | [
0.10536050796508789,
0.1992540955543518,
0.04053202643990517,
0.1406988501548767,
-0.074371837079525,
-0.07834361493587494,
0.14776025712490082,
0.2337796837091446,
0.12631797790527344,
0.16906453669071198,
0.145333394408226,
0.9332157373428345,
-0.2908698618412018,
-0.3072981834411621,
-0.07833769172430038,
0.09344574809074402,
0.022367559373378754,
0.04552239552140236,
-0.6181131601333618,
-0.24567840993404388,
-0.33751407265663147,
-0.005242444574832916,
-0.10244708508253098,
-0.010089285671710968,
-0.21160176396369934,
0.22399938106536865,
0.047766558825969696,
0.4010351598262787,
0.0841139554977417,
-0.2200678139925003,
0.3333719074726105,
-0.0734497606754303,
0.1974623203277588,
0.3142178952693939,
-0.00011139166599605232,
0.08502484858036041,
0.1187562346458435,
-0.22744101285934448,
-0.3654651939868927,
-0.23953421413898468,
0.14749082922935486,
0.12261894345283508,
0.07264391332864761,
-0.4154757857322693,
0.2226356863975525,
0.3753209412097931,
-0.002573734149336815,
-0.2636494040489197,
-0.06216245889663696,
0.05436847731471062,
0.17183662950992584,
-0.13968119025230408,
0.21704046428203583,
0.0761602446436882,
0.44350969791412354,
-0.018286719918251038,
0.04481586068868637,
0.5206541419029236,
0.16536018252372742,
-0.30559614300727844,
-0.16434839367866516,
0.17223665118217468,
-0.0976959690451622,
-0.02541101723909378,
0.38833504915237427,
-0.11360875517129898,
0.6294158101081848,
-0.028845779597759247,
-0.1640147864818573,
0.2222030758857727,
-0.12903133034706116,
-0.28409600257873535,
-0.22954688966274261,
0.04017111659049988,
-0.0794379934668541,
-0.10172346234321594,
0.3087863326072693,
-0.018028341233730316,
-0.013356540352106094,
-0.0775611400604248,
0.12406980246305466,
-0.21598923206329346,
0.005678147077560425,
0.42788034677505493,
-0.16410481929779053,
0.5943021774291992,
0.13781286776065826,
0.16610416769981384,
0.2780689299106598,
-0.1684817671775818,
-0.19653746485710144,
0.1178518533706665,
0.10200686752796173,
0.09503292292356491,
-0.2208733707666397,
-0.09397907555103302,
0.28465861082077026,
-0.36015334725379944,
0.33536115288734436,
-0.1542602926492691,
0.01431672740727663,
0.10366407781839371,
-0.0685880109667778,
0.3336906433105469,
0.38991236686706543,
-0.14183396100997925,
-0.051656581461429596,
0.5599201321601868,
0.21554262936115265,
-0.11224401742219925,
0.03070276603102684,
0.36070412397384644,
0.060011982917785645,
0.09190644323825836,
-0.00836215727031231,
-0.11108765751123428,
0.011287838220596313,
-0.09541133791208267,
-0.10620450228452682,
0.4172789752483368,
-0.4747125804424286,
-0.11361280828714371,
0.13495540618896484,
0.12400197237730026,
-0.10585035383701324,
0.02118699625134468,
0.13413606584072113,
0.08970104157924652,
-0.05256481468677521,
0.4216710031032562,
-0.2110072374343872,
-0.006029387935996056,
0.02341897413134575,
-0.2131146490573883,
-0.1768057644367218,
0.054826680570840836,
0.2632887661457062,
0.07132747024297714,
0.13230007886886597,
-0.02237333171069622,
0.08259163796901703,
-0.2246844321489334,
0.17830726504325867,
0.10253119468688965,
-0.5080523490905762,
-0.08321276307106018,
0.2530030608177185,
-0.2604120373725891,
-0.2579993009567261,
0.25153133273124695,
-0.4531785845756531,
-0.09232640266418457,
-0.3719530403614044,
0.21415144205093384,
0.1512584686279297,
0.14207611978054047,
0.14658427238464355,
-0.11815948784351349,
0.3029903471469879,
-0.13724569976329803,
0.15522950887680054,
-0.41854941844940186,
-0.31117185950279236,
-0.24511092901229858,
0.07526475936174393,
-0.03098440170288086,
-0.07239710539579391,
-0.20129211246967316,
-0.2666211426258087,
0.15930351614952087,
0.1756729781627655,
-0.04904093220829964,
-0.18481995165348053,
-0.14143884181976318,
-0.2404542863368988,
0.2867940068244934,
-0.10299091786146164,
-0.1263522356748581,
-0.3646343946456909,
-0.06305734813213348,
-0.0521465465426445,
0.16916541755199432,
-0.25418615341186523,
-0.16374409198760986,
0.20213820040225983,
-0.2736370861530304,
0.5204456448554993,
0.17516857385635376,
0.11386428773403168,
-0.014207771047949791,
-0.32020312547683716,
-0.11339583992958069,
0.32788795232772827,
0.12095291912555695,
-0.1715015470981598,
-0.0926162526011467,
-0.2653787136077881,
-0.19638152420520782,
0.3977227509021759,
-0.2698430120944977,
0.040584176778793335,
0.1311580389738083,
0.10833695530891418,
0.0882655531167984,
0.06282946467399597,
-0.15359535813331604,
-0.3434669077396393,
0.19828972220420837,
-0.25587570667266846,
-0.021507009863853455,
0.01648785173892975,
-0.10047411173582077,
0.09639722853899002,
0.25805336236953735,
-0.035101596266031265,
-0.09730735421180725,
0.1891377866268158,
0.09944027662277222,
-0.10807327926158905,
-0.021637974306941032,
-0.0003865770995616913,
-0.32918548583984375,
-0.4009245038032532,
-0.02943895198404789,
0.05246354267001152,
0.302303671836853,
-0.23050807416439056,
-0.23220591247081757,
-0.2058907002210617,
0.16535840928554535,
-0.09190059453248978,
0.0035681133158504963,
-0.25168707966804504,
0.029070265591144562,
0.3874914050102234,
-0.5933547616004944,
-0.2805406451225281,
-0.05451720952987671,
-0.11675310879945755,
-0.274884968996048,
0.03684268519282341,
0.4684727191925049,
0.14549162983894348,
-0.2771622836589813,
0.24590042233467102,
0.17548498511314392,
0.17584985494613647,
0.12285985797643661,
0.06971684843301773,
0.22729669511318207,
-0.19982630014419556,
-0.11351725459098816,
-0.029024280607700348,
-0.37368330359458923,
-0.10196700692176819,
0.09346865117549896,
0.03451031818985939,
0.11486116796731949,
-0.03885059803724289,
-0.2529439330101013,
0.16791503131389618,
0.24728283286094666,
0.2872363030910492,
0.26803821325302124,
-0.1414111852645874,
0.08006972819566727,
0.16837389767169952,
0.056109387427568436,
0.11422751098871231,
-0.08797621726989746,
0.09766960144042969,
0.14238858222961426,
-0.11716938763856888,
0.11365190148353577,
-0.07366815954446793,
0.07546117156744003,
0.39816951751708984,
0.14574071764945984,
-0.06001133471727371,
0.04964752867817879,
-0.04125552624464035,
-0.28833475708961487,
-0.053686633706092834,
0.10213038325309753,
-0.06843984127044678,
0.07459050416946411,
-0.45670151710510254,
0.4747103750705719,
0.13333117961883545,
-0.5235560536384583,
-0.24588850140571594,
-0.21182909607887268,
-0.17015430331230164,
0.12948107719421387,
-0.5239453315734863,
0.21116334199905396,
-0.1791205257177353,
-0.44667190313339233,
0.19966603815555573,
-0.34406334161758423,
0.28589871525764465,
-0.3210591673851013,
-0.29670313000679016,
-0.023546503856778145,
0.15815450251102448,
-0.17906038463115692,
0.03748944774270058,
0.26271480321884155,
-0.3319721221923828,
0.03557855635881424,
-0.20127052068710327,
0.1469755470752716,
0.032461017370224,
0.1711263507604599,
0.27424055337905884,
0.09315676987171173,
-0.4386811852455139,
-0.4228982627391815,
0.13251590728759766,
0.13393571972846985,
-0.05866554379463196,
0.060103870928287506,
0.29634734988212585,
0.2722685635089874,
-0.22220149636268616,
-0.3065885007381439,
-0.19730694591999054,
-0.3845987617969513,
-0.20849983394145966,
0.07037955522537231,
0.4546928405761719,
0.27421656250953674,
-0.016064157709479332,
0.47584104537963867,
0.33242887258529663,
0.3127489387989044,
-0.32348012924194336,
0.37576693296432495,
0.20174892246723175,
-0.1626095026731491,
-0.20931531488895416,
-0.16371820867061615,
-0.5420069694519043,
0.08442652225494385,
0.11821475625038147,
-0.5454444289207458,
-0.20521090924739838,
0.18917448818683624,
0.0723089724779129,
-0.24910080432891846,
-0.1957809329032898,
0.1190049946308136,
0.22331921756267548,
0.06280919909477234,
-0.021954292431473732,
-0.272602379322052,
0.22372248768806458,
0.27336645126342773,
0.15183986723423004,
0.17838674783706665,
-0.010950978845357895,
-0.04324349761009216,
0.3684875965118408,
0.34897297620773315,
-0.02533140406012535,
0.41160041093826294,
0.3529874384403229,
-0.08655010163784027,
0.0425221212208271,
0.036326467990875244,
0.11211971938610077,
0.03950623422861099,
-0.08969473093748093,
0.13299454748630524,
-0.1452876627445221,
-0.6623028516769409,
0.03204921633005142,
0.14800982177257538,
0.3037307858467102,
-0.492302268743515,
0.2677824795246124,
-0.39397698640823364,
0.0531446672976017,
-0.30421045422554016,
0.2357543706893921,
0.124234139919281,
0.2263367772102356,
0.10904479026794434,
-0.09142552316188812,
0.19035741686820984,
-0.11923714727163315,
-0.09248730540275574,
-0.1650366187095642,
-0.0067228227853775024,
0.11854119598865509,
0.3353762626647949,
0.37176600098609924,
-0.045358914881944656,
-0.37601420283317566,
-0.12439614534378052,
-0.10633163899183273,
0.40100955963134766,
-0.3481982350349426,
0.07695747911930084,
0.4122266471385956,
-0.2628345191478729,
-0.2899605631828308,
-0.1358061134815216,
0.07485605776309967,
0.04181499034166336,
0.3262097239494324,
-0.12381023168563843,
-0.49230340123176575,
0.11857873201370239,
0.42199817299842834,
0.008125340566039085,
0.11812521517276764,
-0.0038846349343657494,
-0.05889834836125374,
-0.18780308961868286,
-0.2951493561267853,
-0.011558324098587036,
-0.1458282172679901,
0.12250430136919022,
0.21502859890460968,
-0.01799982786178589,
-0.11493118107318878,
0.1004171147942543,
-0.08380275964736938,
-0.1668771356344223,
0.2862614691257477,
-0.12395123392343521,
0.1584714651107788,
0.1450294554233551,
0.3025131821632385,
0.2738066613674164,
0.3276346027851105,
-0.33748188614845276,
0.1992717981338501,
0.29324716329574585,
0.22560034692287445,
0.1761762797832489,
0.055247560143470764,
0.20080310106277466,
0.1537928283214569,
0.010555283166468143,
-0.19051624834537506,
-0.1788254678249359,
-0.3223811686038971,
0.08727770298719406,
0.05002891644835472,
-0.12192819267511368,
-0.38156837224960327,
0.0662228912115097,
0.1693701148033142,
-0.01104668527841568,
0.0616263709962368,
-0.36573588848114014,
-0.010244149714708328,
0.49813342094421387,
0.35206738114356995,
0.8710968494415283,
0.21961896121501923,
-0.046106453984975815,
0.09723121672868729,
-0.026317769661545753,
-0.22970564663410187,
0.30248868465423584,
-0.18043194711208344,
-0.29866117238998413,
0.004067814908921719,
-0.07449685037136078,
-0.12460891902446747,
-0.021566540002822876,
-0.015255153179168701,
-0.3948974609375,
0.023443954065442085,
-0.19974911212921143,
0.041967377066612244,
0.028236685320734978,
-0.05260264873504639,
-0.060700252652168274,
-0.1094832718372345,
0.293958842754364,
0.1608690619468689,
0.09298726916313171,
0.07982437312602997,
-0.06561335921287537,
-0.09195254743099213,
-0.24051238596439362,
-0.38051021099090576,
-0.15403635799884796,
0.14417529106140137,
-0.11376603692770004,
0.4462919235229492,
0.3543662428855896,
-0.2859049439430237,
0.13251641392707825,
0.36255526542663574,
-0.26756662130355835,
0.12171044945716858,
-0.06499632447957993,
-0.02340809255838394,
0.041926059871912,
0.1990354061126709,
0.2569914758205414,
-0.06536500155925751,
0.5327140688896179,
-0.008403303101658821,
-0.23212262988090515,
0.14574334025382996,
-0.09407719224691391,
-0.27417832612991333,
-0.08680370450019836,
0.3060581684112549,
0.31087440252304077,
-0.01821800507605076,
0.055696040391922,
-0.057049334049224854,
-0.17519401013851166,
-0.17226196825504303,
0.14878107607364655,
0.1978512555360794,
-0.17348074913024902,
0.2513154149055481,
0.09073986113071442,
-0.2189706414937973,
-0.08010596036911011,
0.4010273218154907,
0.4048638343811035,
0.5142772197723389,
0.3133557140827179,
-0.06605415791273117,
-0.11954428255558014,
-0.15255041420459747,
-0.3521788418292999,
-0.3539166748523712,
0.23963922262191772,
0.20173192024230957,
0.01848304085433483,
-0.14710912108421326,
-0.33260539174079895,
-0.09506793320178986,
0.08194122463464737,
0.27813786268234253,
-0.4085239768028259,
-0.27973824739456177,
-0.3357228636741638,
0.09742653369903564,
-0.12044745683670044,
0.21470953524112701,
-0.25884658098220825,
-0.037536412477493286,
-0.3156370520591736,
0.2042546570301056,
-0.32190611958503723,
0.03818473964929581,
-0.3997868001461029,
0.1722809225320816,
-0.1483062505722046,
-0.24815267324447632,
0.01823156699538231,
0.030765049159526825,
0.16738761961460114,
0.23041798174381256,
-0.28739026188850403,
-0.11219979077577591,
-0.24056443572044373,
0.08654582500457764,
0.14103975892066956,
-0.1369149535894394,
0.13077454268932343,
-0.1663818210363388,
0.07748980075120926,
-0.18978770077228546,
0.03259819746017456,
-0.15484660863876343,
-0.1185716986656189,
0.36417654156684875,
0.1978074610233307,
0.15579941868782043,
0.1883445680141449,
0.2656758427619934,
-0.14319494366645813,
0.28395694494247437,
-0.1587207019329071,
0.013291742652654648,
-0.22597019374370575,
-0.08386300504207611,
-0.08421792834997177,
0.07267694920301437,
-0.21821166574954987,
-0.23917809128761292,
0.2639331817626953,
-0.015074387192726135,
-0.19120094180107117,
-0.08650584518909454,
0.1725258231163025,
0.20492763817310333,
-0.37964722514152527,
-0.15305867791175842,
0.5407618880271912,
0.20504361391067505,
-0.004619501531124115,
-0.034104544669389725,
0.5727971792221069,
-0.09246060252189636,
0.2316608726978302,
0.306114137172699,
-0.15375694632530212,
-0.1879761517047882,
-0.15030741691589355,
-0.011799285188317299,
-0.347412645816803,
0.05281355232000351,
0.2156006097793579,
0.4500204622745514,
-0.1907600313425064,
0.15370334684848785,
0.15344218909740448,
-0.13423533737659454,
0.5434712171554565,
0.014411598443984985,
0.13494573533535004,
0.15740768611431122,
-0.0015678182244300842,
0.04443731531500816,
0.37951648235321045,
-0.4899706542491913,
0.4982149302959442,
0.617263913154602,
0.23855960369110107,
0.35349610447883606,
0.113644540309906,
0.17976757884025574,
-0.18039923906326294,
0.031092774122953415,
-0.16140951216220856,
0.20594173669815063,
-0.3470534682273865,
-0.018273841589689255,
-0.017569905146956444,
-0.12879706919193268,
0.002570703625679016,
0.03179938718676567,
-0.03310787305235863,
-0.14632855355739594,
0.22259248793125153,
0.10307324677705765,
-0.25223731994628906,
-0.36131539940834045,
-0.02937939018011093,
-0.19579294323921204,
0.019742585718631744,
-0.22029881179332733,
-0.05942916125059128,
0.12754835188388824,
0.1394573450088501,
-0.36283454298973083,
0.12339918315410614,
0.2021777480840683,
0.5606964230537415,
-0.4515576958656311,
-0.25359421968460083,
0.29515284299850464,
0.08716598898172379,
-0.2988339364528656,
0.1697479784488678,
-0.23222604393959045,
-0.17149393260478973,
0.4422871470451355,
0.07521595805883408,
-0.24496318399906158,
-0.18336747586727142,
0.1342608630657196,
0.492442786693573,
0.26433029770851135,
0.09721333533525467,
0.21301373839378357,
0.20478034019470215,
0.16330775618553162,
-0.20802727341651917,
-0.26056331396102905,
-0.15556767582893372,
0.19888566434383392,
-0.0063207559287548065,
0.3195682764053345,
0.07287756353616714,
0.09287787228822708,
-0.042535971850156784,
0.23829561471939087,
0.21525651216506958,
0.17456910014152527,
-0.04642480984330177,
-0.0878162607550621,
-0.269260972738266,
0.3507026731967926,
-0.13880164921283722,
-0.20813389122486115,
0.3059596121311188,
-0.01117275096476078,
0.06573672592639923,
0.15031032264232635,
-0.11548589169979095,
-0.2089879810810089,
0.16076263785362244,
0.4486097991466522,
-0.2906092405319214,
-0.1849915087223053,
-0.10596230626106262,
-0.151067852973938,
0.2687520980834961,
-0.5409831404685974,
0.13426323235034943,
0.14736494421958923,
0.07054373621940613,
-0.2318168729543686,
0.014069631695747375,
-0.011606043204665184,
0.3986548185348511,
0.425405353307724,
0.11474434286355972,
0.4639269709587097,
-0.1939549446105957,
-0.10574540495872498,
0.20565801858901978,
0.015728918835520744,
-0.02135084755718708,
-0.16918471455574036,
-0.11767913401126862,
0.36526352167129517,
-0.08496975898742676,
-0.23371358215808868,
-0.12840311229228973,
0.5321090221405029,
-0.106932133436203,
-0.18596813082695007,
-0.1602981984615326,
0.3123151361942291,
-0.013214603066444397,
0.02395874448120594,
-0.4056393802165985,
0.20579737424850464,
0.16618353128433228,
0.29693111777305603,
-0.065343476831913,
-0.23560680449008942,
0.7419949173927307,
0.06212272495031357,
-0.05409790948033333,
-0.12703488767147064,
0.020278513431549072,
-0.5549426078796387,
-0.16971229016780853,
-0.2463076114654541,
-0.12686865031719208,
0.21109338104724884,
0.1947374939918518,
-0.522110641002655,
-0.15029233694076538,
0.14504502713680267,
0.07150274515151978,
-0.20047539472579956,
0.6373543739318848,
-0.23666620254516602,
-0.3341541886329651,
0.2838113605976105,
-0.0978844091296196
] |
https://github.com/huggingface/datasets/issues/2643 | Enum used in map functions will raise a RecursionError with dill. | I have the same bug.
the code is as follows:

the error is:

Look for the solution for this bug. | ## Describe the bug
Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from enum import Enum
class A(Enum):
a = 'a'
def main():
a = A.a
def f(x):
return {} if a == a.a else x
ds = load_dataset('cnn_dailymail', '3.0.0')['test']
ds = ds.map(f, num_proc=15)
if __name__ == "__main__":
main()
```
## Expected results
The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood.
## Actual results
```python
File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type
pickler.save_reduce(_create_type, (type(obj), obj.__name__,
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save
self.framer.commit_frame()
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame
if f.tell() >= self._FRAME_SIZE_TARGET or force:
RecursionError: maximum recursion depth exceeded while calling a Python object
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 3.0.0
| 22 | Enum used in map functions will raise a RecursionError with dill.
## Describe the bug
Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from enum import Enum
class A(Enum):
a = 'a'
def main():
a = A.a
def f(x):
return {} if a == a.a else x
ds = load_dataset('cnn_dailymail', '3.0.0')['test']
ds = ds.map(f, num_proc=15)
if __name__ == "__main__":
main()
```
## Expected results
The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood.
## Actual results
```python
File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type
pickler.save_reduce(_create_type, (type(obj), obj.__name__,
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save
self.framer.commit_frame()
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame
if f.tell() >= self._FRAME_SIZE_TARGET or force:
RecursionError: maximum recursion depth exceeded while calling a Python object
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 3.0.0
I have the same bug.
the code is as follows:

the error is:

Look for the solution for this bug. | [
0.10536050796508789,
0.1992540955543518,
0.04053202643990517,
0.1406988501548767,
-0.074371837079525,
-0.07834361493587494,
0.14776025712490082,
0.2337796837091446,
0.12631797790527344,
0.16906453669071198,
0.145333394408226,
0.9332157373428345,
-0.2908698618412018,
-0.3072981834411621,
-0.07833769172430038,
0.09344574809074402,
0.022367559373378754,
0.04552239552140236,
-0.6181131601333618,
-0.24567840993404388,
-0.33751407265663147,
-0.005242444574832916,
-0.10244708508253098,
-0.010089285671710968,
-0.21160176396369934,
0.22399938106536865,
0.047766558825969696,
0.4010351598262787,
0.0841139554977417,
-0.2200678139925003,
0.3333719074726105,
-0.0734497606754303,
0.1974623203277588,
0.3142178952693939,
-0.00011139166599605232,
0.08502484858036041,
0.1187562346458435,
-0.22744101285934448,
-0.3654651939868927,
-0.23953421413898468,
0.14749082922935486,
0.12261894345283508,
0.07264391332864761,
-0.4154757857322693,
0.2226356863975525,
0.3753209412097931,
-0.002573734149336815,
-0.2636494040489197,
-0.06216245889663696,
0.05436847731471062,
0.17183662950992584,
-0.13968119025230408,
0.21704046428203583,
0.0761602446436882,
0.44350969791412354,
-0.018286719918251038,
0.04481586068868637,
0.5206541419029236,
0.16536018252372742,
-0.30559614300727844,
-0.16434839367866516,
0.17223665118217468,
-0.0976959690451622,
-0.02541101723909378,
0.38833504915237427,
-0.11360875517129898,
0.6294158101081848,
-0.028845779597759247,
-0.1640147864818573,
0.2222030758857727,
-0.12903133034706116,
-0.28409600257873535,
-0.22954688966274261,
0.04017111659049988,
-0.0794379934668541,
-0.10172346234321594,
0.3087863326072693,
-0.018028341233730316,
-0.013356540352106094,
-0.0775611400604248,
0.12406980246305466,
-0.21598923206329346,
0.005678147077560425,
0.42788034677505493,
-0.16410481929779053,
0.5943021774291992,
0.13781286776065826,
0.16610416769981384,
0.2780689299106598,
-0.1684817671775818,
-0.19653746485710144,
0.1178518533706665,
0.10200686752796173,
0.09503292292356491,
-0.2208733707666397,
-0.09397907555103302,
0.28465861082077026,
-0.36015334725379944,
0.33536115288734436,
-0.1542602926492691,
0.01431672740727663,
0.10366407781839371,
-0.0685880109667778,
0.3336906433105469,
0.38991236686706543,
-0.14183396100997925,
-0.051656581461429596,
0.5599201321601868,
0.21554262936115265,
-0.11224401742219925,
0.03070276603102684,
0.36070412397384644,
0.060011982917785645,
0.09190644323825836,
-0.00836215727031231,
-0.11108765751123428,
0.011287838220596313,
-0.09541133791208267,
-0.10620450228452682,
0.4172789752483368,
-0.4747125804424286,
-0.11361280828714371,
0.13495540618896484,
0.12400197237730026,
-0.10585035383701324,
0.02118699625134468,
0.13413606584072113,
0.08970104157924652,
-0.05256481468677521,
0.4216710031032562,
-0.2110072374343872,
-0.006029387935996056,
0.02341897413134575,
-0.2131146490573883,
-0.1768057644367218,
0.054826680570840836,
0.2632887661457062,
0.07132747024297714,
0.13230007886886597,
-0.02237333171069622,
0.08259163796901703,
-0.2246844321489334,
0.17830726504325867,
0.10253119468688965,
-0.5080523490905762,
-0.08321276307106018,
0.2530030608177185,
-0.2604120373725891,
-0.2579993009567261,
0.25153133273124695,
-0.4531785845756531,
-0.09232640266418457,
-0.3719530403614044,
0.21415144205093384,
0.1512584686279297,
0.14207611978054047,
0.14658427238464355,
-0.11815948784351349,
0.3029903471469879,
-0.13724569976329803,
0.15522950887680054,
-0.41854941844940186,
-0.31117185950279236,
-0.24511092901229858,
0.07526475936174393,
-0.03098440170288086,
-0.07239710539579391,
-0.20129211246967316,
-0.2666211426258087,
0.15930351614952087,
0.1756729781627655,
-0.04904093220829964,
-0.18481995165348053,
-0.14143884181976318,
-0.2404542863368988,
0.2867940068244934,
-0.10299091786146164,
-0.1263522356748581,
-0.3646343946456909,
-0.06305734813213348,
-0.0521465465426445,
0.16916541755199432,
-0.25418615341186523,
-0.16374409198760986,
0.20213820040225983,
-0.2736370861530304,
0.5204456448554993,
0.17516857385635376,
0.11386428773403168,
-0.014207771047949791,
-0.32020312547683716,
-0.11339583992958069,
0.32788795232772827,
0.12095291912555695,
-0.1715015470981598,
-0.0926162526011467,
-0.2653787136077881,
-0.19638152420520782,
0.3977227509021759,
-0.2698430120944977,
0.040584176778793335,
0.1311580389738083,
0.10833695530891418,
0.0882655531167984,
0.06282946467399597,
-0.15359535813331604,
-0.3434669077396393,
0.19828972220420837,
-0.25587570667266846,
-0.021507009863853455,
0.01648785173892975,
-0.10047411173582077,
0.09639722853899002,
0.25805336236953735,
-0.035101596266031265,
-0.09730735421180725,
0.1891377866268158,
0.09944027662277222,
-0.10807327926158905,
-0.021637974306941032,
-0.0003865770995616913,
-0.32918548583984375,
-0.4009245038032532,
-0.02943895198404789,
0.05246354267001152,
0.302303671836853,
-0.23050807416439056,
-0.23220591247081757,
-0.2058907002210617,
0.16535840928554535,
-0.09190059453248978,
0.0035681133158504963,
-0.25168707966804504,
0.029070265591144562,
0.3874914050102234,
-0.5933547616004944,
-0.2805406451225281,
-0.05451720952987671,
-0.11675310879945755,
-0.274884968996048,
0.03684268519282341,
0.4684727191925049,
0.14549162983894348,
-0.2771622836589813,
0.24590042233467102,
0.17548498511314392,
0.17584985494613647,
0.12285985797643661,
0.06971684843301773,
0.22729669511318207,
-0.19982630014419556,
-0.11351725459098816,
-0.029024280607700348,
-0.37368330359458923,
-0.10196700692176819,
0.09346865117549896,
0.03451031818985939,
0.11486116796731949,
-0.03885059803724289,
-0.2529439330101013,
0.16791503131389618,
0.24728283286094666,
0.2872363030910492,
0.26803821325302124,
-0.1414111852645874,
0.08006972819566727,
0.16837389767169952,
0.056109387427568436,
0.11422751098871231,
-0.08797621726989746,
0.09766960144042969,
0.14238858222961426,
-0.11716938763856888,
0.11365190148353577,
-0.07366815954446793,
0.07546117156744003,
0.39816951751708984,
0.14574071764945984,
-0.06001133471727371,
0.04964752867817879,
-0.04125552624464035,
-0.28833475708961487,
-0.053686633706092834,
0.10213038325309753,
-0.06843984127044678,
0.07459050416946411,
-0.45670151710510254,
0.4747103750705719,
0.13333117961883545,
-0.5235560536384583,
-0.24588850140571594,
-0.21182909607887268,
-0.17015430331230164,
0.12948107719421387,
-0.5239453315734863,
0.21116334199905396,
-0.1791205257177353,
-0.44667190313339233,
0.19966603815555573,
-0.34406334161758423,
0.28589871525764465,
-0.3210591673851013,
-0.29670313000679016,
-0.023546503856778145,
0.15815450251102448,
-0.17906038463115692,
0.03748944774270058,
0.26271480321884155,
-0.3319721221923828,
0.03557855635881424,
-0.20127052068710327,
0.1469755470752716,
0.032461017370224,
0.1711263507604599,
0.27424055337905884,
0.09315676987171173,
-0.4386811852455139,
-0.4228982627391815,
0.13251590728759766,
0.13393571972846985,
-0.05866554379463196,
0.060103870928287506,
0.29634734988212585,
0.2722685635089874,
-0.22220149636268616,
-0.3065885007381439,
-0.19730694591999054,
-0.3845987617969513,
-0.20849983394145966,
0.07037955522537231,
0.4546928405761719,
0.27421656250953674,
-0.016064157709479332,
0.47584104537963867,
0.33242887258529663,
0.3127489387989044,
-0.32348012924194336,
0.37576693296432495,
0.20174892246723175,
-0.1626095026731491,
-0.20931531488895416,
-0.16371820867061615,
-0.5420069694519043,
0.08442652225494385,
0.11821475625038147,
-0.5454444289207458,
-0.20521090924739838,
0.18917448818683624,
0.0723089724779129,
-0.24910080432891846,
-0.1957809329032898,
0.1190049946308136,
0.22331921756267548,
0.06280919909477234,
-0.021954292431473732,
-0.272602379322052,
0.22372248768806458,
0.27336645126342773,
0.15183986723423004,
0.17838674783706665,
-0.010950978845357895,
-0.04324349761009216,
0.3684875965118408,
0.34897297620773315,
-0.02533140406012535,
0.41160041093826294,
0.3529874384403229,
-0.08655010163784027,
0.0425221212208271,
0.036326467990875244,
0.11211971938610077,
0.03950623422861099,
-0.08969473093748093,
0.13299454748630524,
-0.1452876627445221,
-0.6623028516769409,
0.03204921633005142,
0.14800982177257538,
0.3037307858467102,
-0.492302268743515,
0.2677824795246124,
-0.39397698640823364,
0.0531446672976017,
-0.30421045422554016,
0.2357543706893921,
0.124234139919281,
0.2263367772102356,
0.10904479026794434,
-0.09142552316188812,
0.19035741686820984,
-0.11923714727163315,
-0.09248730540275574,
-0.1650366187095642,
-0.0067228227853775024,
0.11854119598865509,
0.3353762626647949,
0.37176600098609924,
-0.045358914881944656,
-0.37601420283317566,
-0.12439614534378052,
-0.10633163899183273,
0.40100955963134766,
-0.3481982350349426,
0.07695747911930084,
0.4122266471385956,
-0.2628345191478729,
-0.2899605631828308,
-0.1358061134815216,
0.07485605776309967,
0.04181499034166336,
0.3262097239494324,
-0.12381023168563843,
-0.49230340123176575,
0.11857873201370239,
0.42199817299842834,
0.008125340566039085,
0.11812521517276764,
-0.0038846349343657494,
-0.05889834836125374,
-0.18780308961868286,
-0.2951493561267853,
-0.011558324098587036,
-0.1458282172679901,
0.12250430136919022,
0.21502859890460968,
-0.01799982786178589,
-0.11493118107318878,
0.1004171147942543,
-0.08380275964736938,
-0.1668771356344223,
0.2862614691257477,
-0.12395123392343521,
0.1584714651107788,
0.1450294554233551,
0.3025131821632385,
0.2738066613674164,
0.3276346027851105,
-0.33748188614845276,
0.1992717981338501,
0.29324716329574585,
0.22560034692287445,
0.1761762797832489,
0.055247560143470764,
0.20080310106277466,
0.1537928283214569,
0.010555283166468143,
-0.19051624834537506,
-0.1788254678249359,
-0.3223811686038971,
0.08727770298719406,
0.05002891644835472,
-0.12192819267511368,
-0.38156837224960327,
0.0662228912115097,
0.1693701148033142,
-0.01104668527841568,
0.0616263709962368,
-0.36573588848114014,
-0.010244149714708328,
0.49813342094421387,
0.35206738114356995,
0.8710968494415283,
0.21961896121501923,
-0.046106453984975815,
0.09723121672868729,
-0.026317769661545753,
-0.22970564663410187,
0.30248868465423584,
-0.18043194711208344,
-0.29866117238998413,
0.004067814908921719,
-0.07449685037136078,
-0.12460891902446747,
-0.021566540002822876,
-0.015255153179168701,
-0.3948974609375,
0.023443954065442085,
-0.19974911212921143,
0.041967377066612244,
0.028236685320734978,
-0.05260264873504639,
-0.060700252652168274,
-0.1094832718372345,
0.293958842754364,
0.1608690619468689,
0.09298726916313171,
0.07982437312602997,
-0.06561335921287537,
-0.09195254743099213,
-0.24051238596439362,
-0.38051021099090576,
-0.15403635799884796,
0.14417529106140137,
-0.11376603692770004,
0.4462919235229492,
0.3543662428855896,
-0.2859049439430237,
0.13251641392707825,
0.36255526542663574,
-0.26756662130355835,
0.12171044945716858,
-0.06499632447957993,
-0.02340809255838394,
0.041926059871912,
0.1990354061126709,
0.2569914758205414,
-0.06536500155925751,
0.5327140688896179,
-0.008403303101658821,
-0.23212262988090515,
0.14574334025382996,
-0.09407719224691391,
-0.27417832612991333,
-0.08680370450019836,
0.3060581684112549,
0.31087440252304077,
-0.01821800507605076,
0.055696040391922,
-0.057049334049224854,
-0.17519401013851166,
-0.17226196825504303,
0.14878107607364655,
0.1978512555360794,
-0.17348074913024902,
0.2513154149055481,
0.09073986113071442,
-0.2189706414937973,
-0.08010596036911011,
0.4010273218154907,
0.4048638343811035,
0.5142772197723389,
0.3133557140827179,
-0.06605415791273117,
-0.11954428255558014,
-0.15255041420459747,
-0.3521788418292999,
-0.3539166748523712,
0.23963922262191772,
0.20173192024230957,
0.01848304085433483,
-0.14710912108421326,
-0.33260539174079895,
-0.09506793320178986,
0.08194122463464737,
0.27813786268234253,
-0.4085239768028259,
-0.27973824739456177,
-0.3357228636741638,
0.09742653369903564,
-0.12044745683670044,
0.21470953524112701,
-0.25884658098220825,
-0.037536412477493286,
-0.3156370520591736,
0.2042546570301056,
-0.32190611958503723,
0.03818473964929581,
-0.3997868001461029,
0.1722809225320816,
-0.1483062505722046,
-0.24815267324447632,
0.01823156699538231,
0.030765049159526825,
0.16738761961460114,
0.23041798174381256,
-0.28739026188850403,
-0.11219979077577591,
-0.24056443572044373,
0.08654582500457764,
0.14103975892066956,
-0.1369149535894394,
0.13077454268932343,
-0.1663818210363388,
0.07748980075120926,
-0.18978770077228546,
0.03259819746017456,
-0.15484660863876343,
-0.1185716986656189,
0.36417654156684875,
0.1978074610233307,
0.15579941868782043,
0.1883445680141449,
0.2656758427619934,
-0.14319494366645813,
0.28395694494247437,
-0.1587207019329071,
0.013291742652654648,
-0.22597019374370575,
-0.08386300504207611,
-0.08421792834997177,
0.07267694920301437,
-0.21821166574954987,
-0.23917809128761292,
0.2639331817626953,
-0.015074387192726135,
-0.19120094180107117,
-0.08650584518909454,
0.1725258231163025,
0.20492763817310333,
-0.37964722514152527,
-0.15305867791175842,
0.5407618880271912,
0.20504361391067505,
-0.004619501531124115,
-0.034104544669389725,
0.5727971792221069,
-0.09246060252189636,
0.2316608726978302,
0.306114137172699,
-0.15375694632530212,
-0.1879761517047882,
-0.15030741691589355,
-0.011799285188317299,
-0.347412645816803,
0.05281355232000351,
0.2156006097793579,
0.4500204622745514,
-0.1907600313425064,
0.15370334684848785,
0.15344218909740448,
-0.13423533737659454,
0.5434712171554565,
0.014411598443984985,
0.13494573533535004,
0.15740768611431122,
-0.0015678182244300842,
0.04443731531500816,
0.37951648235321045,
-0.4899706542491913,
0.4982149302959442,
0.617263913154602,
0.23855960369110107,
0.35349610447883606,
0.113644540309906,
0.17976757884025574,
-0.18039923906326294,
0.031092774122953415,
-0.16140951216220856,
0.20594173669815063,
-0.3470534682273865,
-0.018273841589689255,
-0.017569905146956444,
-0.12879706919193268,
0.002570703625679016,
0.03179938718676567,
-0.03310787305235863,
-0.14632855355739594,
0.22259248793125153,
0.10307324677705765,
-0.25223731994628906,
-0.36131539940834045,
-0.02937939018011093,
-0.19579294323921204,
0.019742585718631744,
-0.22029881179332733,
-0.05942916125059128,
0.12754835188388824,
0.1394573450088501,
-0.36283454298973083,
0.12339918315410614,
0.2021777480840683,
0.5606964230537415,
-0.4515576958656311,
-0.25359421968460083,
0.29515284299850464,
0.08716598898172379,
-0.2988339364528656,
0.1697479784488678,
-0.23222604393959045,
-0.17149393260478973,
0.4422871470451355,
0.07521595805883408,
-0.24496318399906158,
-0.18336747586727142,
0.1342608630657196,
0.492442786693573,
0.26433029770851135,
0.09721333533525467,
0.21301373839378357,
0.20478034019470215,
0.16330775618553162,
-0.20802727341651917,
-0.26056331396102905,
-0.15556767582893372,
0.19888566434383392,
-0.0063207559287548065,
0.3195682764053345,
0.07287756353616714,
0.09287787228822708,
-0.042535971850156784,
0.23829561471939087,
0.21525651216506958,
0.17456910014152527,
-0.04642480984330177,
-0.0878162607550621,
-0.269260972738266,
0.3507026731967926,
-0.13880164921283722,
-0.20813389122486115,
0.3059596121311188,
-0.01117275096476078,
0.06573672592639923,
0.15031032264232635,
-0.11548589169979095,
-0.2089879810810089,
0.16076263785362244,
0.4486097991466522,
-0.2906092405319214,
-0.1849915087223053,
-0.10596230626106262,
-0.151067852973938,
0.2687520980834961,
-0.5409831404685974,
0.13426323235034943,
0.14736494421958923,
0.07054373621940613,
-0.2318168729543686,
0.014069631695747375,
-0.011606043204665184,
0.3986548185348511,
0.425405353307724,
0.11474434286355972,
0.4639269709587097,
-0.1939549446105957,
-0.10574540495872498,
0.20565801858901978,
0.015728918835520744,
-0.02135084755718708,
-0.16918471455574036,
-0.11767913401126862,
0.36526352167129517,
-0.08496975898742676,
-0.23371358215808868,
-0.12840311229228973,
0.5321090221405029,
-0.106932133436203,
-0.18596813082695007,
-0.1602981984615326,
0.3123151361942291,
-0.013214603066444397,
0.02395874448120594,
-0.4056393802165985,
0.20579737424850464,
0.16618353128433228,
0.29693111777305603,
-0.065343476831913,
-0.23560680449008942,
0.7419949173927307,
0.06212272495031357,
-0.05409790948033333,
-0.12703488767147064,
0.020278513431549072,
-0.5549426078796387,
-0.16971229016780853,
-0.2463076114654541,
-0.12686865031719208,
0.21109338104724884,
0.1947374939918518,
-0.522110641002655,
-0.15029233694076538,
0.14504502713680267,
0.07150274515151978,
-0.20047539472579956,
0.6373543739318848,
-0.23666620254516602,
-0.3341541886329651,
0.2838113605976105,
-0.0978844091296196
] |
https://github.com/huggingface/datasets/issues/2643 | Enum used in map functions will raise a RecursionError with dill. | Hi ! I think your RecursionError comes from a different issue @BitcoinNLPer , could you open a separate issue please ?
Also which dataset are you using ? I tried loading `CodedotAI/code_clippy` but I get a different error
```python
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1615, in load_dataset
**config_kwargs,
File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1446, in load_dataset_builder
builder_cls = import_main_class(dataset_module.module_path)
File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 101, in import_main_class
module = importlib.import_module(module_path)
File "/Users/quentinlhoest/.virtualenvs/hf-datasets/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/quentinlhoest/.cache/huggingface/modules/datasets_modules/datasets/CodedotAI___code_clippy/d332f69d036e8c80f47bc9a96d676c3fa30cb50af7bb81e2d4d12e80b83efc4d/code_clippy.py", line 66, in <module>
url_elements = results.find_all("a")
AttributeError: 'NoneType' object has no attribute 'find_all'
``` | ## Describe the bug
Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from enum import Enum
class A(Enum):
a = 'a'
def main():
a = A.a
def f(x):
return {} if a == a.a else x
ds = load_dataset('cnn_dailymail', '3.0.0')['test']
ds = ds.map(f, num_proc=15)
if __name__ == "__main__":
main()
```
## Expected results
The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood.
## Actual results
```python
File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type
pickler.save_reduce(_create_type, (type(obj), obj.__name__,
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save
self.framer.commit_frame()
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame
if f.tell() >= self._FRAME_SIZE_TARGET or force:
RecursionError: maximum recursion depth exceeded while calling a Python object
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 3.0.0
| 144 | Enum used in map functions will raise a RecursionError with dill.
## Describe the bug
Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284
In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from enum import Enum
class A(Enum):
a = 'a'
def main():
a = A.a
def f(x):
return {} if a == a.a else x
ds = load_dataset('cnn_dailymail', '3.0.0')['test']
ds = ds.map(f, num_proc=15)
if __name__ == "__main__":
main()
```
## Expected results
The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood.
## Actual results
```python
File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type
pickler.save_reduce(_create_type, (type(obj), obj.__name__,
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save
self.framer.commit_frame()
File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame
if f.tell() >= self._FRAME_SIZE_TARGET or force:
RecursionError: maximum recursion depth exceeded while calling a Python object
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 3.0.0
Hi ! I think your RecursionError comes from a different issue @BitcoinNLPer , could you open a separate issue please ?
Also which dataset are you using ? I tried loading `CodedotAI/code_clippy` but I get a different error
```python
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1615, in load_dataset
**config_kwargs,
File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1446, in load_dataset_builder
builder_cls = import_main_class(dataset_module.module_path)
File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 101, in import_main_class
module = importlib.import_module(module_path)
File "/Users/quentinlhoest/.virtualenvs/hf-datasets/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/quentinlhoest/.cache/huggingface/modules/datasets_modules/datasets/CodedotAI___code_clippy/d332f69d036e8c80f47bc9a96d676c3fa30cb50af7bb81e2d4d12e80b83efc4d/code_clippy.py", line 66, in <module>
url_elements = results.find_all("a")
AttributeError: 'NoneType' object has no attribute 'find_all'
``` | [
0.10536050796508789,
0.1992540955543518,
0.04053202643990517,
0.1406988501548767,
-0.074371837079525,
-0.07834361493587494,
0.14776025712490082,
0.2337796837091446,
0.12631797790527344,
0.16906453669071198,
0.145333394408226,
0.9332157373428345,
-0.2908698618412018,
-0.3072981834411621,
-0.07833769172430038,
0.09344574809074402,
0.022367559373378754,
0.04552239552140236,
-0.6181131601333618,
-0.24567840993404388,
-0.33751407265663147,
-0.005242444574832916,
-0.10244708508253098,
-0.010089285671710968,
-0.21160176396369934,
0.22399938106536865,
0.047766558825969696,
0.4010351598262787,
0.0841139554977417,
-0.2200678139925003,
0.3333719074726105,
-0.0734497606754303,
0.1974623203277588,
0.3142178952693939,
-0.00011139166599605232,
0.08502484858036041,
0.1187562346458435,
-0.22744101285934448,
-0.3654651939868927,
-0.23953421413898468,
0.14749082922935486,
0.12261894345283508,
0.07264391332864761,
-0.4154757857322693,
0.2226356863975525,
0.3753209412097931,
-0.002573734149336815,
-0.2636494040489197,
-0.06216245889663696,
0.05436847731471062,
0.17183662950992584,
-0.13968119025230408,
0.21704046428203583,
0.0761602446436882,
0.44350969791412354,
-0.018286719918251038,
0.04481586068868637,
0.5206541419029236,
0.16536018252372742,
-0.30559614300727844,
-0.16434839367866516,
0.17223665118217468,
-0.0976959690451622,
-0.02541101723909378,
0.38833504915237427,
-0.11360875517129898,
0.6294158101081848,
-0.028845779597759247,
-0.1640147864818573,
0.2222030758857727,
-0.12903133034706116,
-0.28409600257873535,
-0.22954688966274261,
0.04017111659049988,
-0.0794379934668541,
-0.10172346234321594,
0.3087863326072693,
-0.018028341233730316,
-0.013356540352106094,
-0.0775611400604248,
0.12406980246305466,
-0.21598923206329346,
0.005678147077560425,
0.42788034677505493,
-0.16410481929779053,
0.5943021774291992,
0.13781286776065826,
0.16610416769981384,
0.2780689299106598,
-0.1684817671775818,
-0.19653746485710144,
0.1178518533706665,
0.10200686752796173,
0.09503292292356491,
-0.2208733707666397,
-0.09397907555103302,
0.28465861082077026,
-0.36015334725379944,
0.33536115288734436,
-0.1542602926492691,
0.01431672740727663,
0.10366407781839371,
-0.0685880109667778,
0.3336906433105469,
0.38991236686706543,
-0.14183396100997925,
-0.051656581461429596,
0.5599201321601868,
0.21554262936115265,
-0.11224401742219925,
0.03070276603102684,
0.36070412397384644,
0.060011982917785645,
0.09190644323825836,
-0.00836215727031231,
-0.11108765751123428,
0.011287838220596313,
-0.09541133791208267,
-0.10620450228452682,
0.4172789752483368,
-0.4747125804424286,
-0.11361280828714371,
0.13495540618896484,
0.12400197237730026,
-0.10585035383701324,
0.02118699625134468,
0.13413606584072113,
0.08970104157924652,
-0.05256481468677521,
0.4216710031032562,
-0.2110072374343872,
-0.006029387935996056,
0.02341897413134575,
-0.2131146490573883,
-0.1768057644367218,
0.054826680570840836,
0.2632887661457062,
0.07132747024297714,
0.13230007886886597,
-0.02237333171069622,
0.08259163796901703,
-0.2246844321489334,
0.17830726504325867,
0.10253119468688965,
-0.5080523490905762,
-0.08321276307106018,
0.2530030608177185,
-0.2604120373725891,
-0.2579993009567261,
0.25153133273124695,
-0.4531785845756531,
-0.09232640266418457,
-0.3719530403614044,
0.21415144205093384,
0.1512584686279297,
0.14207611978054047,
0.14658427238464355,
-0.11815948784351349,
0.3029903471469879,
-0.13724569976329803,
0.15522950887680054,
-0.41854941844940186,
-0.31117185950279236,
-0.24511092901229858,
0.07526475936174393,
-0.03098440170288086,
-0.07239710539579391,
-0.20129211246967316,
-0.2666211426258087,
0.15930351614952087,
0.1756729781627655,
-0.04904093220829964,
-0.18481995165348053,
-0.14143884181976318,
-0.2404542863368988,
0.2867940068244934,
-0.10299091786146164,
-0.1263522356748581,
-0.3646343946456909,
-0.06305734813213348,
-0.0521465465426445,
0.16916541755199432,
-0.25418615341186523,
-0.16374409198760986,
0.20213820040225983,
-0.2736370861530304,
0.5204456448554993,
0.17516857385635376,
0.11386428773403168,
-0.014207771047949791,
-0.32020312547683716,
-0.11339583992958069,
0.32788795232772827,
0.12095291912555695,
-0.1715015470981598,
-0.0926162526011467,
-0.2653787136077881,
-0.19638152420520782,
0.3977227509021759,
-0.2698430120944977,
0.040584176778793335,
0.1311580389738083,
0.10833695530891418,
0.0882655531167984,
0.06282946467399597,
-0.15359535813331604,
-0.3434669077396393,
0.19828972220420837,
-0.25587570667266846,
-0.021507009863853455,
0.01648785173892975,
-0.10047411173582077,
0.09639722853899002,
0.25805336236953735,
-0.035101596266031265,
-0.09730735421180725,
0.1891377866268158,
0.09944027662277222,
-0.10807327926158905,
-0.021637974306941032,
-0.0003865770995616913,
-0.32918548583984375,
-0.4009245038032532,
-0.02943895198404789,
0.05246354267001152,
0.302303671836853,
-0.23050807416439056,
-0.23220591247081757,
-0.2058907002210617,
0.16535840928554535,
-0.09190059453248978,
0.0035681133158504963,
-0.25168707966804504,
0.029070265591144562,
0.3874914050102234,
-0.5933547616004944,
-0.2805406451225281,
-0.05451720952987671,
-0.11675310879945755,
-0.274884968996048,
0.03684268519282341,
0.4684727191925049,
0.14549162983894348,
-0.2771622836589813,
0.24590042233467102,
0.17548498511314392,
0.17584985494613647,
0.12285985797643661,
0.06971684843301773,
0.22729669511318207,
-0.19982630014419556,
-0.11351725459098816,
-0.029024280607700348,
-0.37368330359458923,
-0.10196700692176819,
0.09346865117549896,
0.03451031818985939,
0.11486116796731949,
-0.03885059803724289,
-0.2529439330101013,
0.16791503131389618,
0.24728283286094666,
0.2872363030910492,
0.26803821325302124,
-0.1414111852645874,
0.08006972819566727,
0.16837389767169952,
0.056109387427568436,
0.11422751098871231,
-0.08797621726989746,
0.09766960144042969,
0.14238858222961426,
-0.11716938763856888,
0.11365190148353577,
-0.07366815954446793,
0.07546117156744003,
0.39816951751708984,
0.14574071764945984,
-0.06001133471727371,
0.04964752867817879,
-0.04125552624464035,
-0.28833475708961487,
-0.053686633706092834,
0.10213038325309753,
-0.06843984127044678,
0.07459050416946411,
-0.45670151710510254,
0.4747103750705719,
0.13333117961883545,
-0.5235560536384583,
-0.24588850140571594,
-0.21182909607887268,
-0.17015430331230164,
0.12948107719421387,
-0.5239453315734863,
0.21116334199905396,
-0.1791205257177353,
-0.44667190313339233,
0.19966603815555573,
-0.34406334161758423,
0.28589871525764465,
-0.3210591673851013,
-0.29670313000679016,
-0.023546503856778145,
0.15815450251102448,
-0.17906038463115692,
0.03748944774270058,
0.26271480321884155,
-0.3319721221923828,
0.03557855635881424,
-0.20127052068710327,
0.1469755470752716,
0.032461017370224,
0.1711263507604599,
0.27424055337905884,
0.09315676987171173,
-0.4386811852455139,
-0.4228982627391815,
0.13251590728759766,
0.13393571972846985,
-0.05866554379463196,
0.060103870928287506,
0.29634734988212585,
0.2722685635089874,
-0.22220149636268616,
-0.3065885007381439,
-0.19730694591999054,
-0.3845987617969513,
-0.20849983394145966,
0.07037955522537231,
0.4546928405761719,
0.27421656250953674,
-0.016064157709479332,
0.47584104537963867,
0.33242887258529663,
0.3127489387989044,
-0.32348012924194336,
0.37576693296432495,
0.20174892246723175,
-0.1626095026731491,
-0.20931531488895416,
-0.16371820867061615,
-0.5420069694519043,
0.08442652225494385,
0.11821475625038147,
-0.5454444289207458,
-0.20521090924739838,
0.18917448818683624,
0.0723089724779129,
-0.24910080432891846,
-0.1957809329032898,
0.1190049946308136,
0.22331921756267548,
0.06280919909477234,
-0.021954292431473732,
-0.272602379322052,
0.22372248768806458,
0.27336645126342773,
0.15183986723423004,
0.17838674783706665,
-0.010950978845357895,
-0.04324349761009216,
0.3684875965118408,
0.34897297620773315,
-0.02533140406012535,
0.41160041093826294,
0.3529874384403229,
-0.08655010163784027,
0.0425221212208271,
0.036326467990875244,
0.11211971938610077,
0.03950623422861099,
-0.08969473093748093,
0.13299454748630524,
-0.1452876627445221,
-0.6623028516769409,
0.03204921633005142,
0.14800982177257538,
0.3037307858467102,
-0.492302268743515,
0.2677824795246124,
-0.39397698640823364,
0.0531446672976017,
-0.30421045422554016,
0.2357543706893921,
0.124234139919281,
0.2263367772102356,
0.10904479026794434,
-0.09142552316188812,
0.19035741686820984,
-0.11923714727163315,
-0.09248730540275574,
-0.1650366187095642,
-0.0067228227853775024,
0.11854119598865509,
0.3353762626647949,
0.37176600098609924,
-0.045358914881944656,
-0.37601420283317566,
-0.12439614534378052,
-0.10633163899183273,
0.40100955963134766,
-0.3481982350349426,
0.07695747911930084,
0.4122266471385956,
-0.2628345191478729,
-0.2899605631828308,
-0.1358061134815216,
0.07485605776309967,
0.04181499034166336,
0.3262097239494324,
-0.12381023168563843,
-0.49230340123176575,
0.11857873201370239,
0.42199817299842834,
0.008125340566039085,
0.11812521517276764,
-0.0038846349343657494,
-0.05889834836125374,
-0.18780308961868286,
-0.2951493561267853,
-0.011558324098587036,
-0.1458282172679901,
0.12250430136919022,
0.21502859890460968,
-0.01799982786178589,
-0.11493118107318878,
0.1004171147942543,
-0.08380275964736938,
-0.1668771356344223,
0.2862614691257477,
-0.12395123392343521,
0.1584714651107788,
0.1450294554233551,
0.3025131821632385,
0.2738066613674164,
0.3276346027851105,
-0.33748188614845276,
0.1992717981338501,
0.29324716329574585,
0.22560034692287445,
0.1761762797832489,
0.055247560143470764,
0.20080310106277466,
0.1537928283214569,
0.010555283166468143,
-0.19051624834537506,
-0.1788254678249359,
-0.3223811686038971,
0.08727770298719406,
0.05002891644835472,
-0.12192819267511368,
-0.38156837224960327,
0.0662228912115097,
0.1693701148033142,
-0.01104668527841568,
0.0616263709962368,
-0.36573588848114014,
-0.010244149714708328,
0.49813342094421387,
0.35206738114356995,
0.8710968494415283,
0.21961896121501923,
-0.046106453984975815,
0.09723121672868729,
-0.026317769661545753,
-0.22970564663410187,
0.30248868465423584,
-0.18043194711208344,
-0.29866117238998413,
0.004067814908921719,
-0.07449685037136078,
-0.12460891902446747,
-0.021566540002822876,
-0.015255153179168701,
-0.3948974609375,
0.023443954065442085,
-0.19974911212921143,
0.041967377066612244,
0.028236685320734978,
-0.05260264873504639,
-0.060700252652168274,
-0.1094832718372345,
0.293958842754364,
0.1608690619468689,
0.09298726916313171,
0.07982437312602997,
-0.06561335921287537,
-0.09195254743099213,
-0.24051238596439362,
-0.38051021099090576,
-0.15403635799884796,
0.14417529106140137,
-0.11376603692770004,
0.4462919235229492,
0.3543662428855896,
-0.2859049439430237,
0.13251641392707825,
0.36255526542663574,
-0.26756662130355835,
0.12171044945716858,
-0.06499632447957993,
-0.02340809255838394,
0.041926059871912,
0.1990354061126709,
0.2569914758205414,
-0.06536500155925751,
0.5327140688896179,
-0.008403303101658821,
-0.23212262988090515,
0.14574334025382996,
-0.09407719224691391,
-0.27417832612991333,
-0.08680370450019836,
0.3060581684112549,
0.31087440252304077,
-0.01821800507605076,
0.055696040391922,
-0.057049334049224854,
-0.17519401013851166,
-0.17226196825504303,
0.14878107607364655,
0.1978512555360794,
-0.17348074913024902,
0.2513154149055481,
0.09073986113071442,
-0.2189706414937973,
-0.08010596036911011,
0.4010273218154907,
0.4048638343811035,
0.5142772197723389,
0.3133557140827179,
-0.06605415791273117,
-0.11954428255558014,
-0.15255041420459747,
-0.3521788418292999,
-0.3539166748523712,
0.23963922262191772,
0.20173192024230957,
0.01848304085433483,
-0.14710912108421326,
-0.33260539174079895,
-0.09506793320178986,
0.08194122463464737,
0.27813786268234253,
-0.4085239768028259,
-0.27973824739456177,
-0.3357228636741638,
0.09742653369903564,
-0.12044745683670044,
0.21470953524112701,
-0.25884658098220825,
-0.037536412477493286,
-0.3156370520591736,
0.2042546570301056,
-0.32190611958503723,
0.03818473964929581,
-0.3997868001461029,
0.1722809225320816,
-0.1483062505722046,
-0.24815267324447632,
0.01823156699538231,
0.030765049159526825,
0.16738761961460114,
0.23041798174381256,
-0.28739026188850403,
-0.11219979077577591,
-0.24056443572044373,
0.08654582500457764,
0.14103975892066956,
-0.1369149535894394,
0.13077454268932343,
-0.1663818210363388,
0.07748980075120926,
-0.18978770077228546,
0.03259819746017456,
-0.15484660863876343,
-0.1185716986656189,
0.36417654156684875,
0.1978074610233307,
0.15579941868782043,
0.1883445680141449,
0.2656758427619934,
-0.14319494366645813,
0.28395694494247437,
-0.1587207019329071,
0.013291742652654648,
-0.22597019374370575,
-0.08386300504207611,
-0.08421792834997177,
0.07267694920301437,
-0.21821166574954987,
-0.23917809128761292,
0.2639331817626953,
-0.015074387192726135,
-0.19120094180107117,
-0.08650584518909454,
0.1725258231163025,
0.20492763817310333,
-0.37964722514152527,
-0.15305867791175842,
0.5407618880271912,
0.20504361391067505,
-0.004619501531124115,
-0.034104544669389725,
0.5727971792221069,
-0.09246060252189636,
0.2316608726978302,
0.306114137172699,
-0.15375694632530212,
-0.1879761517047882,
-0.15030741691589355,
-0.011799285188317299,
-0.347412645816803,
0.05281355232000351,
0.2156006097793579,
0.4500204622745514,
-0.1907600313425064,
0.15370334684848785,
0.15344218909740448,
-0.13423533737659454,
0.5434712171554565,
0.014411598443984985,
0.13494573533535004,
0.15740768611431122,
-0.0015678182244300842,
0.04443731531500816,
0.37951648235321045,
-0.4899706542491913,
0.4982149302959442,
0.617263913154602,
0.23855960369110107,
0.35349610447883606,
0.113644540309906,
0.17976757884025574,
-0.18039923906326294,
0.031092774122953415,
-0.16140951216220856,
0.20594173669815063,
-0.3470534682273865,
-0.018273841589689255,
-0.017569905146956444,
-0.12879706919193268,
0.002570703625679016,
0.03179938718676567,
-0.03310787305235863,
-0.14632855355739594,
0.22259248793125153,
0.10307324677705765,
-0.25223731994628906,
-0.36131539940834045,
-0.02937939018011093,
-0.19579294323921204,
0.019742585718631744,
-0.22029881179332733,
-0.05942916125059128,
0.12754835188388824,
0.1394573450088501,
-0.36283454298973083,
0.12339918315410614,
0.2021777480840683,
0.5606964230537415,
-0.4515576958656311,
-0.25359421968460083,
0.29515284299850464,
0.08716598898172379,
-0.2988339364528656,
0.1697479784488678,
-0.23222604393959045,
-0.17149393260478973,
0.4422871470451355,
0.07521595805883408,
-0.24496318399906158,
-0.18336747586727142,
0.1342608630657196,
0.492442786693573,
0.26433029770851135,
0.09721333533525467,
0.21301373839378357,
0.20478034019470215,
0.16330775618553162,
-0.20802727341651917,
-0.26056331396102905,
-0.15556767582893372,
0.19888566434383392,
-0.0063207559287548065,
0.3195682764053345,
0.07287756353616714,
0.09287787228822708,
-0.042535971850156784,
0.23829561471939087,
0.21525651216506958,
0.17456910014152527,
-0.04642480984330177,
-0.0878162607550621,
-0.269260972738266,
0.3507026731967926,
-0.13880164921283722,
-0.20813389122486115,
0.3059596121311188,
-0.01117275096476078,
0.06573672592639923,
0.15031032264232635,
-0.11548589169979095,
-0.2089879810810089,
0.16076263785362244,
0.4486097991466522,
-0.2906092405319214,
-0.1849915087223053,
-0.10596230626106262,
-0.151067852973938,
0.2687520980834961,
-0.5409831404685974,
0.13426323235034943,
0.14736494421958923,
0.07054373621940613,
-0.2318168729543686,
0.014069631695747375,
-0.011606043204665184,
0.3986548185348511,
0.425405353307724,
0.11474434286355972,
0.4639269709587097,
-0.1939549446105957,
-0.10574540495872498,
0.20565801858901978,
0.015728918835520744,
-0.02135084755718708,
-0.16918471455574036,
-0.11767913401126862,
0.36526352167129517,
-0.08496975898742676,
-0.23371358215808868,
-0.12840311229228973,
0.5321090221405029,
-0.106932133436203,
-0.18596813082695007,
-0.1602981984615326,
0.3123151361942291,
-0.013214603066444397,
0.02395874448120594,
-0.4056393802165985,
0.20579737424850464,
0.16618353128433228,
0.29693111777305603,
-0.065343476831913,
-0.23560680449008942,
0.7419949173927307,
0.06212272495031357,
-0.05409790948033333,
-0.12703488767147064,
0.020278513431549072,
-0.5549426078796387,
-0.16971229016780853,
-0.2463076114654541,
-0.12686865031719208,
0.21109338104724884,
0.1947374939918518,
-0.522110641002655,
-0.15029233694076538,
0.14504502713680267,
0.07150274515151978,
-0.20047539472579956,
0.6373543739318848,
-0.23666620254516602,
-0.3341541886329651,
0.2838113605976105,
-0.0978844091296196
] |
https://github.com/huggingface/datasets/issues/2642 | Support multi-worker with streaming dataset (IterableDataset). | Hi ! This is a great idea :)
I think we could have something similar to what we have in `datasets.Dataset.map`, i.e. a `num_proc` parameter that tells how many processes to spawn to parallelize the data processing.
Regarding AUTOTUNE, this could be a nice feature as well, we could see how to add it in a second step | **Is your feature request related to a problem? Please describe.**
The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking).
**Describe the solution you'd like**
Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`.
**Describe alternatives you've considered**
A simpler solution is to shard the dataset and process it in parallel with pytorch dataloader. The shard does not need to be of equal size.
* https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset
**Additional context**
| 58 | Support multi-worker with streaming dataset (IterableDataset).
**Is your feature request related to a problem? Please describe.**
The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking).
**Describe the solution you'd like**
Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`.
**Describe alternatives you've considered**
A simpler solution is to shard the dataset and process it in parallel with pytorch dataloader. The shard does not need to be of equal size.
* https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset
**Additional context**
Hi ! This is a great idea :)
I think we could have something similar to what we have in `datasets.Dataset.map`, i.e. a `num_proc` parameter that tells how many processes to spawn to parallelize the data processing.
Regarding AUTOTUNE, this could be a nice feature as well, we could see how to add it in a second step | [
-0.6293721199035645,
-0.526218831539154,
-0.14244067668914795,
-0.04204916954040527,
-0.19271744787693024,
-0.01043061912059784,
0.5165581703186035,
0.17827971279621124,
0.08271831274032593,
0.14804647862911224,
-0.08475583791732788,
0.302012175321579,
-0.268770307302475,
0.26690515875816345,
-0.08264750987291336,
-0.2372145652770996,
-0.12502816319465637,
0.06431964784860611,
-0.0082344189286232,
0.2308468371629715,
-0.12495676428079605,
0.0046400949358940125,
-0.1339983344078064,
-0.20448268949985504,
-0.34203216433525085,
-0.09328663349151611,
-0.018815267831087112,
0.03790011629462242,
0.31724822521209717,
-0.2443898320198059,
0.06037432700395584,
0.43439504504203796,
0.13053396344184875,
0.5852195620536804,
-0.00010765409388113767,
-0.09300296753644943,
0.1798296570777893,
-0.00038817524909973145,
-0.08988070487976074,
0.05900076776742935,
-0.07781282067298889,
-0.10355179756879807,
0.06305793672800064,
-0.34426313638687134,
-0.059642642736434937,
-0.2667039632797241,
0.1754976212978363,
-0.40426090359687805,
0.20376285910606384,
-0.1677057445049286,
0.16247625648975372,
0.375733882188797,
-0.18459996581077576,
0.10890525579452515,
-0.31346747279167175,
-0.001609213650226593,
-0.1212616115808487,
0.06943827122449875,
0.6291934251785278,
0.03758911043405533,
-0.3766748607158661,
0.3427780866622925,
-0.2514382004737854,
0.37034228444099426,
0.2419779896736145,
-0.1848532110452652,
-0.34779271483421326,
-0.48358651995658875,
0.08801978081464767,
0.3975023925304413,
0.2647566795349121,
-0.2432527244091034,
-0.17544925212860107,
-0.41123974323272705,
-0.1313704401254654,
-0.06726112961769104,
-0.056901492178440094,
0.1599913090467453,
-0.22044344246387482,
-0.0761081874370575,
-0.34394732117652893,
-0.08794914186000824,
-0.21086421608924866,
0.10953642427921295,
0.15640376508235931,
0.31575846672058105,
0.08343639969825745,
0.27586379647254944,
0.260576069355011,
0.11593374609947205,
0.32857468724250793,
-0.10678088665008545,
0.3322061598300934,
0.13729965686798096,
-0.48305177688598633,
-0.23227263987064362,
-0.09320741146802902,
-0.45949432253837585,
0.17240890860557556,
-0.037272125482559204,
0.23544347286224365,
0.3031924068927765,
-0.14673729240894318,
0.31024879217147827,
0.31349655985832214,
-0.2739821672439575,
-0.2789572775363922,
-0.11715537309646606,
0.4016437530517578,
-0.18006743490695953,
-0.10070419311523438,
0.07917693257331848,
0.10899240523576736,
-0.35748258233070374,
0.3322722017765045,
0.2111252248287201,
0.1256033033132553,
0.3532760441303253,
0.14718109369277954,
-0.394115686416626,
-0.14624372124671936,
-0.29771682620048523,
-0.06369438767433167,
0.10531238466501236,
-0.06475207954645157,
0.36143749952316284,
-0.11024826020002365,
-0.18956498801708221,
-0.060904793441295624,
-0.2694213390350342,
-0.010817277245223522,
-0.26524049043655396,
-0.030639830976724625,
0.13681912422180176,
0.2078421264886856,
-0.5171917080879211,
0.2112826406955719,
-0.018869441002607346,
0.31914639472961426,
0.2308344841003418,
0.3875930905342102,
-0.2626327574253082,
0.22419226169586182,
0.033689554780721664,
0.026763740926980972,
-0.001643231138586998,
-0.18489138782024384,
0.514352560043335,
-0.18683816492557526,
0.3826095759868622,
-0.24189692735671997,
-0.5341446399688721,
-0.003077717497944832,
0.1260262429714203,
0.04263920336961746,
-0.026114754378795624,
-0.17060944437980652,
0.32093545794487,
0.2911278009414673,
-0.23228777945041656,
-0.04504922777414322,
-0.08294448256492615,
-0.3704199492931366,
-0.26168835163116455,
0.10993693023920059,
0.14388732612133026,
0.0900038629770279,
-0.014194007962942123,
-0.017615294083952904,
0.052084557712078094,
0.06043395400047302,
0.2784424126148224,
-0.2516743242740631,
-0.11488009244203568,
-0.12092602998018265,
0.2565873861312866,
0.25218087434768677,
-0.06233247369527817,
-0.12814684212207794,
0.5759636759757996,
-0.1012861430644989,
0.06707096844911575,
0.22913846373558044,
0.4602630138397217,
0.4873192310333252,
-0.10045260936021805,
0.049988411366939545,
0.4320581555366516,
-0.36817625164985657,
0.32796984910964966,
-0.13287067413330078,
-0.23497126996517181,
0.2222045660018921,
0.4411788582801819,
0.2141231745481491,
-0.12051961570978165,
-0.03399074822664261,
-0.32427072525024414,
0.392334520816803,
-0.1728549748659134,
0.282269686460495,
0.007750362157821655,
-0.018365729600191116,
0.042802996933460236,
0.10390934348106384,
-0.49529704451560974,
-0.43260064721107483,
0.17709261178970337,
0.14759665727615356,
-0.1315748691558838,
0.30824369192123413,
-0.18408671021461487,
0.2749664783477783,
-0.12518616020679474,
-0.12111571431159973,
-0.16848604381084442,
0.05965448170900345,
0.16396118700504303,
-0.23236815631389618,
-0.4080905318260193,
-0.5029201507568359,
0.20637041330337524,
-0.0860888659954071,
-0.2651175558567047,
-0.18243350088596344,
0.187177836894989,
0.14421109855175018,
-0.08662094920873642,
-0.13989651203155518,
-0.014000967144966125,
-0.06669194251298904,
-0.1611417979001999,
-0.003109840676188469,
0.2786310315132141,
-0.13348764181137085,
0.2993045449256897,
0.08580556511878967,
0.5260655283927917,
0.451882004737854,
-0.1562729775905609,
0.04584288224577904,
0.24269263446331024,
-0.1348729431629181,
-0.20620185136795044,
-0.00901138037443161,
0.18455424904823303,
-0.33687978982925415,
0.21941258013248444,
0.041712746024131775,
-0.011358874849975109,
0.2030809074640274,
0.06691910326480865,
-0.17308099567890167,
0.19924116134643555,
-0.05255546793341637,
-0.3027154803276062,
0.07365088164806366,
-0.00287659652531147,
-0.5791727900505066,
0.2516583204269409,
0.3946073353290558,
0.10654622316360474,
-0.01277276873588562,
0.08873651921749115,
-0.11181127279996872,
0.010601460933685303,
0.1834915578365326,
0.10432936251163483,
0.35386157035827637,
0.26243698596954346,
0.14187759160995483,
-0.10684817284345627,
0.19296424090862274,
-0.09492239356040955,
-0.005133405327796936,
0.024187251925468445,
0.34795475006103516,
0.27289605140686035,
0.09870797395706177,
-0.01237738411873579,
-0.0414280891418457,
-0.4256397485733032,
0.2487674355506897,
-0.016484515741467476,
0.039293717592954636,
-0.015385705046355724,
0.0869060605764389,
-0.0173121877014637,
-0.0803799107670784,
-0.16489021480083466,
-0.03413921222090721,
-0.020999668166041374,
0.16126663982868195,
0.7649845480918884,
-0.10869333148002625,
0.33682751655578613,
0.18699663877487183,
0.1899266093969345,
0.0012889113277196884,
-0.20533402264118195,
-0.10985316336154938,
-0.20620037615299225,
0.27139002084732056,
0.1082150936126709,
0.1666264533996582,
-0.23586589097976685,
0.4359213709831238,
0.305479496717453,
-0.04455478861927986,
-0.42604565620422363,
-0.048270903527736664,
-0.0027313977479934692,
0.07704058289527893,
-0.20293650031089783,
0.02779645472764969,
0.12102025747299194,
0.20248977839946747,
-0.20307953655719757,
0.05916967615485191,
-0.3240247368812561,
0.04673245549201965,
-0.10959497094154358,
0.014464842155575752,
0.010242477059364319,
-0.053356047719717026,
-0.21542435884475708,
-0.2746196985244751,
-0.46141114830970764,
0.30685099959373474,
-0.19972684979438782,
0.3495418429374695,
-0.10976244509220123,
0.0805513933300972,
-0.1313740611076355,
0.38156843185424805,
-0.15665078163146973,
-0.018726011738181114,
-0.44051414728164673,
0.21834857761859894,
-0.3194649815559387,
-0.17495067417621613,
-0.0687197595834732,
0.06931030750274658,
0.10514281690120697,
0.4950215220451355,
-0.15729588270187378,
-0.1464730054140091,
-0.14287330210208893,
0.22850656509399414,
-0.1550748646259308,
-0.014803720638155937,
0.4700104892253876,
0.22092941403388977,
-0.05595578998327255,
0.03303712606430054,
0.036232803016901016,
-0.033656276762485504,
0.22122502326965332,
-0.17672884464263916,
0.3686836063861847,
0.19567778706550598,
0.22417938709259033,
0.9834299683570862,
0.2730427384376526,
-0.19336898624897003,
0.17263369262218475,
-0.09705590456724167,
-0.2342127114534378,
-0.02133050560951233,
-0.43079909682273865,
0.11778901517391205,
-0.31697776913642883,
0.12755171954631805,
0.24728348851203918,
-0.16830238699913025,
-0.40300220251083374,
-0.06692174077033997,
-0.1508391797542572,
-0.09752091020345688,
-0.09799443185329437,
0.4519287943840027,
-0.25209975242614746,
0.5229313969612122,
-0.2508046329021454,
-0.23539522290229797,
-0.29055431485176086,
-0.08542893081903458,
-0.0017173802480101585,
-0.05914239585399628,
0.53251713514328,
-0.2169795036315918,
0.18759337067604065,
0.28965213894844055,
-0.3857782483100891,
0.21801117062568665,
0.27008867263793945,
0.11157303303480148,
0.021134760230779648,
-0.030800098553299904,
0.18015658855438232,
-0.022209160029888153,
0.5902084708213806,
-0.180959090590477,
-0.008511446416378021,
-0.11729496717453003,
-0.4298486113548279,
-0.17853562533855438,
0.12087704241275787,
-0.021999875083565712,
0.5310913920402527,
0.18811246752738953,
0.3519921600818634,
-0.30068883299827576,
-0.33873826265335083,
0.168113574385643,
-0.04917219281196594,
-0.20684368908405304,
-0.5010204911231995,
-0.14665035903453827,
0.09972808510065079,
-0.3303321301937103,
0.05757109448313713,
0.287967711687088,
-0.010107934474945068,
-0.04308970272541046,
-0.3219870328903198,
0.026661809533834457,
-0.07254190742969513,
-0.0972079336643219,
0.0893387496471405,
-0.1573420763015747,
0.03914003074169159,
0.2516457438468933,
0.2952631711959839,
0.0998370349407196,
-0.010231630876660347,
0.16870594024658203,
-0.03941258415579796,
-0.29952389001846313,
0.19234326481819153,
0.02153751626610756,
0.33958300948143005,
0.14120660722255707,
0.07330131530761719,
0.12171430140733719,
0.30946409702301025,
0.3474082350730896,
-0.3580635190010071,
-0.06978309899568558,
0.1916177123785019,
0.16636922955513,
-0.24137108027935028,
-0.5865662097930908,
0.13943353295326233,
-0.06142583116889,
0.021254412829875946,
0.7402997612953186,
-0.6871581673622131,
-0.009741798043251038,
0.03065868839621544,
0.21263852715492249,
0.7318963408470154,
-0.17720292508602142,
-0.007323462516069412,
-0.2439950406551361,
-0.10935496538877487,
-0.02842303179204464,
-0.6782628893852234,
0.29529738426208496,
-0.39014747738838196,
-0.3920978903770447,
0.012379439547657967,
-0.011121794581413269,
-0.049386270344257355,
0.31224524974823,
-0.17223170399665833,
0.08357435464859009,
0.4423428177833557,
0.13142496347427368,
-0.028304999694228172,
0.5326047539710999,
-0.18275967240333557,
-0.4784119129180908,
0.19029295444488525,
0.10071532428264618,
-0.18420924246311188,
-0.06905972957611084,
-0.050068434327840805,
-0.23474138975143433,
0.478738397359848,
0.18935126066207886,
-0.3163776993751526,
-0.1800212562084198,
-0.33345192670822144,
0.20924603939056396,
-0.1788119673728943,
-0.15912610292434692,
0.1755998730659485,
0.30891257524490356,
-0.03533229976892471,
-0.24074314534664154,
-0.17260107398033142,
-0.036351028829813004,
0.10602932423353195,
0.1997063159942627,
-0.2126329094171524,
-0.20049507915973663,
0.2052832692861557,
-0.18765172362327576,
-0.3720925748348236,
0.18470638990402222,
0.07952330261468887,
-0.7108383774757385,
-0.11374635994434357,
0.18628329038619995,
0.24199944734573364,
-0.05306263267993927,
0.0024893414229154587,
0.14667747914791107,
-0.32836979627609253,
-0.08689709007740021,
0.08642858266830444,
0.1477685570716858,
-0.2835683822631836,
0.39465245604515076,
-0.1098795235157013,
-0.014618046581745148,
0.01946459896862507,
0.22223258018493652,
0.25731876492500305,
0.1654963344335556,
0.10476269572973251,
0.19185574352741241,
-0.1148465946316719,
-0.15791340172290802,
-0.07952622324228287,
-0.06923623383045197,
-0.23918864130973816,
0.1350429654121399,
0.04124889895319939,
-0.06975271552801132,
-0.013754373416304588,
0.026021260768175125,
-0.1451539695262909,
0.32030928134918213,
-0.45744550228118896,
-0.181299090385437,
-0.3838825821876526,
-0.049251049757003784,
-0.12821897864341736,
0.2407488226890564,
0.1523817777633667,
0.18353915214538574,
0.2417336106300354,
0.27741098403930664,
-0.36760732531547546,
0.0033950868528336287,
0.03038329817354679,
0.11781594902276993,
0.3157608211040497,
0.0077408552169799805,
0.03288871794939041,
0.1178869754076004,
-0.012073976919054985,
0.1400616466999054,
-0.22025449573993683,
-0.20530608296394348,
0.005427917465567589,
0.13103541731834412,
-0.002832125872373581,
-0.13038991391658783,
-0.13972456753253937,
-0.3036537766456604,
-0.42151767015457153,
-0.29418930411338806,
0.38740742206573486,
0.007346343249082565,
-0.1853872388601303,
0.15048596262931824,
0.34896862506866455,
-0.17146673798561096,
-0.3820738196372986,
0.1257568746805191,
0.012714959681034088,
-0.011070288717746735,
-0.13029402494430542,
0.18070261180400848,
0.19365300238132477,
-0.07856472581624985,
0.11382926255464554,
-0.006094418466091156,
0.48774051666259766,
0.07901498675346375,
0.2957891821861267,
-0.0931202620267868,
-0.008385099470615387,
-0.026430273428559303,
0.543142557144165,
0.08525849878787994,
0.011399755254387856,
0.057285092771053314,
0.10599267482757568,
0.23800966143608093,
-0.2243831902742386,
-0.09632956981658936,
0.25889986753463745,
-0.013398260809481144,
0.3597094714641571,
0.04779333621263504,
0.11115096509456635,
0.27325987815856934,
0.27167099714279175,
0.08935598284006119,
0.06527264416217804,
-0.6158897280693054,
0.10825622081756592,
0.05343153700232506,
0.03127117082476616,
-0.007178779691457748,
0.19993114471435547,
-0.010748561471700668,
0.10785826295614243,
0.1145014613866806,
-0.0024116486310958862,
0.46640413999557495,
0.34444281458854675,
-0.029110055416822433,
0.427768737077713,
-0.1750672608613968,
-0.1497742086648941,
-0.24475717544555664,
0.054422132670879364,
0.20614659786224365,
0.1318279504776001,
0.38186851143836975,
-0.1328711211681366,
-0.31230950355529785,
-0.1352180391550064,
0.2957090735435486,
-0.08329593390226364,
0.08016009628772736,
0.14021886885166168,
-0.09164400398731232,
0.04912137985229492,
0.1167820543050766,
0.0031896382570266724,
0.15273523330688477,
0.5788418054580688,
0.14173494279384613,
0.0299207903444767,
-0.11544965207576752,
-0.11525657027959824,
0.16182373464107513,
0.4018127918243408,
-0.1014016792178154,
0.0352480448782444,
0.26051509380340576,
-0.08764486014842987,
-0.18655864894390106,
0.37382078170776367,
-0.011405941098928452,
0.22883450984954834,
-0.28903475403785706,
0.30834075808525085,
-0.19425107538700104,
0.04930625855922699,
-0.06168746203184128,
0.13052508234977722,
0.031006120145320892,
-0.1848924309015274,
0.27184417843818665,
0.08624051511287689,
-0.1359890103340149,
0.14005281031131744,
0.07788387686014175,
-0.05332263186573982,
-0.1775749921798706,
-0.052257321774959564,
0.16198043525218964,
-0.3829638659954071,
0.09483915567398071,
-0.13587859272956848,
-0.30948901176452637,
-0.19898222386837006,
0.39705178141593933,
-0.5590797066688538,
-0.01725374162197113,
-0.06779349595308304,
0.09711851924657822,
-0.03623481094837189,
0.5721189975738525,
-0.04646553471684456,
0.12125922739505768,
-0.16247232258319855,
-0.08920171856880188,
-0.4362137019634247,
0.1404666155576706,
0.0510178878903389,
0.16982075572013855,
0.0484592504799366,
0.16332632303237915,
0.09679146856069565,
0.24675361812114716,
0.1776275336742401,
-0.23213912546634674,
0.22961843013763428,
0.5826241970062256,
-0.26575034856796265,
0.00823986530303955,
-0.18661044538021088,
0.18398316204547882,
0.25053897500038147,
-0.2351410686969757,
0.1752399206161499,
-0.00011574756354093552,
0.07796787470579147,
-0.13949064910411835,
-0.19771282374858856,
0.23929789662361145,
-0.11817662417888641,
0.3051760792732239,
-0.03235890716314316,
0.15048722922801971,
-0.19561037421226501,
0.1657877117395401,
0.018893558531999588,
0.13869838416576385,
-0.25869470834732056,
0.15839722752571106,
0.4099111557006836,
0.21719631552696228,
-0.14109787344932556,
-0.22944872081279755,
-0.46576836705207825,
0.18760667741298676,
-0.24572455883026123,
-0.06983336806297302,
-0.04270242899656296,
-0.08915871381759644,
-0.11891726404428482,
0.15199853479862213,
-0.0827869400382042,
0.4181876480579376,
-0.005067247897386551,
-0.17244316637516022,
-0.36209356784820557,
-0.14713184535503387,
0.29093724489212036,
-0.3971109986305237,
-0.34328991174697876,
-0.21648651361465454,
0.12056513130664825,
0.2122367024421692,
0.305452436208725,
-0.32818424701690674,
-0.09522915631532669,
0.2278413474559784,
0.09350797533988953,
-0.06815967708826065,
0.29933056235313416,
-0.0034041116014122963,
-0.15404964983463287,
-0.05746110528707504,
0.020473461598157883,
0.1408083289861679,
-0.18393352627754211,
-0.18610194325447083,
-0.37616485357284546
] |
https://github.com/huggingface/datasets/issues/2642 | Support multi-worker with streaming dataset (IterableDataset). | Not yet, I'm happy to provide some guidance if someone wants to give it a shot though.
The code that applies the `map` function is in `iterable_dataset.py`, in `MappedExamplesIterable.__iter__` | **Is your feature request related to a problem? Please describe.**
The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking).
**Describe the solution you'd like**
Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`.
**Describe alternatives you've considered**
A simpler solution is to shard the dataset and process it in parallel with pytorch dataloader. The shard does not need to be of equal size.
* https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset
**Additional context**
| 29 | Support multi-worker with streaming dataset (IterableDataset).
**Is your feature request related to a problem? Please describe.**
The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking).
**Describe the solution you'd like**
Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`.
**Describe alternatives you've considered**
A simpler solution is to shard the dataset and process it in parallel with pytorch dataloader. The shard does not need to be of equal size.
* https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset
**Additional context**
Not yet, I'm happy to provide some guidance if someone wants to give it a shot though.
The code that applies the `map` function is in `iterable_dataset.py`, in `MappedExamplesIterable.__iter__` | [
-0.6218912601470947,
-0.5001689195632935,
-0.1078106164932251,
-0.07974588871002197,
-0.13024668395519257,
-0.004702448844909668,
0.5700687170028687,
0.19281511008739471,
0.1534992754459381,
0.059514451771974564,
-0.20384721457958221,
0.3409012258052826,
-0.25670990347862244,
0.19601473212242126,
-0.058896951377391815,
-0.13414210081100464,
-0.16326534748077393,
0.13072754442691803,
-0.1035243421792984,
0.14215877652168274,
-0.18352767825126648,
0.04326273500919342,
-0.18742908537387848,
-0.16674025356769562,
-0.2567247748374939,
-0.10970287770032883,
0.019971517845988274,
0.04394879937171936,
0.3418715000152588,
-0.17763637006282806,
0.19087816774845123,
0.3909582793712616,
0.05026935040950775,
0.6101276278495789,
-0.00010729175119195133,
-0.05196972191333771,
0.1404103934764862,
-0.032667018473148346,
-0.07617738842964172,
-0.003607422113418579,
-0.018146663904190063,
-0.06370609998703003,
0.04623574763536453,
-0.33739766478538513,
-0.049820855259895325,
-0.241343155503273,
0.1535315215587616,
-0.3639722168445587,
0.274780809879303,
-0.10275489836931229,
0.17621012032032013,
0.35402682423591614,
-0.14764243364334106,
0.10708633810281754,
-0.2080751657485962,
-0.05607226490974426,
-0.08556409180164337,
0.05870011821389198,
0.612415075302124,
-0.046294547617435455,
-0.3430406451225281,
0.37572336196899414,
-0.2993447780609131,
0.37112459540367126,
0.19642692804336548,
-0.21300995349884033,
-0.36552882194519043,
-0.43751487135887146,
0.12555333971977234,
0.368723601102829,
0.19768303632736206,
-0.2274291217327118,
-0.1612899899482727,
-0.38507214188575745,
-0.1695576310157776,
-0.08888661861419678,
0.01660929247736931,
0.15147097408771515,
-0.26527437567710876,
-0.10416272282600403,
-0.35464024543762207,
-0.08212672173976898,
-0.19209985435009003,
0.14706507325172424,
0.08644700050354004,
0.34371837973594666,
0.033958300948143005,
0.24754232168197632,
0.2997988164424896,
0.07207444310188293,
0.35136136412620544,
-0.05727047473192215,
0.3395991921424866,
0.22816181182861328,
-0.5627320408821106,
-0.22201929986476898,
-0.048426464200019836,
-0.4384101331233978,
0.12549322843551636,
-0.04979631304740906,
0.20524737238883972,
0.2870792746543884,
-0.16184760630130768,
0.2525332570075989,
0.29306694865226746,
-0.20572687685489655,
-0.3743320405483246,
-0.0033646789379417896,
0.3299214839935303,
-0.09819040447473526,
-0.18477505445480347,
0.03569292277097702,
0.08154866099357605,
-0.3931068480014801,
0.312450110912323,
0.1554960310459137,
0.1869487464427948,
0.3119664490222931,
0.0732806921005249,
-0.4443945288658142,
-0.18177548050880432,
-0.26100587844848633,
-0.04508636146783829,
0.19792121648788452,
-0.08630988746881485,
0.2821098864078522,
-0.09021279215812683,
-0.08071885257959366,
-0.10381320118904114,
-0.18862491846084595,
-0.03121735341846943,
-0.1766052544116974,
0.03510354086756706,
0.07607249170541763,
0.22542764246463776,
-0.5895862579345703,
0.22676891088485718,
-0.057604577392339706,
0.3204498887062073,
0.23526298999786377,
0.3820231258869171,
-0.30112698674201965,
0.2996855676174164,
0.04774351045489311,
0.044548649340867996,
0.07883474230766296,
-0.11626726388931274,
0.4803846478462219,
-0.11451549828052521,
0.36419159173965454,
-0.28931891918182373,
-0.5258319973945618,
0.10898270457983017,
0.13835102319717407,
0.04163450747728348,
-0.023090898990631104,
-0.08377394825220108,
0.24432353675365448,
0.3566599488258362,
-0.23295506834983826,
0.023369200527668,
-0.17147810757160187,
-0.3363526463508606,
-0.24738189578056335,
0.12109603732824326,
0.11062680184841156,
0.09464368224143982,
-0.05392150580883026,
-0.03094397857785225,
0.09828194975852966,
0.09611839056015015,
0.23279955983161926,
-0.23269027471542358,
-0.1573065221309662,
-0.1560237556695938,
0.18657387793064117,
0.3010155260562897,
-0.08619130402803421,
-0.23409408330917358,
0.5657339096069336,
-0.10740576684474945,
0.15478934347629547,
0.18759304285049438,
0.41487348079681396,
0.4705868363380432,
-0.13090655207633972,
0.05325206369161606,
0.5033522248268127,
-0.3019779324531555,
0.3004310131072998,
-0.11544674634933472,
-0.1305912882089615,
0.2555162310600281,
0.40411609411239624,
0.26282137632369995,
-0.13708394765853882,
-0.10612737387418747,
-0.24227149784564972,
0.4101150929927826,
-0.15823474526405334,
0.3100268244743347,
0.05556848645210266,
-0.06866414844989777,
0.07790997624397278,
0.12254919111728668,
-0.5012833476066589,
-0.3541129231452942,
0.19081008434295654,
0.12601566314697266,
-0.09503713250160217,
0.20600832998752594,
-0.14814089238643646,
0.21300169825553894,
-0.08987344056367874,
-0.2262558490037918,
-0.2479972541332245,
0.07434546947479248,
0.2758319675922394,
-0.19901050627231598,
-0.36197397112846375,
-0.49917080998420715,
0.1656654179096222,
-0.11257197707891464,
-0.2448042929172516,
-0.17537374794483185,
0.1341993510723114,
0.20212458074092865,
-0.14815321564674377,
-0.09325126558542252,
-0.019222885370254517,
-0.024462759494781494,
-0.1757352203130722,
-0.0783097892999649,
0.256971150636673,
-0.1691845953464508,
0.2613971531391144,
-0.03837452083826065,
0.43985515832901,
0.3358936607837677,
-0.21652895212173462,
0.018398091197013855,
0.32209694385528564,
-0.06740686297416687,
-0.2750960886478424,
-0.019397832453250885,
0.21926404535770416,
-0.3354453444480896,
0.2749895751476288,
0.08957752585411072,
0.019264834001660347,
0.17140787839889526,
0.060974832624197006,
-0.12845180928707123,
0.2027580738067627,
-0.07718321681022644,
-0.39207133650779724,
0.08099022507667542,
-0.06236354261636734,
-0.4890647530555725,
0.22369718551635742,
0.42923280596733093,
0.10339337587356567,
0.05035190284252167,
0.10538928210735321,
-0.20454517006874084,
-0.03132269158959389,
0.10282690823078156,
0.09390543401241302,
0.2958914041519165,
0.19843332469463348,
0.19887207448482513,
-0.08023101836442947,
0.22101174294948578,
-0.050748199224472046,
0.03820028901100159,
-0.004484683275222778,
0.35847440361976624,
0.22108837962150574,
0.15551210939884186,
-0.07331965863704681,
-0.02650388516485691,
-0.3184266686439514,
0.20619000494480133,
0.059625037014484406,
0.042061444371938705,
-0.032071880996227264,
0.05243373662233353,
-0.06887593120336533,
-0.10226371139287949,
-0.19087666273117065,
-0.020904578268527985,
-0.05889451503753662,
0.08168638497591019,
0.8146910071372986,
-0.014809755608439445,
0.40480539202690125,
0.2156963050365448,
0.04707665741443634,
0.13151100277900696,
-0.2525290548801422,
-0.05149286240339279,
-0.16294236481189728,
0.2685999572277069,
0.1307220458984375,
0.1374589204788208,
-0.30583804845809937,
0.40872922539711,
0.29585862159729004,
-0.09369729459285736,
-0.42541104555130005,
0.01747903972864151,
0.03756299614906311,
-0.00015601888298988342,
-0.23928329348564148,
0.08342067897319794,
0.1493203490972519,
0.1940365880727768,
-0.1234295591711998,
0.11644400656223297,
-0.42999157309532166,
0.09455933421850204,
-0.00906959269195795,
-0.004940706305205822,
0.11133641004562378,
-0.01709410361945629,
-0.1474381983280182,
-0.2508877217769623,
-0.4185693562030792,
0.29319268465042114,
-0.13051623106002808,
0.35331690311431885,
-0.07836028188467026,
0.031102299690246582,
-0.09562721848487854,
0.4114501178264618,
-0.14442865550518036,
0.03151578828692436,
-0.38351142406463623,
0.2729162275791168,
-0.28062132000923157,
-0.1825018674135208,
-0.047121811658144,
0.0804797112941742,
0.11264728009700775,
0.4539225101470947,
-0.13471750915050507,
-0.12917540967464447,
-0.17673908174037933,
0.17281098663806915,
-0.15906646847724915,
0.014571345411241055,
0.4479997158050537,
0.19367030262947083,
-0.05060916393995285,
-0.013677839189767838,
0.018803175538778305,
-0.04499327391386032,
0.21242940425872803,
-0.2115156650543213,
0.40852421522140503,
0.18701335787773132,
0.22655099630355835,
0.9875742197036743,
0.2817946672439575,
-0.059464048594236374,
0.22942692041397095,
-0.11861493438482285,
-0.2331819087266922,
-0.04434361308813095,
-0.5518854260444641,
0.06294997036457062,
-0.3188907504081726,
0.13664674758911133,
0.20524579286575317,
-0.17971792817115784,
-0.4450902044773102,
-0.07712852954864502,
-0.2165251523256302,
-0.14604443311691284,
-0.1108715683221817,
0.48208487033843994,
-0.285680890083313,
0.46980223059654236,
-0.2076404094696045,
-0.17126281559467316,
-0.3026202321052551,
-0.1897299885749817,
0.018270671367645264,
-0.12407077848911285,
0.5072072148323059,
-0.22519201040267944,
0.24808357656002045,
0.2720921039581299,
-0.3385047912597656,
0.19514380395412445,
0.23040829598903656,
0.10640502721071243,
0.06812669336795807,
-0.11171018332242966,
0.15423360466957092,
-0.06195349618792534,
0.5860341787338257,
-0.16699257493019104,
0.06924290210008621,
-0.013854501768946648,
-0.4001254737377167,
-0.22686977684497833,
0.11204312741756439,
-0.10946836322546005,
0.5467050075531006,
0.1389005184173584,
0.3630276024341583,
-0.2380337417125702,
-0.34497973322868347,
0.1705925315618515,
-0.04376094788312912,
-0.2382873296737671,
-0.43460431694984436,
-0.2040690928697586,
0.012498106807470322,
-0.4034627079963684,
0.06228363513946533,
0.26712220907211304,
0.04600439593195915,
-0.05295383185148239,
-0.24741621315479279,
0.028844058513641357,
-0.08170360326766968,
-0.10488854348659515,
0.05536409094929695,
-0.16207042336463928,
0.02220751903951168,
0.24199184775352478,
0.2618480622768402,
0.0951748788356781,
-0.04392937570810318,
0.2528231143951416,
-0.010004252195358276,
-0.2822865843772888,
0.11933054029941559,
0.03784487396478653,
0.356587290763855,
0.19939030706882477,
0.0057939887046813965,
0.14544180035591125,
0.2475132793188095,
0.32715511322021484,
-0.34315958619117737,
-0.09634687751531601,
0.27384787797927856,
0.10672540962696075,
-0.23990732431411743,
-0.669438362121582,
0.06449548900127411,
-0.12318764626979828,
0.027098603546619415,
0.7041007280349731,
-0.641022264957428,
0.016614558175206184,
0.07243390381336212,
0.1061439961194992,
0.752678632736206,
-0.17797599732875824,
-0.02850319817662239,
-0.1758381724357605,
-0.04978416860103607,
-0.03198517486453056,
-0.6271997094154358,
0.29195380210876465,
-0.337775319814682,
-0.41384145617485046,
0.03702114522457123,
-0.04580386355519295,
-0.08772308379411697,
0.31331247091293335,
-0.12376043200492859,
0.1076926663517952,
0.3996838927268982,
0.18944112956523895,
-0.04316560924053192,
0.43695417046546936,
-0.17917175590991974,
-0.445404052734375,
0.11358621716499329,
0.11869610846042633,
-0.13839030265808105,
0.0027520470321178436,
0.003952285274863243,
-0.2404351383447647,
0.5165646076202393,
0.16102159023284912,
-0.30937081575393677,
-0.07555201649665833,
-0.3554244935512543,
0.17771467566490173,
-0.19394651055335999,
-0.16376709938049316,
0.1499217450618744,
0.24455054104328156,
-0.0739075243473053,
-0.25506508350372314,
-0.12610210478305817,
-0.02329631894826889,
0.12353210151195526,
0.2503110468387604,
-0.21770474314689636,
-0.17770729959011078,
0.27813753485679626,
-0.19397231936454773,
-0.3369808793067932,
0.23532161116600037,
0.0645947977900505,
-0.6661975383758545,
0.007032379508018494,
0.13725635409355164,
0.22476471960544586,
-0.09923379868268967,
-0.08272603154182434,
0.12046262621879578,
-0.2824609875679016,
-0.1410094052553177,
0.09328716993331909,
0.08002429455518723,
-0.2793154716491699,
0.2938432991504669,
-0.1692659705877304,
-0.039621517062187195,
0.031178267672657967,
0.2802236080169678,
0.2923509478569031,
0.19533595442771912,
0.24805893003940582,
0.21544216573238373,
-0.13173162937164307,
-0.16550886631011963,
-0.1226886436343193,
-0.005269004963338375,
-0.3206321597099304,
0.16431809961795807,
0.011728575453162193,
0.02678947150707245,
-0.049050211906433105,
0.10434897243976593,
-0.20582307875156403,
0.34322643280029297,
-0.493134468793869,
-0.25086021423339844,
-0.36367878317832947,
-0.07699400186538696,
-0.07013042271137238,
0.1677434891462326,
0.09182915836572647,
0.19235271215438843,
0.2873688042163849,
0.35742706060409546,
-0.3828941583633423,
0.017637290060520172,
0.0013110656291246414,
0.1134202629327774,
0.2779543399810791,
0.021952232345938683,
0.09274313598871231,
0.15361659228801727,
0.00640876404941082,
0.13539037108421326,
-0.19698373973369598,
-0.2201085388660431,
-0.0013565737754106522,
0.12409567832946777,
-0.011723440140485764,
-0.19764193892478943,
-0.1944158673286438,
-0.33570998907089233,
-0.44316360354423523,
-0.2904689908027649,
0.41289159655570984,
-0.06657012552022934,
-0.1911594420671463,
0.15799638628959656,
0.33930978178977966,
-0.21805354952812195,
-0.3513801693916321,
-0.013247862458229065,
-0.033296145498752594,
-0.046689778566360474,
-0.16434548795223236,
0.1377185583114624,
0.2297665774822235,
-0.10049804300069809,
0.12638582289218903,
0.0055749788880348206,
0.47769057750701904,
0.037401702255010605,
0.3566252887248993,
-0.16683979332447052,
-0.06283144652843475,
-0.04905536025762558,
0.5522834062576294,
0.1131194606423378,
-0.021529333665966988,
0.08782012015581131,
0.11918148398399353,
0.22963286936283112,
-0.2721470594406128,
-0.032655827701091766,
0.2681489586830139,
-0.06976018846035004,
0.38239622116088867,
0.0891864001750946,
0.057584140449762344,
0.31509384512901306,
0.2861971855163574,
0.10242443531751633,
0.07563461363315582,
-0.642330527305603,
0.05531527101993561,
0.09531696140766144,
0.038671668618917465,
0.017720095813274384,
0.22337795794010162,
0.013360520824790001,
0.14561766386032104,
0.08472665399312973,
-0.012515552341938019,
0.4294157326221466,
0.309834361076355,
-0.08809815347194672,
0.40944984555244446,
-0.28986597061157227,
-0.1573532074689865,
-0.2636449635028839,
0.025741472840309143,
0.20635995268821716,
0.10474185645580292,
0.42163991928100586,
-0.17897936701774597,
-0.23789143562316895,
-0.12046311795711517,
0.3810650408267975,
-0.09240878373384476,
0.09109720587730408,
0.19367608428001404,
-0.13128696382045746,
0.01691032201051712,
0.1046084314584732,
-0.013112995773553848,
0.1800687462091446,
0.546421468257904,
0.09672218561172485,
0.07552073150873184,
-0.13435812294483185,
-0.20386919379234314,
0.14931634068489075,
0.40203073620796204,
-0.09732779860496521,
0.0695282518863678,
0.2963308095932007,
0.037610385566949844,
-0.16633157432079315,
0.37572070956230164,
0.06240227445960045,
0.22258715331554413,
-0.33196330070495605,
0.3136018216609955,
-0.19275377690792084,
0.0012910179793834686,
-0.03857697546482086,
0.18256907165050507,
-0.008155740797519684,
-0.18759623169898987,
0.3006625771522522,
0.09011337906122208,
-0.17030414938926697,
0.164815753698349,
0.07361414283514023,
-0.025778166949748993,
-0.10350106656551361,
-0.09895027428865433,
0.14691302180290222,
-0.3603253960609436,
-0.006046108901500702,
-0.14153197407722473,
-0.27351126074790955,
-0.19758231937885284,
0.3996700048446655,
-0.5080419778823853,
0.04342532530426979,
-0.08171429485082626,
0.10730977356433868,
0.0668245330452919,
0.5615114569664001,
-0.026236850768327713,
0.13301560282707214,
-0.16172674298286438,
-0.13350193202495575,
-0.41888687014579773,
0.20922866463661194,
-0.045847948640584946,
0.12220855057239532,
0.02272169291973114,
0.15379032492637634,
0.1978681981563568,
0.16349948942661285,
0.2216690629720688,
-0.22907809913158417,
0.296257883310318,
0.5907803773880005,
-0.18845728039741516,
-0.06879495084285736,
-0.12864410877227783,
0.19592420756816864,
0.24060744047164917,
-0.226689875125885,
0.14447596669197083,
-0.039061833173036575,
0.13353946805000305,
-0.13441544771194458,
-0.1997607946395874,
0.16297964751720428,
-0.18107594549655914,
0.3187639117240906,
-0.05122750252485275,
0.12633512914180756,
-0.22144374251365662,
0.14885440468788147,
0.05580192431807518,
0.1543012261390686,
-0.279274582862854,
0.12292711436748505,
0.37113282084465027,
0.21238024532794952,
-0.02215348184108734,
-0.22534574568271637,
-0.4996485710144043,
0.14372478425502777,
-0.24976859986782074,
-0.05854647979140282,
-0.07823032885789871,
-0.011662924662232399,
-0.13411378860473633,
0.1684434711933136,
-0.0975237712264061,
0.34256619215011597,
-0.022822581231594086,
-0.13465359807014465,
-0.43857473134994507,
-0.2121846228837967,
0.3804953694343567,
-0.42611393332481384,
-0.45130541920661926,
-0.14317511022090912,
0.10562528669834137,
0.13488079607486725,
0.33323657512664795,
-0.38885465264320374,
-0.01723700761795044,
0.23324896395206451,
0.12978215515613556,
-0.07044745981693268,
0.24466176331043243,
0.0036795511841773987,
-0.06183513253927231,
-0.04813602194190025,
0.035579659044742584,
0.17470988631248474,
-0.17395678162574768,
-0.20998024940490723,
-0.3463606834411621
] |
https://github.com/huggingface/datasets/issues/2641 | load_dataset("financial_phrasebank") NonMatchingChecksumError | Hi! It's probably because this dataset is stored on google drive and it has a per day quota limit. It should work if you retry, I was able to initiate the download.
Similar issue [here](https://github.com/huggingface/datasets/issues/2646) | ## Describe the bug
Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("financial_phrasebank", 'sentences_allagree')
```
## Expected results
I expect to see the financial_phrasebank dataset downloaded successfully
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip']
## Environment info
- `datasets` version: 1.9.0
- Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6
- Python version: 3.7.10
- PyArrow version: 4.0.1
| 35 | load_dataset("financial_phrasebank") NonMatchingChecksumError
## Describe the bug
Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("financial_phrasebank", 'sentences_allagree')
```
## Expected results
I expect to see the financial_phrasebank dataset downloaded successfully
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip']
## Environment info
- `datasets` version: 1.9.0
- Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6
- Python version: 3.7.10
- PyArrow version: 4.0.1
Hi! It's probably because this dataset is stored on google drive and it has a per day quota limit. It should work if you retry, I was able to initiate the download.
Similar issue [here](https://github.com/huggingface/datasets/issues/2646) | [
-0.12216122448444366,
0.21915102005004883,
-0.07840738445520401,
0.2884526252746582,
0.22036103904247284,
0.13471728563308716,
0.06588888168334961,
0.331061452627182,
0.2095744013786316,
0.1821722388267517,
-0.14143837988376617,
0.0533873587846756,
0.16741590201854706,
0.07501561939716339,
-0.14153243601322174,
0.043913014233112335,
0.04270324110984802,
-0.02875956892967224,
0.030453499406576157,
-0.10899054259061813,
-0.10355763137340546,
0.3996222913265228,
-0.2143702208995819,
-0.2048736959695816,
-0.057174332439899445,
0.027174049988389015,
0.1256502866744995,
0.14934808015823364,
-0.35550951957702637,
-0.10624273866415024,
0.3173011839389801,
0.23564006388187408,
-0.036406259983778,
0.4088570475578308,
-0.00011659787560347468,
-0.15704679489135742,
0.29543590545654297,
-0.0023206081241369247,
-0.3087729811668396,
-0.4117240905761719,
-0.3101615011692047,
-0.5327077507972717,
-0.0006325882277451456,
-0.15623703598976135,
0.1472095251083374,
0.22938871383666992,
0.11874143034219742,
-0.04043930023908615,
0.18392542004585266,
0.2563113868236542,
0.19764451682567596,
0.17663128674030304,
0.15441009402275085,
-0.06725703179836273,
0.23560607433319092,
-0.30613499879837036,
-0.04426556080579758,
0.20613399147987366,
0.13392692804336548,
0.13966284692287445,
-0.1116090789437294,
0.09866388142108917,
-0.2409781813621521,
0.33987900614738464,
-0.024823427200317383,
-0.056932613253593445,
-0.10548753291368484,
-0.435031920671463,
0.30718713998794556,
0.42931613326072693,
0.501919150352478,
-0.13831812143325806,
-0.3338044583797455,
-0.21377775073051453,
-0.13144639134407043,
-0.005060240626335144,
0.4133681356906891,
0.22542376816272736,
-0.22245194017887115,
-0.048749204725027084,
-0.4026902914047241,
0.21270285546779633,
0.05220777541399002,
0.17423242330551147,
0.0008496418595314026,
-0.07864968478679657,
-0.1465953141450882,
-0.09588462859392166,
0.25252407789230347,
-0.09324862062931061,
0.07781414687633514,
-0.3102553188800812,
-0.07113301753997803,
0.2796265780925751,
-0.39903903007507324,
-0.07567524909973145,
0.04461696743965149,
0.5124952793121338,
0.557539165019989,
0.37240755558013916,
0.15554209053516388,
0.2275235652923584,
-0.29165953397750854,
0.019775260239839554,
0.12109318375587463,
0.24869780242443085,
0.014607131481170654,
-0.16169027984142303,
0.21061423420906067,
0.4556140899658203,
-0.05905572324991226,
0.1310695856809616,
-0.08836039155721664,
-0.0742759257555008,
0.5709370970726013,
-0.05590001493692398,
0.0653931125998497,
-0.5341385006904602,
-0.3482499122619629,
0.44460105895996094,
-0.12517979741096497,
-0.14104457199573517,
-0.04376843571662903,
0.26912450790405273,
-0.25135472416877747,
0.11096212267875671,
-0.06691087782382965,
0.14728516340255737,
-0.037643760442733765,
-0.1506911665201187,
-0.26718446612358093,
-0.05509534105658531,
-0.12497712671756744,
-0.03890600800514221,
0.2755371332168579,
-0.4455491006374359,
0.33067527413368225,
-0.08118024468421936,
0.22233204543590546,
-0.20229043066501617,
0.043921709060668945,
-0.15927129983901978,
-0.2756519913673401,
0.28256872296333313,
0.1362626850605011,
0.22327643632888794,
0.03822528198361397,
0.08375528454780579,
0.0077712759375572205,
0.01986382156610489,
-0.23611408472061157,
-0.11986342072486877,
0.09560290724039078,
0.21206100285053253,
-0.5457579493522644,
-0.426436185836792,
-0.09183313697576523,
-0.2004864662885666,
0.1569826304912567,
-0.06462821364402771,
-0.042972005903720856,
-0.09886367619037628,
-0.21709051728248596,
-0.23307840526103973,
-0.01289755292236805,
0.22084221243858337,
-0.13609184324741364,
-0.019683752208948135,
-0.11425557732582092,
-0.08467964828014374,
0.4203272759914398,
0.33170589804649353,
-0.0746123418211937,
0.046776022762060165,
-0.19933804869651794,
0.34155285358428955,
0.2876549959182739,
-0.04025052487850189,
-0.848901093006134,
0.2736244201660156,
-0.046151816844940186,
0.3179984986782074,
0.11358129233121872,
0.09368467330932617,
-0.012098100036382675,
0.09861475974321365,
0.05960243195295334,
0.21109077334403992,
0.07241150736808777,
0.16988517343997955,
-0.19966213405132294,
-0.33295297622680664,
-0.028388887643814087,
0.15905065834522247,
0.05410492792725563,
0.13594630360603333,
0.18385052680969238,
-0.044534120708703995,
0.28916245698928833,
-0.026276718825101852,
0.018003974109888077,
0.2336859107017517,
0.2727537453174591,
0.20902536809444427,
0.10214593261480331,
-0.23141980171203613,
-0.36157962679862976,
0.3223057687282562,
-0.2195712774991989,
0.10022102296352386,
-0.015847355127334595,
-0.1486971229314804,
-0.3613632023334503,
-0.2824738919734955,
-0.14902177453041077,
0.1300818920135498,
0.08987948298454285,
0.34118807315826416,
0.3992159068584442,
0.04050504043698311,
-0.045983947813510895,
0.30400633811950684,
-0.1290019154548645,
0.07511898875236511,
-0.1407594233751297,
0.2749921381473541,
-0.03420676290988922,
-0.015985213220119476,
0.030126385390758514,
-0.017768532037734985,
0.1630057841539383,
0.03627879545092583,
-0.1874520480632782,
0.28954774141311646,
0.2095121443271637,
0.1428242176771164,
-0.08752020448446274,
0.273773193359375,
-0.15950022637844086,
-0.0725642740726471,
0.028991496190428734,
0.4911873936653137,
0.14285452663898468,
-0.016348764300346375,
-0.16326096653938293,
0.3131425678730011,
0.07550757378339767,
0.006095677614212036,
0.03772924095392227,
0.15927475690841675,
0.3733702301979065,
-0.13453294336795807,
-0.08254474401473999,
-0.15182062983512878,
0.5095815658569336,
-0.34095072746276855,
0.20428581535816193,
0.011727403849363327,
-0.27683600783348083,
-0.06286043673753738,
0.24348223209381104,
-0.12033367156982422,
0.130742609500885,
0.18533042073249817,
0.047032680362463,
-0.07596828043460846,
-0.15245160460472107,
0.5569287538528442,
0.2706282138824463,
0.22486764192581177,
0.18611079454421997,
0.030360935255885124,
-0.06965059787034988,
-0.21904118359088898,
-0.04961828142404556,
0.22690357267856598,
0.14249393343925476,
0.502320408821106,
0.2711747884750366,
0.04496021941304207,
-0.4356447458267212,
-0.060910698026418686,
0.04209957271814346,
0.3274986445903778,
-0.3210887014865875,
-0.11848347634077072,
-0.07401983439922333,
-0.31581807136535645,
-0.22192350029945374,
-0.12681256234645844,
-0.14411771297454834,
-0.44632968306541443,
-0.10088050365447998,
0.3465782105922699,
0.016585305333137512,
0.06583740562200546,
-0.24684615433216095,
0.05643057823181152,
-0.04252226650714874,
-0.2394365519285202,
-0.13592299818992615,
0.25029951333999634,
-0.19677281379699707,
0.010874833911657333,
0.26046329736709595,
-0.03293297812342644,
0.31964144110679626,
-0.39174455404281616,
-0.03261755779385567,
-0.7137256860733032,
-0.24516311287879944,
0.06358028203248978,
-0.2230636030435562,
0.23766553401947021,
0.28625085949897766,
0.25119495391845703,
-0.27261513471603394,
0.012700091116130352,
0.12770043313503265,
-0.06589440256357193,
-0.3835560083389282,
0.2892594039440155,
-0.12026797235012054,
0.004104395397007465,
0.07608668506145477,
0.009131647646427155,
-0.22126349806785583,
-0.33927232027053833,
0.10557897388935089,
0.1535753607749939,
0.17430202662944794,
0.387511283159256,
-0.13699518144130707,
0.09829414635896683,
-0.014452667906880379,
0.42502474784851074,
-0.2899431586265564,
-0.5708985328674316,
0.5505203008651733,
0.10472389310598373,
-0.4363669455051422,
0.06504334509372711,
-0.006889166310429573,
0.040306441485881805,
0.23769137263298035,
-0.5485627055168152,
-0.17575998604297638,
-0.4750021994113922,
-0.019792728126049042,
0.20691657066345215,
0.08637715131044388,
0.24515549838542938,
-0.11927838623523712,
-0.07313452661037445,
-0.14276719093322754,
-0.2040533572435379,
0.16441887617111206,
0.045721203088760376,
0.2432696521282196,
-0.2186838686466217,
0.33145672082901,
0.030098002403974533,
0.24555982649326324,
0.499348521232605,
0.22588129341602325,
0.36203911900520325,
-0.015704454854130745,
0.10154449194669724,
-0.12468761950731277,
-0.20681306719779968,
-0.22093887627124786,
-0.14490774273872375,
-0.19079943001270294,
0.2884584963321686,
0.09232184290885925,
-0.025849157944321632,
-0.1714095175266266,
-0.20881502330303192,
-0.3271816670894623,
-0.09966961294412613,
-0.0835728645324707,
0.03743570297956467,
0.2761642038822174,
0.21418702602386475,
0.17351460456848145,
0.023318644613027573,
-0.41179734468460083,
-0.03595064952969551,
0.19156166911125183,
-0.1432238221168518,
-0.086198590695858,
-0.1249312162399292,
0.06699910759925842,
-0.19411718845367432,
0.30623722076416016,
0.2048938274383545,
0.3132772147655487,
0.09187841415405273,
-0.05676053464412689,
0.08086192607879639,
-0.13700316846370697,
0.2350170910358429,
-0.3195798397064209,
0.24178414046764374,
-0.11738647520542145,
-0.09755343198776245,
-0.040049441158771515,
-0.13468009233474731,
-0.1839417964220047,
-0.0066521549597382545,
0.1781338006258011,
0.2111273556947708,
-0.3331177234649658,
0.18027254939079285,
0.16220352053642273,
0.355517715215683,
-0.07344469428062439,
-0.24999432265758514,
-0.36025211215019226,
-0.397337406873703,
-0.4730677008628845,
-0.04655253142118454,
-0.07807295769453049,
0.29649925231933594,
0.0057761999778449535,
0.008306905627250671,
0.12369111180305481,
-0.06090512499213219,
0.33484381437301636,
-0.11783537268638611,
0.29649174213409424,
0.14443404972553253,
0.4310888648033142,
0.020803723484277725,
-0.25294923782348633,
0.24282456934452057,
0.8506212830543518,
-0.11155852675437927,
-0.30026429891586304,
-0.02082383632659912,
-0.2596762478351593,
-0.18278950452804565,
0.294563353061676,
-0.06982546299695969,
-0.1580359935760498,
0.5602296590805054,
-0.04595354199409485,
0.029552344232797623,
-0.18414345383644104,
0.21516160666942596,
0.15455180406570435,
-0.36145439743995667,
-0.38297155499458313,
0.2304232120513916,
0.19757893681526184,
-0.004677630960941315,
-0.0037391148507595062,
0.07192276418209076,
0.016911331564188004,
0.27248847484588623,
-0.09370455890893936,
0.8974534273147583,
-0.05524589121341705,
0.11758948862552643,
0.180494487285614,
-0.03261152654886246,
0.29299163818359375,
-0.12151818722486496,
0.00695829838514328,
-0.3133254647254944,
-0.32223275303840637,
-0.13472777605056763,
-0.1603717803955078,
-0.029078342020511627,
0.07323915511369705,
-0.086697518825531,
0.4799550771713257,
-0.07983434945344925,
0.13572470843791962,
0.183929443359375,
0.2583574950695038,
-0.37996384501457214,
0.014992896467447281,
-0.08801490813493729,
0.14437353610992432,
-0.15403665602207184,
0.4836392104625702,
-0.014065809547901154,
-0.035242870450019836,
-0.1993357092142105,
-0.0697440356016159,
-0.493116557598114,
0.19233310222625732,
-0.10092174261808395,
-0.030928008258342743,
0.1258205622434616,
-0.04681019112467766,
-0.0820193886756897,
0.14171625673770905,
0.36092549562454224,
0.21720333397388458,
-0.39998766779899597,
0.09116530418395996,
0.46213093400001526,
-0.11979994922876358,
0.1616780012845993,
-0.1688745766878128,
0.398261159658432,
-0.08860312402248383,
-0.08835116773843765,
0.02036164700984955,
0.03017348423600197,
-0.2782292366027832,
-0.10406817495822906,
-0.16732217371463776,
-0.22086124122142792,
-0.437409907579422,
-0.3119950294494629,
-0.22061476111412048,
-0.022058989852666855,
-0.3384539783000946,
0.14843067526817322,
0.3153916001319885,
-0.11709856241941452,
0.04522069916129112,
0.13563953340053558,
-0.3526616096496582,
-0.2894960641860962,
0.5082672834396362,
0.06656777113676071,
-0.2172296643257141,
0.40012887120246887,
0.21372567117214203,
-0.37201881408691406,
-0.20602953433990479,
-0.24808603525161743,
0.015486340038478374,
-0.5568869113922119,
0.10284750163555145,
-0.14609307050704956,
0.14394055306911469,
-0.19288066029548645,
0.6873802542686462,
0.3661993741989136,
0.06979882717132568,
0.047850724309682846,
-0.56244957447052,
-0.08625543862581253,
0.007837258279323578,
0.19249501824378967,
0.26842638850212097,
-0.11066561937332153,
-0.194006085395813,
0.11822889745235443,
-0.3049827516078949,
-0.3084526062011719,
0.0951334610581398,
-0.3677176833152771,
-0.2362302541732788,
0.02577146142721176,
0.04568864032626152,
0.21575601398944855,
-0.02526744268834591,
0.15246796607971191,
0.12209893763065338,
-0.13023491203784943,
-0.22903913259506226,
-0.09524421393871307,
0.12706008553504944,
0.10714699327945709,
-0.13452458381652832,
0.1926584392786026,
-0.24109625816345215,
-0.27479949593544006,
-0.08600378781557083,
-0.10771656036376953,
0.23229849338531494,
-0.006430596113204956,
-0.00206660944968462,
0.40337422490119934,
-0.08528038114309311,
-0.07539168000221252,
-0.010309509932994843,
-0.30132049322128296,
0.14770646393299103,
0.0498766228556633,
0.04649718105792999,
0.10966730862855911,
0.01571684330701828,
0.019007237628102303,
0.10128651559352875,
0.2976626753807068,
-0.12611627578735352,
0.2856268286705017,
-0.49334973096847534,
0.03499949350953102,
0.3791496157646179,
0.4438386559486389,
0.3468150198459625,
-0.3567603528499603,
-0.12225363403558731,
0.2193131446838379,
0.24582496285438538,
-0.3080703616142273,
-0.040191683918237686,
0.12091176211833954,
-0.15546438097953796,
0.08580239117145538,
0.1831369698047638,
0.28041037917137146,
-0.2571418881416321,
0.3184911608695984,
0.09237781912088394,
0.3009262681007385,
-0.13819488883018494,
-0.05756871774792671,
0.2769337296485901,
0.04870128259062767,
-0.040665436536073685,
0.1509643793106079,
-0.08801054954528809,
-0.2364574670791626,
-0.06125584989786148,
-0.001863233745098114,
0.15621645748615265,
-0.1395244598388672,
0.2553446590900421,
-0.3627965450286865,
-0.4343454837799072,
0.5834095478057861,
0.28078436851501465,
-0.10729050636291504,
0.010827835649251938,
0.0934104472398758,
0.4049898087978363,
0.06367281824350357,
0.4803864657878876,
-0.48382142186164856,
0.12429524958133698,
-0.1419125497341156,
-0.048192333430051804,
0.08562643826007843,
-0.34572532773017883,
-0.033667512238025665,
0.25997447967529297,
-0.12453241646289825,
-0.053814537823200226,
0.17619380354881287,
0.026039984077215195,
-0.06620033085346222,
-0.5886383652687073,
-0.21443316340446472,
0.055666498839855194,
0.03689180687069893,
-0.36824488639831543,
0.32804226875305176,
0.00683140754699707,
-0.1071482002735138,
0.15430977940559387,
0.526604175567627,
0.40514832735061646,
0.2689424157142639,
0.049750279635190964,
-0.046061526983976364,
-0.10302077233791351,
-0.0639665424823761,
-0.10547710210084915,
0.7308724522590637,
0.06666695326566696,
0.18393327295780182,
0.4525201916694641,
0.1251128911972046,
-0.23850463330745697,
-0.11845040321350098,
-0.19093556702136993,
-0.16591526567935944,
-0.2035483866930008,
0.5051546692848206,
-0.05460793524980545,
0.3409986197948456,
-0.232700914144516,
0.030385032296180725,
-0.5357771515846252,
-0.20074692368507385,
0.14764395356178284,
0.045633867383003235,
0.14323249459266663,
0.01005971897393465,
0.09482835978269577,
-0.15580186247825623,
0.2976530194282532,
0.47380897402763367,
0.3946794271469116,
-0.23820701241493225,
-0.17043322324752808,
-0.7519162893295288,
0.2489970624446869,
-0.2298058271408081,
0.017410917207598686,
0.011272257193922997,
0.2548752725124359,
0.006332121789455414,
0.14319410920143127,
0.22653840482234955,
0.1472436487674713,
-0.2896079123020172,
0.09639282524585724,
-0.09630000591278076,
-0.15392284095287323,
0.14873182773590088,
-0.06579068303108215,
-0.14170733094215393,
-0.2585192918777466,
0.229240283370018,
0.011227651499211788,
0.06664225459098816,
-0.09979644417762756,
-0.09539534151554108,
-0.13192352652549744,
-0.06980785727500916,
0.17151707410812378,
0.07039988785982132,
0.7023622989654541,
-0.10016486793756485,
-0.19500049948692322,
-0.13632279634475708,
-0.061554599553346634,
-0.19642040133476257,
0.25394973158836365,
-0.035317566245794296,
0.37246593832969666,
0.027615970000624657,
-0.10689342021942139,
-0.2079976201057434,
0.11938228458166122,
0.2141570895910263,
-0.3031129539012909,
-0.24129614233970642,
0.08206401020288467,
-0.21605923771858215,
0.1823357194662094,
-0.17762641608715057,
0.07504124194383621,
0.19897302985191345,
0.22106577455997467,
-0.1798105537891388,
-0.41483914852142334,
0.595776379108429,
-0.10847527533769608,
-0.19664649665355682,
-0.0364135205745697,
0.13481281697750092,
0.06607846915721893,
-0.32536959648132324,
-0.7558817863464355,
0.17230692505836487,
0.2922220528125763,
0.04330122470855713,
-0.3046834468841553,
0.21042217314243317,
-0.29249846935272217,
0.1448926478624344,
0.004821699112653732,
0.3195836544036865,
0.18153119087219238,
-0.21716612577438354,
0.06464003026485443,
-0.1397777497768402
] |
https://github.com/huggingface/datasets/issues/2641 | load_dataset("financial_phrasebank") NonMatchingChecksumError | Hi ! Loading the dataset works on my side as well.
Feel free to try again and let us know if it works for you know | ## Describe the bug
Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("financial_phrasebank", 'sentences_allagree')
```
## Expected results
I expect to see the financial_phrasebank dataset downloaded successfully
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip']
## Environment info
- `datasets` version: 1.9.0
- Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6
- Python version: 3.7.10
- PyArrow version: 4.0.1
| 26 | load_dataset("financial_phrasebank") NonMatchingChecksumError
## Describe the bug
Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("financial_phrasebank", 'sentences_allagree')
```
## Expected results
I expect to see the financial_phrasebank dataset downloaded successfully
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip']
## Environment info
- `datasets` version: 1.9.0
- Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6
- Python version: 3.7.10
- PyArrow version: 4.0.1
Hi ! Loading the dataset works on my side as well.
Feel free to try again and let us know if it works for you know | [
-0.11983345448970795,
0.17940962314605713,
-0.08838130533695221,
0.33969956636428833,
0.18796852231025696,
0.11738673597574234,
0.006066892296075821,
0.3996659517288208,
0.14194679260253906,
0.19768890738487244,
-0.16138389706611633,
0.24372728168964386,
0.23040346801280975,
-0.10897862911224365,
-0.09277420490980148,
0.1406145989894867,
0.1338222324848175,
0.02988966554403305,
0.03455459326505661,
-0.16684181988239288,
-0.1839318424463272,
0.34926432371139526,
-0.19688883423805237,
-0.15310439467430115,
-0.025564128533005714,
0.12776848673820496,
0.11051683127880096,
0.16471675038337708,
-0.24969686567783356,
-0.11283503472805023,
0.37320247292518616,
0.16077589988708496,
-0.0779852569103241,
0.43262752890586853,
-0.00011980133422184736,
-0.10419663041830063,
0.23497723042964935,
-0.017019789665937424,
-0.2702702283859253,
-0.37711745500564575,
-0.4048730432987213,
-0.5063537359237671,
0.014782007783651352,
-0.1779724806547165,
0.10074926167726517,
0.2671577036380768,
0.11917467415332794,
-0.07231056690216064,
0.09381461143493652,
0.18569134175777435,
0.19363531470298767,
0.15542873740196228,
0.04863539710640907,
-0.0412600077688694,
0.31244805455207825,
-0.25269997119903564,
-0.06519138067960739,
0.16221991181373596,
0.18733172118663788,
0.12674005329608917,
-0.22276726365089417,
0.11867205798625946,
-0.30795320868492126,
0.30044084787368774,
-0.03449616581201553,
0.010813232511281967,
0.046738989651203156,
-0.3264693021774292,
0.2752402424812317,
0.40790241956710815,
0.4325537383556366,
-0.18715137243270874,
-0.2944856584072113,
-0.1738487333059311,
-0.15330088138580322,
-0.0023678913712501526,
0.40014827251434326,
0.1629084199666977,
-0.22787396609783173,
-0.04638811573386192,
-0.3922581970691681,
0.2648795247077942,
0.0528608039021492,
0.21533560752868652,
0.05902983248233795,
0.04839196056127548,
-0.060972683131694794,
-0.11910708993673325,
0.1370471864938736,
-0.07547502964735031,
0.22535547614097595,
-0.37408870458602905,
-0.10977068543434143,
0.2610442042350769,
-0.4206717610359192,
-0.06144558638334274,
-0.030305221676826477,
0.5376821756362915,
0.5291839838027954,
0.3535025119781494,
0.15220803022384644,
0.25143295526504517,
-0.24456848204135895,
0.04614563286304474,
0.02047857642173767,
0.2093227654695511,
0.06558559834957123,
-0.0943782851099968,
0.12450943142175674,
0.38729122281074524,
-0.1391386091709137,
0.18053695559501648,
-0.036831360310316086,
-0.04564562439918518,
0.6784494519233704,
0.0181602593511343,
0.14395718276500702,
-0.5884662866592407,
-0.33681461215019226,
0.45496585965156555,
-0.15174177289009094,
-0.11990756541490555,
-0.006246055476367474,
0.30786657333374023,
-0.2831113338470459,
0.16855460405349731,
-0.10506010055541992,
0.13788247108459473,
-0.08046039938926697,
-0.15398436784744263,
-0.2957543432712555,
-0.13972434401512146,
-0.1504712551832199,
-0.06328379362821579,
0.22468243539333344,
-0.35655340552330017,
0.33523988723754883,
-0.05157245695590973,
0.29928213357925415,
-0.19677795469760895,
0.01590779237449169,
-0.11585313081741333,
-0.1921083927154541,
0.20232610404491425,
0.029857087880373,
0.2005929797887802,
0.15499673783779144,
0.059727586805820465,
0.013351991772651672,
0.0879230946302414,
-0.27059006690979004,
-0.13246141374111176,
0.1108844205737114,
0.2053997814655304,
-0.5836596488952637,
-0.3937794864177704,
0.04517778009176254,
-0.2672806680202484,
0.24978262186050415,
-0.14112840592861176,
0.05445476621389389,
-0.10931216180324554,
-0.21546496450901031,
-0.2687780261039734,
-0.01998431794345379,
0.1369314342737198,
-0.16751857101917267,
-0.007766231894493103,
-0.09424541145563126,
-0.10261662304401398,
0.5374263525009155,
0.2014993280172348,
-0.04169831797480583,
0.02853216975927353,
-0.20541489124298096,
0.28339552879333496,
0.3906702995300293,
-0.16737613081932068,
-0.8798965215682983,
0.25976333022117615,
-0.027320392429828644,
0.47812753915786743,
0.1399351805448532,
0.1600446105003357,
-0.052117832005023956,
0.06582092493772507,
0.10364264249801636,
0.11953234672546387,
0.07776856422424316,
0.19028937816619873,
-0.24744492769241333,
-0.3442917764186859,
0.03944706544280052,
0.15396077930927277,
0.04432489722967148,
0.14070020616054535,
0.1851329207420349,
-0.021084435284137726,
0.3947169780731201,
-0.04583043232560158,
-0.0327073335647583,
0.09459508955478668,
0.33417797088623047,
0.23005247116088867,
0.15121614933013916,
-0.3137425184249878,
-0.37397050857543945,
0.3189921975135803,
-0.26457029581069946,
0.06818544119596481,
0.014974243938922882,
-0.1703309565782547,
-0.3815481662750244,
-0.25041696429252625,
-0.2797917127609253,
0.12390948832035065,
0.0768752321600914,
0.3769245445728302,
0.36042165756225586,
-0.011744808405637741,
-0.04197142273187637,
0.3240392208099365,
-0.09330857545137405,
0.1179434061050415,
-0.18032799661159515,
0.2804029881954193,
0.032010145485401154,
-0.05064006522297859,
-0.12849625945091248,
0.09056677669286728,
0.19223487377166748,
0.11005183309316635,
-0.2473990023136139,
0.35989442467689514,
0.2414754033088684,
0.06738913059234619,
-0.16808640956878662,
0.21456368267536163,
-0.17359523475170135,
-0.15606704354286194,
-0.030369991436600685,
0.5238761901855469,
0.10827382653951645,
-0.002380724996328354,
-0.014832474291324615,
0.2883148491382599,
0.07230094075202942,
0.038046397268772125,
-0.043989770114421844,
0.08570130169391632,
0.3262713551521301,
-0.16129755973815918,
-0.09348700940608978,
-0.20174796879291534,
0.49625617265701294,
-0.4073314368724823,
0.198108971118927,
0.037977565079927444,
-0.29526418447494507,
-0.09915449470281601,
0.1828974485397339,
-0.11328060925006866,
0.16031061112880707,
0.11918770521879196,
0.024936344474554062,
-0.05444669723510742,
-0.10001696646213531,
0.5423451066017151,
0.30443793535232544,
0.21199816465377808,
0.10041099786758423,
0.10593997687101364,
-0.12250124663114548,
-0.1714082807302475,
-0.00727573037147522,
0.22831673920154572,
0.26619431376457214,
0.549041211605072,
0.24145999550819397,
0.00225153099745512,
-0.4095117151737213,
-0.030140120536088943,
-0.05528338998556137,
0.24403955042362213,
-0.43012407422065735,
-0.09970805794000626,
-0.16958215832710266,
-0.3729836344718933,
-0.273574560880661,
-0.2497570663690567,
-0.1284104734659195,
-0.45852601528167725,
-0.0836523100733757,
0.2773176431655884,
0.05466650798916817,
0.11805542558431625,
-0.3774232566356659,
-0.012009084224700928,
-0.0948295146226883,
-0.22511309385299683,
-0.15111719071865082,
0.21003177762031555,
-0.19578003883361816,
-0.015423499047756195,
0.16458728909492493,
-0.04272715374827385,
0.25262823700904846,
-0.41173413395881653,
0.016524605453014374,
-0.6264838576316833,
-0.24933302402496338,
0.0706532821059227,
-0.15808109939098358,
0.20787067711353302,
0.3840283751487732,
0.13923126459121704,
-0.2632397413253784,
-0.07447190582752228,
0.22094041109085083,
-0.039336856454610825,
-0.3720574676990509,
0.3436582386493683,
-0.09349466115236282,
0.014834390953183174,
0.1287030130624771,
-0.004066020250320435,
-0.23220814764499664,
-0.29081371426582336,
-0.018598563969135284,
0.10105541348457336,
0.22702938318252563,
0.365325003862381,
-0.18206045031547546,
0.09776129573583603,
-0.11691230535507202,
0.49779051542282104,
-0.27113980054855347,
-0.5762332081794739,
0.5287802815437317,
0.13195769488811493,
-0.3189794719219208,
0.012340035289525986,
-0.017896346747875214,
0.06062532961368561,
0.27940529584884644,
-0.5194590091705322,
-0.1023499071598053,
-0.37201663851737976,
-0.029239580035209656,
0.1933087706565857,
0.06930556148290634,
0.18192020058631897,
0.003462420776486397,
-0.054521478712558746,
-0.21126601099967957,
-0.1410180628299713,
0.13839124143123627,
-0.08308207988739014,
0.3895270526409149,
-0.2822103798389435,
0.29594841599464417,
0.01982218772172928,
0.22909888625144958,
0.5105569958686829,
0.21022480726242065,
0.27906590700149536,
-0.022137826308608055,
0.07863328605890274,
-0.1357036530971527,
-0.25301533937454224,
-0.35911595821380615,
-0.09603862464427948,
-0.20276044309139252,
0.26131147146224976,
0.06720715761184692,
-0.0426020473241806,
-0.13468477129936218,
-0.15889352560043335,
-0.36204829812049866,
-0.10073105990886688,
-0.11169081926345825,
-0.1078893393278122,
0.2217811644077301,
0.22864308953285217,
0.1920691430568695,
-0.0074416836723685265,
-0.4660687744617462,
-0.05608843266963959,
0.1957434117794037,
-0.2219419777393341,
-0.11901747435331345,
-0.18783049285411835,
0.05274689570069313,
-0.051920242607593536,
0.3516171872615814,
0.23111005127429962,
0.343509703874588,
0.14574645459651947,
-0.16312819719314575,
0.07082239538431168,
-0.124952532351017,
0.2933346927165985,
-0.3399789035320282,
0.26452720165252686,
-0.09139253199100494,
-0.1360713243484497,
-0.08742848038673401,
-0.16899272799491882,
-0.1418350338935852,
0.006641848478466272,
0.19799481332302094,
0.27096205949783325,
-0.20726336538791656,
0.15207380056381226,
0.1595965474843979,
0.35257256031036377,
-0.12525711953639984,
-0.36781778931617737,
-0.41356325149536133,
-0.26233309507369995,
-0.3545669913291931,
-0.11335628479719162,
-0.24033628404140472,
0.315026193857193,
0.06034541875123978,
-0.04138462617993355,
0.1093558520078659,
-0.05215991288423538,
0.4151343107223511,
-0.06014067679643631,
0.3245255947113037,
0.049406200647354126,
0.41835010051727295,
-0.02341003715991974,
-0.10064922273159027,
0.24927712976932526,
0.7642991542816162,
-0.14910918474197388,
-0.42216628789901733,
-0.12685087323188782,
-0.2571386694908142,
-0.03647027164697647,
0.24822604656219482,
-0.1150081604719162,
-0.12688744068145752,
0.5341652631759644,
-0.16082988679409027,
0.06935399025678635,
-0.23412103950977325,
0.12690237164497375,
0.1964585781097412,
-0.36611494421958923,
-0.3686051666736603,
0.1963644027709961,
0.18175917863845825,
-0.054232437163591385,
-0.03330421447753906,
-0.01749725639820099,
-0.06651096045970917,
0.34052056074142456,
-0.059745706617832184,
0.919949471950531,
0.04241672530770302,
0.1259317249059677,
0.1951046884059906,
-0.05166662484407425,
0.30477374792099,
-0.1051320731639862,
0.02030179277062416,
-0.384581595659256,
-0.36799806356430054,
-0.1337030529975891,
-0.23278674483299255,
0.01542128250002861,
0.07597824931144714,
-0.06337806582450867,
0.49163275957107544,
-0.13822810351848602,
0.08971286565065384,
0.1643396019935608,
0.07082030922174454,
-0.2747771739959717,
0.04892146587371826,
-0.08069353550672531,
0.11888954043388367,
-0.20446081459522247,
0.4700169861316681,
-0.05999177321791649,
0.03785280883312225,
-0.2523479759693146,
-0.032514508813619614,
-0.388263463973999,
0.3136291801929474,
-0.09004150331020355,
0.00683433935046196,
0.18107794225215912,
-0.05990200489759445,
-0.1171378642320633,
0.20418722927570343,
0.3489326238632202,
0.21619753539562225,
-0.338876873254776,
0.03610686957836151,
0.6333325505256653,
0.028818799182772636,
0.25527697801589966,
-0.13955806195735931,
0.38174089789390564,
-0.03197383135557175,
-0.15427295863628387,
0.03701658546924591,
0.03703032806515694,
-0.33106285333633423,
-0.026651531457901,
-0.22565488517284393,
-0.05559747666120529,
-0.44163721799850464,
-0.33672282099723816,
-0.2361728847026825,
0.08366236090660095,
-0.3581355810165405,
0.14542345702648163,
0.27948111295700073,
-0.19105704128742218,
0.10480289161205292,
0.0902281254529953,
-0.4249242842197418,
-0.19864128530025482,
0.5109453201293945,
0.1301185041666031,
-0.25815725326538086,
0.38981321454048157,
0.12990915775299072,
-0.37236136198043823,
-0.18001049757003784,
-0.18823936581611633,
-0.000779610825702548,
-0.5864371061325073,
0.005313333589583635,
-0.16096574068069458,
0.13228319585323334,
-0.15496794879436493,
0.6723002195358276,
0.4406675696372986,
0.07527696341276169,
0.03220181539654732,
-0.5120886564254761,
-0.11799884587526321,
0.046089839190244675,
0.2858421206474304,
0.28090429306030273,
-0.09239569306373596,
-0.23692332208156586,
0.042058274149894714,
-0.320414662361145,
-0.28944626450538635,
0.02795247919857502,
-0.3091936707496643,
-0.19011402130126953,
-0.12755568325519562,
0.1389644742012024,
0.15910649299621582,
-0.02356947399675846,
0.16289928555488586,
0.10893400758504868,
-0.11835797131061554,
-0.22951382398605347,
-0.055268969386816025,
0.14344647526741028,
0.11181683838367462,
-0.15792226791381836,
0.16409651935100555,
-0.15748997032642365,
-0.13482636213302612,
-0.1007242351770401,
-0.13539892435073853,
0.25226834416389465,
0.020983770489692688,
0.1265067458152771,
0.4397987723350525,
-0.046628378331661224,
-0.10417688637971878,
0.004941558465361595,
-0.3345201313495636,
0.12648440897464752,
0.009674478322267532,
-0.009627565741539001,
-0.019408145919442177,
-0.025675684213638306,
0.09814468026161194,
0.12027032673358917,
0.29927685856819153,
-0.07457022368907928,
0.3204856216907501,
-0.5192990899085999,
0.04082632437348366,
0.4413577914237976,
0.3220760226249695,
0.3290511667728424,
-0.35979121923446655,
-0.16258953511714935,
0.18905174732208252,
0.24222292006015778,
-0.3330811858177185,
-0.026662997901439667,
0.18442010879516602,
-0.11383992433547974,
0.04578119143843651,
0.2178553342819214,
0.20199427008628845,
-0.32388991117477417,
0.3665146827697754,
0.05213458091020584,
0.3090812563896179,
-0.17898552119731903,
0.037673600018024445,
0.42413729429244995,
0.026364509016275406,
0.011182624846696854,
0.08064891397953033,
-0.12899288535118103,
-0.24660512804985046,
-0.010964900255203247,
0.06563080847263336,
0.23676389455795288,
-0.0883416011929512,
0.21062514185905457,
-0.3246670365333557,
-0.3685193657875061,
0.560586154460907,
0.29618552327156067,
-0.118059441447258,
0.00864570215344429,
0.16438359022140503,
0.4116297662258148,
0.12240367382764816,
0.49316319823265076,
-0.4444056451320648,
0.05533250421285629,
-0.1762751340866089,
-0.06258206069469452,
-0.024395592510700226,
-0.30487653613090515,
0.014393307268619537,
0.14185546338558197,
-0.21413224935531616,
0.06969960778951645,
0.16987654566764832,
0.018070127815008163,
-0.029123999178409576,
-0.5382280945777893,
-0.18063294887542725,
0.07538978010416031,
0.001888863742351532,
-0.36477962136268616,
0.3437754213809967,
0.04761161282658577,
-0.07407617568969727,
0.18847762048244476,
0.5166019797325134,
0.3630852699279785,
0.3304818570613861,
0.057222019881010056,
-0.1468573361635208,
-0.10634513199329376,
-0.045308277010917664,
-0.10671520978212357,
0.7710256576538086,
0.08929026126861572,
0.19642062485218048,
0.42700278759002686,
0.12177245318889618,
-0.20610840618610382,
-0.0785391628742218,
-0.0745927095413208,
-0.13731266558170319,
-0.09800831973552704,
0.6256075501441956,
-0.028387565165758133,
0.31175774335861206,
-0.12542416155338287,
0.08713869005441666,
-0.5139367580413818,
-0.1703629344701767,
0.22158172726631165,
0.1166304498910904,
0.14531537890434265,
0.07133034616708755,
0.08242829144001007,
-0.11989633738994598,
0.232090562582016,
0.4119342863559723,
0.305985689163208,
-0.2828146517276764,
-0.18406853079795837,
-0.7421244382858276,
0.3818671405315399,
-0.1460009664297104,
0.046046800911426544,
0.03201640397310257,
0.21921418607234955,
0.05515630915760994,
0.13895145058631897,
0.25699251890182495,
0.05523230880498886,
-0.31296515464782715,
0.12267766147851944,
-0.0873490571975708,
-0.1740027368068695,
0.14115947484970093,
-0.07592590898275375,
-0.17135415971279144,
-0.2909749448299408,
0.2007519006729126,
0.10117842257022858,
0.07879289239645004,
-0.08704282343387604,
-0.14613306522369385,
-0.07502894103527069,
-0.042586855590343475,
0.15973185002803802,
0.020474499091506004,
0.6913180351257324,
-0.08525580167770386,
-0.1843104213476181,
-0.0807621031999588,
-0.13667523860931396,
-0.14035357534885406,
0.35396093130111694,
-0.06891216337680817,
0.33791688084602356,
0.006235424429178238,
-0.0303947813808918,
-0.16037243604660034,
0.006934428587555885,
0.20290781557559967,
-0.40472108125686646,
-0.29472216963768005,
0.10815336555242538,
-0.18635094165802002,
0.11586906015872955,
-0.19770243763923645,
0.06922092288732529,
0.18685612082481384,
0.32723668217658997,
-0.12603795528411865,
-0.39800718426704407,
0.6327152252197266,
-0.10716401040554047,
-0.2257053256034851,
-0.08753375709056854,
0.1851278394460678,
-0.06244168430566788,
-0.2896817624568939,
-0.7371845245361328,
0.052709005773067474,
0.38873040676116943,
0.05588145554065704,
-0.22276897728443146,
0.1716943234205246,
-0.2935408055782318,
0.18155831098556519,
-0.01901712268590927,
0.28851574659347534,
0.17677143216133118,
-0.18691687285900116,
0.047323454171419144,
-0.24154527485370636
] |
https://github.com/huggingface/datasets/issues/2641 | load_dataset("financial_phrasebank") NonMatchingChecksumError | Thank you! I've been trying periodically for the past month, and no luck yet with this particular dataset. Just tried again and still hitting the checksum error.
Code:
`dataset = load_dataset("financial_phrasebank", "sentences_allagree") `
Traceback:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-2-55cc2144f31e> in <module>
----> 1 dataset = load_dataset("financial_phrasebank", "sentences_allagree")
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
859 ignore_verifications=ignore_verifications,
860 try_from_hf_gcs=try_from_hf_gcs,
--> 861 use_auth_token=use_auth_token,
862 )
863
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
582 if not downloaded_from_gcs:
583 self._download_and_prepare(
--> 584 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
585 )
586 # Sync info
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
642 if verify_infos:
643 verify_checksums(
--> 644 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
645 )
646
/opt/conda/lib/python3.7/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip']
``` | ## Describe the bug
Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("financial_phrasebank", 'sentences_allagree')
```
## Expected results
I expect to see the financial_phrasebank dataset downloaded successfully
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip']
## Environment info
- `datasets` version: 1.9.0
- Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6
- Python version: 3.7.10
- PyArrow version: 4.0.1
| 174 | load_dataset("financial_phrasebank") NonMatchingChecksumError
## Describe the bug
Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("financial_phrasebank", 'sentences_allagree')
```
## Expected results
I expect to see the financial_phrasebank dataset downloaded successfully
## Actual results
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip']
## Environment info
- `datasets` version: 1.9.0
- Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6
- Python version: 3.7.10
- PyArrow version: 4.0.1
Thank you! I've been trying periodically for the past month, and no luck yet with this particular dataset. Just tried again and still hitting the checksum error.
Code:
`dataset = load_dataset("financial_phrasebank", "sentences_allagree") `
Traceback:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-2-55cc2144f31e> in <module>
----> 1 dataset = load_dataset("financial_phrasebank", "sentences_allagree")
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
859 ignore_verifications=ignore_verifications,
860 try_from_hf_gcs=try_from_hf_gcs,
--> 861 use_auth_token=use_auth_token,
862 )
863
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
582 if not downloaded_from_gcs:
583 self._download_and_prepare(
--> 584 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
585 )
586 # Sync info
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
642 if verify_infos:
643 verify_checksums(
--> 644 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
645 )
646
/opt/conda/lib/python3.7/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip']
``` | [
-0.12190397083759308,
0.25043636560440063,
-0.06328225880861282,
0.3291987180709839,
0.16332091391086578,
0.13060149550437927,
0.029430465772747993,
0.39818456768989563,
0.10427448153495789,
0.1001083105802536,
-0.23702965676784515,
0.251907080411911,
0.24082139134407043,
-0.18088695406913757,
-0.13947123289108276,
0.14047758281230927,
0.10747330635786057,
0.04317501187324524,
-0.013818621635437012,
-0.09089028835296631,
-0.1074012964963913,
0.28121551871299744,
-0.2145473062992096,
-0.20221103727817535,
-0.025686584413051605,
0.08639278262853622,
0.11049012839794159,
0.07201125472784042,
-0.2658270597457886,
-0.13488876819610596,
0.492026150226593,
0.16786079108715057,
-0.07267430424690247,
0.4778311252593994,
-0.00012443281593732536,
-0.05199451744556427,
0.271574467420578,
-0.04863405227661133,
-0.35678067803382874,
-0.37078672647476196,
-0.4534249007701874,
-0.46621936559677124,
-0.043371833860874176,
-0.20148444175720215,
0.1378682553768158,
0.35295525193214417,
0.1445152312517166,
-0.1261879801750183,
0.05450945347547531,
0.174529567360878,
0.13974907994270325,
0.24786582589149475,
0.14677570760250092,
0.03498661518096924,
0.29983529448509216,
-0.19095973670482635,
-0.11348952353000641,
0.27035200595855713,
0.14605896174907684,
0.051155880093574524,
-0.2077229619026184,
0.10880741477012634,
-0.3613061010837555,
0.37073811888694763,
-0.0008350051939487457,
0.06891574710607529,
0.05883444473147392,
-0.2889935076236725,
0.21376505494117737,
0.35743406414985657,
0.4351552724838257,
-0.21873340010643005,
-0.3650905191898346,
-0.12399595975875854,
-0.2084687054157257,
-0.04632137715816498,
0.4173542261123657,
0.16478388011455536,
-0.2831156551837921,
-0.06299823522567749,
-0.46839097142219543,
0.2776021659374237,
-0.00927736982703209,
0.23450298607349396,
0.03264956921339035,
0.06203373521566391,
-0.018513362854719162,
-0.0787273719906807,
0.19150346517562866,
-0.06187363713979721,
0.26586565375328064,
-0.35905691981315613,
-0.03918565437197685,
0.2633777856826782,
-0.41608476638793945,
-0.10001562535762787,
-0.07440496236085892,
0.4421430230140686,
0.4887329339981079,
0.41905397176742554,
0.18088017404079437,
0.16089126467704773,
-0.18233981728553772,
0.09546157717704773,
0.05090104043483734,
0.1860755980014801,
0.043060146272182465,
0.01926349848508835,
0.1798640489578247,
0.41344979405403137,
-0.10694326460361481,
0.16260218620300293,
-0.06926478445529938,
-0.03160860389471054,
0.7316473722457886,
0.009484084323048592,
0.22045084834098816,
-0.6202269196510315,
-0.3789454996585846,
0.4553826153278351,
-0.16313707828521729,
-0.17401540279388428,
0.04855779558420181,
0.20025047659873962,
-0.3129517138004303,
0.199794203042984,
-0.0601884201169014,
0.08355498313903809,
-0.07940836250782013,
-0.17340625822544098,
-0.22657035291194916,
-0.0589110367000103,
-0.12272332608699799,
0.03202492743730545,
0.3139740228652954,
-0.32501381635665894,
0.30170947313308716,
-0.05859685316681862,
0.3189172148704529,
-0.1349216103553772,
0.12941469252109528,
-0.14722132682800293,
-0.177792489528656,
0.32437944412231445,
-0.06084052100777626,
0.19005316495895386,
0.177983820438385,
0.06997236609458923,
-0.11060239374637604,
0.1508006751537323,
-0.2157251238822937,
-0.14491048455238342,
0.008486006408929825,
0.1288294941186905,
-0.6136752367019653,
-0.38363924622535706,
0.07472778856754303,
-0.41715800762176514,
0.33014675974845886,
-0.23647937178611755,
0.059767890721559525,
-0.13555705547332764,
-0.20996931195259094,
-0.232662633061409,
0.022401826456189156,
0.18676012754440308,
-0.11508278548717499,
0.06421045958995819,
-0.12378952652215958,
-0.08153641223907471,
0.5374079346656799,
0.20216615498065948,
-0.011569298803806305,
0.019831717014312744,
-0.19813761115074158,
0.15019521117210388,
0.22727365791797638,
-0.15796512365341187,
-0.8371682167053223,
0.20420171320438385,
0.04380255937576294,
0.5060790777206421,
0.11317291110754013,
0.19068299233913422,
-0.051939353346824646,
0.09216941893100739,
0.1658838838338852,
0.08204111456871033,
-0.02658878080546856,
0.08485852181911469,
-0.23684513568878174,
-0.33268827199935913,
0.14462658762931824,
0.20961329340934753,
0.051138922572135925,
0.14553764462471008,
0.14114966988563538,
0.0321553573012352,
0.2999110519886017,
-0.03403137996792793,
-0.011776382103562355,
0.05323030799627304,
0.45308539271354675,
0.1720775067806244,
0.09318496286869049,
-0.36315295100212097,
-0.47747594118118286,
0.28873908519744873,
-0.16491007804870605,
0.0705624669790268,
-0.09167712926864624,
-0.08773350715637207,
-0.38568049669265747,
-0.27573859691619873,
-0.21656061708927155,
0.17427270114421844,
0.01956084370613098,
0.382487416267395,
0.3753986060619354,
-0.06750476360321045,
-0.04576491937041283,
0.42245519161224365,
-0.1418428272008896,
0.11075904220342636,
-0.2753640413284302,
0.3411237895488739,
-0.008214892819523811,
-0.05344792455434799,
-0.08309254050254822,
0.05141095444560051,
0.14452621340751648,
0.060413673520088196,
-0.21132978796958923,
0.35040876269340515,
0.26700758934020996,
-0.05311812460422516,
-0.17560333013534546,
0.28463441133499146,
-0.14557717740535736,
-0.166967511177063,
-0.04297877103090286,
0.5265864729881287,
0.09180333465337753,
-0.017937038093805313,
-0.058644719421863556,
0.35159528255462646,
-0.024048302322626114,
0.04812264442443848,
-0.06882217526435852,
0.1417028307914734,
0.3558286428451538,
-0.17178130149841309,
-0.1814342737197876,
-0.15696316957473755,
0.5086337327957153,
-0.2532769441604614,
0.13408620655536652,
0.04246355593204498,
-0.21523307263851166,
-0.13378426432609558,
0.10590013116598129,
-0.1258065104484558,
0.1081804558634758,
0.12745511531829834,
0.11383284628391266,
-0.02636466547846794,
-0.04463823139667511,
0.4975663125514984,
0.3507782220840454,
0.15262997150421143,
0.14896640181541443,
0.1117478758096695,
-0.2153274565935135,
-0.06402159482240677,
-0.0453859344124794,
0.1830279529094696,
0.28112274408340454,
0.5960556864738464,
0.22876520454883575,
0.022712428122758865,
-0.38970422744750977,
-0.16366547346115112,
-0.04854925721883774,
0.3402165472507477,
-0.40801143646240234,
-0.05833735316991806,
-0.24779938161373138,
-0.20786750316619873,
-0.2976734936237335,
-0.3445228934288025,
-0.2360522449016571,
-0.4660625457763672,
-0.11717294156551361,
0.45180603861808777,
0.08961425721645355,
0.1947259157896042,
-0.5383252501487732,
0.01948225498199463,
-0.049650222063064575,
-0.31435033679008484,
-0.16389180719852448,
0.13016405701637268,
-0.13653314113616943,
-0.05996198579668999,
0.3283939063549042,
-0.03349447622895241,
0.25593680143356323,
-0.43783190846443176,
0.0011319983750581741,
-0.5693756937980652,
-0.3058413565158844,
-0.011247001588344574,
-0.09501804411411285,
0.23265227675437927,
0.30625057220458984,
0.19372409582138062,
-0.23374556005001068,
-0.21114180982112885,
0.18957944214344025,
-0.0036035217344760895,
-0.3972530961036682,
0.34699320793151855,
-0.16436247527599335,
0.03636694326996803,
0.13481390476226807,
-0.03908699005842209,
-0.19306762516498566,
-0.23758311569690704,
-0.02097400277853012,
0.11288104951381683,
0.26172029972076416,
0.38317936658859253,
-0.14777818322181702,
0.11827893555164337,
-0.12504993379116058,
0.5495760440826416,
-0.22251532971858978,
-0.6153050661087036,
0.6148751974105835,
0.15102519094944,
-0.2769510746002197,
0.06005137786269188,
-0.0439411997795105,
0.1141606867313385,
0.3257289528846741,
-0.5195676684379578,
-0.11781340837478638,
-0.31529703736305237,
-0.0033044591546058655,
0.1880890280008316,
0.03362917900085449,
0.1843613088130951,
-0.02210214175283909,
0.002933068200945854,
-0.16384774446487427,
-0.22385017573833466,
0.12856492400169373,
-0.000764109194278717,
0.4240906536579132,
-0.27059465646743774,
0.27518951892852783,
0.012868229299783707,
0.23596619069576263,
0.563244640827179,
0.1702882945537567,
0.1899767816066742,
0.01124926470220089,
0.1286744475364685,
-0.12157631665468216,
-0.2859446108341217,
-0.34536635875701904,
-0.13486933708190918,
-0.21408569812774658,
0.11198878288269043,
0.024002835154533386,
-0.09198108315467834,
-0.17869950830936432,
-0.11642977595329285,
-0.2810487747192383,
-0.12575604021549225,
-0.07352573424577713,
-0.12981626391410828,
0.27138620615005493,
0.17328794300556183,
0.12041117995977402,
-0.08613628149032593,
-0.47925126552581787,
-0.08387617766857147,
0.27067095041275024,
-0.21831580996513367,
-0.07338375598192215,
-0.18700145184993744,
0.03893904387950897,
-0.02282499521970749,
0.301848828792572,
0.24468864500522614,
0.5021722912788391,
0.1392086297273636,
-0.14951668679714203,
0.004542559385299683,
-0.1419413685798645,
0.25330430269241333,
-0.282584547996521,
0.2747727632522583,
0.007125847041606903,
-0.14876128733158112,
-0.029388990253210068,
-0.18783687055110931,
-0.15966391563415527,
0.006762790028005838,
0.23660409450531006,
0.3087528944015503,
-0.26371055841445923,
0.16304270923137665,
0.286702036857605,
0.38166919350624084,
-0.07852128148078918,
-0.35038140416145325,
-0.4151211678981781,
-0.25879549980163574,
-0.32489079236984253,
-0.043484754860401154,
-0.18860481679439545,
0.3431870639324188,
0.10906029492616653,
0.006323829293251038,
0.08529970794916153,
-0.01855585351586342,
0.400956928730011,
-0.005348799750208855,
0.23462358117103577,
0.08730743080377579,
0.4733598232269287,
0.01830945909023285,
-0.10448886454105377,
0.26219654083251953,
0.7463163733482361,
-0.12634272873401642,
-0.3905002176761627,
-0.06016930937767029,
-0.218245267868042,
-0.08930296450853348,
0.15728263556957245,
-0.024759214371442795,
-0.19627788662910461,
0.575533390045166,
-0.20400382578372955,
0.09693566709756851,
-0.2935260236263275,
0.06068579852581024,
0.18350651860237122,
-0.4045856297016144,
-0.31513893604278564,
0.1746526062488556,
0.15045391023159027,
-0.004304260015487671,
0.11257341504096985,
-0.03746194392442703,
0.01851358450949192,
0.19665054976940155,
0.04529618099331856,
0.931977391242981,
0.054333243519067764,
0.08527863025665283,
0.1511658877134323,
-0.12259548902511597,
0.1917184591293335,
-0.03832734003663063,
0.038513846695423126,
-0.3248576819896698,
-0.3994266986846924,
-0.142288476228714,
-0.28688105940818787,
0.15568313002586365,
0.04193329066038132,
-0.06734664738178253,
0.4279145300388336,
-0.04807707294821739,
0.17228755354881287,
0.153115376830101,
-0.0003997199237346649,
-0.24815255403518677,
0.06846435368061066,
-0.054442934691905975,
0.0903514176607132,
-0.23296068608760834,
0.4803928732872009,
-0.034605078399181366,
0.03291080892086029,
-0.297681987285614,
-0.055047810077667236,
-0.40334492921829224,
0.26588302850723267,
-0.01280998345464468,
0.046414587646722794,
0.30493074655532837,
-0.08832496404647827,
-0.09860718250274658,
0.06679834425449371,
0.3115846514701843,
0.09231893718242645,
-0.3378288745880127,
-0.04973631724715233,
0.5200310945510864,
0.01602328196167946,
0.251117467880249,
-0.18076185882091522,
0.3796582520008087,
-0.03394559025764465,
-0.12295754253864288,
0.05333344638347626,
0.054514795541763306,
-0.4156990051269531,
0.15362054109573364,
-0.20631127059459686,
-0.07173709571361542,
-0.37565740942955017,
-0.25142204761505127,
-0.19476324319839478,
0.1044771820306778,
-0.3385734558105469,
0.10921338200569153,
0.29386574029922485,
-0.16723544895648956,
0.13149021565914154,
0.03177328780293465,
-0.3552616834640503,
-0.1696760654449463,
0.5675469040870667,
0.17598235607147217,
-0.3029549717903137,
0.35900700092315674,
0.06067023053765297,
-0.40593236684799194,
-0.1437842845916748,
-0.15191346406936646,
-0.12607422471046448,
-0.5568311214447021,
0.0036302763037383556,
-0.22601675987243652,
0.20845292508602142,
-0.1619076132774353,
0.5562605261802673,
0.4231034517288208,
0.060546085238456726,
0.09637120366096497,
-0.5787783861160278,
-0.184632807970047,
0.05215412378311157,
0.2902796268463135,
0.32824042439460754,
-0.20144397020339966,
-0.16808021068572998,
0.036143966019153595,
-0.28162485361099243,
-0.22902604937553406,
0.016598323360085487,
-0.3228539526462555,
-0.1437462717294693,
-0.10013721138238907,
0.08945705741643906,
0.1147095337510109,
0.010799415409564972,
0.12131090462207794,
0.08766201138496399,
-0.14289413392543793,
-0.15187208354473114,
-0.10980828106403351,
0.16906769573688507,
0.1186789870262146,
-0.15693862736225128,
0.24704071879386902,
-0.13364535570144653,
-0.1350230723619461,
-0.09562122076749802,
-0.2308691442012787,
0.2656267583370209,
0.003948859870433807,
0.16581521928310394,
0.40672600269317627,
-0.06676115840673447,
-0.1009625792503357,
-0.01754431053996086,
-0.3136407136917114,
0.09984421730041504,
0.08515029400587082,
0.060107335448265076,
-0.02411637268960476,
0.00186968594789505,
0.10257808864116669,
0.10029315203428268,
0.13743700087070465,
-0.17239126563072205,
0.37623584270477295,
-0.48067986965179443,
0.03958262875676155,
0.4147232174873352,
0.31396281719207764,
0.4134083092212677,
-0.29643407464027405,
-0.14438150823116302,
0.2171410620212555,
0.18169143795967102,
-0.36609992384910583,
-0.020808810368180275,
0.3057401478290558,
-0.08868734538555145,
0.04597287252545357,
0.21803858876228333,
0.09813308715820312,
-0.40272805094718933,
0.5062956809997559,
0.07321050018072128,
0.2739269733428955,
-0.2543126344680786,
0.08857546746730804,
0.4516225755214691,
0.05087549611926079,
-0.028851617127656937,
0.1816987246274948,
-0.13745352625846863,
-0.1385573446750641,
-0.05387496203184128,
0.0023304149508476257,
0.15811794996261597,
-0.17491352558135986,
0.24454273283481598,
-0.37382566928863525,
-0.3313358426094055,
0.4353528916835785,
0.3104018270969391,
-0.022735923528671265,
0.018237661570310593,
0.14799264073371887,
0.3204093873500824,
0.03827391192317009,
0.4804669916629791,
-0.4871770143508911,
0.020896825939416885,
-0.13715475797653198,
-0.003138967789709568,
-0.12643474340438843,
-0.30616235733032227,
-0.012793950736522675,
0.18619757890701294,
-0.15697431564331055,
0.050020020455121994,
0.3224606215953827,
0.0631820484995842,
-0.0963122695684433,
-0.5983758568763733,
-0.13212472200393677,
0.08315926790237427,
-0.029667779803276062,
-0.3643832504749298,
0.3487517237663269,
0.0935669094324112,
-0.1344633400440216,
0.10596266388893127,
0.4878087341785431,
0.38323670625686646,
0.35552844405174255,
0.12306985259056091,
-0.05824301019310951,
-0.1259443610906601,
-0.05715238302946091,
-0.044297393411397934,
0.825137734413147,
0.06317859888076782,
0.11446477472782135,
0.35694706439971924,
0.08081317692995071,
-0.14708338677883148,
-0.009499400854110718,
-0.13336826860904694,
-0.22025391459465027,
-0.06710782647132874,
0.6605430841445923,
0.0178663469851017,
0.27883994579315186,
-0.05256497114896774,
0.06358286738395691,
-0.3988303542137146,
-0.22116531431674957,
0.1704481542110443,
0.12115760892629623,
0.09412351250648499,
0.15477237105369568,
0.041864242404699326,
-0.17780780792236328,
0.22358562052249908,
0.3849763870239258,
0.2284829020500183,
-0.31413882970809937,
-0.24950408935546875,
-0.8176971077919006,
0.31308513879776,
-0.21408697962760925,
-0.013297952711582184,
0.10578805953264236,
0.21921338140964508,
0.032682523131370544,
0.20042537152767181,
0.22103524208068848,
-0.0831795334815979,
-0.28143882751464844,
0.11789394915103912,
-0.1038769781589508,
-0.18483811616897583,
0.17554599046707153,
-0.08947169035673141,
-0.17638236284255981,
-0.3068360984325409,
0.18460287153720856,
0.17328007519245148,
0.032821424305438995,
-0.036683015525341034,
-0.12157369405031204,
-0.012954285368323326,
0.10752888023853302,
0.0982147678732872,
0.005804009735584259,
0.7441558837890625,
0.0030061565339565277,
-0.20145295560359955,
-0.11333750188350677,
-0.1136913076043129,
-0.10945548862218857,
0.36232084035873413,
-0.061456989496946335,
0.3728075623512268,
-0.00012630783021450043,
-0.03321155533194542,
-0.19792459905147552,
0.18345116078853607,
0.12079644203186035,
-0.41667747497558594,
-0.24543143808841705,
0.14119775593280792,
-0.20585232973098755,
0.18009337782859802,
-0.26658177375793457,
0.03229498490691185,
0.19596154987812042,
0.40072372555732727,
-0.21571403741836548,
-0.32440483570098877,
0.6163964867591858,
-0.1873253732919693,
-0.2334505021572113,
-0.08662080019712448,
0.12301906198263168,
-0.22332817316055298,
-0.26451584696769714,
-0.7100598812103271,
0.08795089274644852,
0.4004307687282562,
0.014068122953176498,
-0.2292502075433731,
0.24373765289783478,
-0.28314679861068726,
0.19639290869235992,
-0.024150267243385315,
0.4023307263851166,
0.10485468804836273,
-0.21672502160072327,
0.004747774451971054,
-0.20925627648830414
] |
https://github.com/huggingface/datasets/issues/2630 | Progress bars are not properly rendered in Jupyter notebook | To add my experience when trying to debug this issue:
Seems like previously the workaround given [here](https://github.com/tqdm/tqdm/issues/485#issuecomment-473338308) worked around this issue. But with the latest version of jupyter/tqdm I still get terminal warnings that IPython tried to send a message from a forked process. | ## Describe the bug
The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal).
## Steps to reproduce the bug
```python
ds.map(tokenize, num_proc=10)
```
## Expected results
Jupyter widgets displaying the progress bars.
## Actual results
Simple plane progress bars.
cc: Reported by @thomwolf | 44 | Progress bars are not properly rendered in Jupyter notebook
## Describe the bug
The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal).
## Steps to reproduce the bug
```python
ds.map(tokenize, num_proc=10)
```
## Expected results
Jupyter widgets displaying the progress bars.
## Actual results
Simple plane progress bars.
cc: Reported by @thomwolf
To add my experience when trying to debug this issue:
Seems like previously the workaround given [here](https://github.com/tqdm/tqdm/issues/485#issuecomment-473338308) worked around this issue. But with the latest version of jupyter/tqdm I still get terminal warnings that IPython tried to send a message from a forked process. | [
0.1817377209663391,
0.02665199339389801,
-0.004884492605924606,
0.0565505176782608,
0.11842603981494904,
-0.34836259484291077,
0.556789755821228,
0.4173838496208191,
-0.2593960762023926,
0.0024571940302848816,
-0.21256646513938904,
0.6025976538658142,
0.26589399576187134,
0.16721579432487488,
0.003840439021587372,
-0.23792308568954468,
-0.15845289826393127,
0.10349992662668228,
-0.34697145223617554,
0.002483665943145752,
-0.28962698578834534,
0.1918030083179474,
-0.2716618776321411,
0.36350560188293457,
-0.40412917733192444,
0.003033822402358055,
0.07437321543693542,
0.0767614021897316,
0.12478949129581451,
-0.4877852499485016,
0.10105112195014954,
-0.07118627429008484,
0.03666219860315323,
0.3372044861316681,
-0.00011567030742298812,
-0.02859174832701683,
0.5814051032066345,
0.04831956326961517,
-0.05340276658535004,
0.312186598777771,
0.48114994168281555,
-0.49621978402137756,
0.29216817021369934,
-0.2768391966819763,
0.02979336678981781,
-0.1636989563703537,
-0.3128533363342285,
0.10143890976905823,
0.5365035533905029,
-0.11443130671977997,
0.18877311050891876,
0.5778614282608032,
0.07240018248558044,
0.20148776471614838,
0.06232697516679764,
-0.09679105877876282,
-0.23233088850975037,
0.08268193900585175,
0.4364384114742279,
-0.1705193966627121,
-0.4072224497795105,
0.08625009655952454,
-0.08278795331716537,
0.3567173182964325,
-0.04892107844352722,
0.16827556490898132,
0.8467932343482971,
-0.09504348039627075,
-0.30108457803726196,
0.17561312019824982,
0.1570872813463211,
-0.2217915952205658,
-0.2138751894235611,
-0.19088131189346313,
-0.27208754420280457,
-0.12417873740196228,
-0.024789437651634216,
-0.21172775328159332,
-0.18013930320739746,
0.06307446211576462,
-0.30829837918281555,
0.18768256902694702,
-0.07521016150712967,
0.06115973740816116,
-0.2718208432197571,
0.05223538354039192,
0.01627420447766781,
0.02224632352590561,
-0.42516788840293884,
0.04470730945467949,
0.21431566774845123,
-0.08994342386722565,
0.09525024890899658,
0.031986162066459656,
0.010343853384256363,
-0.1096741110086441,
0.1929793655872345,
-0.2212173342704773,
-0.17088079452514648,
0.06298135966062546,
-0.13237302005290985,
0.08013176918029785,
-0.19846226274967194,
0.13801106810569763,
0.22727933526039124,
-0.024272847920656204,
0.2722267508506775,
0.03187687695026398,
0.40797436237335205,
0.11217296868562698,
0.07710061967372894,
0.02039831131696701,
0.16397778689861298,
-0.19723504781723022,
0.12641574442386627,
0.2029944658279419,
-0.012148585170507431,
-0.01155136525630951,
-0.16465957462787628,
0.33399370312690735,
0.3537817895412445,
0.08275725692510605,
0.13006602227687836,
-0.05989766865968704,
-0.11285266280174255,
-0.09856928139925003,
0.14209097623825073,
0.21145927906036377,
-0.16501405835151672,
-0.33982041478157043,
-0.04557105898857117,
-0.3156956136226654,
-0.1131620705127716,
-0.03261202573776245,
-0.08190242946147919,
0.5226355195045471,
0.20157191157341003,
0.1167479082942009,
-0.013367123901844025,
-0.060844697058200836,
-0.003956902772188187,
-0.04545658081769943,
0.16041478514671326,
0.273617684841156,
-0.1801854372024536,
0.06456416100263596,
0.33313101530075073,
-0.21472638845443726,
0.10041876882314682,
0.401711642742157,
0.0019662603735923767,
0.014730539172887802,
-0.32488876581192017,
0.027134761214256287,
-0.3449069857597351,
0.2925203740596771,
-0.3482392132282257,
-0.23471029102802277,
0.3120608925819397,
0.019108865410089493,
0.0911078006029129,
-0.49936604499816895,
0.07046520709991455,
-0.04171966016292572,
0.24282464385032654,
0.2687729001045227,
-0.5468883514404297,
-0.3661729395389557,
-0.2729976773262024,
-0.11320553719997406,
0.5822643041610718,
0.46527138352394104,
0.09132079035043716,
0.35279035568237305,
-0.051645778119564056,
0.07999351620674133,
-0.07150783389806747,
0.004079557955265045,
-0.3240097761154175,
-0.050680357962846756,
0.03423471003770828,
0.35980895161628723,
-0.22170212864875793,
-0.1391575187444687,
0.5451207160949707,
0.026842327788472176,
0.22252178192138672,
0.10771806538105011,
0.2201520949602127,
0.0050674546509981155,
-0.518220841884613,
0.11981475353240967,
0.14246788620948792,
0.05395213142037392,
0.22645053267478943,
-0.041396550834178925,
-0.07606387883424759,
-0.35141947865486145,
0.3787592649459839,
0.4695475995540619,
0.06139835715293884,
-0.10327471792697906,
-0.12358936667442322,
0.037932250648736954,
0.20851150155067444,
0.22916316986083984,
0.11621027439832687,
0.22494468092918396,
-0.20894888043403625,
-0.03434045612812042,
0.07958686351776123,
0.13174590468406677,
-0.4423646032810211,
0.09883241355419159,
-0.30593985319137573,
-0.14150536060333252,
0.17492501437664032,
-0.17712780833244324,
-0.08690270781517029,
0.25031962990760803,
0.16657599806785583,
-0.1593327671289444,
-0.0878700315952301,
0.08418785035610199,
0.24464504420757294,
0.6247321963310242,
0.22989529371261597,
-0.6264792084693909,
0.07589920610189438,
0.15468427538871765,
-0.047536373138427734,
0.1062089130282402,
-0.099664606153965,
0.025580214336514473,
0.41093266010284424,
-0.07424168288707733,
-0.2628404498100281,
-0.20663250982761383,
0.24791671335697174,
0.09211279451847076,
-0.052758507430553436,
0.6166582107543945,
-0.16699735820293427,
-0.07358628511428833,
0.2651449143886566,
0.1080770492553711,
-0.15079320967197418,
0.21667727828025818,
-0.16688308119773865,
0.3541097640991211,
-0.04775141924619675,
0.004200384020805359,
-0.164663165807724,
-0.0965929627418518,
0.0865282490849495,
0.051981501281261444,
0.10383862257003784,
-0.2703283131122589,
0.2899268865585327,
0.2455769181251526,
0.28564196825027466,
0.059727732092142105,
0.12611684203147888,
-0.10842712968587875,
-0.44260507822036743,
0.3919293284416199,
0.3509085476398468,
-0.12448558211326599,
-0.06417499482631683,
-0.005992341786623001,
-0.09250909090042114,
0.10715688019990921,
-0.10561302304267883,
-0.19117766618728638,
-0.24194005131721497,
0.2931978404521942,
0.07175827026367188,
0.2813778221607208,
-0.0015513445250689983,
-0.09768421202898026,
-0.18781694769859314,
0.17447654902935028,
-0.24198505282402039,
0.04160710424184799,
-0.25970014929771423,
-0.17730750143527985,
-0.26350852847099304,
-0.07081626355648041,
0.05746622383594513,
-0.3950707018375397,
-0.12415733933448792,
-0.24603673815727234,
0.06400758028030396,
0.27768442034721375,
-0.045718614012002945,
0.40097683668136597,
0.470331072807312,
-0.12691353261470795,
0.21927304565906525,
0.3190114498138428,
-0.20363645255565643,
-0.20758716762065887,
-0.12638968229293823,
0.059733327478170395,
-0.003454973455518484,
-0.08284704387187958,
-0.0726938471198082,
-0.4586651027202606,
0.21375612914562225,
-0.2816911041736603,
-0.0525498241186142,
0.07435940951108932,
-0.03552214801311493,
0.5063043236732483,
-0.2617630958557129,
0.2529342472553253,
-0.1107390746474266,
0.41060617566108704,
0.4045543968677521,
-0.20052702724933624,
-0.1289592981338501,
0.019946567714214325,
0.07788902521133423,
-0.26079756021499634,
-0.03935881704092026,
0.33441025018692017,
-0.2608056962490082,
-0.1424449235200882,
0.2783361077308655,
0.05029713734984398,
0.1694926619529724,
-0.5509201884269714,
-0.3159066140651703,
0.05163988471031189,
0.25309500098228455,
-0.15645623207092285,
-0.028212321922183037,
-0.22231143712997437,
0.28578418493270874,
-0.28542599081993103,
-0.2039784938097,
-0.13331559300422668,
-0.032973870635032654,
0.021691560745239258,
-0.6995670795440674,
-0.39133352041244507,
-0.0166678074747324,
-0.15150927007198334,
0.5323095917701721,
0.08804899454116821,
0.02537410520017147,
0.027831710875034332,
0.0030355106573551893,
-0.004420395940542221,
-0.06637464463710785,
-0.29886579513549805,
0.01681388169527054,
0.04030737653374672,
0.3351408541202545,
-0.07346539199352264,
0.04137970879673958,
-0.16783736646175385,
0.26775819063186646,
0.19053885340690613,
0.09431888908147812,
0.03248748183250427,
-0.09370473772287369,
0.07331933826208115,
0.012671172618865967,
-0.0974271222949028,
-0.11528265476226807,
-0.18589037656784058,
-0.07310405373573303,
0.06310532242059708,
0.10631824284791946,
0.1593657284975052,
0.19336830079555511,
0.034799087792634964,
-0.19471552968025208,
-0.2861011028289795,
-0.11827586591243744,
-0.22992238402366638,
-0.11677780002355576,
0.03353557363152504,
0.33121588826179504,
-0.07197797298431396,
-0.22324365377426147,
-0.12265460193157196,
0.1832714080810547,
0.4686774015426636,
0.04867782071232796,
0.38242894411087036,
-0.16219384968280792,
-0.2085372507572174,
-0.0009658560156822205,
0.1433834284543991,
0.030380476266145706,
-0.06371941417455673,
0.010241072624921799,
0.21037554740905762,
0.19039757549762726,
0.18648600578308105,
0.03762737661600113,
-0.13159535825252533,
0.48686203360557556,
-0.1329534649848938,
-0.5907797813415527,
-0.4485074281692505,
-0.08383707702159882,
-0.046181317418813705,
0.4464481472969055,
0.20259328186511993,
0.12144646793603897,
0.18320320546627045,
-0.16295956075191498,
0.16133859753608704,
-0.44067955017089844,
-0.408501535654068,
-0.5296405553817749,
-0.07720784842967987,
-0.12080933153629303,
0.10129354894161224,
0.022048452869057655,
-0.2823103368282318,
-0.3443130552768707,
-0.4439447522163391,
0.1510324627161026,
-0.23436769843101501,
-0.2038636952638626,
0.48260247707366943,
0.16186386346817017,
-0.36910581588745117,
0.284343957901001,
0.1946534961462021,
0.07034817337989807,
0.2092735320329666,
-0.12134186923503876,
0.19559672474861145,
0.11742368340492249,
0.21292051672935486,
-0.45357099175453186,
-0.05423451215028763,
-0.032730430364608765,
-0.05404707044363022,
0.2696751356124878,
-0.34945687651634216,
0.1118171364068985,
-0.07139721512794495,
-0.21714060008525848,
0.3293798863887787,
-0.10247445106506348,
0.10406957566738129,
0.2512630224227905,
0.06648197770118713,
-0.13879254460334778,
-0.03926696628332138,
0.06480661034584045,
-0.2958231568336487,
0.25026312470436096,
-0.3924267292022705,
0.25389713048934937,
0.4127413034439087,
-0.30738723278045654,
-0.19855284690856934,
0.11352638155221939,
-0.10083995759487152,
0.06740551441907883,
0.38427430391311646,
0.07691194117069244,
-0.4579053521156311,
-0.1355748027563095,
0.08969848603010178,
-0.19706487655639648,
-0.07434657961130142,
0.014376536011695862,
-0.26431819796562195,
0.09203696250915527,
-0.35802847146987915,
-0.0003535822033882141,
0.1422572135925293,
-0.18661193549633026,
0.47328197956085205,
-0.09451916813850403,
-0.23930874466896057,
0.16985969245433807,
-0.17928878962993622,
0.31003743410110474,
-0.07784229516983032,
0.032334789633750916,
-0.22172364592552185,
0.2593059539794922,
-0.32424479722976685,
0.19426709413528442,
0.08688582479953766,
0.3065234422683716,
0.6779513359069824,
-0.25825047492980957,
-0.47805583477020264,
-0.13056951761245728,
0.09575393050909042,
-0.029839057475328445,
0.04109204560518265,
0.1004781723022461,
0.26539960503578186,
0.12242856621742249,
0.04196477681398392,
0.23409618437290192,
0.11695173382759094,
-0.26593005657196045,
-0.3217813968658447,
0.23032477498054504,
0.016510430723428726,
-0.4008852243423462,
-0.19088774919509888,
0.21245302259922028,
0.5923563838005066,
0.07727675139904022,
0.607110857963562,
-0.1708691418170929,
0.09386956691741943,
-0.2045489251613617,
0.13926419615745544,
0.20389236509799957,
-0.10192662477493286,
0.6167325973510742,
-0.22411562502384186,
-0.010504335165023804,
-0.0011597145348787308,
0.01553424447774887,
-0.10594316571950912,
0.2463875412940979,
0.1346389353275299,
0.25717493891716003,
-0.2707898020744324,
-0.04004446417093277,
0.3904452323913574,
0.025342386215925217,
-0.03690027818083763,
0.47494998574256897,
-0.2261114865541458,
0.28439605236053467,
-0.30629825592041016,
0.2049468755722046,
0.30424338579177856,
-0.15158632397651672,
-0.48164090514183044,
-0.17073321342468262,
-0.5891596674919128,
0.08618113398551941,
-0.051126349717378616,
-0.17541585862636566,
-0.06312287598848343,
0.5393029451370239,
-0.034393761307001114,
-0.11661222577095032,
-0.2260076105594635,
-0.002778299618512392,
-0.19653968513011932,
0.15880262851715088,
0.3093070685863495,
-0.19776514172554016,
-0.3245769143104553,
-0.17858409881591797,
-0.05072619765996933,
0.07640136033296585,
0.05612746253609657,
-0.18200832605361938,
-0.25452354550361633,
0.08415009081363678,
-0.007867757230997086,
-0.25691235065460205,
-0.042327091097831726,
0.1870153248310089,
-0.01939273625612259,
-0.06057050824165344,
0.17046582698822021,
0.010139074176549911,
0.092553049325943,
0.28590813279151917,
0.07863885164260864,
0.12870043516159058,
-0.1340809017419815,
-0.08959425985813141,
0.10999397188425064,
0.543104350566864,
-0.03638297691941261,
0.13043144345283508,
0.21002760529518127,
0.20702701807022095,
-0.00935424491763115,
-0.08435758203268051,
-0.3582531213760376,
0.25757601857185364,
0.36933019757270813,
-0.27557599544525146,
0.1990131139755249,
-0.3448757827281952,
0.2791692316532135,
0.2967947721481323,
-0.03826488181948662,
-0.42962393164634705,
0.12471405416727066,
0.1603262573480606,
-0.0035054385662078857,
-0.1456475555896759,
0.15967363119125366,
0.35910409688949585,
-0.06596828252077103,
0.23620900511741638,
-0.14996354281902313,
0.05239245295524597,
0.1445043981075287,
0.0649675652384758,
0.00410363869741559,
-0.15380829572677612,
-0.20741839706897736,
0.3424954414367676,
-0.038756828755140305,
0.29160794615745544,
0.29553401470184326,
-0.17970256507396698,
-0.24894064664840698,
-0.22901158034801483,
0.0882854089140892,
-0.14182767271995544,
0.16462332010269165,
-0.0915953516960144,
0.08868636935949326,
0.20833562314510345,
-0.3614554703235626,
-0.25039467215538025,
-0.005938015878200531,
0.01107819378376007,
0.06865647435188293,
0.1550811231136322,
-0.1648523360490799,
-0.22167587280273438,
-0.37887272238731384,
0.07779879868030548,
-0.09324445575475693,
0.087435781955719,
-0.17690742015838623,
-0.020430706441402435,
-0.0972803384065628,
0.06880731880664825,
-0.128193661570549,
0.3972240686416626,
0.20024645328521729,
-0.015865035355091095,
0.00694805383682251,
-0.3464370369911194,
-0.2009725272655487,
0.10603871196508408,
0.29967883229255676,
-0.0015275180339813232,
-0.10863753408193588,
0.3010883033275604,
0.24251624941825867,
-0.26983964443206787,
0.1807522028684616,
0.20704565942287445,
0.3308277130126953,
-0.18414941430091858,
-0.5122315287590027,
-0.08719487488269806,
0.014796877279877663,
0.07656054198741913,
0.39830079674720764,
0.010446704924106598,
-0.23937804996967316,
0.03720473125576973,
0.07162351906299591,
-0.13995742797851562,
0.1981385201215744,
0.03237982839345932,
0.23989145457744598,
0.1445453017950058,
0.500763475894928,
-0.2323468029499054,
-0.21111485362052917,
0.10010990500450134,
-0.3531181812286377,
-0.14194878935813904,
0.007519272621721029,
0.23857936263084412,
-0.08022776246070862,
-0.023847714066505432,
-0.14158673584461212,
0.07907505333423615,
-0.4065200984477997,
0.36234721541404724,
0.34102535247802734,
0.3175615668296814,
-0.025495752692222595,
-0.04920363426208496,
-0.3845289349555969,
0.3794114291667938,
-0.17815323173999786,
-0.30135273933410645,
0.2541193962097168,
0.043315574526786804,
-0.26519209146499634,
0.3701045513153076,
0.7036450505256653,
-0.2908419370651245,
-0.5082324743270874,
-0.3333396017551422,
-0.27697744965553284,
0.008610844612121582,
0.3501787781715393,
-0.24691227078437805,
-0.08904500305652618,
-0.09827885031700134,
0.27659842371940613,
-0.07497631758451462,
0.13203758001327515,
0.15401680767536163,
-0.12428881227970123,
0.06883533298969269,
0.5911543369293213,
0.06915928423404694,
0.20646202564239502,
0.12132279574871063,
0.044296830892562866,
-0.13193807005882263,
0.15083391964435577,
-0.34541016817092896,
-0.021868471056222916,
0.3271319568157196,
-0.33553698658943176,
0.4607938230037689,
0.2721303701400757,
-0.07498028874397278,
-0.3710607886314392,
0.4132906198501587,
0.2208663374185562,
-0.004890728741884232,
-0.09036798030138016,
-0.09348318725824356,
0.05116207152605057,
-0.07921284437179565,
-0.0652783215045929,
0.11650864034891129,
-0.05069388449192047,
0.4800715148448944,
-0.07640029489994049,
-0.1664080023765564,
0.27836287021636963,
-0.1838294267654419,
-0.3798914849758148,
-0.12455831468105316,
-0.021778970956802368,
0.07253610342741013,
-0.009623710066080093,
-0.044175904244184494,
-0.32082048058509827,
0.22673173248767853,
-0.14200720191001892,
-0.28459417819976807,
0.12167671322822571,
-0.15356358885765076,
0.0717054158449173,
0.04702799394726753,
0.1328728199005127,
0.11031121015548706,
0.014505965635180473,
-0.10968844592571259,
-0.09730977565050125
] |
https://github.com/huggingface/datasets/issues/2630 | Progress bars are not properly rendered in Jupyter notebook | Hi @mludv, thanks for the hint!!! :)
We will definitely take it into account to try to fix this issue... It seems somehow related to `multiprocessing` and `tqdm`... | ## Describe the bug
The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal).
## Steps to reproduce the bug
```python
ds.map(tokenize, num_proc=10)
```
## Expected results
Jupyter widgets displaying the progress bars.
## Actual results
Simple plane progress bars.
cc: Reported by @thomwolf | 28 | Progress bars are not properly rendered in Jupyter notebook
## Describe the bug
The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal).
## Steps to reproduce the bug
```python
ds.map(tokenize, num_proc=10)
```
## Expected results
Jupyter widgets displaying the progress bars.
## Actual results
Simple plane progress bars.
cc: Reported by @thomwolf
Hi @mludv, thanks for the hint!!! :)
We will definitely take it into account to try to fix this issue... It seems somehow related to `multiprocessing` and `tqdm`... | [
0.08407516777515411,
-0.017447464168071747,
-0.05534328520298004,
0.14674845337867737,
0.1418052464723587,
-0.2826746702194214,
0.4365513324737549,
0.30817121267318726,
-0.2813873291015625,
0.13351725041866302,
-0.17346835136413574,
0.49589863419532776,
0.30211329460144043,
0.3606433570384979,
-0.09345868974924088,
-0.28195539116859436,
-0.08388025313615799,
0.16409459710121155,
-0.3097078502178192,
-0.0013433769345283508,
-0.3553539216518402,
0.22891147434711456,
-0.36001741886138916,
0.2748979926109314,
-0.32604753971099854,
-0.015769025310873985,
0.006736965849995613,
-0.033976152539253235,
0.20255424082279205,
-0.37077072262763977,
0.060321465134620667,
-0.08699750900268555,
0.12911827862262726,
0.4368247091770172,
-0.00011342285870341584,
-0.10874784737825394,
0.4875662922859192,
0.04134005308151245,
0.032901328057050705,
0.2878982722759247,
0.45594534277915955,
-0.4877929091453552,
0.2829352915287018,
-0.28500187397003174,
0.07106021046638489,
-0.17946936190128326,
-0.39549198746681213,
-0.04206134006381035,
0.40650755167007446,
-0.1567406952381134,
0.24736429750919342,
0.4405182898044586,
-0.018232379108667374,
0.20767821371555328,
0.03910936042666435,
-0.1461220234632492,
-0.20838922262191772,
-0.028222043067216873,
0.465392142534256,
-0.3063618540763855,
-0.38798877596855164,
0.10639680922031403,
-0.048643387854099274,
0.41870173811912537,
-0.03938068449497223,
0.2133057415485382,
0.9913777112960815,
-0.08786523342132568,
-0.2944227457046509,
0.21151024103164673,
0.23941782116889954,
-0.10597791522741318,
-0.15123720467090607,
-0.12025488913059235,
-0.2735104560852051,
-0.11603905260562897,
-0.1966741681098938,
-0.08610731363296509,
-0.21048957109451294,
0.021472979336977005,
-0.32548612356185913,
0.14745740592479706,
0.02307984232902527,
0.003931418061256409,
-0.22272208333015442,
0.06387458741664886,
-0.01642673835158348,
-0.025416016578674316,
-0.41520920395851135,
0.11075999587774277,
0.16869741678237915,
-0.16471093893051147,
0.1662716567516327,
-0.01742377132177353,
-0.06687617301940918,
0.051446929574012756,
0.1705864667892456,
-0.03947777301073074,
-0.19512513279914856,
-0.0893872082233429,
-0.09344391524791718,
0.10656645148992538,
-0.11095834523439407,
0.11761109530925751,
0.13802309334278107,
0.03638245537877083,
0.2670513093471527,
-0.07379871606826782,
0.41574782133102417,
0.02656562812626362,
0.026228945702314377,
0.05105573683977127,
0.2824546694755554,
-0.28433719277381897,
0.1190834492444992,
0.26966238021850586,
-0.16990254819393158,
-0.02401971071958542,
-0.13256525993347168,
0.28395184874534607,
0.3845815062522888,
-0.11722391843795776,
0.05010141059756279,
-0.021201178431510925,
-0.16043773293495178,
0.04589495435357094,
0.09822316467761993,
0.2016148418188095,
-0.09388672560453415,
-0.2694264054298401,
-0.12792539596557617,
-0.2795529365539551,
-0.2595213055610657,
0.0063252802938222885,
-0.1258065104484558,
0.3609214425086975,
0.2234240472316742,
0.14004313945770264,
-0.05569128692150116,
-0.19582821428775787,
-0.0410633385181427,
-0.05041053518652916,
0.10325371474027634,
0.24662427604198456,
-0.08296073973178864,
0.1367761790752411,
0.29609188437461853,
-0.29108721017837524,
0.12651678919792175,
0.42590466141700745,
-0.03934461623430252,
0.03939298167824745,
-0.35347986221313477,
0.0832788273692131,
-0.3191148638725281,
0.3744330108165741,
-0.45552822947502136,
-0.22639821469783783,
0.3937736451625824,
0.07767313718795776,
0.09674614667892456,
-0.41631317138671875,
-0.017840616405010223,
-0.1785808950662613,
0.17323698103427887,
0.14559818804264069,
-0.5406768321990967,
-0.3143542408943176,
-0.09991011768579483,
-0.14384156465530396,
0.6745645403862,
0.3311752676963806,
0.061638448387384415,
0.3111005425453186,
-0.03555223345756531,
0.1803802102804184,
-0.029943563044071198,
-0.09980791807174683,
-0.27030134201049805,
-0.0446329265832901,
0.06868115067481995,
0.3434058725833893,
-0.11681044846773148,
-0.10472583025693893,
0.3879327178001404,
0.057167842984199524,
0.16054219007492065,
0.1995612233877182,
0.2249501347541809,
-0.00405077263712883,
-0.5000804662704468,
0.14725475013256073,
0.2613554000854492,
0.13687555491924286,
0.25155624747276306,
-0.10519088059663773,
-0.1100693866610527,
-0.44717222452163696,
0.45485618710517883,
0.38960930705070496,
0.07356585562229156,
-0.10861597955226898,
-0.20651961863040924,
0.048668570816516876,
0.2095971554517746,
0.20037460327148438,
0.05015287548303604,
0.2725409269332886,
-0.22282664477825165,
-0.15057900547981262,
0.1081630140542984,
0.08416752517223358,
-0.28022268414497375,
0.05745343863964081,
-0.3637309670448303,
-0.21233901381492615,
0.2303522229194641,
-0.02149289846420288,
-0.032437410205602646,
0.1609048694372177,
0.19288945198059082,
-0.03816244751214981,
0.044947899878025055,
-0.024123838171362877,
0.21771326661109924,
0.6586596965789795,
0.22010095417499542,
-0.5620316863059998,
0.10056959092617035,
0.10980962216854095,
-0.010012820363044739,
0.059966523200273514,
-0.11675608903169632,
0.10554604977369308,
0.37067675590515137,
-0.012615762650966644,
-0.2862400710582733,
-0.25312358140945435,
0.19412463903427124,
0.14762188494205475,
-0.11425385624170303,
0.5261476039886475,
-0.05835387483239174,
-0.121865414083004,
0.3449294865131378,
0.08726158738136292,
-0.19324320554733276,
0.35059720277786255,
-0.13360898196697235,
0.25731703639030457,
-0.014807332307100296,
0.016546446830034256,
-0.05423911660909653,
-0.14585165679454803,
0.1375340074300766,
0.03434782475233078,
0.055681582540273666,
-0.26512610912323,
0.3374619781970978,
0.21012429893016815,
0.2718615233898163,
0.09492562711238861,
0.1694934070110321,
-0.17085960507392883,
-0.4523811936378479,
0.3870066702365875,
0.3288426101207733,
-0.12609584629535675,
0.10764704644680023,
0.08871935307979584,
-0.05569076165556908,
0.03884012997150421,
0.03462439775466919,
-0.272983193397522,
-0.2650904059410095,
0.26907336711883545,
0.2852131724357605,
0.341522216796875,
-0.05539526790380478,
-0.1524234116077423,
-0.08432241529226303,
0.17915275692939758,
-0.2676635980606079,
0.06212213635444641,
-0.1503649652004242,
-0.2169017195701599,
-0.28021040558815,
-0.0814332515001297,
0.10667474567890167,
-0.2798362076282501,
-0.09732018411159515,
-0.20149733126163483,
-0.029456865042448044,
0.1356526017189026,
0.05480988696217537,
0.36021658778190613,
0.5633693933486938,
-0.12253810465335846,
0.14015232026576996,
0.3674178421497345,
-0.18481290340423584,
-0.23125578463077545,
-0.2094031274318695,
0.07960739731788635,
0.02186949923634529,
-0.02702515758574009,
-0.14524656534194946,
-0.5066239237785339,
0.2695994973182678,
-0.2906694710254669,
0.04244595021009445,
0.055296994745731354,
0.0010293275117874146,
0.42390573024749756,
-0.31180742383003235,
0.19143369793891907,
-0.04860380291938782,
0.46845999360084534,
0.37796249985694885,
-0.12739251554012299,
-0.16813795268535614,
0.08221917599439621,
0.08497106283903122,
-0.2132694274187088,
-0.050414688885211945,
0.3898370862007141,
-0.33171844482421875,
-0.1092650443315506,
0.23912306129932404,
-0.029565896838903427,
0.19687645137310028,
-0.7200558185577393,
-0.27997225522994995,
-0.023817867040634155,
0.2932693362236023,
-0.06939597427845001,
-0.10436190664768219,
-0.13135920464992523,
0.23337523639202118,
-0.2860134541988373,
-0.2543160319328308,
-0.23627813160419464,
-0.05905558541417122,
0.03119811788201332,
-0.6471821665763855,
-0.41208750009536743,
-0.08593271672725677,
-0.20043610036373138,
0.3781545162200928,
0.038204845041036606,
0.1749144047498703,
0.15846547484397888,
0.0033084298484027386,
-0.05387075990438461,
-0.08494419604539871,
-0.4036502540111542,
0.05243278294801712,
-0.0169648677110672,
0.3014838993549347,
-0.02300933003425598,
-0.027072452008724213,
-0.17107102274894714,
0.13825911283493042,
0.29923397302627563,
0.07538531720638275,
0.1574762910604477,
-0.0522206574678421,
-0.014151562005281448,
0.10127012431621552,
-0.07672802358865738,
-0.1693764179944992,
-0.19423142075538635,
0.04780775308609009,
0.12274251878261566,
0.08464748412370682,
0.06527642160654068,
0.13893692195415497,
-0.013385741040110588,
-0.380344420671463,
-0.17876127362251282,
-0.15538540482521057,
-0.17383378744125366,
-0.08481552451848984,
0.00645582377910614,
0.2819906175136566,
-0.011420163325965405,
-0.20941630005836487,
-0.10500229895114899,
0.18780122697353363,
0.34503382444381714,
-0.02185576781630516,
0.4383287727832794,
-0.22924044728279114,
-0.16163921356201172,
0.16739735007286072,
0.1712915152311325,
-0.021953478455543518,
0.05344247445464134,
0.07230479270219803,
0.1686127781867981,
0.11266720294952393,
0.34542861580848694,
-0.131316140294075,
-0.10814173519611359,
0.43998223543167114,
-0.1932770162820816,
-0.5599923133850098,
-0.528784453868866,
-0.13888144493103027,
-0.02711375802755356,
0.3023204803466797,
0.32387614250183105,
0.17046281695365906,
0.12943841516971588,
-0.3058631718158722,
0.13421916961669922,
-0.45071789622306824,
-0.5005689263343811,
-0.542830765247345,
-0.03203800320625305,
-0.009936928749084473,
-0.027590759098529816,
-0.09849652647972107,
-0.10001087933778763,
-0.30135923624038696,
-0.4653049409389496,
0.11867168545722961,
-0.2689269185066223,
-0.14942894876003265,
0.43306997418403625,
0.15918511152267456,
-0.2284727841615677,
0.1799621731042862,
0.15873202681541443,
0.22333821654319763,
0.13992461562156677,
-0.1881379336118698,
0.0017881505191326141,
0.21733295917510986,
0.25869348645210266,
-0.47339755296707153,
0.04239886254072189,
-0.080637127161026,
-0.11619562655687332,
0.2704630494117737,
-0.4603220522403717,
0.21496549248695374,
-0.1570177525281906,
-0.2689243257045746,
0.34147322177886963,
-0.04832180216908455,
0.01321051362901926,
0.20803318917751312,
0.12329480051994324,
0.005004826933145523,
-0.1137179285287857,
-0.06892129778862,
-0.2857615351676941,
0.21302282810211182,
-0.370186984539032,
0.22927144169807434,
0.3312898576259613,
-0.38058674335479736,
-0.17504185438156128,
-0.06809183955192566,
-0.22689016163349152,
0.11773904412984848,
0.3030441999435425,
0.06246668100357056,
-0.38274645805358887,
-0.26039668917655945,
0.08250350505113602,
-0.26307734847068787,
-0.02588801085948944,
-0.0040114931762218475,
-0.27647918462753296,
0.20610211789608002,
-0.42027974128723145,
-0.041172709316015244,
0.13082599639892578,
-0.13842430710792542,
0.6062148213386536,
-0.10455606877803802,
-0.13994957506656647,
0.16358374059200287,
-0.2762545347213745,
0.3311765491962433,
-0.12989112734794617,
0.06651103496551514,
-0.15402784943580627,
0.2529997229576111,
-0.3340661823749542,
0.1621991991996765,
0.04697186499834061,
0.32779425382614136,
0.5213477611541748,
-0.2467440813779831,
-0.46420666575431824,
0.12796004116535187,
0.18284258246421814,
-0.07533518970012665,
0.08023159950971603,
0.02823246270418167,
0.10759930312633514,
0.15364384651184082,
-0.015219026245176792,
0.2035626769065857,
0.06593763083219528,
-0.342629075050354,
-0.3608884811401367,
0.27686041593551636,
0.05447389930486679,
-0.3398239016532898,
-0.15800811350345612,
0.25128036737442017,
0.5153223872184753,
0.16597621142864227,
0.5921125411987305,
-0.08236706256866455,
0.2200639247894287,
-0.23100709915161133,
0.16854846477508545,
0.21387529373168945,
-0.21187835931777954,
0.7508047819137573,
-0.20676831901073456,
-0.021772131323814392,
0.04264502227306366,
0.026349149644374847,
0.07040761411190033,
0.12680180370807648,
0.06716214120388031,
0.3412517309188843,
-0.25475752353668213,
-0.09635443240404129,
0.26610440015792847,
0.12765620648860931,
0.011672906577587128,
0.4833354949951172,
-0.22200453281402588,
0.2646164298057556,
-0.22588889300823212,
0.34051162004470825,
0.29064926505088806,
-0.009998790919780731,
-0.4293835163116455,
-0.24618315696716309,
-0.5078001022338867,
0.05476580187678337,
0.07291479408740997,
-0.19931961596012115,
-0.10203904658555984,
0.43418508768081665,
0.00943225808441639,
0.12359150499105453,
-0.2600487470626831,
0.04824799299240112,
-0.21037593483924866,
0.1416706144809723,
0.21560193598270416,
-0.12739577889442444,
-0.3874325752258301,
-0.10207381844520569,
0.011141831055283546,
0.029489049687981606,
-0.024992380291223526,
-0.25054818391799927,
-0.23735804855823517,
0.0590549111366272,
-0.061838701367378235,
-0.118964783847332,
0.08297549188137054,
0.17660300433635712,
-0.013700287789106369,
-0.050327520817518234,
0.18991859257221222,
0.007065892219543457,
0.04277198016643524,
0.3488994836807251,
0.1346115916967392,
0.11654157936573029,
-0.15153399109840393,
-0.06056901067495346,
-0.005982674658298492,
0.5434565544128418,
-0.0660194605588913,
0.10436457395553589,
0.3075920343399048,
0.16127996146678925,
0.04893406108021736,
-0.2327800691127777,
-0.31880998611450195,
0.27742332220077515,
0.2623286545276642,
-0.3050256371498108,
0.23511749505996704,
-0.3422245979309082,
0.33263903856277466,
0.14374879002571106,
-0.03386183828115463,
-0.27242252230644226,
0.13753747940063477,
0.2036043256521225,
-0.06833544373512268,
-0.20919859409332275,
0.20824426412582397,
0.3461475372314453,
-0.008188493549823761,
0.3194357454776764,
-0.14218297600746155,
0.04629047214984894,
0.10240849107503891,
0.0240945927798748,
-0.06754407286643982,
0.009102197363972664,
-0.20597928762435913,
0.35051241517066956,
0.0656639039516449,
0.2744104564189911,
0.27481624484062195,
-0.05932089313864708,
-0.32892847061157227,
-0.17680269479751587,
0.11064191907644272,
-0.043499089777469635,
0.07476615905761719,
-0.09425130486488342,
0.03316250443458557,
0.15543293952941895,
-0.17413391172885895,
-0.12453427910804749,
-0.07198271155357361,
-0.018395252525806427,
-0.06289041042327881,
0.22632575035095215,
-0.16796711087226868,
-0.26154273748397827,
-0.327953577041626,
0.08317910879850388,
-0.09470965713262558,
-0.021626153960824013,
-0.07677526772022247,
-0.09712105244398117,
-0.08497469127178192,
0.0793217271566391,
-0.1062789261341095,
0.3211345672607422,
0.312242329120636,
-0.02797047793865204,
-0.0099644735455513,
-0.15976138412952423,
-0.2634788155555725,
0.12583816051483154,
0.3141278326511383,
0.0011355206370353699,
-0.17652051150798798,
0.23308494687080383,
0.23905088007450104,
-0.38908132910728455,
0.21031883358955383,
0.1597006618976593,
0.35477229952812195,
-0.2991581857204437,
-0.5115672945976257,
0.046582628041505814,
0.04317186772823334,
0.0745619684457779,
0.357771635055542,
0.14260421693325043,
-0.2597822844982147,
0.05221588537096977,
0.07832463830709457,
-0.17512212693691254,
0.28208234906196594,
0.07682359963655472,
0.34405961632728577,
0.12528997659683228,
0.4495249390602112,
-0.2704699635505676,
-0.1520073562860489,
0.10305469483137131,
-0.25616493821144104,
-0.29234418272972107,
0.0472152940928936,
0.20220300555229187,
-0.14733722805976868,
-0.03489788621664047,
-0.13492451608181,
0.10294195264577866,
-0.3961714804172516,
0.37718474864959717,
0.26361653208732605,
0.41156649589538574,
-0.1070389449596405,
-0.19586125016212463,
-0.39082592725753784,
0.33887550234794617,
-0.13048572838306427,
-0.24756692349910736,
0.12631426751613617,
0.1302095502614975,
-0.2292502224445343,
0.35516345500946045,
0.7703395485877991,
-0.18490220606327057,
-0.4258209764957428,
-0.14957064390182495,
-0.4036407768726349,
0.03356126695871353,
0.3173779249191284,
-0.23141899704933167,
-0.0433620885014534,
-0.07006937265396118,
0.24275442957878113,
-0.05393504723906517,
0.21548065543174744,
0.05314171314239502,
-0.005942139774560928,
0.0582597516477108,
0.36028531193733215,
0.18918219208717346,
0.11749804764986038,
0.02601063996553421,
0.014779791235923767,
-0.08302735537290573,
0.3153703510761261,
-0.11409463733434677,
0.14646416902542114,
0.2588912844657898,
-0.29211679100990295,
0.3584013879299164,
0.13578638434410095,
0.13040611147880554,
-0.37190237641334534,
0.34127670526504517,
0.27343785762786865,
0.10593540966510773,
-0.12067623436450958,
-0.06708305329084396,
0.23115825653076172,
-0.19749516248703003,
0.035105135291814804,
0.1029525101184845,
-0.1211242526769638,
0.3408855199813843,
-0.11126416176557541,
-0.09854079782962799,
0.26667875051498413,
-0.1712307333946228,
-0.4160820543766022,
-0.1571352779865265,
-0.042910635471343994,
0.06637860834598541,
0.04792065545916557,
-0.06479455530643463,
-0.3053126335144043,
0.2395627349615097,
-0.058225326240062714,
-0.35158485174179077,
0.14495950937271118,
-0.32564374804496765,
0.02656768634915352,
0.06825268268585205,
-0.03569081425666809,
0.13990892469882965,
-0.003514101728796959,
-0.18547594547271729,
-0.1822354793548584
] |
https://github.com/huggingface/datasets/issues/2629 | Load datasets from the Hub without requiring a dataset script | This is so cool, let us know if we can help with anything on the hub side (@Pierrci @elishowk) π | As a user I would like to be able to upload my csv/json/text/parquet/etc. files in a dataset repository on the Hugging Face Hub and be able to load this dataset with `load_dataset` without having to implement a dataset script.
Moreover I would like to be able to specify which file goes into which split using the `data_files` argument.
This feature should be compatible with private repositories and dataset streaming.
This can be implemented by checking the extension of the files in the dataset repository and then by using the right dataset builder that is already packaged in the library (csv/json/text/parquet/etc.) | 20 | Load datasets from the Hub without requiring a dataset script
As a user I would like to be able to upload my csv/json/text/parquet/etc. files in a dataset repository on the Hugging Face Hub and be able to load this dataset with `load_dataset` without having to implement a dataset script.
Moreover I would like to be able to specify which file goes into which split using the `data_files` argument.
This feature should be compatible with private repositories and dataset streaming.
This can be implemented by checking the extension of the files in the dataset repository and then by using the right dataset builder that is already packaged in the library (csv/json/text/parquet/etc.)
This is so cool, let us know if we can help with anything on the hub side (@Pierrci @elishowk) π | [
-0.4575757682323456,
-0.04470103234052658,
-0.042136646807193756,
0.1991637945175171,
-0.1262190341949463,
0.1635165512561798,
0.37726500630378723,
0.17870411276817322,
0.4132857024669647,
0.13889165222644806,
-0.2391805797815323,
0.33877208828926086,
-0.06379549950361252,
0.5494153499603271,
0.2678030729293823,
0.17318785190582275,
0.13554029166698456,
0.33733755350112915,
0.015668369829654694,
0.1087149977684021,
-0.1472667008638382,
-0.02814178727567196,
0.05096554756164551,
-0.3055996894836426,
-0.4166119694709778,
0.13375310599803925,
-0.057475313544273376,
0.5216120481491089,
-0.20110192894935608,
-0.21193644404411316,
0.4005628526210785,
0.5012661218643188,
0.25026485323905945,
0.1841827929019928,
-0.0001212053612107411,
0.04340901970863342,
0.19280694425106049,
-0.14684940874576569,
-0.30164602398872375,
-0.1539461761713028,
-0.29934635758399963,
0.023187531158328056,
0.2855738401412964,
-0.101063571870327,
-0.08238066732883453,
0.20935982465744019,
0.15716281533241272,
-0.12919515371322632,
0.367739737033844,
0.09762216359376907,
0.016619239002466202,
0.29998186230659485,
-0.2592339813709259,
-0.3383881151676178,
0.10609647631645203,
0.5227718353271484,
-0.050180330872535706,
0.07536602765321732,
0.4466707408428192,
0.15012656152248383,
-0.2684875428676605,
-0.06160097196698189,
-0.051112495362758636,
-0.1306406706571579,
0.6978548765182495,
0.014117324724793434,
-0.4139385223388672,
-0.33698832988739014,
-0.05588587373495102,
0.2696109712123871,
0.48493459820747375,
-0.22265952825546265,
-0.18848179280757904,
-0.5040720701217651,
-0.10109024494886398,
-0.023111492395401,
0.11610868573188782,
0.3829917013645172,
-0.07452328503131866,
0.33008524775505066,
-0.19432437419891357,
-0.4995047450065613,
-0.2894498407840729,
-0.03941597789525986,
0.08703333139419556,
0.051034022122621536,
0.08335459232330322,
-0.11398384720087051,
0.20592999458312988,
0.07169127464294434,
0.31253981590270996,
-0.15259911119937897,
-0.1997702568769455,
0.18415862321853638,
-0.25911760330200195,
-0.15117105841636658,
-0.19092848896980286,
0.35444241762161255,
0.2726558446884155,
0.47769713401794434,
0.03135047107934952,
0.24505117535591125,
-0.45232251286506653,
0.059611912816762924,
0.34711170196533203,
-0.004910072777420282,
0.12107287347316742,
0.05489645153284073,
0.31359487771987915,
0.23628872632980347,
0.35346636176109314,
-0.019690170884132385,
-0.19496598839759827,
0.08065422624349594,
-0.4910578429698944,
-0.17289024591445923,
0.17837309837341309,
-0.08503612875938416,
-0.08366645127534866,
-0.34614235162734985,
0.5396615862846375,
0.05282073840498924,
0.22990348935127258,
0.28297391533851624,
0.13641750812530518,
0.12910014390945435,
-0.261796236038208,
0.18942482769489288,
-0.11748962104320526,
-0.2959383726119995,
-0.10570504516363144,
0.1344972550868988,
0.10334047675132751,
0.2694162428379059,
0.36885082721710205,
-0.359310507774353,
0.1102583110332489,
0.0069274017587304115,
0.4422932267189026,
0.043748676776885986,
-0.08644090592861176,
-0.013061707839369774,
0.016318149864673615,
0.14329378306865692,
0.3748800754547119,
-0.05359794199466705,
-0.02281571552157402,
-0.23779509961605072,
-0.31924858689308167,
0.06258814036846161,
-0.44182300567626953,
-0.518389105796814,
-0.05697477608919144,
0.012152710929512978,
-0.42683839797973633,
0.028066962957382202,
-0.6266534924507141,
0.06050083413720131,
-0.39988067746162415,
-0.041664768010377884,
-0.07952360063791275,
0.21163100004196167,
-0.012384623289108276,
-0.03998769447207451,
0.13209322094917297,
0.5962698459625244,
-0.2625657021999359,
-0.11461897194385529,
-0.05672566220164299,
-0.21468591690063477,
-0.3286302089691162,
-0.04497641697525978,
-0.17426373064517975,
0.1860434114933014,
-0.2278231978416443,
0.30332183837890625,
0.4498623311519623,
-0.5796933770179749,
-0.2853999137878418,
0.006489499006420374,
-0.11793772131204605,
0.07326414436101913,
0.1743246167898178,
0.37714651226997375,
0.3957129120826721,
-0.1296548843383789,
-0.1318271905183792,
0.5260870456695557,
0.0008257478475570679,
0.0909401997923851,
0.14594458043575287,
-0.518383800983429,
-0.15791594982147217,
0.43199530243873596,
0.12436465919017792,
0.03048790991306305,
0.3115406334400177,
0.20132188498973846,
0.13874897360801697,
-0.2980286180973053,
0.1430206447839737,
-0.1011165976524353,
0.025429176166653633,
0.04013167321681976,
-0.06843286007642746,
-0.054852306842803955,
-0.689110279083252,
0.3163144886493683,
0.09649662673473358,
-0.0020365454256534576,
-0.02444501221179962,
-0.37102651596069336,
-0.11712245643138885,
-0.18989776074886322,
-0.28183817863464355,
0.06346466392278671,
-0.09096144139766693,
-0.0830146074295044,
0.03504275903105736,
-0.13566121459007263,
-0.592110276222229,
0.6018563508987427,
-0.014923781156539917,
0.19606123864650726,
-0.6531117558479309,
0.40639355778694153,
0.33866992592811584,
-0.015375961549580097,
0.2168535590171814,
-0.028590045869350433,
0.12458278983831406,
-0.12215158343315125,
0.11262618005275726,
0.2599676847457886,
0.12577316164970398,
0.6147469282150269,
0.26052969694137573,
0.17029604315757751,
0.14838722348213196,
-0.05835224315524101,
0.21409307420253754,
-0.34898239374160767,
0.012365666218101978,
-0.1390497088432312,
-0.3719671368598938,
0.34141016006469727,
-0.4983018934726715,
0.11907695233821869,
0.07015740126371384,
-0.020437203347682953,
0.005230778828263283,
-0.046847522258758545,
-0.18611212074756622,
-0.1877373605966568,
-0.04552045837044716,
0.10429500043392181,
0.15938767790794373,
0.043911609798669815,
0.02195482701063156,
0.02188868075609207,
0.4020881652832031,
-0.08207753300666809,
0.051096104085445404,
0.1745690405368805,
-0.15870842337608337,
-0.036791495978832245,
0.1882544755935669,
0.0600360743701458,
0.2340119183063507,
0.15282042324543,
-0.06665480136871338,
0.2553107440471649,
0.39176616072654724,
-0.2559642195701599,
-0.006317161023616791,
-0.03884264826774597,
0.004694044124335051,
0.11488805711269379,
-0.11439061164855957,
-0.14909042418003082,
-0.3427886664867401,
-0.003819502890110016,
-0.05664728581905365,
-0.11972382664680481,
-0.20247524976730347,
-0.19745534658432007,
-0.1885620653629303,
0.044167064130306244,
0.10861445963382721,
-0.13905049860477448,
-0.2280125916004181,
-0.04748988151550293,
0.11320609599351883,
0.2926144301891327,
0.13568294048309326,
-0.18085135519504547,
0.10218751430511475,
0.8752861022949219,
-0.20775790512561798,
-0.42603787779808044,
-0.274422824382782,
-0.005218129139393568,
0.21125805377960205,
-0.03576512634754181,
0.25368717312812805,
0.39428845047950745,
0.2186063528060913,
-0.2756745219230652,
0.2006194293498993,
-0.34703829884529114,
0.1797516644001007,
0.19693918526172638,
0.03706483542919159,
0.028682135045528412,
0.11388557404279709,
0.07888659089803696,
0.22085218131542206,
-0.022446410730481148,
-0.13174942135810852,
-0.09864543378353119,
-0.060005947947502136,
-0.1949043571949005,
0.08396335691213608,
-0.05863611027598381,
-0.14587247371673584,
-0.12070605903863907,
-0.3679886758327484,
-0.45633336901664734,
0.3621259927749634,
0.3808917701244354,
0.027583736926317215,
-0.2261144518852234,
-0.09481953084468842,
-0.012828867882490158,
-0.1683928221464157,
-0.2992096245288849,
0.045389071106910706,
-0.5231454968452454,
0.4055294096469879,
-0.34157055616378784,
-0.21065568923950195,
0.27078327536582947,
0.06096627563238144,
0.15447327494621277,
0.05394167825579643,
-0.3392733335494995,
-0.24300485849380493,
0.05323095619678497,
0.08949317038059235,
0.039827290922403336,
0.06509087234735489,
0.2832050323486328,
-0.1102571114897728,
0.2209949642419815,
-0.06201794743537903,
-0.0730820745229721,
0.08827872574329376,
0.29285573959350586,
-0.35064804553985596,
0.18580374121665955,
-0.12052517384290695,
-0.1198292076587677,
0.5136719942092896,
0.27915969491004944,
0.2512263357639313,
0.19403216242790222,
-0.018737884238362312,
0.3876360058784485,
-0.34569576382637024,
0.0017484761774539948,
-0.1830451339483261,
0.03836625814437866,
-0.045130375772714615,
0.47785043716430664,
0.2628036141395569,
0.12167402356863022,
-0.3591518998146057,
-0.4306386113166809,
0.028820089995861053,
-0.1977299600839615,
0.07834113389253616,
-0.011111296713352203,
-0.010418310761451721,
-0.1670585572719574,
0.020523667335510254,
-0.12513217329978943,
-0.2814124822616577,
0.032602474093437195,
0.38200902938842773,
0.3374100625514984,
0.1487734615802765,
-0.19223785400390625,
0.09197337180376053,
-0.2916882336139679,
0.22298040986061096,
-0.023476285859942436,
-0.3273978531360626,
0.014420893043279648,
0.026060406118631363,
0.043443746864795685,
-0.07840559631586075,
0.5525971055030823,
-0.07682361453771591,
-0.02562587708234787,
-0.2390153706073761,
-0.22094370424747467,
-0.1558258831501007,
0.09949997067451477,
0.13804936408996582,
0.013220416381955147,
-0.48803573846817017,
0.7941620945930481,
-0.0995151624083519,
-0.3218313753604889,
0.052417099475860596,
-0.08582784235477448,
-0.18601316213607788,
-0.10606828331947327,
0.11036601662635803,
-0.0785626620054245,
-0.4641358554363251,
-0.26237499713897705,
0.09455939382314682,
-0.10300666838884354,
-0.2374694049358368,
-0.13504761457443237,
-0.06299083679914474,
0.13107794523239136,
0.19002018868923187,
0.17378626763820648,
0.2542228698730469,
0.05782835930585861,
-0.13125213980674744,
0.428952157497406,
0.059199217706918716,
0.298082560300827,
0.6782122850418091,
0.1396736204624176,
-0.4402041435241699,
0.01349609438329935,
-0.2010636180639267,
0.2921774983406067,
0.5223489999771118,
0.09386438876390457,
0.056407272815704346,
0.05856766551733017,
0.03623819351196289,
-0.5819576382637024,
0.14771199226379395,
-0.03819523751735687,
-0.2752724587917328,
-0.430409699678421,
-0.4510774314403534,
0.622654914855957,
-0.06891895830631256,
0.06402580440044403,
-0.10697972774505615,
0.40301841497421265,
-0.377048522233963,
0.1231432855129242,
0.07024301588535309,
0.8982324004173279,
-0.07115453481674194,
0.2976282238960266,
0.03603217750787735,
-0.0640624463558197,
0.3835209012031555,
-0.691094160079956,
-0.005356216803193092,
-0.3164268732070923,
-0.18754354119300842,
-0.3519822359085083,
-0.02408917061984539,
0.16820085048675537,
0.22230473160743713,
-0.21350672841072083,
0.37431004643440247,
0.05772106349468231,
0.47038161754608154,
-0.04457565397024155,
0.4272414743900299,
-0.39702969789505005,
-0.5239438414573669,
-0.18130570650100708,
0.02165968343615532,
0.0262455977499485,
-0.02138163149356842,
-0.04559745639562607,
-0.14370307326316833,
0.002061139792203903,
-0.10980153828859329,
-0.007788605988025665,
0.1402377486228943,
0.21435609459877014,
-0.21979884803295135,
0.006636373698711395,
-0.014440014958381653,
0.3113357424736023,
0.35826990008354187,
0.21587906777858734,
0.0300090704113245,
-0.3226819634437561,
0.23041397333145142,
-0.21720197796821594,
-0.01574154756963253,
-0.13946521282196045,
-0.027287635952234268,
0.26913002133369446,
0.054662518203258514,
-0.1156826838850975,
-0.04985441267490387,
-0.04645868390798569,
-0.3997412919998169,
-0.19418220221996307,
0.11445440351963043,
0.18132810294628143,
-0.25194820761680603,
-0.13601019978523254,
0.012785457074642181,
0.06616401672363281,
0.05368141457438469,
-0.030336767435073853,
0.0336855910718441,
0.03138802573084831,
-0.009991444647312164,
0.13846081495285034,
-0.10356559604406357,
-0.08631756901741028,
0.1303187608718872,
-0.285410076379776,
-0.3250834047794342,
0.0819169133901596,
-0.06309330463409424,
-0.09481456875801086,
-0.1671719253063202,
0.19665661454200745,
0.4302745461463928,
-0.39182955026626587,
0.11484626680612564,
0.037011709064245224,
-0.03905400633811951,
0.003885323414579034,
0.03231049329042435,
-0.03909764438867569,
-0.1722215712070465,
-0.1630106121301651,
-0.25946617126464844,
-0.05826326459646225,
0.2405712753534317,
0.024961348623037338,
0.31251129508018494,
0.2753746509552002,
-0.3476414382457733,
-0.21384534239768982,
-0.08161154389381409,
-0.16379065811634064,
0.16816864907741547,
-0.06791713833808899,
0.03381484001874924,
-0.026006050407886505,
0.16277842223644257,
0.03510526940226555,
-0.20604844391345978,
-0.1087181493639946,
-0.004719767719507217,
-0.3626047968864441,
-0.02742406539618969,
-0.08532099425792694,
0.2391912043094635,
0.05780951306223869,
0.12776485085487366,
-0.16292442381381989,
-0.11075112968683243,
-0.21453367173671722,
-0.32605883479118347,
0.5787270069122314,
0.04648100584745407,
-0.009024187922477722,
-0.17312277853488922,
0.5797999501228333,
0.06452324986457825,
-0.3917689919471741,
0.3677157759666443,
0.2882388234138489,
0.49360954761505127,
-0.18939459323883057,
0.1349031776189804,
-0.30572202801704407,
0.060380205512046814,
0.3331650197505951,
0.6284927725791931,
0.9139978289604187,
0.12127944827079773,
0.2586684823036194,
-0.12423403561115265,
0.12032730877399445,
-0.02845640480518341,
0.26342111825942993,
0.11792455613613129,
-0.1473703235387802,
0.14693433046340942,
0.13268661499023438,
-0.0013375040143728256,
0.003538135439157486,
-0.10916627943515778,
0.46513631939888,
-0.2163635939359665,
0.08972731232643127,
0.4169333875179291,
0.35716816782951355,
0.10197222232818604,
-0.228859081864357,
0.04790418595075607,
0.616888165473938,
0.176243856549263,
0.3369448184967041,
0.42592132091522217,
-0.18104256689548492,
0.09982489794492722,
-0.0017925668507814407,
0.22263967990875244,
0.05346447974443436,
0.4730296730995178,
-0.3988974392414093,
0.3629607558250427,
0.22247475385665894,
0.13492918014526367,
0.33657872676849365,
-0.36837151646614075,
-0.20578749477863312,
-0.017030417919158936,
0.23256851732730865,
0.0959949940443039,
-0.0759056955575943,
0.347836434841156,
-0.1701824963092804,
-0.04748186096549034,
-0.40182873606681824,
0.0004565529525279999,
0.06256930530071259,
0.13173623383045197,
0.013912606984376907,
-0.21970638632774353,
-0.28365981578826904,
0.2622634470462799,
-0.08788934350013733,
-0.33141499757766724,
-0.19185596704483032,
0.1685844510793686,
0.26447778940200806,
0.2347222864627838,
0.3726988136768341,
-0.010806798934936523,
0.03640357032418251,
-0.07333160936832428,
0.005683524534106255,
-0.078916996717453,
0.12618878483772278,
0.4738399386405945,
0.06578056514263153,
-0.09595181047916412,
0.14172276854515076,
0.02035670541226864,
0.20796357095241547,
0.10001987218856812,
-0.097563236951828,
0.10166731476783752,
-0.07910848408937454,
-0.1497851014137268,
0.33562418818473816,
0.014182008802890778,
0.08485660701990128,
-0.030817896127700806,
-0.025423098355531693,
-0.1691262423992157,
0.06878039240837097,
-0.39324092864990234,
0.37342193722724915,
0.13716530799865723,
-0.025304529815912247,
-0.0013597235083580017,
-0.03185545653104782,
-0.17497752606868744,
-0.2812856435775757,
0.4291781783103943,
-0.07159803807735443,
0.11567334085702896,
0.12712661921977997,
-0.0008258037269115448,
-0.023229550570249557,
0.4580630660057068,
0.10401001572608948,
-0.06655372679233551,
0.029040053486824036,
-0.1584465354681015,
-0.3442609906196594,
-0.04805833846330643,
0.15532636642456055,
-0.06203393638134003,
0.016572721302509308,
-0.08754685521125793,
0.16183549165725708,
0.24785488843917847,
0.017980769276618958,
-0.22715544700622559,
0.22940342128276825,
0.027110401540994644,
-0.06810913980007172,
-0.0427456758916378,
0.12311244755983353,
0.11129038780927658,
-0.12107352167367935,
-0.2770121395587921,
0.03647995740175247,
0.19023719429969788,
-0.2698023021221161,
0.2569991946220398,
0.21857059001922607,
0.20786622166633606,
-0.4765961468219757,
0.21236135065555573,
-0.20955711603164673,
0.21986401081085205,
-0.03154350072145462,
0.18969301879405975,
-0.2996184229850769,
-0.046136364340782166,
-0.33557039499282837,
-0.07559367269277573,
-0.1748858392238617,
0.21646782755851746,
-0.24238844215869904,
-0.013369042426347733,
-0.3065299987792969,
-0.030206063762307167,
-0.0357387401163578,
0.13948726654052734,
-0.2000434398651123,
-0.08810016512870789,
-0.39696207642555237,
0.16549810767173767,
0.26738861203193665,
0.10681207478046417,
-0.10927367210388184,
-0.17768722772598267,
-0.08374237269163132,
0.0489656999707222,
0.42126405239105225,
-0.22802072763442993,
-0.24503332376480103,
0.0018893145024776459,
-0.05273967981338501,
0.18599280714988708,
-0.10280564427375793,
-0.1450478434562683,
0.11273976415395737,
0.06363625824451447,
-0.17261472344398499,
0.16220590472221375,
0.2499665915966034,
0.1666967272758484,
-0.15021410584449768,
-0.20822937786579132,
-0.2506304085254669,
0.3272819221019745,
-0.1672692447900772,
-0.10961061716079712,
-0.43482786417007446
] |
https://github.com/huggingface/datasets/issues/2622 | Integration with AugLy | Hi,
you can define your own custom formatting with `Dataset.set_transform()` and then run the tokenizer with the batches of augmented data as follows:
```python
dset = load_dataset("imdb", split="train") # Let's say we are working with the IMDB dataset
dset.set_transform(lambda ex: {"text": augly_text_augmentation(ex["text"])}, columns="text", output_all_columns=True)
dataloader = torch.utils.data.DataLoader(dset, batch_size=32)
for epoch in range(5):
for batch in dataloader:
tokenizer_output = tokenizer(batch.pop("text"), padding=True, truncation=True, return_tensors="pt")
batch.update(tokenizer_output)
output = model(**batch)
...
``` | **Is your feature request related to a problem? Please describe.**
Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text.
It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial.
**Describe the solution you'd like**
The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader.
**Describe alternatives you've considered**
One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches.
| 68 | Integration with AugLy
**Is your feature request related to a problem? Please describe.**
Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text.
It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial.
**Describe the solution you'd like**
The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader.
**Describe alternatives you've considered**
One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches.
Hi,
you can define your own custom formatting with `Dataset.set_transform()` and then run the tokenizer with the batches of augmented data as follows:
```python
dset = load_dataset("imdb", split="train") # Let's say we are working with the IMDB dataset
dset.set_transform(lambda ex: {"text": augly_text_augmentation(ex["text"])}, columns="text", output_all_columns=True)
dataloader = torch.utils.data.DataLoader(dset, batch_size=32)
for epoch in range(5):
for batch in dataloader:
tokenizer_output = tokenizer(batch.pop("text"), padding=True, truncation=True, return_tensors="pt")
batch.update(tokenizer_output)
output = model(**batch)
...
``` | [
-0.17492330074310303,
-0.19208085536956787,
-0.14345186948776245,
-0.23967839777469635,
0.19126367568969727,
0.026355385780334473,
0.16739118099212646,
0.327312171459198,
-0.323490172624588,
0.016006752848625183,
0.044725462794303894,
-0.017034975811839104,
-0.2608955502510071,
0.11050023883581161,
-0.0723288357257843,
-0.12908267974853516,
0.1623859405517578,
0.12878288328647614,
0.08359627425670624,
-0.06145146116614342,
0.24582400918006897,
-0.08019424229860306,
-0.12166781723499298,
0.08045272529125214,
-0.43312060832977295,
-0.20052939653396606,
-0.018463196232914925,
-0.11914170533418655,
0.03238718584179878,
-0.054919131100177765,
-0.27683454751968384,
0.29288190603256226,
0.13945372402668,
0.2861315906047821,
-0.00010948608542094007,
-0.22785785794258118,
-0.045784175395965576,
-0.1373029202222824,
-0.3240189254283905,
-0.03704707324504852,
0.8906269073486328,
-0.42605510354042053,
0.018437301740050316,
-0.19566690921783447,
-0.20869296789169312,
-0.2443617433309555,
0.22595536708831787,
-0.10258474946022034,
0.706551730632782,
-0.1400635540485382,
0.1746794581413269,
0.1642664074897766,
-0.16954481601715088,
0.17488980293273926,
0.08123762905597687,
0.6041794419288635,
-0.09989747405052185,
-0.12481264770030975,
0.33721014857292175,
-0.28763824701309204,
-0.16024696826934814,
0.5248730778694153,
0.08380968123674393,
-0.0850362479686737,
0.35826343297958374,
0.07865025848150253,
0.05024902522563934,
-0.524031400680542,
-0.22245240211486816,
0.16179481148719788,
0.06442577391862869,
-0.18447142839431763,
-0.5932479500770569,
-0.37264183163642883,
0.22791485488414764,
-0.01642991229891777,
-0.2347869873046875,
0.10636119544506073,
-0.1818404644727707,
0.040382128208875656,
-0.1904090791940689,
-0.17694222927093506,
-0.05903203785419464,
0.21147507429122925,
0.257406085729599,
0.21180185675621033,
0.23271198570728302,
-0.10308336466550827,
-0.3152118921279907,
-0.19014964997768402,
-0.01755046844482422,
0.10926353186368942,
0.21676765382289886,
0.32796481251716614,
-0.0164925716817379,
-0.16861167550086975,
-0.24434661865234375,
-0.398857444524765,
-0.0008842088282108307,
0.12807597219944,
0.03074832260608673,
0.42078733444213867,
-0.47623422741889954,
0.03917759284377098,
0.005794372409582138,
0.02828049287199974,
0.007681138813495636,
0.1638363152742386,
0.31968212127685547,
0.05407289043068886,
0.003982551395893097,
-0.0232682041823864,
0.010846876539289951,
0.16304199397563934,
0.030164029449224472,
-0.10912413150072098,
-0.3127092719078064,
0.22830167412757874,
-0.26280760765075684,
0.009847606532275677,
-0.16757571697235107,
0.14024722576141357,
0.07051941007375717,
0.23455610871315002,
-0.22743310034275055,
0.28143876791000366,
0.256477415561676,
0.19679243862628937,
0.0014194585382938385,
0.035521723330020905,
-0.04339947551488876,
0.17431549727916718,
-0.353929728269577,
0.16251140832901,
0.28042447566986084,
0.564820408821106,
0.14449681341648102,
0.07089003175497055,
0.32051658630371094,
0.009568437933921814,
0.23284482955932617,
-0.14258809387683868,
0.42174652218818665,
-0.04783274605870247,
-0.1146397739648819,
0.22019127011299133,
-0.06575368344783783,
0.0721539705991745,
-0.11961881816387177,
-0.1751386821269989,
-0.15281781554222107,
0.14199022948741913,
-0.21869245171546936,
0.2464311420917511,
0.35509997606277466,
-0.01511656865477562,
-0.20945698022842407,
0.3241279125213623,
0.02104198932647705,
-0.32049888372421265,
0.17271797358989716,
-0.13759572803974152,
0.011535096913576126,
-0.05997350439429283,
0.22750595211982727,
0.03743893653154373,
-0.04129953682422638,
-0.2540353238582611,
0.4374253451824188,
0.2148565798997879,
0.11356198042631149,
0.31734827160835266,
-0.26805955171585083,
0.07125876098871231,
-0.04773840680718422,
0.07811151444911957,
0.549246072769165,
-0.40709400177001953,
0.05106620490550995,
0.20317047834396362,
0.015688762068748474,
0.06391124427318573,
-0.15260770916938782,
0.39137378334999084,
0.24380916357040405,
0.00739677157253027,
0.14716114103794098,
0.5788084864616394,
-0.04629135876893997,
0.07291120290756226,
-0.07357439398765564,
-0.31046295166015625,
0.20834925770759583,
0.09252077341079712,
0.09482285380363464,
-0.35735243558883667,
-0.20487529039382935,
0.0999734029173851,
0.30837103724479675,
-0.27003008127212524,
0.3583816885948181,
-0.009558100253343582,
-0.21258358657360077,
0.3153032064437866,
-0.03424403816461563,
-0.1558935046195984,
0.008180785924196243,
0.01510694995522499,
-0.08702768385410309,
0.3045283854007721,
-0.196389302611351,
-0.3819633722305298,
0.22948381304740906,
-0.06370368599891663,
0.06825163960456848,
-0.34170007705688477,
0.1884031742811203,
0.06118399277329445,
-0.08514709770679474,
-0.0551099069416523,
-0.33630844950675964,
0.110334113240242,
-0.11353007704019547,
0.10987842828035355,
0.051738616079092026,
0.040688224136829376,
-0.034554049372673035,
-0.14306247234344482,
-0.3016895353794098,
0.37117838859558105,
-0.08353110402822495,
-0.019918886944651604,
-0.010554976761341095,
0.2912922203540802,
-0.05409733206033707,
0.1201767548918724,
-0.053679510951042175,
0.2401743233203888,
0.3565206229686737,
-0.09624366462230682,
0.16828520596027374,
0.13726824522018433,
-0.010751873254776001,
-0.28925129771232605,
-0.003915287554264069,
0.5061607956886292,
0.22247298061847687,
0.20472055673599243,
0.3028244376182556,
-0.08440830558538437,
0.08724073320627213,
0.04372980073094368,
-0.27210375666618347,
-0.3616889417171478,
-0.16090933978557587,
-0.09398530423641205,
0.13427603244781494,
-0.33663666248321533,
-0.5899158716201782,
-0.011483952403068542,
0.2806825041770935,
0.25578394532203674,
-0.01459597796201706,
0.13992398977279663,
-0.18369078636169434,
-0.1397486925125122,
0.07565640658140182,
-0.5855823159217834,
-0.07501202821731567,
0.2024073749780655,
-0.016865644603967667,
0.14358380436897278,
-0.08547471463680267,
-0.00522858090698719,
0.035268403589725494,
0.2353794425725937,
-0.02551436796784401,
0.09510698914527893,
0.40831485390663147,
0.3604510724544525,
-0.13965380191802979,
-0.30781182646751404,
-0.15908662974834442,
-0.40416306257247925,
-0.058030836284160614,
0.24767567217350006,
-0.17188338935375214,
-0.49563226103782654,
-0.1368497759103775,
-0.4858051836490631,
-0.23158544301986694,
0.09462263435125351,
0.3938378095626831,
-0.0339781753718853,
-0.12132596969604492,
0.30899640917778015,
-0.05525173991918564,
0.3120441436767578,
-0.014853741973638535,
-0.10320044308900833,
-0.02951151505112648,
0.19588011503219604,
-0.20429933071136475,
0.027239803224802017,
0.003990372642874718,
0.047898076474666595,
0.41438964009284973,
0.23677031695842743,
-0.0613216757774353,
-0.36885303258895874,
-0.573826014995575,
0.19891497492790222,
-0.04357375204563141,
-0.07544145733118057,
0.15359434485435486,
-0.24654759466648102,
0.03781968355178833,
-0.5249404907226562,
0.08292621374130249,
-0.23652641475200653,
-0.08772295713424683,
-0.32292598485946655,
0.08983135968446732,
-0.12273833155632019,
-0.2532225251197815,
0.08238294720649719,
-0.3209187090396881,
-0.3508951663970947,
-0.06733256578445435,
0.21393640339374542,
0.03583373874425888,
-0.1540180891752243,
-0.2602301836013794,
-0.10371718555688858,
0.15820413827896118,
0.24899692833423615,
0.02765575237572193,
0.03600883111357689,
0.2866538465023041,
-0.30430519580841064,
-0.1436741203069687,
-0.19873982667922974,
-0.3153316378593445,
0.1066342294216156,
0.22379417717456818,
-0.14506052434444427,
-0.2972121834754944,
0.07444354146718979,
0.08421716094017029,
-0.24843236804008484,
-0.1239834576845169,
0.0842127799987793,
-0.0569641999900341,
-0.15260452032089233,
0.049006104469299316,
-0.018392514437437057,
0.17895279824733734,
-0.1769571304321289,
0.16233354806900024,
-0.3505839407444,
0.29983559250831604,
0.20657849311828613,
0.4156174659729004,
-0.10095921158790588,
-0.18605762720108032,
0.46287354826927185,
-0.10156755894422531,
-0.054713424295186996,
-0.033704809844493866,
-0.0693560540676117,
-0.014559991657733917,
-0.21227112412452698,
-0.027137571945786476,
0.2304040789604187,
-0.008917596191167831,
-0.23648066818714142,
-0.15787354111671448,
0.2057913839817047,
-0.3513627052307129,
-0.15940313041210175,
0.3336038589477539,
-0.5718924403190613,
0.23963198065757751,
-0.2130250334739685,
0.1591392457485199,
-0.15975508093833923,
-0.2681823670864105,
0.3210594356060028,
-0.16644401848316193,
0.26738038659095764,
-0.08260447531938553,
-0.05138726904988289,
0.04708275571465492,
-0.1404736340045929,
0.27975887060165405,
0.2064884603023529,
0.1528768092393875,
0.12105019390583038,
-0.1761031150817871,
0.11294420808553696,
-0.13835476338863373,
0.4136568307876587,
0.0103409169241786,
-0.3415985107421875,
-0.03569597750902176,
-0.11379469931125641,
-0.12278705090284348,
-0.17809148132801056,
-0.18779873847961426,
-0.026624387130141258,
0.5311676263809204,
0.599740207195282,
-0.2997633218765259,
-0.2721070945262909,
0.3077862858772278,
-0.10649273544549942,
-0.15895605087280273,
0.13468334078788757,
0.187926784157753,
0.215133935213089,
-0.4126151502132416,
0.12117664515972137,
0.055088914930820465,
0.005766879301518202,
0.13236284255981445,
-0.10527874529361725,
-0.07042132318019867,
0.18555158376693726,
0.2677018642425537,
0.16768331825733185,
-0.03990279138088226,
-0.03502285107970238,
-0.057503726333379745,
-0.022308100014925003,
0.09607525169849396,
0.3651774823665619,
-0.026444196701049805,
0.07045452296733856,
-0.24456292390823364,
-0.04471823573112488,
0.15620622038841248,
0.4355124235153198,
0.4480149447917938,
0.25164756178855896,
0.30362555384635925,
0.025629933923482895,
0.10535268485546112,
-0.3496856987476349,
0.3098253011703491,
0.4465026557445526,
-0.01535478699952364,
-0.4974282383918762,
-0.4103814959526062,
0.17625385522842407,
-0.09635742008686066,
-0.015520118176937103,
-0.259952187538147,
0.08112654089927673,
-0.3926422595977783,
0.6640625,
0.4433373808860779,
1.1297672986984253,
0.35734492540359497,
0.4586038589477539,
-0.042353495955467224,
0.11525106430053711,
0.3830607533454895,
-0.6734588146209717,
0.06602878868579865,
-0.3117774426937103,
0.04252594709396362,
-0.03144192323088646,
0.048433054238557816,
0.010546315461397171,
0.2368612438440323,
-0.06575077772140503,
0.2240264117717743,
0.05880767107009888,
0.011048488318920135,
-0.10850857198238373,
0.44474586844444275,
0.005106768570840359,
-0.6270372271537781,
-0.1310870349407196,
0.12677130103111267,
0.04231058061122894,
-0.022392522543668747,
-0.08845310658216476,
-0.16451020538806915,
0.1444612294435501,
0.006541803479194641,
-0.1351340413093567,
0.04821052402257919,
-0.26968586444854736,
0.163284033536911,
0.07335416227579117,
-0.07795223593711853,
0.2392178773880005,
-0.2708636522293091,
0.3563739061355591,
0.19401586055755615,
0.1004142239689827,
0.176364004611969,
0.11717648804187775,
0.24891510605812073,
-0.05422474816441536,
-0.3167654573917389,
0.8901433348655701,
-0.037169743329286575,
0.2000305950641632,
0.09120447188615799,
0.24089393019676208,
-0.1644594818353653,
-0.0225641131401062,
-0.13243858516216278,
0.39027899503707886,
-0.17365963757038116,
-0.07812358438968658,
0.18459966778755188,
-0.21834434568881989,
-0.12470969557762146,
0.1335342675447464,
-0.031187400221824646,
-0.16716061532497406,
0.21956846117973328,
0.32985708117485046,
-0.02611210197210312,
-0.17155222594738007,
0.10394434630870819,
-0.21595406532287598,
-0.45866283774375916,
0.5600897073745728,
0.10689352452754974,
-0.22206656634807587,
-0.11686745285987854,
-0.24980610609054565,
0.23137728869915009,
-0.07322347909212112,
-0.024741999804973602,
0.19081024825572968,
-0.18326623737812042,
0.06540368497371674,
0.24950559437274933,
0.1321740746498108,
0.01889609917998314,
-0.3815692961215973,
-0.07892891764640808,
-0.23479829728603363,
0.24783530831336975,
0.20007620751857758,
0.2317267209291458,
0.015279673039913177,
0.38590389490127563,
-0.08332125842571259,
0.4019310176372528,
-0.3887147903442383,
-0.07362474501132965,
0.06038419157266617,
0.3245542645454407,
-0.4759232997894287,
-0.12366398423910141,
-0.06353011727333069,
0.2932153046131134,
0.09521962702274323,
0.2746933102607727,
-0.07042782008647919,
-0.17638033628463745,
-0.31557002663612366,
0.10930383205413818,
0.008839215151965618,
-0.030079388990998268,
-0.005569598637521267,
0.09157661348581314,
-0.15527218580245972,
-0.39599207043647766,
0.0469367615878582,
-0.05759856849908829,
-0.00039667636156082153,
0.04935149475932121,
-0.007732439786195755,
0.03372306749224663,
0.05843187868595123,
-0.1813468486070633,
0.16355454921722412,
0.2311704009771347,
0.21001017093658447,
0.19165481626987457,
-0.02303142100572586,
-0.13396048545837402,
-0.1600058376789093,
0.25940561294555664,
0.39722150564193726,
-0.14461764693260193,
0.03271414339542389,
0.06406760215759277,
-0.297306627035141,
0.01518341526389122,
0.3159181475639343,
0.14793100953102112,
-0.07138051092624664,
-0.26263007521629333,
0.32405129075050354,
0.26302650570869446,
-0.22607184946537018,
0.1383363902568817,
-0.03477596491575241,
-0.5336183905601501,
0.09461382031440735,
0.25899893045425415,
0.34363648295402527,
0.44693875312805176,
-0.15339280664920807,
-0.0033766422420740128,
-0.039650361984968185,
-0.49224889278411865,
-0.02603159472346306,
-0.105144202709198,
-0.11396576464176178,
0.0825662687420845,
0.2647009789943695,
0.12361757457256317,
0.28270089626312256,
-0.033463701605796814,
0.04620794206857681,
0.2988390028476715,
0.3937666714191437,
0.02455507218837738,
0.15599894523620605,
-0.08951131999492645,
-0.17812782526016235,
-0.16767138242721558,
0.35149937868118286,
0.39229583740234375,
-0.015484943985939026,
0.010654598474502563,
0.12521907687187195,
-0.3595494031906128,
-0.09105785191059113,
0.4749238193035126,
-0.15800151228904724,
-0.03693906217813492,
0.09388905763626099,
0.016643762588500977,
-0.5320457220077515,
-0.060644157230854034,
-0.028122399002313614,
-0.0847434252500534,
-0.3039162755012512,
0.23173685371875763,
-0.012171000242233276,
-0.09179794043302536,
0.10230176895856857,
-0.21341565251350403,
0.5871034264564514,
-0.24508655071258545,
0.007228627800941467,
0.16291561722755432,
0.15804848074913025,
-0.014439061284065247,
0.1343715488910675,
0.3595369756221771,
0.34834080934524536,
-0.24692362546920776,
0.09211795777082443,
-0.3106658160686493,
-0.023059353232383728,
-0.14571265876293182,
0.2029488980770111,
0.3186667561531067,
0.17782524228096008,
0.06842930614948273,
0.16334496438503265,
-0.28827059268951416,
-0.04679235443472862,
-0.11429499089717865,
0.37906205654144287,
-0.2499665915966034,
0.172279953956604,
0.2577950954437256,
-0.1916576325893402,
-0.4491400122642517,
0.01225859671831131,
-0.2413177788257599,
-0.02361944317817688,
0.30173102021217346,
-0.23903249204158783,
-0.03308383747935295,
-0.20297862589359283,
0.10858182609081268,
0.024044334888458252,
0.4602799713611603,
0.5174254179000854,
0.31983622908592224,
-0.0012378878891468048,
-0.04606573283672333,
-0.16398142278194427,
-0.03206130117177963,
0.3065173923969269,
-0.06327340751886368,
-0.07436183094978333,
0.3361046612262726,
0.2154158651828766,
0.005399793386459351,
-0.004030585289001465,
-0.23701755702495575,
-0.25343960523605347,
0.22195225954055786,
-0.12553654611110687,
0.46528133749961853,
-0.2609795928001404,
0.226654514670372,
0.1869707703590393,
-0.16299334168434143,
-0.0399312861263752,
-0.2518545389175415,
0.054198138415813446,
0.09493231773376465,
-0.06723346561193466,
0.11916740238666534,
0.00027999281883239746,
0.522985577583313,
0.08704233914613724,
0.12298528850078583,
-0.3334084451198578,
-0.13739265501499176,
-0.17196351289749146,
-0.17227058112621307,
-0.5522139072418213,
0.08782117068767548,
0.08752324432134628,
0.6268985271453857,
0.09717994183301926,
-0.12026625871658325,
-0.12412846088409424,
0.08815264701843262,
0.013139158487319946,
-0.5722596049308777,
-0.14993156492710114,
0.0011813491582870483,
-0.08785104006528854,
-0.014972759410738945,
-0.0661502555012703,
0.4720070958137512,
0.05170685797929764,
-0.0070291850715875626,
-0.3324210047721863,
-0.45484963059425354,
0.3370199203491211,
-0.053552836179733276,
-0.2709164321422577,
-0.3991357982158661,
0.1516963243484497,
0.3290500044822693,
0.11891818046569824,
-0.6594869494438171,
-0.15592235326766968,
0.20907804369926453,
0.07949753850698471,
-0.014464816078543663,
0.3205154836177826,
0.09034475684165955,
-0.18939810991287231,
-0.2628096640110016,
0.025503195822238922,
-0.1981242299079895,
0.03156096488237381,
-0.31760215759277344,
-0.2944548726081848
] |
https://github.com/huggingface/datasets/issues/2622 | Integration with AugLy | Preprocessing functions/augmentations, unless super generic, should be defined in separate libraries, so I'm closing this issue. | **Is your feature request related to a problem? Please describe.**
Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text.
It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial.
**Describe the solution you'd like**
The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader.
**Describe alternatives you've considered**
One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches.
| 16 | Integration with AugLy
**Is your feature request related to a problem? Please describe.**
Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text.
It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial.
**Describe the solution you'd like**
The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader.
**Describe alternatives you've considered**
One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches.
Preprocessing functions/augmentations, unless super generic, should be defined in separate libraries, so I'm closing this issue. | [
-0.027410870417952538,
-0.12815453112125397,
-0.17445935308933258,
-0.3476259708404541,
0.11206863075494766,
-0.037844035774469376,
0.03748088330030441,
0.2659149169921875,
-0.3636665940284729,
0.05604260787367821,
0.15454302728176117,
-0.11339809745550156,
-0.1821041703224182,
0.2809537947177887,
-0.1276128590106964,
-0.1407100260257721,
0.16453513503074646,
0.24796363711357117,
0.013439923524856567,
-0.022418666630983353,
0.21671494841575623,
-0.07570143043994904,
-0.09834262728691101,
0.13891971111297607,
-0.39039552211761475,
-0.16497771441936493,
-0.04157780483365059,
-0.1537361443042755,
-0.056849077343940735,
-0.0041033318266272545,
-0.31747967004776,
0.33807486295700073,
0.053979963064193726,
0.17463582754135132,
-0.00010603831469779834,
-0.16903609037399292,
-0.06659027934074402,
-0.0879116803407669,
-0.2812455892562866,
-0.05631756782531738,
0.6447685956954956,
-0.5316672325134277,
-0.06332260370254517,
-0.18158844113349915,
-0.17085790634155273,
-0.20982615649700165,
0.21986748278141022,
-0.00702078640460968,
0.7744258046150208,
-0.17731867730617523,
0.23015910387039185,
0.013623178005218506,
-0.18692219257354736,
0.14074228703975677,
0.026483681052923203,
0.6574307680130005,
-0.16242615878582,
-0.24703699350357056,
0.28657883405685425,
-0.37294113636016846,
-0.0953751727938652,
0.5629377365112305,
0.22441765666007996,
-0.07044358551502228,
0.29906365275382996,
0.014107618480920792,
0.11917738616466522,
-0.5148447751998901,
-0.15252050757408142,
0.10987041145563126,
0.10452303290367126,
-0.05780241638422012,
-0.4736953377723694,
-0.34865546226501465,
0.19813162088394165,
0.09455659240484238,
-0.11883557587862015,
0.048128142952919006,
-0.18070286512374878,
0.10289715230464935,
-0.1953674852848053,
-0.30484500527381897,
-0.13508228957653046,
0.2025672048330307,
0.3479395806789398,
0.23577550053596497,
0.19169557094573975,
-0.1006864383816719,
-0.30669552087783813,
-0.1927640438079834,
-0.10048838704824448,
0.06096220016479492,
0.17676962912082672,
0.34542080760002136,
0.04417319595813751,
-0.2269660234451294,
-0.2417593002319336,
-0.4416312873363495,
0.02754770591855049,
0.09890153259038925,
-0.013549457304179668,
0.421312540769577,
-0.5466130971908569,
0.08066816627979279,
0.07168257236480713,
0.04102195426821709,
0.05485687404870987,
0.06571988761425018,
0.2773630917072296,
0.07700178027153015,
-0.03350510075688362,
-0.03471866250038147,
0.07549774646759033,
0.2857445180416107,
-0.08909974992275238,
-0.15711095929145813,
-0.24928198754787445,
0.16615302860736847,
-0.14648453891277313,
0.006099001970142126,
-0.16730600595474243,
0.11206290125846863,
-0.005102676339447498,
0.17571468651294708,
-0.22969871759414673,
0.29919910430908203,
0.12269169092178345,
0.14609047770500183,
-0.05004258453845978,
-0.10229838639497757,
-0.03824982792139053,
0.17193502187728882,
-0.35024571418762207,
0.24272236227989197,
0.24633540213108063,
0.6657019853591919,
0.05196784436702728,
0.07041707634925842,
0.2913186550140381,
-0.02219335176050663,
0.26493772864341736,
-0.23818808794021606,
0.3299356698989868,
-0.055654432624578476,
-0.1683095544576645,
0.17089621722698212,
-0.08051846921443939,
-0.044822871685028076,
-0.07108356058597565,
-0.18872353434562683,
-0.2255454659461975,
0.17030423879623413,
-0.1811877191066742,
0.28810766339302063,
0.3004825711250305,
0.00265410915017128,
-0.1312827467918396,
0.48910045623779297,
-0.09198065847158432,
-0.3099939525127411,
0.14495612680912018,
-0.04847849905490875,
-0.07723602652549744,
-0.11988687515258789,
0.07215996086597443,
-0.07513168454170227,
-0.06242058053612709,
-0.3130589425563812,
0.3679529130458832,
0.1382979303598404,
0.16161397099494934,
0.28406867384910583,
-0.33210039138793945,
0.046587906777858734,
0.08443387597799301,
0.1984209269285202,
0.5389410257339478,
-0.21301758289337158,
0.09460481256246567,
0.18963654339313507,
0.02998514473438263,
-0.0009614080190658569,
-0.3400450646877289,
0.33557528257369995,
0.16834844648838043,
-0.021940259262919426,
0.0032410621643066406,
0.5907623767852783,
-0.059165701270103455,
0.03733040392398834,
-0.055486831814050674,
-0.5265525579452515,
0.14758437871932983,
0.06295070052146912,
0.11629042029380798,
-0.375572144985199,
-0.08152767270803452,
0.08101806044578552,
0.23046720027923584,
-0.348593145608902,
0.38276952505111694,
0.0947108268737793,
-0.06646579504013062,
0.27945274114608765,
-0.022903962060809135,
-0.2144681215286255,
0.013130050152540207,
0.010002098977565765,
-0.22843940556049347,
0.2771536707878113,
-0.0998476892709732,
-0.29489219188690186,
0.20307308435440063,
-0.043216973543167114,
0.1208498403429985,
-0.2791692912578583,
0.25230538845062256,
0.10193708539009094,
-0.03557281568646431,
-0.012728508561849594,
-0.2855534255504608,
0.1482919454574585,
-0.12533406913280487,
0.06953562796115875,
0.2037951946258545,
0.08559603244066238,
-0.04916803538799286,
-0.08587417751550674,
-0.2598220705986023,
0.43933922052383423,
-0.07990092784166336,
0.05182758346199989,
-0.01622660458087921,
0.1905026137828827,
-0.06586377322673798,
0.09548153728246689,
0.059373073279857635,
0.2922540307044983,
0.3169831335544586,
-0.16241765022277832,
0.06877492368221283,
0.04605519771575928,
-0.007168736774474382,
-0.2669711410999298,
0.020703889429569244,
0.4108845591545105,
0.2505239248275757,
0.1884985715150833,
0.33905327320098877,
-0.09066372364759445,
0.06703433394432068,
-0.02594894915819168,
-0.21382927894592285,
-0.3636152744293213,
-0.17714735865592957,
-0.10584971308708191,
0.05191844329237938,
-0.29006436467170715,
-0.42815491557121277,
-0.025184258818626404,
0.42523473501205444,
0.28069007396698,
0.05255664885044098,
0.15472877025604248,
-0.07245428115129471,
-0.25309354066848755,
0.10177792608737946,
-0.4171003997325897,
-0.030362114310264587,
0.1987890899181366,
-0.05026790127158165,
0.1483556628227234,
-0.0895516499876976,
0.04084237292408943,
0.013882502913475037,
0.2466132640838623,
0.12645885348320007,
-0.023940235376358032,
0.41370436549186707,
0.3562993109226227,
-0.051734257489442825,
-0.24446289241313934,
-0.09547320008277893,
-0.40189263224601746,
0.06938531994819641,
0.2409536987543106,
-0.24373047053813934,
-0.5602999329566956,
0.00007844250649213791,
-0.34456899762153625,
-0.33622387051582336,
0.049885593354701996,
0.4027118682861328,
-0.264983206987381,
-0.15375015139579773,
0.20392340421676636,
-0.1709297150373459,
0.46618354320526123,
-0.14751464128494263,
-0.03910985589027405,
-0.02593241259455681,
0.1897713541984558,
-0.2715604305267334,
0.08109176158905029,
-0.06666536629199982,
0.1239309012889862,
0.4447747468948364,
0.3996586203575134,
-0.007332932204008102,
-0.3252013325691223,
-0.6989327669143677,
0.25920748710632324,
0.03610961139202118,
-0.09919071942567825,
0.10278309136629105,
-0.1920042186975479,
0.031342074275016785,
-0.4444177746772766,
0.11464818567037582,
-0.2537935972213745,
-0.15837441384792328,
-0.3838106095790863,
0.10226733237504959,
-0.07447980344295502,
-0.2941979765892029,
0.19598311185836792,
-0.3264748752117157,
-0.33420079946517944,
-0.002468608319759369,
0.18008746206760406,
0.06397409737110138,
-0.07595004141330719,
-0.33784255385398865,
-0.11884328722953796,
0.04642503336071968,
0.2674502730369568,
-0.08086388558149338,
0.14404061436653137,
0.17424236238002777,
-0.29027560353279114,
-0.11566168069839478,
-0.22547177970409393,
-0.2632419466972351,
0.1458476334810257,
0.1609705090522766,
-0.16785478591918945,
-0.320430725812912,
-0.032085008919239044,
0.07409286499023438,
-0.30221590399742126,
-0.20774580538272858,
0.05345351994037628,
-0.03792388364672661,
-0.17905309796333313,
-0.023342939093708992,
-0.06536372750997543,
0.27357691526412964,
-0.09257521480321884,
0.11937843263149261,
-0.29831239581108093,
0.17025986313819885,
0.2814570665359497,
0.3739420771598816,
-0.12109778821468353,
-0.05623239651322365,
0.49985751509666443,
0.06570764631032944,
-0.07843907177448273,
0.02786799520254135,
-0.04912629723548889,
0.09797417372465134,
-0.19816461205482483,
0.01579105854034424,
0.3067241609096527,
0.013771004043519497,
-0.26542046666145325,
-0.2018129676580429,
0.2158687263727188,
-0.3273526728153229,
-0.11817416548728943,
0.26856106519699097,
-0.3299698531627655,
0.28611457347869873,
-0.15381082892417908,
0.029211007058620453,
-0.19446495175361633,
-0.18496644496917725,
0.30939191579818726,
-0.18033699691295624,
0.18767015635967255,
-0.06841867417097092,
-0.22926963865756989,
-0.027884002774953842,
-0.08024594932794571,
0.27080899477005005,
0.2048289179801941,
0.07047955691814423,
-0.027505606412887573,
-0.17504575848579407,
0.10224650055170059,
-0.17060497403144836,
0.16270019114017487,
-0.07084279507398605,
-0.39199233055114746,
-0.06501135230064392,
-0.09819456189870834,
0.0499839186668396,
-0.17669135332107544,
-0.08884936571121216,
-0.033092305064201355,
0.5579541325569153,
0.575324535369873,
-0.30210864543914795,
-0.3008144795894623,
0.33240288496017456,
-0.22302210330963135,
-0.12151609361171722,
0.07750488072633743,
0.25308722257614136,
0.1793474555015564,
-0.378997266292572,
-0.03346408158540726,
-0.08335020393133163,
0.03635020554065704,
0.2033112347126007,
-0.0983721986413002,
-0.040836311876773834,
0.1483648121356964,
0.25611692667007446,
0.20699924230575562,
-0.2288270890712738,
-0.01995973102748394,
-0.11581659317016602,
-0.022459007799625397,
0.02105104550719261,
0.24183975160121918,
-0.027120381593704224,
0.12243373692035675,
-0.2800713777542114,
-0.003911715000867844,
0.19454282522201538,
0.4762364327907562,
0.3899335265159607,
0.2326347827911377,
0.46902698278427124,
0.17515547573566437,
0.09543107450008392,
-0.42789801955223083,
0.30250176787376404,
0.42358899116516113,
0.003498893231153488,
-0.4997435510158539,
-0.29228898882865906,
0.16784845292568207,
-0.11587552726268768,
-0.07948032021522522,
-0.279697448015213,
0.10678999125957489,
-0.32595527172088623,
0.5858988165855408,
0.42705249786376953,
1.1438617706298828,
0.37196677923202515,
0.40324315428733826,
-0.015279624611139297,
0.04524146020412445,
0.5040472745895386,
-0.6168097257614136,
-0.016284935176372528,
-0.2310377061367035,
-0.013061131350696087,
-0.02212376520037651,
0.04483328387141228,
0.14627975225448608,
0.2824418246746063,
-0.0424652136862278,
0.14801910519599915,
0.3119918704032898,
0.03474888205528259,
0.0360056571662426,
0.41764113306999207,
0.09761849045753479,
-0.6277420520782471,
-0.18782959878444672,
0.17949561774730682,
-0.016327589750289917,
-0.034207794815301895,
-0.13407385349273682,
-0.24994777143001556,
0.2003357708454132,
0.030134044587612152,
-0.046413175761699677,
0.10091548413038254,
-0.3565942645072937,
0.1744152307510376,
0.0966995358467102,
0.11164738237857819,
0.343056857585907,
-0.4464438259601593,
0.3258238434791565,
0.2068420946598053,
-0.031225116923451424,
0.221894308924675,
0.023083407431840897,
0.23918263614177704,
-0.09905828535556793,
-0.34022003412246704,
0.8046814203262329,
-0.11543480306863785,
0.241306871175766,
0.08006278425455093,
0.1674429327249527,
-0.21188782155513763,
-0.0842728540301323,
-0.1552838236093521,
0.269137978553772,
-0.10457698255777359,
0.0005884203128516674,
0.2734752893447876,
-0.1960126906633377,
-0.08130896091461182,
0.18132424354553223,
-0.03440640866756439,
-0.06018160656094551,
0.20624282956123352,
0.3431737720966339,
0.0018250569701194763,
-0.19371439516544342,
-0.07092765718698502,
-0.15218108892440796,
-0.543106198310852,
0.5886259078979492,
-0.006012026220560074,
-0.17076188325881958,
-0.13727720081806183,
-0.2536010444164276,
0.06826761364936829,
0.03916233032941818,
-0.07654555886983871,
0.13105589151382446,
-0.30113911628723145,
0.019837213680148125,
0.21952848136425018,
0.18334992229938507,
-0.013196542859077454,
-0.3263310194015503,
-0.04790734499692917,
-0.2556384801864624,
0.25876933336257935,
0.11275418102741241,
0.11843191087245941,
-0.000996321439743042,
0.3848186135292053,
-0.06566201150417328,
0.5166522860527039,
-0.4221663475036621,
-0.14633752405643463,
-0.016385067254304886,
0.2655301094055176,
-0.4640241861343384,
-0.20346516370773315,
-0.02975446544587612,
0.31999215483665466,
0.0882357582449913,
0.28482580184936523,
-0.10694263875484467,
-0.18503597378730774,
-0.3070240914821625,
0.08386827260255814,
0.11167646944522858,
0.015565500594675541,
0.0626860186457634,
0.06578554213047028,
-0.1637498438358307,
-0.3026006817817688,
-0.014502430334687233,
-0.22166231274604797,
-0.028140544891357422,
-0.02701519802212715,
-0.013517100363969803,
-0.03778509795665741,
0.02383560687303543,
-0.15755198895931244,
0.149269700050354,
0.3603482246398926,
0.22197562456130981,
0.1999155879020691,
-0.030421249568462372,
-0.11373494565486908,
-0.16793502867221832,
0.24025186896324158,
0.3625420928001404,
-0.24297982454299927,
0.020565897226333618,
0.04878712445497513,
-0.2928101718425751,
-0.017996031790971756,
0.21763519942760468,
0.0150570347905159,
-0.11432815343141556,
-0.14117580652236938,
0.31470564007759094,
0.3006373941898346,
-0.15869483351707458,
0.14067119359970093,
0.049558375030756,
-0.540770411491394,
0.10491056740283966,
0.23967665433883667,
0.35459616780281067,
0.4670504927635193,
-0.08461572229862213,
-0.030097298324108124,
-0.20220327377319336,
-0.4699473977088928,
-0.017855029553174973,
-0.10794241726398468,
-0.09989491105079651,
0.08017551898956299,
0.29548898339271545,
0.053745023906230927,
0.29050806164741516,
-0.12568582594394684,
0.10366562008857727,
0.2375520020723343,
0.3831176161766052,
0.12444446980953217,
0.266567587852478,
-0.10980100929737091,
-0.1003255546092987,
0.014015734195709229,
0.3389711380004883,
0.4176734387874603,
0.00977376103401184,
-0.07335188239812851,
0.173847958445549,
-0.3627985417842865,
-0.18364644050598145,
0.5036056637763977,
-0.1327306032180786,
0.02547161653637886,
0.031114205718040466,
0.04403378814458847,
-0.5922502279281616,
-0.05833089351654053,
0.011598668992519379,
-0.03565362095832825,
-0.2323007881641388,
0.13594678044319153,
-0.03326951712369919,
-0.02153506688773632,
0.09359544515609741,
-0.16905111074447632,
0.6169639825820923,
-0.17138585448265076,
0.03176039457321167,
0.12197185307741165,
0.06782305985689163,
-0.06867876648902893,
0.20248013734817505,
0.28306740522384644,
0.33278170228004456,
-0.1723630428314209,
-0.013408076949417591,
-0.2788938879966736,
-0.043650154024362564,
-0.18009142577648163,
0.2672833204269409,
0.4169793725013733,
0.15820474922657013,
0.1354065239429474,
0.14985518157482147,
-0.2754347622394562,
-0.0892597883939743,
-0.12805227935314178,
0.37552550435066223,
-0.34116050601005554,
0.17544427514076233,
0.3472995162010193,
-0.09843616187572479,
-0.3665187656879425,
0.07051210105419159,
-0.21050912141799927,
-0.03209920972585678,
0.2633017301559448,
-0.21359384059906006,
0.006127361208200455,
-0.21709208190441132,
0.12564457952976227,
0.03305571526288986,
0.45708826184272766,
0.44533807039260864,
0.272909939289093,
0.0695861354470253,
-0.13588880002498627,
-0.12064575403928757,
-0.12182021886110306,
0.2325626164674759,
0.00041992031037807465,
-0.02142975479364395,
0.34019342064857483,
0.2097507268190384,
0.05093119293451309,
0.10659758001565933,
-0.18057572841644287,
-0.19701224565505981,
0.021350625902414322,
-0.1991489976644516,
0.4721858501434326,
-0.13077014684677124,
0.12877757847309113,
0.15359409153461456,
-0.15708249807357788,
0.004364386200904846,
-0.04730319604277611,
0.03512544184923172,
0.12745115160942078,
-0.03358197957277298,
0.11917315423488617,
-0.12394332885742188,
0.4963180720806122,
0.22367049753665924,
-0.0023200511932373047,
-0.3021542727947235,
-0.2044089436531067,
-0.05973407253623009,
-0.19056306779384613,
-0.44353023171424866,
0.11879701912403107,
0.07463584095239639,
0.6155226230621338,
0.03538814187049866,
-0.005318693816661835,
-0.08507554233074188,
-0.053873203694820404,
-0.002584453672170639,
-0.5257412195205688,
-0.09233807772397995,
-0.057850733399391174,
-0.007193528115749359,
0.06565544754266739,
-0.02969350293278694,
0.443040132522583,
0.05511061102151871,
-0.0898766741156578,
-0.29255229234695435,
-0.35798773169517517,
0.27092084288597107,
0.015427676029503345,
-0.29161524772644043,
-0.325573593378067,
0.1758095771074295,
0.1820601373910904,
0.09684565663337708,
-0.5720555782318115,
-0.23572379350662231,
0.2590377926826477,
0.06888923048973083,
0.06077525392174721,
0.38749369978904724,
0.030089206993579865,
-0.2148042917251587,
-0.21007800102233887,
0.10415893793106079,
-0.24666306376457214,
-0.0035125501453876495,
-0.20416858792304993,
-0.18897171318531036
] |
https://github.com/huggingface/datasets/issues/2618 | `filelock.py` Error | Hi @liyucheng09, thanks for reporting.
Apparently this issue has to do with your environment setup. One question: is your data in an NFS share? Some people have reported this error when using `fcntl` to write to an NFS share... If this is the case, then it might be that your NFS just may not be set up to provide file locks. You should ask your system administrator, or try these commands in the terminal:
```shell
sudo systemctl enable rpc-statd
sudo systemctl start rpc-statd
``` | ## Describe the bug
It seems that the `filelock.py` went error.
```
>>> ds=load_dataset('xsum')
^CTraceback (most recent call last):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available
```
According to error log, it is OSError, but there is an `except` in the `_acquire` function.
```
def _acquire(self):
open_mode = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_TRUNC
try:
fd = os.open(self._lock_file, open_mode)
except (IOError, OSError):
pass
else:
self._lock_file_fd = fd
return None
```
I don't know why it stucked rather than `pass` directly.
I am not quite familiar with filelock operation, so any help is highly appriciated.
## Steps to reproduce the bug
```python
ds = load_dataset('xsum')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
>>> ds=load_dataset('xsum')
^CTraceback (most recent call last):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 818, in load_dataset
use_auth_token=use_auth_token,
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 470, in prepare_module
with FileLock(lock_path):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
KeyboardInterrupt
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-135-generic-x86_64-with-debian-buster-sid
- Python version: 3.6.13
- PyArrow version: 4.0.1
| 84 | `filelock.py` Error
## Describe the bug
It seems that the `filelock.py` went error.
```
>>> ds=load_dataset('xsum')
^CTraceback (most recent call last):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available
```
According to error log, it is OSError, but there is an `except` in the `_acquire` function.
```
def _acquire(self):
open_mode = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_TRUNC
try:
fd = os.open(self._lock_file, open_mode)
except (IOError, OSError):
pass
else:
self._lock_file_fd = fd
return None
```
I don't know why it stucked rather than `pass` directly.
I am not quite familiar with filelock operation, so any help is highly appriciated.
## Steps to reproduce the bug
```python
ds = load_dataset('xsum')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
>>> ds=load_dataset('xsum')
^CTraceback (most recent call last):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 818, in load_dataset
use_auth_token=use_auth_token,
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 470, in prepare_module
with FileLock(lock_path):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
KeyboardInterrupt
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-135-generic-x86_64-with-debian-buster-sid
- Python version: 3.6.13
- PyArrow version: 4.0.1
Hi @liyucheng09, thanks for reporting.
Apparently this issue has to do with your environment setup. One question: is your data in an NFS share? Some people have reported this error when using `fcntl` to write to an NFS share... If this is the case, then it might be that your NFS just may not be set up to provide file locks. You should ask your system administrator, or try these commands in the terminal:
```shell
sudo systemctl enable rpc-statd
sudo systemctl start rpc-statd
``` | [
0.13904428482055664,
-0.34730127453804016,
0.015146855264902115,
0.04186102747917175,
0.0302767101675272,
0.09070468693971634,
0.16235919296741486,
0.13566650450229645,
0.05923796072602272,
0.09362209588289261,
-0.10108491033315659,
0.3403192460536957,
-0.032961200922727585,
-0.42406588792800903,
-0.45925161242485046,
0.11418253183364868,
0.006927460432052612,
-0.06985820829868317,
-0.11495678126811981,
-0.013815436512231827,
-0.35955697298049927,
0.39683404564857483,
-0.4249511957168579,
0.0698370486497879,
-0.2793183922767639,
-0.048034898936748505,
-0.13662542402744293,
0.38865143060684204,
-0.16889946162700653,
-0.1395636647939682,
-0.051724568009376526,
0.08670641481876373,
0.04804081469774246,
0.5414584279060364,
-0.00011423227988416329,
-0.11047090590000153,
0.07514974474906921,
-0.05661521106958389,
-0.37209296226501465,
-0.04228077828884125,
0.14076045155525208,
-0.09100858122110367,
-0.08224847167730331,
-0.3874732553958893,
0.23739838600158691,
-0.34642094373703003,
0.14347891509532928,
-0.2871144413948059,
0.40223902463912964,
0.2639315724372864,
0.14412638545036316,
0.1482027769088745,
0.41752901673316956,
-0.17800936102867126,
0.10951317101716995,
-0.4201948046684265,
-0.05971865355968475,
0.6798744201660156,
0.7193906307220459,
-0.1613606959581375,
0.017196044325828552,
0.08550579845905304,
-0.1482500284910202,
-0.204940527677536,
0.23206332325935364,
0.019350185990333557,
0.38152015209198,
-0.44018808007240295,
-0.2167777419090271,
-0.06764280050992966,
0.04765612632036209,
-0.033116474747657776,
-0.4759555459022522,
-0.1618119776248932,
0.4275054335594177,
-0.07761984318494797,
0.06741677969694138,
0.14741432666778564,
-0.31597432494163513,
0.3756871521472931,
0.35569313168525696,
-0.11536021530628204,
-0.014597374945878983,
0.07217614352703094,
-0.06326159089803696,
0.3086346685886383,
0.0281343013048172,
0.13706572353839874,
0.26272496581077576,
-0.03087596595287323,
-0.08057035505771637,
-0.02262100577354431,
-0.07862362265586853,
0.17913818359375,
-0.3750104606151581,
0.05320363491773605,
0.13465449213981628,
0.05768692493438721,
0.04918908327817917,
-0.2361772507429123,
-0.3443278968334198,
-0.24687504768371582,
-0.2653762102127075,
0.23430666327476501,
-0.103788360953331,
0.0391341969370842,
0.05643003433942795,
0.17573583126068115,
0.3515811562538147,
0.10157158970832825,
-0.19551758468151093,
0.013868981972336769,
-0.06824751198291779,
-0.2627127766609192,
0.1323339194059372,
0.29164156317710876,
0.4077898859977722,
-0.1522001475095749,
-0.039868857711553574,
0.23378078639507294,
-0.3236958682537079,
0.018107449635863304,
0.13108478486537933,
0.291644811630249,
0.11067770421504974,
-0.08094906061887741,
0.44701892137527466,
0.16833597421646118,
-0.1455669403076172,
0.0815064087510109,
-0.08969936519861221,
0.20967453718185425,
-0.034274451434612274,
-0.0005643600597977638,
-0.17086318135261536,
-0.36302149295806885,
0.07559601962566376,
0.36835169792175293,
0.23842203617095947,
-0.331438809633255,
0.20222604274749756,
-0.11281272768974304,
-0.14929965138435364,
0.11939643323421478,
-0.13946548104286194,
-0.0028867386281490326,
0.336823970079422,
-0.245614692568779,
0.1286299228668213,
0.17143864929676056,
-0.3326621949672699,
-0.1702173501253128,
-0.24440743029117584,
0.1446687877178192,
-0.06694157421588898,
0.05731420964002609,
0.1982482671737671,
-0.3010264039039612,
0.04589826986193657,
-0.31522345542907715,
0.15902301669120789,
-0.33976995944976807,
0.10846979916095734,
-0.15303751826286316,
0.04825969785451889,
0.40749984979629517,
-0.12052427232265472,
0.29175037145614624,
0.1815023422241211,
-0.1920056790113449,
0.16255508363246918,
0.09017464518547058,
-0.02133902534842491,
0.11091340333223343,
-0.44441041350364685,
0.019757963716983795,
0.10673835873603821,
-0.5011022090911865,
-0.5333333015441895,
0.056169550865888596,
-0.47908997535705566,
0.05378788709640503,
0.16959485411643982,
0.4211772382259369,
-0.01736793853342533,
-0.16417066752910614,
0.2718978524208069,
0.03714151680469513,
-0.013501102104783058,
-0.1450970619916916,
-0.15280993282794952,
0.0375400111079216,
-0.04408203065395355,
0.14069247245788574,
-0.0029501579701900482,
0.1586373895406723,
0.13996270298957825,
0.007128906436264515,
0.529682457447052,
-0.14621330797672272,
-0.2674140930175781,
0.162833109498024,
0.47947970032691956,
0.1399136483669281,
0.085024394094944,
-0.15911799669265747,
-0.18927210569381714,
0.2522284686565399,
-0.1989828199148178,
-0.0743359923362732,
-0.07250650227069855,
-0.07643146812915802,
-0.04376867040991783,
-0.04353461414575577,
-0.04201466962695122,
-0.08136516809463501,
0.11759799718856812,
-0.01488804817199707,
-0.17996343970298767,
0.04971529170870781,
-0.12948814034461975,
0.47908344864845276,
-0.44334694743156433,
0.20137919485569,
-0.14359813928604126,
0.07251694053411484,
-0.10640238970518112,
-0.23213300108909607,
-0.2575784921646118,
-0.007140442728996277,
0.2843227684497833,
-0.19003577530384064,
-0.2792271077632904,
0.4126046597957611,
0.29594454169273376,
-0.11242669820785522,
-0.21720200777053833,
-0.21121202409267426,
0.17445975542068481,
0.35837697982788086,
-0.23047608137130737,
0.014889857731759548,
0.08370649814605713,
-0.06126203387975693,
0.12024123221635818,
0.12850260734558105,
0.0746099203824997,
-0.039793960750103,
-0.08322673290967941,
0.21097999811172485,
-0.025182394310832024,
0.06529423594474792,
0.020429370924830437,
0.019480466842651367,
0.46110522747039795,
0.008010783232748508,
0.0624387152493,
-0.10792192816734314,
-0.05187857896089554,
-0.07636990398168564,
0.19074006378650665,
0.05701972171664238,
0.2793470025062561,
0.1884344518184662,
0.31287881731987,
0.3672701120376587,
-0.1931111067533493,
0.5885142683982849,
0.7208216190338135,
0.10168498754501343,
-0.28756073117256165,
0.01992039754986763,
0.3027021884918213,
-0.21049648523330688,
-0.04690089076757431,
-0.03308335691690445,
-0.041875679045915604,
0.21207302808761597,
0.05869463086128235,
0.2311486303806305,
0.20326820015907288,
-0.8740937113761902,
-0.012597214430570602,
0.2340478003025055,
-0.004902977496385574,
-0.04891956225037575,
-0.16946114599704742,
0.13532143831253052,
0.06018715351819992,
0.3312358260154724,
-0.031749118119478226,
-0.31381455063819885,
0.13448554277420044,
0.464952677488327,
-0.07447852194309235,
0.003971208352595568,
-0.36314597725868225,
0.06436118483543396,
0.19804663956165314,
0.131660595536232,
0.1112060546875,
0.03675166890025139,
-0.09585640579462051,
-0.06642434000968933,
0.13150769472122192,
-0.09807423502206802,
0.2080141007900238,
-0.00031990744173526764,
-0.0812264010310173,
-0.4246039390563965,
-0.18296830356121063,
-0.031467072665691376,
-0.17350126802921295,
0.45975610613822937,
0.05671558901667595,
0.3035488724708557,
-0.02334573306143284,
0.024948302656412125,
0.13830389082431793,
-0.09792991727590561,
-0.07827723771333694,
0.07984122633934021,
0.01495825033634901,
-0.07151526212692261,
-0.3844696283340454,
-0.03470776230096817,
-0.3898947834968567,
-0.5175122022628784,
0.14336709678173065,
-0.18550893664360046,
0.06644179672002792,
0.33252161741256714,
-0.15231284499168396,
0.4005430340766907,
0.10167066007852554,
0.18093426525592804,
0.1439606249332428,
-0.29267022013664246,
0.29690444469451904,
-0.08584222942590714,
-0.4228854179382324,
-0.3153534531593323,
0.08550287038087845,
-0.4737829566001892,
-0.11343242973089218,
-0.29836440086364746,
-0.5243878364562988,
-0.34942978620529175,
0.09394685924053192,
-0.5529789328575134,
0.019617946818470955,
0.16180789470672607,
-0.24514994025230408,
-0.0653790533542633,
-0.23333823680877686,
0.17943161725997925,
0.13341224193572998,
0.086411252617836,
0.12635445594787598,
0.06550394743680954,
0.05867651849985123,
-0.006702929735183716,
0.3639445900917053,
0.10855115950107574,
0.2269396036863327,
0.29798805713653564,
-0.09206156432628632,
0.2684897780418396,
0.023914530873298645,
-0.2958974838256836,
-0.20397751033306122,
0.2649233341217041,
-0.23208700120449066,
-0.18439488112926483,
-0.014858875423669815,
0.29027843475341797,
-0.14782503247261047,
-0.35333016514778137,
-0.28932756185531616,
-0.3504851162433624,
-0.08503136038780212,
0.4227713346481323,
-0.09890151768922806,
-0.12464873492717743,
0.12015039473772049,
0.10847687721252441,
0.15865647792816162,
0.08968810737133026,
0.5906791090965271,
0.41215649247169495,
-0.10582186281681061,
-0.08029268682003021,
-0.19680100679397583,
0.0326540544629097,
0.3254837393760681,
-0.03533315286040306,
0.25913047790527344,
-0.08967339247465134,
0.027083709836006165,
0.10452193021774292,
-0.14179888367652893,
0.4386392831802368,
0.38485294580459595,
0.13846173882484436,
0.046440448611974716,
0.1160205751657486,
-0.025785313919186592,
-0.12778189778327942,
-0.2922455966472626,
0.24068796634674072,
0.45883846282958984,
0.3851793110370636,
-0.03474694862961769,
-0.05584513396024704,
-0.26600757241249084,
0.17024149000644684,
-0.21928106248378754,
-0.6137132048606873,
-0.027882469817996025,
-0.10194385051727295,
-0.43936440348625183,
0.11961178481578827,
0.09540285170078278,
0.14851292967796326,
-0.017836429178714752,
-0.07586802542209625,
0.255848228931427,
-0.20389306545257568,
0.02304553985595703,
-0.09569725394248962,
0.06682498008012772,
-0.11880149692296982,
0.12911224365234375,
-0.005666304379701614,
-0.35343971848487854,
0.3384054899215698,
0.22878849506378174,
0.27276310324668884,
0.05998722463846207,
0.2580753266811371,
-0.23947949707508087,
-0.009458087384700775,
0.27253878116607666,
-0.2674662172794342,
0.14914071559906006,
-0.03856850042939186,
0.23627552390098572,
0.1778630167245865,
-0.2500508427619934,
0.24824705719947815,
0.04106953367590904,
0.03853873535990715,
0.045814380049705505,
0.05939441919326782,
0.11779414117336273,
-0.07418135553598404,
0.7165993452072144,
0.4143914580345154,
0.08225933462381363,
0.31432294845581055,
0.01007562130689621,
0.7889763712882996,
0.011547546833753586,
-0.05758221074938774,
0.2241937220096588,
-0.0027724243700504303,
0.37859511375427246,
-0.17744170129299164,
0.1131700649857521,
-0.32710036635398865,
-0.5434796810150146,
0.11708886921405792,
-0.28657475113868713,
0.43152499198913574,
-0.46608930826187134,
-0.07265766710042953,
-0.029669642448425293,
-0.3799646496772766,
-0.4223921298980713,
0.022712629288434982,
0.010389979928731918,
-0.8001112937927246,
-0.03949754685163498,
-0.16886959969997406,
0.11110104620456696,
0.16464263200759888,
0.3454252779483795,
-0.108150914311409,
-0.11124749481678009,
-0.34645697474479675,
-0.16939300298690796,
-0.36260080337524414,
0.12797540426254272,
0.02965937927365303,
0.26357555389404297,
-0.089251309633255,
0.0973387360572815,
-0.054437629878520966,
0.46684372425079346,
-0.06601652503013611,
0.2516549527645111,
0.09808636456727982,
-0.021367788314819336,
0.032290417701005936,
0.05249527096748352,
0.25745221972465515,
-0.05813860148191452,
0.5052593350410461,
-0.039531148970127106,
-0.18610475957393646,
0.22421002388000488,
-0.11820962280035019,
-0.22628973424434662,
0.019777894020080566,
0.16499459743499756,
0.053558673709630966,
0.020764270797371864,
-0.3287978172302246,
-0.32344743609428406,
-0.24973976612091064,
-0.11839433014392853,
0.07017583400011063,
0.2645714282989502,
-0.2806156277656555,
0.04129631072282791,
-0.25725269317626953,
-0.24725516140460968,
0.07781164348125458,
0.23694655299186707,
-0.13549703359603882,
-0.1562502682209015,
0.7352297306060791,
0.3345285952091217,
0.07651562988758087,
-0.0932232066988945,
0.1682741343975067,
-0.18576952815055847,
-0.3107031583786011,
0.12187467515468597,
-0.1181880533695221,
0.23368726670742035,
0.15470194816589355,
0.13541129231452942,
0.1855074018239975,
-0.16562986373901367,
-0.04784255847334862,
-0.8504983186721802,
-0.37509310245513916,
-0.10207906365394592,
-0.21874724328517914,
0.04181700572371483,
-0.19383114576339722,
-0.05386735126376152,
-0.1249256506562233,
-0.1879480630159378,
-0.2676638960838318,
0.09532692283391953,
-0.33771446347236633,
-0.11402475833892822,
0.2787422239780426,
0.13261094689369202,
-0.03538099303841591,
0.06692525744438171,
0.1483343243598938,
0.44771820306777954,
0.03770872950553894,
-0.11066371202468872,
-0.23869571089744568,
0.18022942543029785,
-0.0075020380318164825,
0.05982568860054016,
0.16730742156505585,
-0.4267772436141968,
-0.015984762459993362,
0.1985914409160614,
-0.18044587969779968,
0.16996163129806519,
0.049913469702005386,
0.13163501024246216,
0.409023255109787,
0.3865374028682709,
-0.031267158687114716,
0.24747782945632935,
-0.15970629453659058,
-0.053104400634765625,
-0.011753379367291927,
-0.0375698059797287,
-0.32584264874458313,
0.08146753907203674,
-0.6099703311920166,
-0.21357029676437378,
-0.03528603911399841,
0.29616597294807434,
0.22895514965057373,
-0.052655093371868134,
0.23114344477653503,
0.37490254640579224,
0.38370850682258606,
0.1908665895462036,
-0.14633595943450928,
0.1729479432106018,
0.15540695190429688,
0.197839617729187,
-0.028233841061592102,
0.0028658739756792784,
0.26053109765052795,
0.11684597283601761,
-0.24268588423728943,
0.13616520166397095,
-0.5636622905731201,
-0.03446737676858902,
0.008577115833759308,
0.055047981441020966,
-0.05344897508621216,
0.13514521718025208,
-0.05059800669550896,
0.02788037806749344,
-0.02168697863817215,
0.002691086381673813,
0.22837474942207336,
-0.11277130246162415,
0.1167697161436081,
0.20271490514278412,
-0.3984919786453247,
-0.04436996579170227,
0.0387876033782959,
0.024672165513038635,
0.2728334963321686,
-0.3969201445579529,
0.31708893179893494,
0.006524816155433655,
0.1835428774356842,
-0.14220961928367615,
-0.19424277544021606,
0.12809070944786072,
-0.2384292334318161,
0.19145436584949493,
0.22333291172981262,
0.35838863253593445,
-0.1798890233039856,
0.3329330086708069,
0.37967896461486816,
-0.055815331637859344,
0.0767560601234436,
-0.21982640027999878,
0.06609084457159042,
0.08640927076339722,
-0.214816153049469,
0.34277772903442383,
0.04181015491485596,
-0.3922555446624756,
-0.44853055477142334,
0.20994940400123596,
0.3679637014865875,
-0.3328229784965515,
-0.203776016831398,
0.5172688961029053,
0.11834203451871872,
0.3015899658203125,
-0.04628489166498184,
0.3640754520893097,
0.5558552742004395,
0.08136564493179321,
0.31799831986427307,
-0.1306934952735901,
-0.004330230876803398,
0.06706417351961136,
0.3741813600063324,
0.19500936567783356,
0.07650703191757202,
0.2795681953430176,
0.1557220220565796,
-0.24709771573543549,
0.10125225782394409,
0.09901576489210129,
0.25357377529144287,
-0.2710579037666321,
0.23635882139205933,
0.15872439742088318,
-0.12887224555015564,
-0.10933884978294373,
0.03506568819284439,
-0.29956570267677307,
-0.02776423841714859,
-0.08436949551105499,
0.21661722660064697,
0.03195294365286827,
-0.013926650397479534,
0.09887208044528961,
-0.0031073354184627533,
-0.3188238739967346,
0.5872224569320679,
0.2256660759449005,
-0.32831016182899475,
0.17957280576229095,
-0.5215365886688232,
0.33253610134124756,
0.1587110459804535,
-0.43448373675346375,
-0.10756833851337433,
-0.03550277277827263,
-0.08127803355455399,
-0.034281522035598755,
0.5500478148460388,
-0.1895500123500824,
0.18381370604038239,
0.4769849479198456,
-0.20527638494968414,
-0.20118030905723572,
0.15575197339057922,
-0.19881819188594818,
-0.0595371350646019,
-0.10381932556629181,
0.00954343006014824,
-0.4522992968559265,
0.12382642179727554,
-0.08144568651914597,
-0.5590343475341797,
-0.022963445633649826,
-0.06028463691473007,
0.25712692737579346,
0.10171616822481155,
0.3643155097961426,
-0.10407856851816177,
-0.3773125410079956,
-0.14763404428958893,
-0.11325246095657349,
0.048495031893253326,
-0.31113848090171814,
0.028666522353887558,
0.34081462025642395,
-0.3522243797779083,
-0.41356992721557617,
-0.40276989340782166,
0.4307861030101776,
-0.47070950269699097,
-0.4059116244316101,
-0.5092324614524841,
0.35513874888420105,
-0.058661315590143204,
0.034745071083307266,
0.2844439744949341,
0.32307061553001404,
0.20757213234901428,
0.316886842250824,
-0.4063810110092163,
-0.14963316917419434,
0.6324789524078369,
-0.5143604278564453,
-0.04331929236650467,
0.14104728400707245,
0.40481534600257874,
-0.03848446160554886,
-0.14385730028152466,
-0.05028669163584709,
0.0080290287733078,
0.32626792788505554,
0.03529916703701019,
-0.11909574270248413,
0.017380807548761368,
0.04601655155420303,
-0.027552088722586632,
0.08915409445762634,
0.12601883709430695,
0.06519581377506256,
0.15042559802532196,
0.32259050011634827,
0.03883478790521622
] |
https://github.com/huggingface/datasets/issues/2618 | `filelock.py` Error | We now use the `filelock` package for file locking, so please report this issue in their repo if it's still causing you problems. | ## Describe the bug
It seems that the `filelock.py` went error.
```
>>> ds=load_dataset('xsum')
^CTraceback (most recent call last):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available
```
According to error log, it is OSError, but there is an `except` in the `_acquire` function.
```
def _acquire(self):
open_mode = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_TRUNC
try:
fd = os.open(self._lock_file, open_mode)
except (IOError, OSError):
pass
else:
self._lock_file_fd = fd
return None
```
I don't know why it stucked rather than `pass` directly.
I am not quite familiar with filelock operation, so any help is highly appriciated.
## Steps to reproduce the bug
```python
ds = load_dataset('xsum')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
>>> ds=load_dataset('xsum')
^CTraceback (most recent call last):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 818, in load_dataset
use_auth_token=use_auth_token,
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 470, in prepare_module
with FileLock(lock_path):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
KeyboardInterrupt
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-135-generic-x86_64-with-debian-buster-sid
- Python version: 3.6.13
- PyArrow version: 4.0.1
| 23 | `filelock.py` Error
## Describe the bug
It seems that the `filelock.py` went error.
```
>>> ds=load_dataset('xsum')
^CTraceback (most recent call last):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available
```
According to error log, it is OSError, but there is an `except` in the `_acquire` function.
```
def _acquire(self):
open_mode = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_TRUNC
try:
fd = os.open(self._lock_file, open_mode)
except (IOError, OSError):
pass
else:
self._lock_file_fd = fd
return None
```
I don't know why it stucked rather than `pass` directly.
I am not quite familiar with filelock operation, so any help is highly appriciated.
## Steps to reproduce the bug
```python
ds = load_dataset('xsum')
```
## Expected results
A clear and concise description of the expected results.
## Actual results
```
>>> ds=load_dataset('xsum')
^CTraceback (most recent call last):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
OSError: [Errno 37] No locks available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 818, in load_dataset
use_auth_token=use_auth_token,
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 470, in prepare_module
with FileLock(lock_path):
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire
fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
KeyboardInterrupt
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.0
- Platform: Linux-4.15.0-135-generic-x86_64-with-debian-buster-sid
- Python version: 3.6.13
- PyArrow version: 4.0.1
We now use the `filelock` package for file locking, so please report this issue in their repo if it's still causing you problems. | [
0.13904428482055664,
-0.34730127453804016,
0.015146855264902115,
0.04186102747917175,
0.0302767101675272,
0.09070468693971634,
0.16235919296741486,
0.13566650450229645,
0.05923796072602272,
0.09362209588289261,
-0.10108491033315659,
0.3403192460536957,
-0.032961200922727585,
-0.42406588792800903,
-0.45925161242485046,
0.11418253183364868,
0.006927460432052612,
-0.06985820829868317,
-0.11495678126811981,
-0.013815436512231827,
-0.35955697298049927,
0.39683404564857483,
-0.4249511957168579,
0.0698370486497879,
-0.2793183922767639,
-0.048034898936748505,
-0.13662542402744293,
0.38865143060684204,
-0.16889946162700653,
-0.1395636647939682,
-0.051724568009376526,
0.08670641481876373,
0.04804081469774246,
0.5414584279060364,
-0.00011423227988416329,
-0.11047090590000153,
0.07514974474906921,
-0.05661521106958389,
-0.37209296226501465,
-0.04228077828884125,
0.14076045155525208,
-0.09100858122110367,
-0.08224847167730331,
-0.3874732553958893,
0.23739838600158691,
-0.34642094373703003,
0.14347891509532928,
-0.2871144413948059,
0.40223902463912964,
0.2639315724372864,
0.14412638545036316,
0.1482027769088745,
0.41752901673316956,
-0.17800936102867126,
0.10951317101716995,
-0.4201948046684265,
-0.05971865355968475,
0.6798744201660156,
0.7193906307220459,
-0.1613606959581375,
0.017196044325828552,
0.08550579845905304,
-0.1482500284910202,
-0.204940527677536,
0.23206332325935364,
0.019350185990333557,
0.38152015209198,
-0.44018808007240295,
-0.2167777419090271,
-0.06764280050992966,
0.04765612632036209,
-0.033116474747657776,
-0.4759555459022522,
-0.1618119776248932,
0.4275054335594177,
-0.07761984318494797,
0.06741677969694138,
0.14741432666778564,
-0.31597432494163513,
0.3756871521472931,
0.35569313168525696,
-0.11536021530628204,
-0.014597374945878983,
0.07217614352703094,
-0.06326159089803696,
0.3086346685886383,
0.0281343013048172,
0.13706572353839874,
0.26272496581077576,
-0.03087596595287323,
-0.08057035505771637,
-0.02262100577354431,
-0.07862362265586853,
0.17913818359375,
-0.3750104606151581,
0.05320363491773605,
0.13465449213981628,
0.05768692493438721,
0.04918908327817917,
-0.2361772507429123,
-0.3443278968334198,
-0.24687504768371582,
-0.2653762102127075,
0.23430666327476501,
-0.103788360953331,
0.0391341969370842,
0.05643003433942795,
0.17573583126068115,
0.3515811562538147,
0.10157158970832825,
-0.19551758468151093,
0.013868981972336769,
-0.06824751198291779,
-0.2627127766609192,
0.1323339194059372,
0.29164156317710876,
0.4077898859977722,
-0.1522001475095749,
-0.039868857711553574,
0.23378078639507294,
-0.3236958682537079,
0.018107449635863304,
0.13108478486537933,
0.291644811630249,
0.11067770421504974,
-0.08094906061887741,
0.44701892137527466,
0.16833597421646118,
-0.1455669403076172,
0.0815064087510109,
-0.08969936519861221,
0.20967453718185425,
-0.034274451434612274,
-0.0005643600597977638,
-0.17086318135261536,
-0.36302149295806885,
0.07559601962566376,
0.36835169792175293,
0.23842203617095947,
-0.331438809633255,
0.20222604274749756,
-0.11281272768974304,
-0.14929965138435364,
0.11939643323421478,
-0.13946548104286194,
-0.0028867386281490326,
0.336823970079422,
-0.245614692568779,
0.1286299228668213,
0.17143864929676056,
-0.3326621949672699,
-0.1702173501253128,
-0.24440743029117584,
0.1446687877178192,
-0.06694157421588898,
0.05731420964002609,
0.1982482671737671,
-0.3010264039039612,
0.04589826986193657,
-0.31522345542907715,
0.15902301669120789,
-0.33976995944976807,
0.10846979916095734,
-0.15303751826286316,
0.04825969785451889,
0.40749984979629517,
-0.12052427232265472,
0.29175037145614624,
0.1815023422241211,
-0.1920056790113449,
0.16255508363246918,
0.09017464518547058,
-0.02133902534842491,
0.11091340333223343,
-0.44441041350364685,
0.019757963716983795,
0.10673835873603821,
-0.5011022090911865,
-0.5333333015441895,
0.056169550865888596,
-0.47908997535705566,
0.05378788709640503,
0.16959485411643982,
0.4211772382259369,
-0.01736793853342533,
-0.16417066752910614,
0.2718978524208069,
0.03714151680469513,
-0.013501102104783058,
-0.1450970619916916,
-0.15280993282794952,
0.0375400111079216,
-0.04408203065395355,
0.14069247245788574,
-0.0029501579701900482,
0.1586373895406723,
0.13996270298957825,
0.007128906436264515,
0.529682457447052,
-0.14621330797672272,
-0.2674140930175781,
0.162833109498024,
0.47947970032691956,
0.1399136483669281,
0.085024394094944,
-0.15911799669265747,
-0.18927210569381714,
0.2522284686565399,
-0.1989828199148178,
-0.0743359923362732,
-0.07250650227069855,
-0.07643146812915802,
-0.04376867040991783,
-0.04353461414575577,
-0.04201466962695122,
-0.08136516809463501,
0.11759799718856812,
-0.01488804817199707,
-0.17996343970298767,
0.04971529170870781,
-0.12948814034461975,
0.47908344864845276,
-0.44334694743156433,
0.20137919485569,
-0.14359813928604126,
0.07251694053411484,
-0.10640238970518112,
-0.23213300108909607,
-0.2575784921646118,
-0.007140442728996277,
0.2843227684497833,
-0.19003577530384064,
-0.2792271077632904,
0.4126046597957611,
0.29594454169273376,
-0.11242669820785522,
-0.21720200777053833,
-0.21121202409267426,
0.17445975542068481,
0.35837697982788086,
-0.23047608137130737,
0.014889857731759548,
0.08370649814605713,
-0.06126203387975693,
0.12024123221635818,
0.12850260734558105,
0.0746099203824997,
-0.039793960750103,
-0.08322673290967941,
0.21097999811172485,
-0.025182394310832024,
0.06529423594474792,
0.020429370924830437,
0.019480466842651367,
0.46110522747039795,
0.008010783232748508,
0.0624387152493,
-0.10792192816734314,
-0.05187857896089554,
-0.07636990398168564,
0.19074006378650665,
0.05701972171664238,
0.2793470025062561,
0.1884344518184662,
0.31287881731987,
0.3672701120376587,
-0.1931111067533493,
0.5885142683982849,
0.7208216190338135,
0.10168498754501343,
-0.28756073117256165,
0.01992039754986763,
0.3027021884918213,
-0.21049648523330688,
-0.04690089076757431,
-0.03308335691690445,
-0.041875679045915604,
0.21207302808761597,
0.05869463086128235,
0.2311486303806305,
0.20326820015907288,
-0.8740937113761902,
-0.012597214430570602,
0.2340478003025055,
-0.004902977496385574,
-0.04891956225037575,
-0.16946114599704742,
0.13532143831253052,
0.06018715351819992,
0.3312358260154724,
-0.031749118119478226,
-0.31381455063819885,
0.13448554277420044,
0.464952677488327,
-0.07447852194309235,
0.003971208352595568,
-0.36314597725868225,
0.06436118483543396,
0.19804663956165314,
0.131660595536232,
0.1112060546875,
0.03675166890025139,
-0.09585640579462051,
-0.06642434000968933,
0.13150769472122192,
-0.09807423502206802,
0.2080141007900238,
-0.00031990744173526764,
-0.0812264010310173,
-0.4246039390563965,
-0.18296830356121063,
-0.031467072665691376,
-0.17350126802921295,
0.45975610613822937,
0.05671558901667595,
0.3035488724708557,
-0.02334573306143284,
0.024948302656412125,
0.13830389082431793,
-0.09792991727590561,
-0.07827723771333694,
0.07984122633934021,
0.01495825033634901,
-0.07151526212692261,
-0.3844696283340454,
-0.03470776230096817,
-0.3898947834968567,
-0.5175122022628784,
0.14336709678173065,
-0.18550893664360046,
0.06644179672002792,
0.33252161741256714,
-0.15231284499168396,
0.4005430340766907,
0.10167066007852554,
0.18093426525592804,
0.1439606249332428,
-0.29267022013664246,
0.29690444469451904,
-0.08584222942590714,
-0.4228854179382324,
-0.3153534531593323,
0.08550287038087845,
-0.4737829566001892,
-0.11343242973089218,
-0.29836440086364746,
-0.5243878364562988,
-0.34942978620529175,
0.09394685924053192,
-0.5529789328575134,
0.019617946818470955,
0.16180789470672607,
-0.24514994025230408,
-0.0653790533542633,
-0.23333823680877686,
0.17943161725997925,
0.13341224193572998,
0.086411252617836,
0.12635445594787598,
0.06550394743680954,
0.05867651849985123,
-0.006702929735183716,
0.3639445900917053,
0.10855115950107574,
0.2269396036863327,
0.29798805713653564,
-0.09206156432628632,
0.2684897780418396,
0.023914530873298645,
-0.2958974838256836,
-0.20397751033306122,
0.2649233341217041,
-0.23208700120449066,
-0.18439488112926483,
-0.014858875423669815,
0.29027843475341797,
-0.14782503247261047,
-0.35333016514778137,
-0.28932756185531616,
-0.3504851162433624,
-0.08503136038780212,
0.4227713346481323,
-0.09890151768922806,
-0.12464873492717743,
0.12015039473772049,
0.10847687721252441,
0.15865647792816162,
0.08968810737133026,
0.5906791090965271,
0.41215649247169495,
-0.10582186281681061,
-0.08029268682003021,
-0.19680100679397583,
0.0326540544629097,
0.3254837393760681,
-0.03533315286040306,
0.25913047790527344,
-0.08967339247465134,
0.027083709836006165,
0.10452193021774292,
-0.14179888367652893,
0.4386392831802368,
0.38485294580459595,
0.13846173882484436,
0.046440448611974716,
0.1160205751657486,
-0.025785313919186592,
-0.12778189778327942,
-0.2922455966472626,
0.24068796634674072,
0.45883846282958984,
0.3851793110370636,
-0.03474694862961769,
-0.05584513396024704,
-0.26600757241249084,
0.17024149000644684,
-0.21928106248378754,
-0.6137132048606873,
-0.027882469817996025,
-0.10194385051727295,
-0.43936440348625183,
0.11961178481578827,
0.09540285170078278,
0.14851292967796326,
-0.017836429178714752,
-0.07586802542209625,
0.255848228931427,
-0.20389306545257568,
0.02304553985595703,
-0.09569725394248962,
0.06682498008012772,
-0.11880149692296982,
0.12911224365234375,
-0.005666304379701614,
-0.35343971848487854,
0.3384054899215698,
0.22878849506378174,
0.27276310324668884,
0.05998722463846207,
0.2580753266811371,
-0.23947949707508087,
-0.009458087384700775,
0.27253878116607666,
-0.2674662172794342,
0.14914071559906006,
-0.03856850042939186,
0.23627552390098572,
0.1778630167245865,
-0.2500508427619934,
0.24824705719947815,
0.04106953367590904,
0.03853873535990715,
0.045814380049705505,
0.05939441919326782,
0.11779414117336273,
-0.07418135553598404,
0.7165993452072144,
0.4143914580345154,
0.08225933462381363,
0.31432294845581055,
0.01007562130689621,
0.7889763712882996,
0.011547546833753586,
-0.05758221074938774,
0.2241937220096588,
-0.0027724243700504303,
0.37859511375427246,
-0.17744170129299164,
0.1131700649857521,
-0.32710036635398865,
-0.5434796810150146,
0.11708886921405792,
-0.28657475113868713,
0.43152499198913574,
-0.46608930826187134,
-0.07265766710042953,
-0.029669642448425293,
-0.3799646496772766,
-0.4223921298980713,
0.022712629288434982,
0.010389979928731918,
-0.8001112937927246,
-0.03949754685163498,
-0.16886959969997406,
0.11110104620456696,
0.16464263200759888,
0.3454252779483795,
-0.108150914311409,
-0.11124749481678009,
-0.34645697474479675,
-0.16939300298690796,
-0.36260080337524414,
0.12797540426254272,
0.02965937927365303,
0.26357555389404297,
-0.089251309633255,
0.0973387360572815,
-0.054437629878520966,
0.46684372425079346,
-0.06601652503013611,
0.2516549527645111,
0.09808636456727982,
-0.021367788314819336,
0.032290417701005936,
0.05249527096748352,
0.25745221972465515,
-0.05813860148191452,
0.5052593350410461,
-0.039531148970127106,
-0.18610475957393646,
0.22421002388000488,
-0.11820962280035019,
-0.22628973424434662,
0.019777894020080566,
0.16499459743499756,
0.053558673709630966,
0.020764270797371864,
-0.3287978172302246,
-0.32344743609428406,
-0.24973976612091064,
-0.11839433014392853,
0.07017583400011063,
0.2645714282989502,
-0.2806156277656555,
0.04129631072282791,
-0.25725269317626953,
-0.24725516140460968,
0.07781164348125458,
0.23694655299186707,
-0.13549703359603882,
-0.1562502682209015,
0.7352297306060791,
0.3345285952091217,
0.07651562988758087,
-0.0932232066988945,
0.1682741343975067,
-0.18576952815055847,
-0.3107031583786011,
0.12187467515468597,
-0.1181880533695221,
0.23368726670742035,
0.15470194816589355,
0.13541129231452942,
0.1855074018239975,
-0.16562986373901367,
-0.04784255847334862,
-0.8504983186721802,
-0.37509310245513916,
-0.10207906365394592,
-0.21874724328517914,
0.04181700572371483,
-0.19383114576339722,
-0.05386735126376152,
-0.1249256506562233,
-0.1879480630159378,
-0.2676638960838318,
0.09532692283391953,
-0.33771446347236633,
-0.11402475833892822,
0.2787422239780426,
0.13261094689369202,
-0.03538099303841591,
0.06692525744438171,
0.1483343243598938,
0.44771820306777954,
0.03770872950553894,
-0.11066371202468872,
-0.23869571089744568,
0.18022942543029785,
-0.0075020380318164825,
0.05982568860054016,
0.16730742156505585,
-0.4267772436141968,
-0.015984762459993362,
0.1985914409160614,
-0.18044587969779968,
0.16996163129806519,
0.049913469702005386,
0.13163501024246216,
0.409023255109787,
0.3865374028682709,
-0.031267158687114716,
0.24747782945632935,
-0.15970629453659058,
-0.053104400634765625,
-0.011753379367291927,
-0.0375698059797287,
-0.32584264874458313,
0.08146753907203674,
-0.6099703311920166,
-0.21357029676437378,
-0.03528603911399841,
0.29616597294807434,
0.22895514965057373,
-0.052655093371868134,
0.23114344477653503,
0.37490254640579224,
0.38370850682258606,
0.1908665895462036,
-0.14633595943450928,
0.1729479432106018,
0.15540695190429688,
0.197839617729187,
-0.028233841061592102,
0.0028658739756792784,
0.26053109765052795,
0.11684597283601761,
-0.24268588423728943,
0.13616520166397095,
-0.5636622905731201,
-0.03446737676858902,
0.008577115833759308,
0.055047981441020966,
-0.05344897508621216,
0.13514521718025208,
-0.05059800669550896,
0.02788037806749344,
-0.02168697863817215,
0.002691086381673813,
0.22837474942207336,
-0.11277130246162415,
0.1167697161436081,
0.20271490514278412,
-0.3984919786453247,
-0.04436996579170227,
0.0387876033782959,
0.024672165513038635,
0.2728334963321686,
-0.3969201445579529,
0.31708893179893494,
0.006524816155433655,
0.1835428774356842,
-0.14220961928367615,
-0.19424277544021606,
0.12809070944786072,
-0.2384292334318161,
0.19145436584949493,
0.22333291172981262,
0.35838863253593445,
-0.1798890233039856,
0.3329330086708069,
0.37967896461486816,
-0.055815331637859344,
0.0767560601234436,
-0.21982640027999878,
0.06609084457159042,
0.08640927076339722,
-0.214816153049469,
0.34277772903442383,
0.04181015491485596,
-0.3922555446624756,
-0.44853055477142334,
0.20994940400123596,
0.3679637014865875,
-0.3328229784965515,
-0.203776016831398,
0.5172688961029053,
0.11834203451871872,
0.3015899658203125,
-0.04628489166498184,
0.3640754520893097,
0.5558552742004395,
0.08136564493179321,
0.31799831986427307,
-0.1306934952735901,
-0.004330230876803398,
0.06706417351961136,
0.3741813600063324,
0.19500936567783356,
0.07650703191757202,
0.2795681953430176,
0.1557220220565796,
-0.24709771573543549,
0.10125225782394409,
0.09901576489210129,
0.25357377529144287,
-0.2710579037666321,
0.23635882139205933,
0.15872439742088318,
-0.12887224555015564,
-0.10933884978294373,
0.03506568819284439,
-0.29956570267677307,
-0.02776423841714859,
-0.08436949551105499,
0.21661722660064697,
0.03195294365286827,
-0.013926650397479534,
0.09887208044528961,
-0.0031073354184627533,
-0.3188238739967346,
0.5872224569320679,
0.2256660759449005,
-0.32831016182899475,
0.17957280576229095,
-0.5215365886688232,
0.33253610134124756,
0.1587110459804535,
-0.43448373675346375,
-0.10756833851337433,
-0.03550277277827263,
-0.08127803355455399,
-0.034281522035598755,
0.5500478148460388,
-0.1895500123500824,
0.18381370604038239,
0.4769849479198456,
-0.20527638494968414,
-0.20118030905723572,
0.15575197339057922,
-0.19881819188594818,
-0.0595371350646019,
-0.10381932556629181,
0.00954343006014824,
-0.4522992968559265,
0.12382642179727554,
-0.08144568651914597,
-0.5590343475341797,
-0.022963445633649826,
-0.06028463691473007,
0.25712692737579346,
0.10171616822481155,
0.3643155097961426,
-0.10407856851816177,
-0.3773125410079956,
-0.14763404428958893,
-0.11325246095657349,
0.048495031893253326,
-0.31113848090171814,
0.028666522353887558,
0.34081462025642395,
-0.3522243797779083,
-0.41356992721557617,
-0.40276989340782166,
0.4307861030101776,
-0.47070950269699097,
-0.4059116244316101,
-0.5092324614524841,
0.35513874888420105,
-0.058661315590143204,
0.034745071083307266,
0.2844439744949341,
0.32307061553001404,
0.20757213234901428,
0.316886842250824,
-0.4063810110092163,
-0.14963316917419434,
0.6324789524078369,
-0.5143604278564453,
-0.04331929236650467,
0.14104728400707245,
0.40481534600257874,
-0.03848446160554886,
-0.14385730028152466,
-0.05028669163584709,
0.0080290287733078,
0.32626792788505554,
0.03529916703701019,
-0.11909574270248413,
0.017380807548761368,
0.04601655155420303,
-0.027552088722586632,
0.08915409445762634,
0.12601883709430695,
0.06519581377506256,
0.15042559802532196,
0.32259050011634827,
0.03883478790521622
] |
https://github.com/huggingface/datasets/issues/2615 | Jsonlines export error | For some reason this happens (both `datasets` version are on master) only on Python 3.6 and not Python 3.8. | ## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1 | 19 | Jsonlines export error
## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1
For some reason this happens (both `datasets` version are on master) only on Python 3.6 and not Python 3.8. | [
-0.3504135310649872,
0.13335847854614258,
-0.006901402026414871,
0.3097096085548401,
0.03890375420451164,
0.08054844290018082,
0.21886447072029114,
0.38834455609321594,
0.0006042961031198502,
-0.04023028910160065,
0.32310014963150024,
0.03459402173757553,
0.06731624156236649,
0.044697947800159454,
-0.168023943901062,
-0.1674070805311203,
0.2194831520318985,
-0.030849933624267578,
0.03366870805621147,
0.2225419133901596,
-0.27707144618034363,
0.30251988768577576,
-0.1921602487564087,
-0.22603650391101837,
-0.3988593518733978,
-0.2168715000152588,
0.14741837978363037,
0.014026697725057602,
-0.026366179808974266,
-0.5282500386238098,
-0.03911522775888443,
-0.23884359002113342,
0.44403979182243347,
0.5343341827392578,
-0.00012084822810720652,
-0.1544705331325531,
0.3335990905761719,
0.006130008026957512,
-0.20748233795166016,
0.02644181251525879,
-0.4390990138053894,
-0.32505226135253906,
0.06267683953046799,
-0.3321588337421417,
0.42548930644989014,
-0.04332542419433594,
-0.3561619222164154,
-0.46521708369255066,
0.6484057903289795,
0.4455595016479492,
0.12725964188575745,
0.04884471744298935,
0.09546898305416107,
-0.013407491147518158,
-0.030334077775478363,
0.13981503248214722,
-0.027030767872929573,
0.14632144570350647,
-0.16734281182289124,
0.27415627241134644,
0.26423245668411255,
-0.05715280771255493,
-0.15867112576961517,
-0.25410640239715576,
-0.11992355436086655,
-0.08541066944599152,
-0.059305332601070404,
-0.285814106464386,
0.1833254098892212,
0.40008556842803955,
0.11885739862918854,
-0.19417637586593628,
-0.21227598190307617,
-0.35446086525917053,
0.11099235713481903,
-0.5715144872665405,
0.05930086970329285,
0.5090205073356628,
-0.0011917846277356148,
0.10803684592247009,
-0.26376765966415405,
-0.11441031843423843,
-0.21542532742023468,
-0.04446691274642944,
0.003329917788505554,
-0.18538126349449158,
-0.12459288537502289,
0.023659605532884598,
-0.12368325889110565,
-0.09167523682117462,
-0.0017682062461972237,
-0.2792038917541504,
-0.5480961203575134,
-0.04837588593363762,
-0.15314224362373352,
0.07192586362361908,
0.1683177649974823,
-0.4102766513824463,
0.07654061913490295,
-0.1706932932138443,
0.2756141424179077,
-0.376874715089798,
0.25221487879753113,
0.03994357958436012,
0.5629568696022034,
0.1241350769996643,
0.3155882954597473,
-0.011655867099761963,
0.23482929170131683,
0.013443384319543839,
0.06303766369819641,
-0.05122753977775574,
0.01825479045510292,
-0.16855333745479584,
0.13086338341236115,
0.05271909013390541,
0.01561790332198143,
-0.08819226920604706,
-0.052422910928726196,
0.17997795343399048,
-0.3575303554534912,
-0.17916609346866608,
-0.2505486011505127,
-0.19062396883964539,
-0.09928056597709656,
0.2618553936481476,
0.16350357234477997,
0.29563456773757935,
-0.17176340520381927,
0.006308230571448803,
-0.020448816940188408,
-0.11028648912906647,
-0.0897187888622284,
-0.023623110726475716,
-0.07319483160972595,
-0.2337142825126648,
-0.012697276659309864,
0.26072922348976135,
-0.07130806148052216,
-0.2439553141593933,
-0.09356679767370224,
-0.04294242709875107,
-0.11929228156805038,
0.20152051746845245,
0.30511754751205444,
0.14322161674499512,
-0.1321813017129898,
-0.14206045866012573,
-0.05511835590004921,
0.1836930215358734,
-0.4487801790237427,
-0.05097271874547005,
-0.3994901776313782,
0.13035818934440613,
-0.1831214725971222,
0.1322420984506607,
-0.4531032145023346,
-0.07572822272777557,
0.10636325180530548,
0.10563717782497406,
0.37759897112846375,
-0.354727566242218,
0.5717492699623108,
-0.28042086958885193,
0.022484207525849342,
0.28259211778640747,
-0.7132418751716614,
0.090574711561203,
0.07878582924604416,
-0.018038492649793625,
0.4428820013999939,
0.3599768280982971,
-0.05336098000407219,
0.3268297612667084,
-0.11791840195655823,
0.2507767081260681,
0.14929427206516266,
0.18227283656597137,
0.07331918179988861,
0.490276575088501,
-0.07509652525186539,
0.008265184238553047,
-0.017881013453006744,
-0.34517765045166016,
0.6365373134613037,
0.10816756635904312,
0.5238193273544312,
0.3789549469947815,
0.056739870458841324,
0.24714303016662598,
-0.1749354898929596,
-0.1934177130460739,
-0.058230072259902954,
-0.19986265897750854,
-0.33822327852249146,
-0.047783784568309784,
0.14367210865020752,
-0.20432744920253754,
0.31365829706192017,
-0.24686962366104126,
0.11876370757818222,
0.42371904850006104,
0.13869455456733704,
0.1213781088590622,
0.0007522068917751312,
0.22975057363510132,
-0.4470791816711426,
-0.14845892786979675,
-0.10313243418931961,
-0.15825612843036652,
-0.14089491963386536,
-0.026227857917547226,
0.209629088640213,
0.22289378941059113,
-0.061891134828329086,
0.14834408462047577,
0.0206853449344635,
-0.11799252033233643,
-0.08283255249261856,
0.20885446667671204,
-0.04392056167125702,
0.10726609081029892,
0.18921475112438202,
0.046816613525152206,
-0.2518902122974396,
0.30144935846328735,
0.24207963049411774,
-0.2325034886598587,
0.20497681200504303,
0.12091926485300064,
0.15982003509998322,
-0.3047860860824585,
-0.13924530148506165,
0.20688864588737488,
0.055334027856588364,
-0.043761834502220154,
-0.21176335215568542,
0.05000127851963043,
0.12288706004619598,
0.1427299529314041,
-0.15626651048660278,
0.29582375288009644,
-0.06005990505218506,
0.09399964660406113,
-0.06637368351221085,
0.6036196351051331,
-0.16806712746620178,
0.35152560472488403,
-0.04448263347148895,
-0.009332865476608276,
0.20487041771411896,
-0.10043243318796158,
-0.0489797443151474,
-0.23922255635261536,
0.2890394926071167,
0.21994942426681519,
-0.11893841624259949,
0.03502243012189865,
-0.29449838399887085,
0.043370332568883896,
0.6203613877296448,
0.028688084334135056,
0.07493001222610474,
0.24497771263122559,
-0.02792852371931076,
-0.010685814544558525,
0.0029465965926647186,
0.11934731900691986,
0.3418050706386566,
0.10028350353240967,
0.006234731525182724,
0.12273506820201874,
0.22482717037200928,
-0.08212786167860031,
0.2882920503616333,
0.15306544303894043,
0.34404024481773376,
0.29733213782310486,
0.18988081812858582,
0.18004292249679565,
-0.140583798289299,
-0.39450037479400635,
-0.21517300605773926,
0.07262567430734634,
-0.32056060433387756,
0.3570811152458191,
-0.18105244636535645,
-0.007560722529888153,
-0.4912693500518799,
-0.4257620573043823,
-0.28522977232933044,
-0.32210955023765564,
-0.18691608309745789,
-0.11771979928016663,
-0.4756629168987274,
-0.166697695851326,
-0.16257673501968384,
0.06794780492782593,
0.1090967059135437,
-0.062014415860176086,
0.08074526488780975,
0.007107341196388006,
-0.12853071093559265,
-0.12260834872722626,
-0.0314299575984478,
-0.21984927356243134,
0.028181390836834908,
0.09626313298940659,
0.09539124369621277,
-0.07991770654916763,
0.12639009952545166,
0.14857223629951477,
0.02251199260354042,
-0.09865663200616837,
0.17728134989738464,
0.1919337660074234,
0.03792604058980942,
-0.507013201713562,
0.04411438852548599,
0.13461196422576904,
0.004804665222764015,
0.17157642543315887,
-0.0695158913731575,
-0.16232632100582123,
-0.09681183099746704,
-0.05303645879030228,
-0.023267967626452446,
-0.3681440055370331,
0.42807215452194214,
-0.10500262677669525,
0.07836487889289856,
-0.09275883436203003,
0.12514522671699524,
-0.052053943276405334,
-0.05367647111415863,
-0.2879793643951416,
0.21346032619476318,
-0.4409472644329071,
0.007612891495227814,
-0.2837555408477783,
-0.25924864411354065,
0.11729711294174194,
0.15138360857963562,
-0.029277700930833817,
0.05010422319173813,
-0.39405131340026855,
0.5075178742408752,
-0.10015704482793808,
0.3795502185821533,
-0.12314452230930328,
0.19707240164279938,
0.12103040516376495,
-0.06950372457504272,
-0.016998864710330963,
-0.04078056663274765,
0.11084422469139099,
0.11252304911613464,
0.0556512214243412,
0.4821353554725647,
-0.0872536301612854,
0.7164244055747986,
-0.23811860382556915,
-0.1243976354598999,
0.8051140308380127,
0.16235460340976715,
0.2087133824825287,
0.09969453513622284,
0.17027325928211212,
-0.1429881751537323,
-0.027412865310907364,
0.03071717731654644,
-0.1232379674911499,
-0.1478361189365387,
0.17173603177070618,
0.034560561180114746,
-0.1530415117740631,
0.03786174952983856,
-0.010811017826199532,
-0.38519051671028137,
-0.3762858808040619,
0.23838329315185547,
-0.10052251815795898,
0.32723069190979004,
-0.3106664717197418,
0.01806524395942688,
-0.026073385030031204,
0.08669804036617279,
-0.24858853220939636,
-0.03918583691120148,
0.22624501585960388,
0.12180723994970322,
-0.5017973780632019,
-0.3746841549873352,
-0.49013084173202515,
0.21432265639305115,
0.06045767664909363,
0.6483104228973389,
0.14180855453014374,
0.06546992808580399,
-0.06857137382030487,
-0.07539237290620804,
0.6379685997962952,
-0.018766863271594048,
-0.22477169334888458,
0.24507662653923035,
0.32326871156692505,
-0.2799646854400635,
-0.13157013058662415,
0.15154555439949036,
0.21558043360710144,
0.8975403904914856,
0.059787094593048096,
-0.2848913371562958,
-0.0003903028555214405,
0.22211319208145142,
0.3107576370239258,
-0.10430091619491577,
-0.2652474641799927,
-0.17475493252277374,
-0.1859593689441681,
-0.07460144907236099,
-0.2814925014972687,
0.10140911489725113,
0.41379737854003906,
-0.15763485431671143,
-0.14877533912658691,
0.06871072202920914,
-0.34378179907798767,
-0.041204631328582764,
0.00847824476659298,
0.22329553961753845,
-0.08426541090011597,
0.13859111070632935,
-0.024647541344165802,
0.25639310479164124,
0.4521249234676361,
0.30588066577911377,
0.035671450197696686,
-0.44674211740493774,
-0.0822935700416565,
-0.24422995746135712,
0.37712985277175903,
-0.08253535628318787,
-0.21510982513427734,
0.10141409188508987,
-0.09078270941972733,
0.3834986686706543,
0.12199956178665161,
-0.3035013973712921,
0.3149876892566681,
0.05135241895914078,
-0.8291922211647034,
0.022353624925017357,
0.328147828578949,
0.05470332130789757,
0.2725343704223633,
0.18033082783222198,
-0.28883349895477295,
-0.3916206955909729,
0.17537124454975128,
-0.1807684600353241,
0.5057498812675476,
0.4422094225883484,
0.19948668777942657,
0.0818069726228714,
-0.461852490901947,
0.6346321702003479,
0.11708953976631165,
0.05739203467965126,
-0.24336330592632294,
0.45917582511901855,
0.13322190940380096,
-0.1751398742198944,
0.10180597752332687,
0.006922837346792221,
-0.10190154612064362,
0.027727458626031876,
-0.5292727947235107,
-0.2904354929924011,
-0.23429027199745178,
-0.019792160019278526,
0.16610372066497803,
-0.21770085394382477,
-0.5199828147888184,
-0.01145152933895588,
-0.03642310947179794,
-0.22290250658988953,
-0.06159691885113716,
-0.21488825976848602,
0.08854307234287262,
-0.16903942823410034,
-0.40680545568466187,
0.17536121606826782,
0.042762693017721176,
0.1383463740348816,
0.3813123404979706,
-0.23227229714393616,
0.17843613028526306,
-0.18819619715213776,
0.2385401576757431,
0.12398317456245422,
0.04107647389173508,
-0.055925626307725906,
-0.07377510517835617,
-0.08621339499950409,
0.10324841737747192,
-0.020339077338576317,
0.16118021309375763,
-0.05620984360575676,
-0.1563473641872406,
0.16221937537193298,
0.042542215436697006,
-0.25142645835876465,
-0.06245839595794678,
0.282257080078125,
-0.23848767578601837,
-0.31113189458847046,
-0.12317162752151489,
0.08429043740034103,
0.243348628282547,
-0.12550877034664154,
0.023761581629514694,
0.21974629163742065,
0.01795176975429058,
0.30154088139533997,
-0.39906981587409973,
-0.20240774750709534,
-0.27893009781837463,
0.12374354898929596,
0.028622636571526527,
-0.2644250988960266,
0.25477540493011475,
0.5522828698158264,
-0.17249344289302826,
-0.054852619767189026,
0.46135812997817993,
0.29941701889038086,
-0.437307208776474,
0.5468572974205017,
-0.1161937490105629,
0.25728321075439453,
-0.06473811715841293,
0.43937385082244873,
0.024631379172205925,
-0.003930538892745972,
0.10563188791275024,
-0.4127843379974365,
-0.15964189171791077,
-0.056124866008758545,
0.15598662197589874,
-0.015146028250455856,
0.050272852182388306,
0.45136937499046326,
0.07334859669208527,
-0.22266162931919098,
-0.1254233717918396,
-0.0003820788115262985,
-0.15583378076553345,
0.027469325810670853,
-0.09106245636940002,
-0.05169202387332916,
0.07027014344930649,
-0.07889226078987122,
0.023712797090411186,
0.09433619678020477,
-0.042736101895570755,
-0.09131748974323273,
-0.3859690725803375,
0.1511208862066269,
0.15769916772842407,
-0.23846304416656494,
0.18402057886123657,
-0.028053799644112587,
-0.21688102185726166,
-0.019497282803058624,
0.23997637629508972,
0.008457209914922714,
-0.10936450958251953,
-0.034829046577215195,
0.04175505042076111,
-0.13956886529922485,
-0.0450165718793869,
0.09158676862716675,
0.24780622124671936,
0.6310988068580627,
-0.003961923997849226,
0.46173250675201416,
-0.08375229686498642,
-0.08179876953363419,
-0.44471976161003113,
0.03652997314929962,
-0.184437558054924,
0.3684314787387848,
0.12581689655780792,
-0.7131573557853699,
-0.03339241445064545,
0.31533098220825195,
0.17132361233234406,
0.3518638014793396,
-0.25617513060569763,
0.09288222342729568,
0.060929473489522934,
0.1493953913450241,
0.04891323298215866,
-0.183842271566391,
-0.014872360974550247,
0.1542603224515915,
-0.20738056302070618,
0.027051441371440887,
-0.1055365651845932,
-0.3753697872161865,
-0.21849657595157623,
-0.0562070831656456,
0.3148267865180969,
0.19694072008132935,
0.3010074198246002,
0.33796146512031555,
0.11700773239135742,
0.17157042026519775,
-0.09538687020540237,
0.23530352115631104,
0.1874188482761383,
0.08522578328847885,
0.21916013956069946,
-0.053083598613739014,
0.5097370147705078,
-0.1636623591184616,
-0.13277485966682434,
-0.5077129602432251,
-0.0629226416349411,
-0.02432313561439514,
-0.11083699762821198,
0.29696616530418396,
0.17315348982810974,
0.1295631229877472,
-0.23282745480537415,
-0.05467955395579338,
-0.13174372911453247,
0.13548244535923004,
-0.11460202187299728,
0.02711740881204605,
-0.19798065721988678,
0.030039452016353607,
0.21398335695266724,
0.1403457075357437,
0.025070907548069954,
0.22181344032287598,
-0.16148510575294495,
0.2567000091075897,
-0.01482633501291275,
-0.46431398391723633,
0.14462894201278687,
-0.09628168493509293,
0.20306816697120667,
-0.3048175573348999,
0.06988086551427841,
0.17472347617149353,
-0.0594310462474823,
-0.11744195222854614,
0.12701000273227692,
0.6228163838386536,
0.3317958116531372,
0.22543901205062866,
-0.1523677557706833,
-0.18559923768043518,
0.11939159035682678,
0.0882173404097557,
0.13804110884666443,
0.23200032114982605,
0.07387672364711761,
0.18680237233638763,
0.02776252292096615,
-0.059737443923950195,
0.3779553771018982,
0.12569944560527802,
0.10867735743522644,
0.06752996146678925,
0.21369107067584991,
-0.15392257273197174,
-0.17201988399028778,
-0.4478197693824768,
-0.14316505193710327,
-0.26031896471977234,
-0.03903231769800186,
0.4155716598033905,
-0.0776905044913292,
-0.10891876369714737,
-0.11100538820028305,
0.021132372319698334,
-0.23128080368041992,
0.4254666268825531,
0.31639382243156433,
0.35856765508651733,
-0.0846124216914177,
-0.15979254245758057,
0.12364894151687622,
-0.033279336988925934,
-0.33230605721473694,
0.38972610235214233,
0.3716341555118561,
0.2889096438884735,
-0.2752668559551239,
0.041681528091430664,
0.24353164434432983,
0.635833203792572,
-0.5123931765556335,
-0.011497698724269867,
-0.4014296531677246,
0.04143001139163971,
0.4235149621963501,
0.052173249423503876,
-0.13592825829982758,
-0.17397087812423706,
0.46524325013160706,
-0.17832840979099274,
-0.07558359205722809,
-0.192099928855896,
0.10290943086147308,
-0.030434662476181984,
0.011667504906654358,
0.06972450762987137,
0.4269155263900757,
0.0840979814529419,
-0.022989444434642792,
-0.2912999987602234,
-0.3464735746383667,
-0.19187243282794952,
0.04324522987008095,
0.2732582986354828,
0.24712683260440826,
0.5369346141815186,
-0.14441289007663727,
-0.0654275119304657,
-0.25706103444099426,
0.203914076089859,
-0.034553684294223785,
-0.3771498501300812,
-0.09034392982721329,
0.04677087813615799,
-0.09816338121891022,
0.05405132472515106,
0.2709200382232666,
0.23687440156936646,
-0.069915771484375,
0.21320700645446777,
-0.0019538849592208862,
-0.22780872881412506,
0.09395698457956314,
-0.47001412510871887,
-0.3610374927520752,
-0.047168973833322525,
0.28955966234207153,
0.19705194234848022,
-0.08777479827404022,
-0.14675843715667725,
0.16326481103897095,
0.37989139556884766,
-0.17678621411323547,
-0.38568711280822754,
0.21378648281097412,
-0.1509813666343689,
-0.07103730738162994,
0.20524689555168152,
0.35726314783096313,
0.26546087861061096,
-0.453249990940094,
0.257243812084198,
-0.09538312256336212
] |
https://github.com/huggingface/datasets/issues/2615 | Jsonlines export error | @TevenLeScao we are using `pandas` to serialize the dataset to JSON Lines. So it must be due to pandas. Could you please check the pandas version causing the issue? | ## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1 | 29 | Jsonlines export error
## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1
@TevenLeScao we are using `pandas` to serialize the dataset to JSON Lines. So it must be due to pandas. Could you please check the pandas version causing the issue? | [
-0.3529360890388489,
0.13444527983665466,
-0.013971163891255856,
0.26991111040115356,
0.09136602282524109,
0.0805772915482521,
0.275899201631546,
0.42092058062553406,
-0.001224558800458908,
-0.05468721687793732,
0.3439743220806122,
0.0168314091861248,
0.10500950366258621,
0.16637848317623138,
-0.21232706308364868,
-0.21984532475471497,
0.23667219281196594,
0.0008690208196640015,
-0.004699535667896271,
0.2111838012933731,
-0.29907524585723877,
0.2603415548801422,
-0.1727565973997116,
-0.15274332463741302,
-0.43175822496414185,
-0.3298734128475189,
0.09384212642908096,
-0.04413420706987381,
0.005859333090484142,
-0.4725074768066406,
-0.04233360290527344,
-0.2630418837070465,
0.4676562547683716,
0.5261774659156799,
-0.00011956584785366431,
-0.19447633624076843,
0.322065532207489,
0.01358933188021183,
-0.18676352500915527,
0.05446154624223709,
-0.47587960958480835,
-0.3755780756473541,
0.026410287246108055,
-0.3169333040714264,
0.4677455425262451,
-0.13668300211429596,
-0.31923073530197144,
-0.3943061828613281,
0.6600260138511658,
0.37504997849464417,
0.14587323367595673,
-0.011616507545113564,
0.12283726036548615,
0.0027564475312829018,
-0.18551698327064514,
0.1420012265443802,
0.012075638398528099,
0.14037488400936127,
-0.1949194073677063,
0.25602224469184875,
0.24393737316131592,
-0.04059331864118576,
-0.12992773950099945,
-0.2738686800003052,
-0.16510418057441711,
-0.10337228327989578,
0.010668452829122543,
-0.2650201916694641,
0.22221165895462036,
0.38896459341049194,
0.23349258303642273,
-0.1778814196586609,
-0.2301110029220581,
-0.34139201045036316,
0.08765574544668198,
-0.5814917087554932,
0.05224207416176796,
0.49748626351356506,
0.0348249152302742,
0.10731488466262817,
-0.1599738895893097,
-0.0986202135682106,
-0.2680467367172241,
-0.05711524188518524,
-0.012814261019229889,
-0.23517805337905884,
-0.13531583547592163,
0.002288948744535446,
-0.2164379507303238,
-0.16583365201950073,
-0.04938388243317604,
-0.28108930587768555,
-0.48074331879615784,
-0.0021585971117019653,
-0.20092134177684784,
0.06759409606456757,
0.12323759496212006,
-0.5326524972915649,
0.06099787354469299,
-0.05705203860998154,
0.3082895278930664,
-0.331807941198349,
0.18427884578704834,
0.04805808141827583,
0.5355821251869202,
0.20272158086299896,
0.27031591534614563,
-0.053625620901584625,
0.2857009172439575,
0.006485208868980408,
0.09284475445747375,
-0.07490316033363342,
-0.008574157953262329,
-0.21886733174324036,
0.0825398713350296,
0.014951858669519424,
0.03338189050555229,
-0.08841004222631454,
-0.04579327255487442,
0.2381829172372818,
-0.39757823944091797,
-0.15027037262916565,
-0.2566148340702057,
-0.15650615096092224,
-0.10368463397026062,
0.30454930663108826,
0.1440952718257904,
0.24826186895370483,
-0.09997983276844025,
0.04324552044272423,
-0.040506310760974884,
-0.09615424275398254,
-0.05104392394423485,
-0.041715107858181,
-0.05988804250955582,
-0.19353093206882477,
-0.022359289228916168,
0.22952774167060852,
-0.13990922272205353,
-0.2545554041862488,
-0.11934802681207657,
-0.09584595263004303,
-0.1304161250591278,
0.19195200502872467,
0.2618643343448639,
0.14008662104606628,
-0.1878334879875183,
-0.16362428665161133,
-0.011246941983699799,
0.18538877367973328,
-0.4196411371231079,
-0.006601110100746155,
-0.42531654238700867,
0.1383523792028427,
-0.1044839471578598,
0.13674721121788025,
-0.4679196774959564,
-0.031234104186296463,
0.10295344144105911,
0.16811595857143402,
0.40239107608795166,
-0.2843468189239502,
0.5852193832397461,
-0.27372488379478455,
-0.013412230648100376,
0.27959543466567993,
-0.7273980379104614,
0.07802936434745789,
0.1663559228181839,
-0.006693195551633835,
0.47355613112449646,
0.4228544533252716,
-0.00879731122404337,
0.3183477222919464,
-0.08388171344995499,
0.24509631097316742,
0.09562741965055466,
0.19646884500980377,
0.07900334149599075,
0.5843228697776794,
-0.05012758448719978,
0.005099913105368614,
0.08080412447452545,
-0.3214188814163208,
0.598857045173645,
0.11403578519821167,
0.46223360300064087,
0.39239341020584106,
0.061467863619327545,
0.21833688020706177,
-0.18167711794376373,
-0.23739787936210632,
0.026462972164154053,
-0.23568038642406464,
-0.2884983420372009,
0.005860470235347748,
0.14680860936641693,
-0.19645678997039795,
0.3013792932033539,
-0.24606138467788696,
0.10709396749734879,
0.42183196544647217,
0.1388188898563385,
0.17138326168060303,
0.04041578620672226,
0.2613673508167267,
-0.3996380567550659,
-0.2026003897190094,
-0.1755857914686203,
-0.1705571711063385,
-0.1746133714914322,
-0.0611293688416481,
0.19949153065681458,
0.2102850377559662,
0.03375036269426346,
0.18468976020812988,
0.04340033233165741,
-0.1528937816619873,
-0.10800722241401672,
0.2392735332250595,
-0.020254410803318024,
0.2720686197280884,
0.12153653800487518,
0.07032102346420288,
-0.28772053122520447,
0.2894150912761688,
0.1951189637184143,
-0.20477236807346344,
0.28905007243156433,
0.10895072668790817,
0.18024706840515137,
-0.32986846566200256,
-0.12435624748468399,
0.2506774067878723,
-0.02377425506711006,
-0.029840096831321716,
-0.11056352406740189,
0.09192119538784027,
0.15119493007659912,
0.18651147186756134,
-0.18519675731658936,
0.28002822399139404,
-0.021160945296287537,
0.0737263485789299,
-0.11322186142206192,
0.5642178058624268,
-0.24571271240711212,
0.2829086482524872,
-0.06255731731653214,
-0.012816879898309708,
0.30056971311569214,
-0.06253167986869812,
-0.08799757063388824,
-0.17144645750522614,
0.2660800814628601,
0.16319438815116882,
-0.11388416588306427,
0.05622319132089615,
-0.44015783071517944,
-0.05164846032857895,
0.5020246505737305,
-0.039051368832588196,
0.12360825389623642,
0.21827039122581482,
0.023058462888002396,
-0.032823771238327026,
0.08202303200960159,
0.09209686517715454,
0.27145645022392273,
0.12381811439990997,
-0.0892971009016037,
0.043221067637205124,
0.15454594790935516,
-0.07743929326534271,
0.28068679571151733,
0.17417237162590027,
0.26881590485572815,
0.2540608048439026,
0.15056559443473816,
0.17752130329608917,
-0.14117398858070374,
-0.3314296007156372,
-0.18644985556602478,
0.11156852543354034,
-0.3104499876499176,
0.3321203589439392,
-0.2076403647661209,
-0.0999998077750206,
-0.4491664469242096,
-0.39820897579193115,
-0.23862367868423462,
-0.23002701997756958,
-0.23674695193767548,
-0.11908303201198578,
-0.43339380621910095,
-0.07528802007436752,
-0.14493952691555023,
0.09910345822572708,
0.1697896271944046,
-0.004573028534650803,
0.029529333114624023,
0.00619380222633481,
-0.08695710450410843,
-0.07575218379497528,
0.02531655877828598,
-0.1559319794178009,
0.01530332863330841,
0.11565106362104416,
0.17039857804775238,
-0.06139179319143295,
0.16796579957008362,
0.06882743537425995,
-0.023608841001987457,
-0.10930885374546051,
0.14025229215621948,
0.2671135663986206,
-0.05519605427980423,
-0.5096023082733154,
-0.01152662094682455,
0.16024832427501678,
0.02814364619553089,
0.13682392239570618,
-0.10921017080545425,
-0.21881723403930664,
-0.0702953040599823,
-0.03415704518556595,
-0.0018331576138734818,
-0.3069935441017151,
0.4799238443374634,
-0.08552590012550354,
0.07245571911334991,
-0.05270463973283768,
0.1263262778520584,
-0.07592815160751343,
0.04029375687241554,
-0.2723294198513031,
0.17494773864746094,
-0.40666455030441284,
0.03787274658679962,
-0.25771021842956543,
-0.2774892747402191,
0.1150117963552475,
0.14480295777320862,
-0.047312553972005844,
-0.06690157949924469,
-0.3617931008338928,
0.5396340489387512,
-0.130722776055336,
0.3153799772262573,
-0.1509944200515747,
0.14081618189811707,
0.10639117658138275,
-0.0515446774661541,
-0.04819224402308464,
-0.009552158415317535,
0.12017790973186493,
0.18759272992610931,
0.04481866955757141,
0.44332045316696167,
-0.04138069599866867,
0.7773234248161316,
-0.192697674036026,
-0.24449919164180756,
0.7898449301719666,
0.1316351741552353,
0.2115894854068756,
0.11514556407928467,
0.13901758193969727,
-0.1353592872619629,
-0.02793055772781372,
0.04556497931480408,
-0.14688199758529663,
-0.07662034034729004,
0.18344855308532715,
-0.014941200613975525,
-0.1180606558918953,
0.06473453342914581,
-0.04257822781801224,
-0.39845648407936096,
-0.3288903534412384,
0.17668916285037994,
-0.09409226477146149,
0.30576273798942566,
-0.29748207330703735,
-0.021245736628770828,
-0.06645596772432327,
0.08713071793317795,
-0.1968192160129547,
0.004139237105846405,
0.22742155194282532,
0.10770577937364578,
-0.48072686791419983,
-0.43076375126838684,
-0.5369924306869507,
0.2102300524711609,
0.04101879522204399,
0.7110481858253479,
0.1348099708557129,
0.1258123815059662,
-0.04932713508605957,
-0.06794478744268417,
0.7193488478660583,
0.03771519288420677,
-0.25523608922958374,
0.1822211593389511,
0.3052651286125183,
-0.22057019174098969,
-0.075283944606781,
0.16747242212295532,
0.2276560217142105,
0.7511644959449768,
0.025430206209421158,
-0.2779776155948639,
-0.017720026895403862,
0.25708073377609253,
0.2692543864250183,
-0.13744017481803894,
-0.2642756700515747,
-0.17530815303325653,
-0.14556464552879333,
-0.09270167350769043,
-0.20501890778541565,
0.07761157304048538,
0.4493767321109772,
-0.15859849750995636,
-0.1447979211807251,
0.01664206199347973,
-0.41100984811782837,
0.023444324731826782,
0.03326622024178505,
0.22651666402816772,
-0.03399335965514183,
0.12269796431064606,
-0.09172306954860687,
0.3180515766143799,
0.5115265846252441,
0.19149275124073029,
0.03663206472992897,
-0.3783223330974579,
-0.05974755436182022,
-0.3364686667919159,
0.37302085757255554,
-0.09453918039798737,
-0.2697617709636688,
0.08902448415756226,
-0.12257164716720581,
0.34544944763183594,
0.09784597903490067,
-0.3196592628955841,
0.34487298130989075,
0.1271498203277588,
-0.869308352470398,
0.040329232811927795,
0.3497123122215271,
0.07549171149730682,
0.25599581003189087,
0.16324687004089355,
-0.29136431217193604,
-0.40012863278388977,
0.19540102779865265,
-0.22158995270729065,
0.534974992275238,
0.4000053405761719,
0.1256384402513504,
0.07806020975112915,
-0.43801218271255493,
0.6267949342727661,
0.10976046323776245,
0.062051769345998764,
-0.20522460341453552,
0.3821624517440796,
0.08683472126722336,
-0.1458934098482132,
0.1996166706085205,
0.010887876152992249,
-0.09757289290428162,
0.0620533712208271,
-0.5207387804985046,
-0.27213072776794434,
-0.2103891670703888,
0.06331939250230789,
0.20399005711078644,
-0.21075525879859924,
-0.5702713131904602,
-0.002174103632569313,
-0.060788124799728394,
-0.253345787525177,
-0.06705579161643982,
-0.2045769989490509,
0.05903404578566551,
-0.12512801587581635,
-0.364945650100708,
0.09070543944835663,
0.13180221617221832,
0.20618298649787903,
0.33682534098625183,
-0.19523240625858307,
0.1447543054819107,
-0.1788712590932846,
0.29558128118515015,
0.10777048766613007,
0.0045018550008535385,
-0.06743842363357544,
-0.11308962851762772,
-0.10784009099006653,
0.057167794555425644,
0.03888542950153351,
0.18763968348503113,
-0.01555812917649746,
-0.12591877579689026,
0.19381490349769592,
0.07043720781803131,
-0.19352950155735016,
-0.09629390388727188,
0.20299002528190613,
-0.2946876883506775,
-0.3295079171657562,
-0.16238799691200256,
0.03291630372405052,
0.23245567083358765,
-0.137209951877594,
0.03906719386577606,
0.19242680072784424,
0.028040776029229164,
0.32966336607933044,
-0.3757053017616272,
-0.16141682863235474,
-0.3390890657901764,
0.1104762926697731,
0.022262495011091232,
-0.1946791708469391,
0.2751014828681946,
0.5374062061309814,
-0.24167339503765106,
-0.04294547066092491,
0.4625179171562195,
0.32020020484924316,
-0.46037983894348145,
0.5341432094573975,
-0.07708099484443665,
0.244952991604805,
-0.12033584713935852,
0.4825561046600342,
0.07726500928401947,
0.0012953132390975952,
0.12111809849739075,
-0.3984121084213257,
-0.22245702147483826,
0.0035766735672950745,
0.18035264313220978,
0.0048176683485507965,
0.07670661062002182,
0.5469902157783508,
0.09695075452327728,
-0.2241247296333313,
-0.1405324637889862,
-0.013053685426712036,
-0.23375403881072998,
0.03334575518965721,
-0.09655312448740005,
-0.03221359848976135,
0.03569883480668068,
-0.07310107350349426,
0.036653436720371246,
0.11454221606254578,
0.016436003148555756,
-0.12364886701107025,
-0.37279456853866577,
0.127193421125412,
0.155714213848114,
-0.2110016793012619,
0.14340630173683167,
-0.0033736620098352432,
-0.2501889765262604,
0.010250379331409931,
0.17929673194885254,
0.06191263347864151,
-0.09441886842250824,
-0.0458827018737793,
0.11534558236598969,
-0.16106370091438293,
-0.06818787753582001,
0.10865797102451324,
0.2025465965270996,
0.5488928556442261,
0.011907463893294334,
0.4053370952606201,
-0.07165771722793579,
-0.0732145681977272,
-0.44713258743286133,
0.027735058218240738,
-0.20394174754619598,
0.30017080903053284,
0.14361801743507385,
-0.727178692817688,
-0.09986750036478043,
0.3671345114707947,
0.1616155356168747,
0.29150715470314026,
-0.24271202087402344,
0.07722146064043045,
0.04694190248847008,
0.16245539486408234,
-0.01573210023343563,
-0.18023326992988586,
-0.008785171434283257,
0.08276336640119553,
-0.19238556921482086,
0.027068816125392914,
-0.0308605395257473,
-0.4143475592136383,
-0.17525304853916168,
-0.04088985174894333,
0.34029531478881836,
0.15338288247585297,
0.29325899481773376,
0.38383248448371887,
0.1860470324754715,
0.16127924621105194,
-0.08301285654306412,
0.3084394931793213,
0.1719074845314026,
0.04135555773973465,
0.23581278324127197,
-0.15187078714370728,
0.5499086380004883,
-0.07974940538406372,
-0.21099060773849487,
-0.4842017590999603,
-0.10135534405708313,
0.03855535387992859,
-0.21277910470962524,
0.28789660334587097,
0.1786767542362213,
0.141225665807724,
-0.20532211661338806,
-0.05851123109459877,
-0.13162440061569214,
0.14698253571987152,
-0.15497514605522156,
-0.019158033654093742,
-0.216570645570755,
0.04539387673139572,
0.21188992261886597,
0.09916698932647705,
0.04389824718236923,
0.22560082376003265,
-0.287690132856369,
0.21127718687057495,
-0.02198297530412674,
-0.4377119541168213,
0.11448391526937485,
-0.11127468198537827,
0.21589794754981995,
-0.2742500901222229,
0.042808130383491516,
0.14317308366298676,
-0.06423068046569824,
-0.08319582045078278,
0.1545315682888031,
0.5885644555091858,
0.2697702646255493,
0.26488205790519714,
-0.12080010026693344,
-0.17063584923744202,
0.10733503103256226,
0.17427638173103333,
0.16860993206501007,
0.2314850091934204,
-0.013646114617586136,
0.1752026230096817,
0.03922828286886215,
-0.0672089233994484,
0.3838607668876648,
0.1897576004266739,
0.11000555753707886,
0.0028358539566397667,
0.1769019365310669,
-0.19848036766052246,
-0.19822919368743896,
-0.4200224280357361,
-0.17106637358665466,
-0.25587698817253113,
-0.004982921294867992,
0.3394443094730377,
-0.15377776324748993,
-0.13194027543067932,
-0.09986070543527603,
0.029187075793743134,
-0.272842675447464,
0.4100103974342346,
0.30904218554496765,
0.34228742122650146,
-0.036254674196243286,
-0.1375628113746643,
0.1079026311635971,
-0.1108531728386879,
-0.2709169387817383,
0.3840444087982178,
0.37149831652641296,
0.2755206525325775,
-0.28142601251602173,
-0.05659514665603638,
0.24657081067562103,
0.6157267689704895,
-0.5056517124176025,
0.012002181261777878,
-0.3906680941581726,
0.1191624104976654,
0.3668145537376404,
0.08031570166349411,
-0.1651151478290558,
-0.12296300381422043,
0.49000510573387146,
-0.1206820085644722,
-0.0789341926574707,
-0.11988779902458191,
0.09806334972381592,
-0.10925284028053284,
0.07670773565769196,
0.015267401933670044,
0.40788155794143677,
0.02504340559244156,
-0.02955077588558197,
-0.20831727981567383,
-0.29417067766189575,
-0.19283263385295868,
0.06147905811667442,
0.3428521752357483,
0.2553369402885437,
0.5357606410980225,
-0.16732022166252136,
-0.03850824013352394,
-0.183064267039299,
0.22348304092884064,
-0.03289033845067024,
-0.3865862786769867,
-0.15387631952762604,
0.06417608261108398,
-0.14416292309761047,
0.012857475318014622,
0.2859579622745514,
0.22450435161590576,
-0.08729523420333862,
0.26170846819877625,
0.05295255780220032,
-0.2685483396053314,
0.061697497963905334,
-0.49949514865875244,
-0.3638347089290619,
-0.047774314880371094,
0.2398650348186493,
0.25025641918182373,
-0.048028670251369476,
-0.04698901250958443,
0.16219452023506165,
0.3588542342185974,
-0.15037482976913452,
-0.35271042585372925,
0.1869356334209442,
-0.19289232790470123,
-0.05971412733197212,
0.178605318069458,
0.29575100541114807,
0.2869982421398163,
-0.40421053767204285,
0.2542160749435425,
-0.1248798668384552
] |
https://github.com/huggingface/datasets/issues/2615 | Jsonlines export error | @TevenLeScao I have just checked it: this was a bug in `pandas` and it was fixed in version 1.2: https://github.com/pandas-dev/pandas/pull/36898 | ## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1 | 20 | Jsonlines export error
## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1
@TevenLeScao I have just checked it: this was a bug in `pandas` and it was fixed in version 1.2: https://github.com/pandas-dev/pandas/pull/36898 | [
-0.34127187728881836,
0.12403041124343872,
-0.005501767620444298,
0.25801753997802734,
0.10834038257598877,
0.07570431381464005,
0.3035872280597687,
0.4069497287273407,
0.026413019746541977,
-0.04118359088897705,
0.2745397686958313,
0.006748131476342678,
0.13871583342552185,
0.1741791069507599,
-0.20554928481578827,
-0.24398627877235413,
0.20179010927677155,
-0.021246738731861115,
0.008457399904727936,
0.2275889366865158,
-0.3102150857448578,
0.22211122512817383,
-0.16968205571174622,
-0.14789311587810516,
-0.4680122435092926,
-0.32303914427757263,
0.06546597182750702,
-0.041501425206661224,
0.04601447284221649,
-0.4286080002784729,
-0.03551768884062767,
-0.25634416937828064,
0.4413876533508301,
0.5364950299263,
-0.00011903703853022307,
-0.21555939316749573,
0.33192741870880127,
0.018269291147589684,
-0.20523902773857117,
0.06863526254892349,
-0.47203999757766724,
-0.39540931582450867,
0.02196468412876129,
-0.3430717885494232,
0.4541320502758026,
-0.17430582642555237,
-0.33281803131103516,
-0.4177093505859375,
0.6475173234939575,
0.3707948625087738,
0.14861097931861877,
-0.03284180909395218,
0.1063491553068161,
-0.03713367506861687,
-0.2036338448524475,
0.08379659056663513,
0.02001114748418331,
0.11599339544773102,
-0.2379017174243927,
0.20983664691448212,
0.2300754189491272,
-0.0716974139213562,
-0.12556593120098114,
-0.23419485986232758,
-0.17675071954727173,
-0.06569620221853256,
-0.0222574844956398,
-0.2992703914642334,
0.19615933299064636,
0.44493404030799866,
0.20297059416770935,
-0.1828811764717102,
-0.26813313364982605,
-0.41250813007354736,
0.11130526661872864,
-0.5898334383964539,
0.05293746292591095,
0.47416868805885315,
0.03470928966999054,
0.08704738318920135,
-0.11217741668224335,
-0.08080552518367767,
-0.2130061388015747,
-0.05697515606880188,
-0.05033884197473526,
-0.23724067211151123,
-0.15188148617744446,
-0.018115267157554626,
-0.20366041362285614,
-0.14652107656002045,
0.00278846500441432,
-0.28158241510391235,
-0.4799133241176605,
0.02456628531217575,
-0.19687999784946442,
0.07400909066200256,
0.15187416970729828,
-0.5287777781486511,
0.052221186459064484,
-0.07783526182174683,
0.3272014856338501,
-0.3820250928401947,
0.12911230325698853,
0.07608538866043091,
0.5744822025299072,
0.21209357678890228,
0.18299417197704315,
-0.07161962240934372,
0.30028408765792847,
0.03136206045746803,
0.09648856520652771,
-0.08939477056264877,
0.06885164231061935,
-0.23532423377037048,
0.06839938461780548,
0.0023819655179977417,
0.03288891911506653,
-0.05248890072107315,
-0.09419097006320953,
0.2288014143705368,
-0.36047273874282837,
-0.1577092409133911,
-0.27643194794654846,
-0.18580275774002075,
-0.12722162902355194,
0.32874226570129395,
0.13087065517902374,
0.24276529252529144,
-0.08450666815042496,
0.04720091447234154,
-0.0698758140206337,
-0.03750408813357353,
-0.005530647933483124,
-0.05350562930107117,
-0.05424893647432327,
-0.17534156143665314,
0.010775882750749588,
0.24157045781612396,
-0.08612866699695587,
-0.2899802327156067,
-0.15351274609565735,
-0.11275427043437958,
-0.15664991736412048,
0.24032069742679596,
0.32144787907600403,
0.14449861645698547,
-0.1472986787557602,
-0.17948633432388306,
-0.015587642788887024,
0.14833644032478333,
-0.4130091369152069,
-0.015012618154287338,
-0.3744750916957855,
0.1352471262216568,
-0.14235562086105347,
0.1480703055858612,
-0.5019353628158569,
-0.03146954998373985,
0.07775336503982544,
0.19644276797771454,
0.4208017885684967,
-0.2530837655067444,
0.6042650938034058,
-0.2848634123802185,
0.014875741675496101,
0.28161191940307617,
-0.731235682964325,
0.10305902361869812,
0.14703057706356049,
0.0361655130982399,
0.48975610733032227,
0.41703397035598755,
-0.024580977857112885,
0.33687689900398254,
-0.11289990693330765,
0.2621535658836365,
0.07115855067968369,
0.2094033658504486,
0.0982472226023674,
0.5672949552536011,
-0.0708642527461052,
0.018282821401953697,
0.029798604547977448,
-0.3001290261745453,
0.5715811252593994,
0.11376305669546127,
0.47565051913261414,
0.4330528974533081,
0.038426294922828674,
0.229385107755661,
-0.16469408571720123,
-0.19791175425052643,
0.03481501340866089,
-0.24833685159683228,
-0.2546769082546234,
0.0026691630482673645,
0.15434595942497253,
-0.1928166151046753,
0.2644362449645996,
-0.24100735783576965,
0.12512123584747314,
0.4268118143081665,
0.13288499414920807,
0.14179813861846924,
0.02186702936887741,
0.24896696209907532,
-0.3805503249168396,
-0.19011646509170532,
-0.1566673219203949,
-0.16653046011924744,
-0.16085238754749298,
-0.07391450554132462,
0.17346513271331787,
0.18610499799251556,
0.038809724152088165,
0.15548641979694366,
0.05026960372924805,
-0.1581522822380066,
-0.1364506036043167,
0.2717757821083069,
-0.05306245759129524,
0.30203068256378174,
0.13651326298713684,
0.057023342698812485,
-0.26733148097991943,
0.2672392725944519,
0.2391948401927948,
-0.17067046463489532,
0.3222697973251343,
0.11060340702533722,
0.1830594837665558,
-0.29606667160987854,
-0.1514950394630432,
0.26382142305374146,
-0.037714410573244095,
0.021618083119392395,
-0.11757989972829819,
0.06696603447198868,
0.16209939122200012,
0.1948705017566681,
-0.22730249166488647,
0.2584483325481415,
-0.012185524217784405,
0.06135933846235275,
-0.14027690887451172,
0.6026517748832703,
-0.2641136050224304,
0.27334123849868774,
-0.03685034066438675,
0.027413954958319664,
0.3373425304889679,
-0.10238169133663177,
-0.10842107236385345,
-0.15803410112857819,
0.23595169186592102,
0.14346276223659515,
-0.12257179617881775,
0.05400620773434639,
-0.4003922641277313,
-0.030364535748958588,
0.5197225213050842,
0.0007627159357070923,
0.11705627292394638,
0.18443039059638977,
0.033921096473932266,
-0.015438062138855457,
0.07595130056142807,
0.12546510994434357,
0.2930738925933838,
0.1264980137348175,
-0.03944733366370201,
0.05256565660238266,
0.11511693894863129,
-0.08624240010976791,
0.2848721146583557,
0.1711805909872055,
0.26938337087631226,
0.24856913089752197,
0.14662298560142517,
0.19778239727020264,
-0.13943400979042053,
-0.33734264969825745,
-0.1755523830652237,
0.12758642435073853,
-0.303041934967041,
0.305509477853775,
-0.19361631572246552,
-0.10430461168289185,
-0.39144033193588257,
-0.40145695209503174,
-0.20602469146251678,
-0.29551780223846436,
-0.24153415858745575,
-0.09551151096820831,
-0.46586698293685913,
-0.08531299978494644,
-0.16178110241889954,
0.09635847061872482,
0.15710116922855377,
-0.00043529272079467773,
0.019278831779956818,
0.0009040019940584898,
-0.043102115392684937,
-0.054947081953287125,
-0.0049515110440552235,
-0.1238730326294899,
0.027098169550299644,
0.1601220667362213,
0.14568838477134705,
-0.09701242297887802,
0.1815306842327118,
0.04111113026738167,
-0.01881999522447586,
-0.0832139179110527,
0.14754542708396912,
0.2630807161331177,
-0.07275073230266571,
-0.5481500029563904,
-0.01829208992421627,
0.1664048284292221,
0.03840138018131256,
0.1412489116191864,
-0.12064671516418457,
-0.18627169728279114,
-0.0932752713561058,
-0.06034756451845169,
0.019440505653619766,
-0.3349897861480713,
0.4810391664505005,
-0.10552811622619629,
0.026901226490736008,
-0.08642245829105377,
0.14760982990264893,
-0.06420278549194336,
0.07812382280826569,
-0.26733219623565674,
0.15394599735736847,
-0.416949599981308,
0.030544769018888474,
-0.2566612660884857,
-0.27216747403144836,
0.12775491178035736,
0.09632088989019394,
0.009676676243543625,
-0.0782587081193924,
-0.371635377407074,
0.5211657881736755,
-0.1465878188610077,
0.31202399730682373,
-0.119696244597435,
0.19106119871139526,
0.07264311611652374,
-0.07631658762693405,
-0.07024123519659042,
0.026829242706298828,
0.15165206789970398,
0.15008440613746643,
0.06341787427663803,
0.4252823293209076,
-0.06817827373743057,
0.7963736057281494,
-0.20709164440631866,
-0.2428019791841507,
0.7851781249046326,
0.17984481155872345,
0.21473698318004608,
0.11149802058935165,
0.17719820141792297,
-0.13248887658119202,
-0.05163015425205231,
0.0562986359000206,
-0.15351209044456482,
-0.08478213101625443,
0.13839033246040344,
-0.03342066705226898,
-0.09914746135473251,
0.03463032841682434,
-0.038311172276735306,
-0.39570489525794983,
-0.3372076451778412,
0.16532228887081146,
-0.12995870411396027,
0.27858537435531616,
-0.2796364426612854,
-0.056924015283584595,
-0.05463369935750961,
0.11190314590930939,
-0.2268252670764923,
-0.025355495512485504,
0.25008055567741394,
0.09088616073131561,
-0.4192572236061096,
-0.4416009485721588,
-0.5331692695617676,
0.16814371943473816,
0.026706844568252563,
0.6945684552192688,
0.15230199694633484,
0.12405001372098923,
-0.06367501616477966,
-0.055427007377147675,
0.6983473896980286,
0.02643168531358242,
-0.29249221086502075,
0.16996093094348907,
0.2758517265319824,
-0.22671371698379517,
-0.06627940386533737,
0.16232110559940338,
0.18739411234855652,
0.7814659476280212,
-0.0040755122900009155,
-0.2857832610607147,
-0.020449277013540268,
0.26294535398483276,
0.27128487825393677,
-0.15387021005153656,
-0.252933144569397,
-0.16030310094356537,
-0.199737548828125,
-0.08141504973173141,
-0.17845973372459412,
0.1562792956829071,
0.45317941904067993,
-0.20902395248413086,
-0.15922358632087708,
-0.007168609648942947,
-0.4004319906234741,
0.039924755692481995,
0.03999226912856102,
0.19509130716323853,
-0.01080465130507946,
0.15040788054466248,
-0.12283416092395782,
0.26946210861206055,
0.4711757004261017,
0.2290256917476654,
0.009292779490351677,
-0.3669428825378418,
-0.07097742706537247,
-0.3196599781513214,
0.3802239000797272,
-0.09306596219539642,
-0.28097864985466003,
0.08544965088367462,
-0.15418857336044312,
0.3633086681365967,
0.12155909836292267,
-0.28747570514678955,
0.3155450224876404,
0.15527485311031342,
-0.8324909806251526,
0.026684263721108437,
0.36578890681266785,
0.11177824437618256,
0.25711411237716675,
0.19805486500263214,
-0.26891273260116577,
-0.3762989938259125,
0.17021019756793976,
-0.24468514323234558,
0.4795736074447632,
0.3824552893638611,
0.15801915526390076,
0.11303459852933884,
-0.40802544355392456,
0.6761994361877441,
0.0891290009021759,
0.04561445116996765,
-0.18873751163482666,
0.34552380442619324,
0.09429250657558441,
-0.15247026085853577,
0.1718709021806717,
0.005231723189353943,
-0.08847630023956299,
0.07359793782234192,
-0.511387825012207,
-0.24493750929832458,
-0.19313944876194,
0.04758860170841217,
0.20214633643627167,
-0.2321406453847885,
-0.6011216044425964,
-0.0003100298345088959,
-0.031810104846954346,
-0.2616799771785736,
-0.045188434422016144,
-0.18009132146835327,
0.05360614135861397,
-0.09577368199825287,
-0.36106932163238525,
0.08353356271982193,
0.1478341519832611,
0.1861361563205719,
0.32071512937545776,
-0.16696575284004211,
0.1520548164844513,
-0.15139907598495483,
0.3327770233154297,
0.11784297227859497,
0.007848396897315979,
-0.07549120485782623,
-0.09934967011213303,
-0.08848197013139725,
0.0514727421104908,
0.05067233368754387,
0.2107183039188385,
0.00618889182806015,
-0.09544719755649567,
0.2538425922393799,
0.07022079080343246,
-0.1800713688135147,
-0.07872655987739563,
0.2651980221271515,
-0.3444182276725769,
-0.3410686254501343,
-0.15774565935134888,
0.023549672216176987,
0.23345044255256653,
-0.1699758619070053,
0.05164681002497673,
0.20958946645259857,
0.014996388927102089,
0.34835249185562134,
-0.3776901364326477,
-0.17215126752853394,
-0.3480565547943115,
0.10024993866682053,
0.04550538212060928,
-0.18811602890491486,
0.24463051557540894,
0.48354625701904297,
-0.24977979063987732,
-0.027427874505519867,
0.4238181412220001,
0.3446507453918457,
-0.42655298113822937,
0.5984866619110107,
-0.10052032023668289,
0.22189481556415558,
-0.141547292470932,
0.41891103982925415,
0.06582699716091156,
0.026470113545656204,
0.11265191435813904,
-0.3906411826610565,
-0.24384285509586334,
-0.0110301673412323,
0.19854359328746796,
0.03168871998786926,
0.08003793656826019,
0.5649983882904053,
0.08254372328519821,
-0.19616490602493286,
-0.14319634437561035,
-0.004008027259260416,
-0.263264924287796,
0.020000874996185303,
-0.09764963388442993,
0.00541224330663681,
0.030438093468546867,
-0.05904604122042656,
0.04677387326955795,
0.13682980835437775,
0.030649418011307716,
-0.13081574440002441,
-0.4030768573284149,
0.11219657957553864,
0.18126174807548523,
-0.21315009891986847,
0.15760894119739532,
-0.025361662730574608,
-0.26244404911994934,
-0.01208268292248249,
0.17904652655124664,
0.09029335528612137,
-0.10168983042240143,
-0.046446580439805984,
0.15315522253513336,
-0.15982353687286377,
-0.05627439171075821,
0.11641137301921844,
0.21096493303775787,
0.5365228056907654,
0.030634045600891113,
0.3913283050060272,
-0.08806551992893219,
-0.0555303618311882,
-0.4043058156967163,
-0.01795407384634018,
-0.2343652993440628,
0.28404700756073,
0.15192550420761108,
-0.6966726183891296,
-0.1060284674167633,
0.3511359691619873,
0.17171916365623474,
0.2847224473953247,
-0.2599784731864929,
0.11797557771205902,
0.06566062569618225,
0.1584095060825348,
-0.05722561478614807,
-0.15186922252178192,
-0.0016456805169582367,
0.11289473623037338,
-0.13792400062084198,
0.040174998342990875,
-0.005803778767585754,
-0.4350818395614624,
-0.1529608964920044,
-0.05427517369389534,
0.33135223388671875,
0.13988542556762695,
0.27545133233070374,
0.3992127776145935,
0.17215865850448608,
0.17697450518608093,
-0.05640273541212082,
0.2889544367790222,
0.17739561200141907,
0.0684141218662262,
0.20140564441680908,
-0.1621275246143341,
0.4717501103878021,
-0.09537474811077118,
-0.20968258380889893,
-0.4819870889186859,
-0.07465901970863342,
0.007944360375404358,
-0.2684749662876129,
0.26579195261001587,
0.1635713130235672,
0.11677634716033936,
-0.22710232436656952,
-0.010115150362253189,
-0.07705720514059067,
0.17644350230693817,
-0.17316314578056335,
0.003913321532309055,
-0.1582724153995514,
0.018120214343070984,
0.23107579350471497,
0.10336202383041382,
0.09146038442850113,
0.19709479808807373,
-0.25585150718688965,
0.1926349699497223,
-0.01599087566137314,
-0.3948797583580017,
0.13563375174999237,
-0.11074558645486832,
0.22688716650009155,
-0.2725757360458374,
-0.0000760834664106369,
0.16755080223083496,
-0.09849490225315094,
-0.12516915798187256,
0.1620354950428009,
0.5886414647102356,
0.2581675052642822,
0.28168612718582153,
-0.1151438057422638,
-0.13930736482143402,
0.0920645147562027,
0.1447826772928238,
0.1526227444410324,
0.2300884872674942,
-0.012619897723197937,
0.1981309950351715,
0.05737470090389252,
-0.0856674462556839,
0.3561893701553345,
0.1813797801733017,
0.12666469812393188,
-0.03047465719282627,
0.21053746342658997,
-0.17604172229766846,
-0.19699978828430176,
-0.4345933198928833,
-0.15644729137420654,
-0.20984208583831787,
-0.03911203518509865,
0.32377496361732483,
-0.18789233267307281,
-0.11117828637361526,
-0.1099400445818901,
0.03620649129152298,
-0.27355748414993286,
0.3935524523258209,
0.3105427622795105,
0.3471534252166748,
-0.05775591731071472,
-0.1337612271308899,
0.05047374218702316,
-0.09896840900182724,
-0.31387218832969666,
0.3750605285167694,
0.3629870116710663,
0.2740958034992218,
-0.31010568141937256,
-0.06367086619138718,
0.24083231389522552,
0.6288331151008606,
-0.47640353441238403,
-0.01522846519947052,
-0.3945145308971405,
0.017096687108278275,
0.2993401885032654,
0.07333025336265564,
-0.16313375532627106,
-0.11501826345920563,
0.47841477394104004,
-0.09131765365600586,
-0.0644214004278183,
-0.10116058588027954,
0.12137852609157562,
-0.0869341641664505,
0.11778087168931961,
-0.023704588413238525,
0.42740073800086975,
0.004519931972026825,
-0.04165089130401611,
-0.19965729117393494,
-0.3047766387462616,
-0.16739743947982788,
0.04482385143637657,
0.29766038060188293,
0.26405811309814453,
0.5109522342681885,
-0.14673765003681183,
-0.11968030035495758,
-0.20360992848873138,
0.23331612348556519,
0.0009665265679359436,
-0.3993256390094757,
-0.15931406617164612,
0.06733772158622742,
-0.12506058812141418,
0.05300278216600418,
0.2979462444782257,
0.26033374667167664,
-0.10928821563720703,
0.27850455045700073,
0.0814725011587143,
-0.28466519713401794,
0.09906468540430069,
-0.47344332933425903,
-0.3631594181060791,
-0.07001455128192902,
0.23074540495872498,
0.2449285387992859,
-0.03573329746723175,
-0.0005883201956748962,
0.15984803438186646,
0.33970561623573303,
-0.15277010202407837,
-0.37353530526161194,
0.1693945825099945,
-0.2099454700946808,
-0.03703099116683006,
0.1827777922153473,
0.24769814312458038,
0.3111516535282135,
-0.36870211362838745,
0.2597653865814209,
-0.11534997075796127
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.