id stringlengths 18 24 | number int64 2 8.48k | title stringlengths 1 290 | body stringlengths 0 228k | state stringclasses 2
values | createdAt timestamp[s]date 2020-04-14 18:18:51 2026-08-13 03:02:44 | updatedAt timestamp[s]date 2020-04-29 09:23:05 2026-08-15 04:47:12 | closedAt timestamp[s]date 2020-04-29 09:23:05 2026-07-28 10:29:56 ⌀ | url stringlengths 48 51 | author dict | labels dict | comments listlengths 0 30 |
|---|---|---|---|---|---|---|---|---|---|---|---|
I_kwDODunzps4-Dr5f | 3,190 | combination of shuffle and filter results in a bug | ## Describe the bug
Hi,
I would like to shuffle a dataset, then filter it based on each existing label. however, the combination of `filter`, `shuffle` seems to results in a bug. In the minimal example below, as you see in the filtered results, the filtered labels are not unique, meaning filter has not worked. Any su... | CLOSED | 2021-11-01T13:07:29 | 2021-11-02T10:50:49 | 2021-11-02T10:50:49 | https://github.com/huggingface/datasets/issues/3190 | {
"login": "rabeehk"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"I cannot reproduce this on master and pyarrow==4.0.1.\r\n",
"Hi ! There was a regression in `datasets` 1.12 that introduced this bug. It has been fixed in #3019 in 1.13\r\n\r\nCan you try to update `datasets` and try again ?",
"Thanks a lot, fixes with 1.13"
] |
I_kwDODunzps4-DRX6 | 3,189 | conll2003 incorrect label explanation | In the [conll2003](https://huggingface.co/datasets/conll2003#data-fields) README, the labels are described as follows
> - `id`: a `string` feature.
> - `tokens`: a `list` of `string` features.
> - `pos_tags`: a `list` of classification labels, with possible values including `"` (0), `''` (1), `#` (2), `$` (3), `(`... | CLOSED | 2021-11-01T11:03:30 | 2021-11-09T10:40:58 | 2021-11-09T10:40:58 | https://github.com/huggingface/datasets/issues/3189 | {
"login": "BramVanroy"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @BramVanroy,\r\n\r\nsince these fields are of type `ClassLabel` (you can check this with `dset.features`), you can inspect the possible values with:\r\n```python\r\ndset.features[field_name].feature.names # .feature because it's a sequence of labels\r\n```\r\n\r\nand to find the mapping between names and integ... |
I_kwDODunzps4-DBro | 3,188 | conll2002 issues | **Link:** https://huggingface.co/datasets/conll2002
The dataset viewer throws a server error when trying to preview the dataset.
```
Message: Extraction protocol 'train' for file at 'https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/esp.train' is not implemented yet
```
I... | CLOSED | 2021-11-01T09:49:24 | 2021-11-15T13:50:59 | 2021-11-12T17:18:11 | https://github.com/huggingface/datasets/issues/3188 | {
"login": "BramVanroy"
} | {
"nodes": [
{
"name": "dataset-viewer"
}
]
} | [
"Hi ! Thanks for reporting :)\r\n\r\nThis is related to https://github.com/huggingface/datasets/issues/2742, I'm working on it. It should fix the viewer for around 80 datasets.\r\n",
"Ah, hadn't seen that sorry.\r\n\r\nThe scrambled \"point of contact\" is a separate issue though, I think.",
"@lhoestq The \"poi... |
I_kwDODunzps4-Asb1 | 3,186 | Dataset viewer for nli_tr | ## Dataset viewer issue for '*nli_tr*'
**Link:** https://huggingface.co/datasets/nli_tr
Hello,
Thank you for the new dataset preview feature that will help the users to view the datasets online.
We just noticed that the dataset viewer widget in the `nli_tr` dataset shows the error below. The error must be d... | CLOSED | 2021-10-31T03:56:33 | 2022-09-12T09:15:34 | 2022-09-12T08:43:09 | https://github.com/huggingface/datasets/issues/3186 | {
"login": "e-budur"
} | {
"nodes": [
{
"name": "streaming"
}
]
} | [
"It's an issue with the streaming mode:\r\n\r\n```python\r\n>>> import datasets\r\n>>> dataset = datasets.load_dataset('nli_tr', name='snli_tr',split='test', streaming=True)\r\n>>> next(iter(dataset))\r\nTraceback (most recent call last):\r\n File \"<stdin>\", line 1, in <module>\r\n File \"/home/slesage/hf/datas... |
I_kwDODunzps4-AZh5 | 3,185 | 7z dataset preview not implemented? | ## Dataset viewer issue for dataset 'samsum'
**Link:** https://huggingface.co/datasets/samsum
Server Error
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol '7z' for file at 'https://arxiv.org/src/1911.12237v2/anc/corpus.7z' is not implemented yet
| CLOSED | 2021-10-30T20:18:27 | 2022-04-12T11:48:16 | 2022-04-12T11:48:07 | https://github.com/huggingface/datasets/issues/3185 | {
"login": "Kirili4ik"
} | {
"nodes": [
{
"name": "dataset-viewer"
}
]
} | [
"It's a bug in the dataset viewer: the dataset cannot be downloaded in streaming mode, but since the dataset is relatively small, the dataset viewer should have fallback to normal mode. Working on a fix.",
"Fixed. https://huggingface.co/datasets/samsum/viewer/samsum/train\r\n\r\n<img width=\"1563\" alt=\"Capture ... |
I_kwDODunzps49-Eox | 3,181 | `None` converted to `"None"` when loading a dataset | ## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text... | CLOSED | 2021-10-29T15:23:53 | 2021-12-11T01:16:40 | 2021-12-09T14:26:57 | https://github.com/huggingface/datasets/issues/3181 | {
"login": "eladsegal"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @eladsegal, thanks for reporting.\r\n\r\n@mariosasko I saw you are already working on this, but maybe my comment will be useful to you.\r\n\r\nAll values are casted to their corresponding feature type (including `None` values). For example if the feature type is `Value(\"bool\")`, `None` is casted to `False`.\r... |
I_kwDODunzps499pvY | 3,179 | Cannot load dataset when the config name is "special" | ## Describe the bug
After https://github.com/huggingface/datasets/pull/3159, we can get the config name of "Check/region_1", which is "Check___region_1".
But now we cannot load the dataset (not sure it's related to the above PR though). It's the case for all the similar datasets, listed in https://github.com/hugg... | CLOSED | 2021-10-29T13:30:47 | 2021-10-29T13:35:21 | 2021-10-29T13:35:21 | https://github.com/huggingface/datasets/issues/3179 | {
"login": "severo"
} | {
"nodes": [
{
"name": "bug"
},
{
"name": "dataset-viewer"
}
]
} | [
"The issue is that the datasets are malformed. Not a bug with the datasets library"
] |
I_kwDODunzps499huE | 3,178 | "Property couldn't be hashed properly" even though fully picklable | ## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
... | CLOSED | 2021-10-29T12:56:09 | 2024-08-19T13:03:49 | 2022-11-02T17:18:43 | https://github.com/huggingface/datasets/issues/3178 | {
"login": "BramVanroy"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"After some digging, I found that this is caused by `dill` and using `recurse=True)` when trying to dump the object. The problem also occurs without multiprocessing. I can only find [the following information](https://dill.readthedocs.io/en/latest/dill.html#dill._dill.dumps) about this:\r\n\r\n> If recurse=True, th... |
I_kwDODunzps499VMk | 3,177 | More control over TQDM when using map/filter with multiple processes | It would help with the clutter in my terminal if tqdm is only shown for rank 0 when using `num_proces>0` in the map and filter methods of datasets.
```python
dataset.map(lambda examples: tokenize(examples["text"]), batched=True, num_proc=6)
```
The above snippet leads to a lot of TQDM bars and depending on your... | CLOSED | 2021-10-29T11:56:16 | 2023-02-13T20:16:40 | 2023-02-13T20:16:40 | https://github.com/huggingface/datasets/issues/3177 | {
"login": "BramVanroy"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"Hi,\r\n\r\nIt's hard to provide an API that would cover all use-cases with tqdm in this project.\r\n\r\nHowever, you can make it work by defining a custom decorator (a bit hacky tho) as follows:\r\n```python\r\nimport datasets\r\n\r\ndef progress_only_on_rank_0(func):\r\n def wrapper(*args, **kwargs):\r\n ... |
I_kwDODunzps494_zj | 3,172 | `SystemError 15` thrown in `Dataset.__del__` when using `Dataset.map()` with `num_proc>1` | ## Describe the bug
I use `datasets.map` to preprocess some data in my application. The error `SystemError 15` is thrown at the end of the execution of `Dataset.map()` (only with `num_proc>1`. Traceback included bellow.
The exception is raised only when the code runs within a specific context. Despite ~10h spent ... | CLOSED | 2021-10-28T10:29:00 | 2024-04-02T18:13:21 | 2021-11-03T11:26:10 | https://github.com/huggingface/datasets/issues/3172 | {
"login": "vlievin"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"NB: even if the error is raised, the dataset is successfully cached. So restarting the script after every `map()` allows to ultimately run the whole preprocessing. But this prevents to realistically run the code over multiple nodes.",
"Hi,\r\n\r\nIt's not easy to debug the problem without the script. I may be wr... |
I_kwDODunzps492nk7 | 3,171 | Raise exceptions instead of using assertions for control flow | Motivated by https://github.com/huggingface/transformers/issues/12789 in Transformers, one welcoming change would be replacing assertions with proper exceptions. The only type of assertions we should keep are those used as sanity checks.
Currently, there is a total of 87 files with the `assert` statements (located u... | CLOSED | 2021-10-27T18:26:52 | 2021-12-23T16:40:37 | 2021-12-23T16:40:37 | https://github.com/huggingface/datasets/issues/3171 | {
"login": "mariosasko"
} | {
"nodes": [
{
"name": "good first issue"
}
]
} | [
"Adding the remaining tasks for this issue to help new code contributors. \r\n$ cd src/datasets && ack assert -lc \r\n- [x] commands/convert.py:1\r\n- [x] arrow_reader.py:3\r\n- [x] load.py:7\r\n- [x] utils/py_utils.py:2\r\n- [x] features/features.py:9\r\n- [x] arrow_writer.py:7\r\n- [x] search.py:6\r\n- [x] table... |
I_kwDODunzps49ymDv | 3,168 | OpenSLR/83 is empty | ## Describe the bug
As the summary says, openslr / SLR83 / train is empty.
The dataset returned after loading indicates there are **zero** rows. The correct number should be **17877**.
## Steps to reproduce the bug
```python
import datasets
datasets.load_dataset('openslr', 'SLR83')
```
## Expected resul... | CLOSED | 2021-10-26T19:42:21 | 2021-10-29T10:04:09 | 2021-10-29T10:04:09 | https://github.com/huggingface/datasets/issues/3168 | {
"login": "tyrius02"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @tyrius02, thanks for reporting. I see you self-assigned this issue: are you working on this?",
"@albertvillanova Yes. Figured I introduced the broken config, I should fix it too.\r\n\r\nI've got it working, but I'm struggling with one of the tests. I've started a PR so I/we can work through it.",
"Looks li... |
I_kwDODunzps49x5Eg | 3,167 | bookcorpusopen no longer works | ## Describe the bug
When using the latest version of datasets (1.14.0), I cannot use the `bookcorpusopen` dataset. The process blocks always around `9924 examples [00:06, 1439.61 examples/s]` when preparing the dataset. I also noticed that after half an hour the process is automatically killed because of the RAM usa... | CLOSED | 2021-10-26T16:06:15 | 2021-11-17T15:53:46 | 2021-11-17T15:53:46 | https://github.com/huggingface/datasets/issues/3167 | {
"login": "lucadiliello"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi ! Thanks for reporting :) I think #3280 should fix this",
"I tried with the latest changes from #3280 on google colab and it worked fine :)\r\nWe'll do a new release soon, in the meantime you can use the updated version with:\r\n```python\r\nload_dataset(\"bookcorpusopen\", revision=\"master\")\r\n```",
"Fi... |
I_kwDODunzps49xvTm | 3,165 | Deprecate prepare_module | In version 1.13, `prepare_module` was deprecated.
Add deprecation warning and remove its usage from all the library. | CLOSED | 2021-10-26T15:27:15 | 2021-11-05T09:27:36 | 2021-11-05T09:27:36 | https://github.com/huggingface/datasets/issues/3165 | {
"login": "albertvillanova"
} | {
"nodes": []
} | [] |
I_kwDODunzps49uvXu | 3,164 | Add raw data files to the Hub with GitHub LFS for canonical dataset | I'm interested in sharing the CaseHOLD dataset (https://arxiv.org/abs/2104.08671) as a canonical dataset on the HuggingFace Hub and would like to add the raw data files to the Hub with GitHub LFS, since it seems like a more sustainable long term storage solution, compared to other storage solutions available to my team... | CLOSED | 2021-10-25T23:28:21 | 2021-10-30T19:54:51 | 2021-10-30T19:54:51 | https://github.com/huggingface/datasets/issues/3164 | {
"login": "zlucia"
} | {
"nodes": []
} | [
"Hi @zlucia, I would actually suggest hosting the dataset as a huggingface.co-hosted dataset.\r\n\r\nThe only difference with a \"canonical\"/legacy dataset is that it's nested under an organization (here `stanford` or `stanfordnlp` for instance – completely up to you) but then you can upload your data using git-lf... |
I_kwDODunzps49t-X4 | 3,162 | `datasets-cli test` should work with datasets without scripts | It would be really useful to be able to run `datasets-cli test`for datasets that don't have scripts attached to them (whether the datasets are private or not).
I wasn't able to run the script for a private test dataset that I had created on the hub (https://huggingface.co/datasets/huggingface/DataMeasurementsTest/t... | OPEN | 2021-10-25T18:52:30 | 2021-11-25T16:04:29 | null | https://github.com/huggingface/datasets/issues/3162 | {
"login": "sashavor"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"> It would be really useful to be able to run `datasets-cli test`for datasets that don't have scripts attached to them (whether the datasets are private or not).\r\n> \r\n> I wasn't able to run the script for a private test dataset that I had created on the hub (https://huggingface.co/datasets/huggingface/DataMeas... |
I_kwDODunzps49qL2V | 3,155 | Illegal instruction (core dumped) at datasets import | ## Describe the bug
I install datasets using conda and when I import datasets I get: "Illegal instruction (core dumped)"
## Steps to reproduce the bug
```
conda create --prefix path/to/env
conda activate path/to/env
conda install -c huggingface -c conda-forge datasets
# exits with output "Illegal instruction... | CLOSED | 2021-10-24T17:21:36 | 2021-11-18T19:07:04 | 2021-11-18T19:07:03 | https://github.com/huggingface/datasets/issues/3155 | {
"login": "hacobe"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"It seems to be an issue with how conda-forge is building the binaries. It works on some machines, but not a machine with AMD Opteron 8384 processors."
] |
I_kwDODunzps49pxvO | 3,154 | Sacrebleu unexpected behaviour/requirement for data format | ## Describe the bug
When comparing with the original `sacrebleu` implementation, the `datasets` implementation does some strange things that I do not quite understand. This issue was triggered when I was trying to implement TER and found the datasets implementation of BLEU [here](https://github.com/huggingface/dataset... | CLOSED | 2021-10-24T08:55:33 | 2021-10-31T09:08:32 | 2021-10-31T09:08:31 | https://github.com/huggingface/datasets/issues/3154 | {
"login": "BramVanroy"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @BramVanroy!\r\n\r\nGood question. This project relies on PyArrow (tables) to store data too big to fit in RAM. In the case of metrics, this means that the number of predictions and references has to match to form a table.\r\n\r\nThat's why your example throws an error even though it matches the schema:\r\n```p... |
I_kwDODunzps49nwRq | 3,150 | Faiss _is_ available on Windows | In the setup file, I find the following:
https://github.com/huggingface/datasets/blob/87c71b9c29a40958973004910f97e4892559dfed/setup.py#L171
However, FAISS does install perfectly fine on Windows on my system. You can also confirm this on the [PyPi page](https://pypi.org/project/faiss-cpu/#files), where Windows wh... | CLOSED | 2021-10-22T18:07:16 | 2021-11-02T10:06:03 | 2021-11-02T10:06:03 | https://github.com/huggingface/datasets/issues/3150 | {
"login": "BramVanroy"
} | {
"nodes": []
} | [
"Sure, feel free to open a PR."
] |
I_kwDODunzps49nMjY | 3,148 | Streaming with num_workers != 0 | ## Describe the bug
When using dataset streaming with pytorch DataLoader, the setting num_workers to anything other than 0 causes the code to freeze forever before yielding the first batch.
The code owner is likely @lhoestq
## Steps to reproduce the bug
For your convenience, we've prepped a colab notebook th... | CLOSED | 2021-10-22T15:07:17 | 2022-07-04T12:14:58 | 2022-07-04T12:14:58 | https://github.com/huggingface/datasets/issues/3148 | {
"login": "justheuristic"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"I can confirm that I was able to reproduce the bug. This seems odd given that #3423 reports duplicate data retrieval when `num_workers` and `streaming` are used together, which is obviously different from what is reported here. ",
"Any update? A possible solution is to have multiple arrow files as shards, and ha... |
I_kwDODunzps49m5M7 | 3,146 | CLI test command throws NonMatchingSplitsSizesError when saving infos | When trying to generate a datset JSON metadata, a `NonMatchingSplitsSizesError` is thrown:
```
$ datasets-cli test datasets/arabic_billion_words --save_infos --all_configs
Testing builder 'Alittihad' (1/10)
Downloading and preparing dataset arabic_billion_words/Alittihad (download: 332.13 MiB, generated: Unknown si... | CLOSED | 2021-10-22T13:50:53 | 2021-10-27T08:01:49 | 2021-10-27T08:01:49 | https://github.com/huggingface/datasets/issues/3146 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps49my3p | 3,145 | [when Image type will exist] provide a way to get the data as binary + filename | **Is your feature request related to a problem? Please describe.**
When a dataset cell contains a value of type Image (be it from a remote URL, an Array2D/3D, or any other way to represent images), I want to be able to write the image to the disk, with the correct filename, and optionally to know its mimetype, in or... | CLOSED | 2021-10-22T13:23:49 | 2021-12-22T11:05:37 | 2021-12-22T11:05:36 | https://github.com/huggingface/datasets/issues/3145 | {
"login": "severo"
} | {
"nodes": [
{
"name": "enhancement"
},
{
"name": "dataset-viewer"
}
]
} | [
"@severo, maybe somehow related to this PR ?\r\n- #3129",
"@severo I'll keep that in mind.\r\n\r\nYou can track progress on the Image feature in #3163 (still in the early stage). ",
"Hi ! As discussed with @severo offline it looks like the dataset viewer already supports reading PIL images, so maybe the datase... |
I_kwDODunzps49mxWA | 3,144 | Infer the features if missing | **Is your feature request related to a problem? Please describe.**
Some datasets, in particular community datasets, have no info file, thus no features.
**Describe the solution you'd like**
If a dataset has no features, the first loaded data (5-10 rows) could be used to infer the type.
Related: `datasets` w... | CLOSED | 2021-10-22T13:17:33 | 2022-09-08T08:23:10 | 2022-09-08T08:23:10 | https://github.com/huggingface/datasets/issues/3144 | {
"login": "severo"
} | {
"nodes": [
{
"name": "enhancement"
},
{
"name": "dataset-viewer"
}
]
} | [
"Done by @lhoestq here: https://github.com/huggingface/datasets/pull/4500 (https://github.com/huggingface/datasets/pull/4500/files#diff-02930e1d966f4b41f9ddf15d961f16f5466d9bee583138657018c7329f71aa43R1255 in particular)\r\n"
] |
I_kwDODunzps49mwV3 | 3,143 | Provide a way to check if the features (in info) match with the data of a split | **Is your feature request related to a problem? Please describe.**
I understand that currently the data loaded has not always the type described in the info features
**Describe the solution you'd like**
Provide a way to check if the rows have the type described by info features
**Describe alternatives you'v... | OPEN | 2021-10-22T13:13:36 | 2021-10-22T13:17:56 | null | https://github.com/huggingface/datasets/issues/3143 | {
"login": "severo"
} | {
"nodes": [
{
"name": "enhancement"
},
{
"name": "dataset-viewer"
}
]
} | [
"Related: #3144 "
] |
I_kwDODunzps49mvdS | 3,142 | Provide a way to write a streamed dataset to the disk | **Is your feature request related to a problem? Please describe.**
The streaming mode allows to get the 100 first rows of a dataset very quickly. But it does not cache the answer, so a posterior call to get the same 100 rows will send a request to the server again and again.
**Describe the solution you'd like**
... | OPEN | 2021-10-22T13:09:53 | 2024-01-12T07:26:43 | null | https://github.com/huggingface/datasets/issues/3142 | {
"login": "severo"
} | {
"nodes": [
{
"name": "enhancement"
},
{
"name": "dataset-viewer"
}
]
} | [
"Yes, I agree this feature is much needed. We could do something similar to what TF does (https://www.tensorflow.org/api_docs/python/tf/data/Dataset#cache). \r\n\r\nIdeally, if the entire streamed dataset is consumed/cached, the generated cache should be reusable for the Arrow dataset.",
"@mariosasko Hi big broth... |
I_kwDODunzps49mlNv | 3,139 | Fix file/directory deletion on Windows | Currently, on Windows, some attempts to delete a dataset file/directory will fail with the `PerimissionError`.
Examples:
- download a dataset, then force redownload it in the same session while keeping a reference to the downloaded dataset
```python
from datasets import load_dataset
dset = load_dataset("sst", s... | OPEN | 2021-10-22T12:22:08 | 2021-10-22T12:22:08 | null | https://github.com/huggingface/datasets/issues/3139 | {
"login": "mariosasko"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps49mCCd | 3,138 | More fine-grained taxonomy of error types | **Is your feature request related to a problem? Please describe.**
Exceptions like `FileNotFoundError` can be raised by different parts of the code, and it's hard to detect which one did
**Describe the solution you'd like**
Give a specific exception type for every group of similar errors
**Describe alternat... | OPEN | 2021-10-22T09:35:29 | 2022-09-20T13:04:42 | null | https://github.com/huggingface/datasets/issues/3138 | {
"login": "severo"
} | {
"nodes": [
{
"name": "enhancement"
},
{
"name": "dataset-viewer"
}
]
} | [
"related: #4995\r\n"
] |
I_kwDODunzps49ltHb | 3,135 | Make inspect.get_dataset_config_names always return a non-empty list of configs | **Is your feature request related to a problem? Please describe.**
Currently, some datasets have a configuration, while others don't. It would be simpler for the user to always have configuration names to refer to
**Describe the solution you'd like**
In that sense inspect.get_dataset_config_names should always... | CLOSED | 2021-10-22T08:02:50 | 2021-10-28T05:44:49 | 2021-10-28T05:44:49 | https://github.com/huggingface/datasets/issues/3135 | {
"login": "severo"
} | {
"nodes": [
{
"name": "enhancement"
},
{
"name": "dataset-viewer"
}
]
} | [
"Hi @severo, I guess this issue requests not only to be able to access the configuration name (by using `inspect.get_dataset_config_names`), but the configuration itself as well (I mean you use the name to get the configuration afterwards, maybe using `builder_cls.builder_configs`), is this right?",
"Yes, maybe t... |
I_kwDODunzps49liur | 3,134 | Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.11.0/metrics/rouge/rouge.py | datasets version: 1.12.1
`metric = datasets.load_metric('rouge')`
The error:
> ConnectionError Traceback (most recent call last)
> <ipython-input-3-dd10a0c5212f> in <module>
> ----> 1 metric = datasets.load_metric('rouge')
>
> /usr/local/lib/python3.6/dist-packages/datasets/load.... | CLOSED | 2021-10-22T07:07:52 | 2023-09-14T01:19:45 | 2022-01-19T14:02:31 | https://github.com/huggingface/datasets/issues/3134 | {
"login": "yanan1116"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi,\r\n\r\nDid you try to run the code multiple times (GitHub URLs can be down sometimes for various reasons)? I can access `https://raw.githubusercontent.com/huggingface/datasets/1.11.0/metrics/rouge/rouge.py`, so this code is working without an error on my side. \r\n\r\nAdditionally, can you please run the `data... |
I_kwDODunzps49ishW | 3,132 | Support Audio feature in streaming mode | Currently, Audio feature is only supported for non-streaming datasets.
Due to the large size of many speech datasets, we should also support Audio feature in streaming mode.
| CLOSED | 2021-10-21T13:32:18 | 2021-11-12T14:13:04 | 2021-11-12T14:13:04 | https://github.com/huggingface/datasets/issues/3132 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [] |
I_kwDODunzps49h8xp | 3,131 | Add ADE20k | ## Adding a Dataset
- **Name:** ADE20k (actually it's called the MIT Scene Parsing Benchmark, it's actually a subset of ADE20k but a lot of authors still call it ADE20k)
- **Description:** A semantic segmentation dataset, consisting of 150 classes.
- **Paper:** http://people.csail.mit.edu/bzhou/publication/scene-par... | CLOSED | 2021-10-21T10:13:09 | 2023-01-27T14:40:20 | 2023-01-27T14:40:20 | https://github.com/huggingface/datasets/issues/3131 | {
"login": "NielsRogge"
} | {
"nodes": [
{
"name": "dataset request"
},
{
"name": "vision"
}
]
} | [
"I think we can close this issue since PR [#3607](https://github.com/huggingface/datasets/pull/3607) solves this."
] |
I_kwDODunzps49hiaO | 3,128 | Support Audio feature for TAR archives in sequential access | Currently, Audio feature accesses each audio file by their file path.
However, streamed TAR archive files do not allow random access to their archived files.
Therefore, we should enhance the Audio feature to support TAR archived files in sequential access. | CLOSED | 2021-10-21T08:23:01 | 2021-11-17T17:42:07 | 2021-11-17T17:42:07 | https://github.com/huggingface/datasets/issues/3128 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [] |
I_kwDODunzps49hJsF | 3,127 | datasets-cli: convertion of a tfds dataset to a huggingface one. | ### Discussed in https://github.com/huggingface/datasets/discussions/3079
<div type='discussions-op-text'>
<sup>Originally posted by **vitalyshalumov** October 14, 2021</sup>
I'm trying to convert a tfds dataset to a huggingface one.
I've tried:
1. datasets-cli convert --tfds_path ~/tensorflow_datas... | OPEN | 2021-10-21T06:14:27 | 2021-10-27T11:36:05 | null | https://github.com/huggingface/datasets/issues/3127 | {
"login": "vitalyshalumov"
} | {
"nodes": []
} | [
"Hi,\r\n\r\nthe MNIST dataset is already available on the Hub. You can use it as follows:\r\n```python\r\nimport datasets\r\ndataset_dict = datasets.load_dataset(\"mnist\")\r\n```\r\n\r\nAs for the conversion of TFDS datasets to HF datasets, we will be working on it in the coming months, so stay tuned."
] |
I_kwDODunzps49hH1_ | 3,126 | "arabic_billion_words" dataset does not create the full dataset | ## Describe the bug
When running:
raw_dataset = load_dataset('arabic_billion_words','Alittihad')
the correct dataset file is pulled from the url.
But, the generated dataset includes just a small portion of the data included in the file.
This is true for all other portions of the "arabic_billion_words" dataset ('A... | CLOSED | 2021-10-21T06:02:38 | 2021-10-22T13:28:40 | 2021-10-22T13:28:40 | https://github.com/huggingface/datasets/issues/3126 | {
"login": "vitalyshalumov"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Thanks for reporting, @vitalyshalumov.\r\n\r\nApparently the script to parse the data has a bug, and does not generate the entire dataset.\r\n\r\nI'm fixing it."
] |
I_kwDODunzps49f-o3 | 3,123 | Segmentation fault when loading datasets from file | ## Describe the bug
Custom dataset loading sometimes segfaults and kills the process if chunks contain a variety of features/
## Steps to reproduce the bug
Download an example file:
```
wget https://gist.githubusercontent.com/TevenLeScao/11e2184394b3fa47d693de2550942c6b/raw/4232704d08fbfcaf93e5b51def9e50515076... | CLOSED | 2021-10-20T20:16:11 | 2021-11-02T14:57:07 | 2021-11-02T14:57:07 | https://github.com/huggingface/datasets/issues/3123 | {
"login": "TevenLeScao"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi ! I created an issue on Arrow's JIRA after making a minimum reproducible example\r\n\r\nhttps://issues.apache.org/jira/browse/ARROW-14439\r\n\r\n```python\r\nimport io\r\n\r\nimport pyarrow.json as paj\r\n\r\nbatch = b'{\"a\": [], \"b\": 1}\\n{\"b\": 1}'\r\nblock_size = 12\r\n\r\npaj.read_json(\r\n io.BytesI... |
I_kwDODunzps49f9P1 | 3,122 | OSError with a custom dataset loading script | ## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost identical and they have the same directory struc... | CLOSED | 2021-10-20T20:08:39 | 2021-11-23T09:55:38 | 2021-11-23T09:55:38 | https://github.com/huggingface/datasets/issues/3122 | {
"login": "suzanab"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi,\r\n\r\nthere is a difference in how the `data_dir` is zipped between the `classla/janes_tag` and the `classla/reldi_hr` dataset. After unzipping, for the former, the data files (`*.conllup`) are in the root directory (root -> data files), and for the latter, they are inside the `data` directory (root -> `data`... |
I_kwDODunzps49eNEs | 3,119 | Add OpenSLR 83 - Crowdsourced high-quality UK and Ireland English Dialect speech | ## Adding a Dataset
- **Name:** *openslr**
- **Description:** *Data set which contains male and female recordings of English from various dialects of the UK and Ireland.*
- **Paper:** *https://www.openslr.org/resources/83/about.html*
- **Data:** *Eleven separate data files can be found via https://www.openslr.org/r... | CLOSED | 2021-10-20T12:05:07 | 2021-10-22T19:00:52 | 2021-10-22T08:30:22 | https://github.com/huggingface/datasets/issues/3119 | {
"login": "tyrius02"
} | {
"nodes": [
{
"name": "dataset request"
}
]
} | [
"Ugh. The index files for SLR83 are CSV, not TSV. I need to add logic to process these index files."
] |
I_kwDODunzps49eIMz | 3,117 | CI error at each release commit | After 1.12.0, there is a recurrent CI error at each release commit: https://app.circleci.com/pipelines/github/huggingface/datasets/8289/workflows/665d954d-e409-4602-8202-e678594d2946/jobs/51110
```
____________________ LoadTest.test_load_dataset_canonical _____________________
[gw0] win32 -- Python 3.6.8 C:\tools\... | CLOSED | 2021-10-20T11:42:53 | 2021-10-20T13:02:35 | 2021-10-20T13:02:35 | https://github.com/huggingface/datasets/issues/3117 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps49byEK | 3,114 | load_from_disk in DatasetsDict/Dataset not working with PyArrowHDFS wrapper implementing fsspec.spec.AbstractFileSystem | ## Describe the bug
Passing a PyArrowHDFS implementation of fsspec.spec.AbstractFileSystem (in the `fs` param required by `load_from_disk` methods in `DatasetDict` (in datasets_dict.py) and `Dataset` (in arrow_dataset.py) results in an error when calling the download method in the `fs` parameter.
## Steps to repr... | CLOSED | 2021-10-19T20:01:45 | 2022-02-14T14:00:28 | 2022-02-14T14:00:28 | https://github.com/huggingface/datasets/issues/3114 | {
"login": "francisco-perez-sorrosal"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi ! Can you try again with pyarrow 6.0.0 ? I think it includes some changes regarding filesystems compatibility with fsspec.",
"Hi @lhoestq! I ended up using `fsspec.implementations.arrow.HadoopFileSystem` which doesn't have the problem I described with pyarrow 5.0.0.\r\n\r\nI'll try again with `PyArrowHDFS` on... |
I_kwDODunzps49br0b | 3,113 | Loading Data from HDF files | **Is your feature request related to a problem? Please describe.**
More often than not I come along big HDF datasets, and currently there is no straight forward way to feed them to a dataset.
**Describe the solution you'd like**
I would love to see a `from_h5` method that gets an interface implemented by the user ... | CLOSED | 2021-10-19T19:26:46 | 2025-08-19T13:28:54 | 2025-08-19T13:28:54 | https://github.com/huggingface/datasets/issues/3113 | {
"login": "FeryET"
} | {
"nodes": [
{
"name": "enhancement"
},
{
"name": "good second issue"
}
]
} | [
"I'm currently working on bringing [Ecoset](https://www.pnas.org/doi/10.1073/pnas.2011417118) to huggingface datasets and I would second this request...",
"I would also like this support or something similar. Geospatial datasets come in netcdf which is derived from hdf5, or zarr. I've gotten zarr stores to work w... |
I_kwDODunzps49behb | 3,112 | OverflowError: There was an overflow in the <class 'pyarrow.lib.ListArray'>. Try to reduce writer_batch_size to have batches smaller than 2GB | ## Describe the bug
Despite having batches way under 2Gb when running `datasets.map()`, after processing correctly the data of the first batch without fuss and irrespective of writer_batch_size (say 2,4,8,16,32,64 and 128 in my case), it returns the following error :
> OverflowError: There was an overflow in the <c... | OPEN | 2021-10-19T18:21:41 | 2021-10-19T18:52:29 | null | https://github.com/huggingface/datasets/issues/3112 | {
"login": "BenoitDalFerro"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"I am very unsure on why you tagged me here. I am not a maintainer of the Datasets library and have no idea how to help you.",
"fixed",
"Ok got it, tensor full of NaNs, cf.\r\n\r\n~\\anaconda3\\envs\\xxx\\lib\\site-packages\\datasets\\arrow_writer.py in write_examples_on_file(self)\r\n315 # This check fails wit... |
I_kwDODunzps49bbFH | 3,111 | concatenate_datasets removes ClassLabel typing. | ## Describe the bug
When concatenating two datasets, we lose typing of ClassLabel columns.
I can work on this if this is a legitimate bug,
## Steps to reproduce the bug
```python
import datasets
from datasets import Dataset, ClassLabel, Value, concatenate_datasets
DS_LEN = 100
my_dataset = Dataset.from_... | CLOSED | 2021-10-19T18:05:31 | 2021-10-21T14:50:21 | 2021-10-21T14:50:21 | https://github.com/huggingface/datasets/issues/3111 | {
"login": "Dref360"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Something like this would fix it I think: https://github.com/huggingface/datasets/compare/master...Dref360:HF-3111/concatenate_types?expand=1"
] |
I_kwDODunzps49Vs1b | 3,105 | download_mode=`force_redownload` does not work on removed datasets | ## Describe the bug
If a cached dataset is removed from the library, I don't see how to delete it programmatically. I thought that using `force_redownload` would try to refresh the cache, then raise an exception, but it reuses the cache instead.
## Steps to reproduce the bug
_requires to already have `wit` in ... | OPEN | 2021-10-18T13:12:38 | 2021-10-22T09:36:10 | null | https://github.com/huggingface/datasets/issues/3105 | {
"login": "severo"
} | {
"nodes": [
{
"name": "bug"
},
{
"name": "dataset-viewer"
}
]
} | [] |
I_kwDODunzps49VoVc | 3,104 | Missing Zenodo 1.13.3 release | After `datasets` 1.13.3 release, this does not appear in Zenodo releases: https://zenodo.org/record/5570305
TODO:
- [x] Contact Zenodo support
- [x] Check it is fixed | CLOSED | 2021-10-18T12:57:18 | 2021-10-22T13:22:25 | 2021-10-22T13:22:24 | https://github.com/huggingface/datasets/issues/3104 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Zenodo has fixed on their side the 1.13.3 release: https://zenodo.org/record/5589150"
] |
I_kwDODunzps49VlE2 | 3,102 | Unsuitable project description in PyPI | Currently, `datasets` project description appearing in PyPI shows the release instructions addressed to core maintainers: https://pypi.org/project/datasets/1.13.3/ | CLOSED | 2021-10-18T12:45:00 | 2021-10-18T12:59:56 | 2021-10-18T12:59:56 | https://github.com/huggingface/datasets/issues/3102 | {
"login": "albertvillanova"
} | {
"nodes": []
} | [] |
I_kwDODunzps49SzGe | 3,099 | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo' | ## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("sst", "default")
```
## Actual results
---------------------------... | CLOSED | 2021-10-17T14:17:47 | 2021-11-09T16:42:29 | 2021-11-09T16:42:28 | https://github.com/huggingface/datasets/issues/3099 | {
"login": "JTWang2000"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @JTWang2000, thanks for reporting.\r\n\r\nHowever, I cannot reproduce your reported bug:\r\n```python\r\n>>> from datasets import load_dataset\r\n\r\n>>> dataset = load_dataset(\"sst\", \"default\")\r\n>>> dataset\r\nDatasetDict({\r\n train: Dataset({\r\n features: ['sentence', 'label', 'tokens', 'tre... |
I_kwDODunzps49Qjub | 3,097 | `ModuleNotFoundError: No module named 'fsspec.exceptions'` | ## Describe the bug
I keep runnig into a fsspec ModuleNotFound error
## Steps to reproduce the bug
```python
>>> from datasets import get_dataset_infos
2021-10-15 15:25:37.863206: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudar... | CLOSED | 2021-10-15T19:34:38 | 2021-10-18T07:51:54 | 2021-10-18T07:51:54 | https://github.com/huggingface/datasets/issues/3097 | {
"login": "VictorSanh"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Thanks for reporting, @VictorSanh.\r\n\r\nI'm fixing it."
] |
I_kwDODunzps49PbDa | 3,095 | `cast_column` makes audio decoding fail | ## Describe the bug
After changing the sampling rate automatic decoding fails.
## Steps to reproduce the bug
```python
from datasets import load_dataset
import datasets
ds = load_dataset("common_voice", "ab", split="train")
ds = ds.cast_column("audio", datasets.features.Audio(sampling_rate=16_000))
pr... | CLOSED | 2021-10-15T13:36:58 | 2023-04-07T09:43:20 | 2021-10-15T15:38:30 | https://github.com/huggingface/datasets/issues/3095 | {
"login": "patrickvonplaten"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"cc @anton-l @albertvillanova ",
"Thanks for reporting, @patrickvonplaten.\r\n\r\nI think the issue is related to mp3 resampling, not to `cast_column`.\r\n\r\nYou can check that `cast_column` works OK with non-mp3 audio files:\r\n```python\r\nfrom datasets import load_dataset\r\nimport datasets\r\nds = load_datas... |
I_kwDODunzps49O8p5 | 3,094 | Support loading a dataset from SQLite files | As requested by @julien-c, we could eventually support loading a dataset from SQLite files, like it is the case for JSON/CSV files. | CLOSED | 2021-10-15T10:58:41 | 2022-10-03T16:32:29 | 2022-10-03T16:32:29 | https://github.com/huggingface/datasets/issues/3094 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "enhancement"
},
{
"name": "good second issue"
}
]
} | [
"for reference Kaggle has a good number of open source datasets stored in sqlite\r\n\r\nAlternatively a tutorial or tool on how to convert from sqlite to parquet would be cool too",
"Hello, could we leverage [`pandas.read_sql`](https://pandas.pydata.org/docs/reference/api/pandas.read_sql.html) for this? \r\n\r\nT... |
I_kwDODunzps49Osas | 3,093 | Error loading json dataset with multiple splits if keys in nested dicts have a different order | ## Describe the bug
Loading a json dataset with multiple splits that have nested dicts with keys in different order results in the error below.
If the keys in the nested dicts always have the same order or even if you just load a single split in which the nested dicts don't have the same order, everything works fin... | CLOSED | 2021-10-15T09:33:25 | 2022-04-10T14:06:29 | 2022-04-10T14:06:29 | https://github.com/huggingface/datasets/issues/3093 | {
"login": "dthulke"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi, \r\n\r\neven Pandas, which is less strict compared to PyArrow when it comes to reading JSON, doesn't support different orderings:\r\n```python\r\nimport io\r\nimport pandas as pd\r\n\r\ns = \"\"\"\r\n{\"a\": {\"c\": 8, \"b\": 5}}\r\n{\"a\": {\"b\": 7, \"c\": 6}}\r\n\"\"\"\r\n\r\nbuffer = io.StringIO(s)\r\ndf =... |
I_kwDODunzps49Op1K | 3,091 | `blog_authorship_corpus` is broken | ## Describe the bug
The dataset `blog_authorship_corpus` is broken.
By bypassing the checksum checks, the loading does not return any error but the resulting dataset is empty.
I suspect it is because the data download url is broken (http://www.cs.biu.ac.il/~koppel/blogs/blogs.zip).
## Steps to reproduce the bug
... | CLOSED | 2021-10-15T09:20:40 | 2021-10-19T13:06:10 | 2021-10-19T12:50:39 | https://github.com/huggingface/datasets/issues/3091 | {
"login": "fdtomasi"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @fdtomasi, thanks for reporting.\r\n\r\nYou are right: the original host data URL does no longer exist.\r\n\r\nI've contacted the authors of the dataset to ask them if they host this dataset in another URL.",
"Hi, @fdtomasi, the URL is fixed.\r\n\r\nThe fix is already in our master branch and it will be acces... |
I_kwDODunzps49Nl6w | 3,089 | JNLPBA Dataset | ## 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
```
## Expected results
The dataset loading script for this dataset is incorrect. This is a biomedical dataset used for named entity recognition. The entities in ... | CLOSED | 2021-10-15T01:16:02 | 2021-10-22T08:23:57 | 2021-10-22T08:23:57 | https://github.com/huggingface/datasets/issues/3089 | {
"login": "sciarrilli"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"# Steps to reproduce\r\n\r\nTo reproduce:\r\n\r\n```python\r\nfrom datasets import load_dataset\r\ndataset = load_dataset('jnlpba')\r\n\r\ndataset['train'].features['ner_tags']\r\n```\r\nOutput:\r\n```python\r\nSequence(feature=ClassLabel(num_classes=3, names=['O', 'B', 'I'], names_file=None, id=None), length=-1, ... |
I_kwDODunzps49M201 | 3,087 | Removing label column in a text classification dataset yields to errors | ## Describe the bug
This looks like #3059 but it's not linked to the cache this time. Removing the `label` column from a text classification dataset and then performing any processing will result in an error.
To reproduce:
```py
from datasets import load_dataset
from transformers import AutoTokenizer
raw_da... | CLOSED | 2021-10-14T20:12:50 | 2021-10-15T10:11:04 | 2021-10-15T10:11:04 | https://github.com/huggingface/datasets/issues/3087 | {
"login": "sgugger"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps49LhBA | 3,084 | VisibleDeprecationWarning when using `set_format("numpy")` | Code to reproduce:
```
from datasets import load_dataset
dataset = load_dataset("glue", "mnli")
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('distilbert-base-cased')
def tokenize_function(dataset):
return tokenizer(dataset['premise'])
tokenized_datasets = dataset.... | CLOSED | 2021-10-14T13:53:01 | 2021-10-22T16:04:14 | 2021-10-22T16:04:14 | https://github.com/huggingface/datasets/issues/3084 | {
"login": "Rocketknight1"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"I just opened a PR and I verified that the code you provided doesn't show any deprecation warning :)"
] |
I_kwDODunzps49LZOG | 3,083 | Datasets with Audio feature raise error when loaded from cache due to _resampler parameter | ## Describe the bug
As reported by @patrickvonplaten, when loaded from the cache, datasets containing the Audio feature raise TypeError.
## Steps to reproduce the bug
```python
from datasets import load_dataset
# load first time works
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean")
# ... | CLOSED | 2021-10-14T13:23:53 | 2021-10-14T15:13:40 | 2021-10-14T15:13:40 | https://github.com/huggingface/datasets/issues/3083 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps49LVNS | 3,080 | Error related to timeout keyword argument | ## Describe the bug
As reported by @patrickvonplaten, a TypeError is raised when trying to load a dataset.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean")
```
## Actual results
```
TypeError: dataset_info() got ... | CLOSED | 2021-10-14T13:10:58 | 2021-10-14T14:39:51 | 2021-10-14T14:39:51 | https://github.com/huggingface/datasets/issues/3080 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps49KT_M | 3,076 | Error when loading a metric | ## Describe the bug
As reported by @sgugger, after last release, exception is thrown when loading a metric.
## Steps to reproduce the bug
```python
from datasets import load_metric
metric = load_metric("squad_v2")
```
## Actual results
```
FileNotFoundError Traceback (most recent ... | CLOSED | 2021-10-14T08:29:27 | 2021-10-14T09:14:55 | 2021-10-14T09:14:55 | https://github.com/huggingface/datasets/issues/3076 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps49IzjF | 3,073 | Import error installing with ppc64le | ## Describe the bug
Installing the datasets library with a computer running with ppc64le seems to cause an issue when importing the datasets library.
```
python
Python 3.6.13 | packaged by conda-forge | (default, Sep 23 2021, 07:37:44)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for... | CLOSED | 2021-10-13T21:37:23 | 2021-10-14T16:35:46 | 2021-10-14T16:33:28 | https://github.com/huggingface/datasets/issues/3073 | {
"login": "gcervantes8"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"This seems to be an issue with importing PyArrow so I posted the problem [here](https://issues.apache.org/jira/browse/ARROW-14323), and I'm closing this issue.\r\n"
] |
I_kwDODunzps49FqI1 | 3,071 | Custom plain text dataset, plain json dataset and plain csv dataset are remove from datasets template folder | ## Adding a Dataset
- **Name:** text, json, csv
- **Description:** I am developing a customized dataset loading script. The problem is mainly about my custom dataset is seperate into many files and I only find a dataset loading template in [https://github.com/huggingface/datasets/blob/1.2.1/datasets/json/json.py](ht... | CLOSED | 2021-10-13T07:32:10 | 2021-10-13T08:27:04 | 2021-10-13T08:27:03 | https://github.com/huggingface/datasets/issues/3071 | {
"login": "zixiliuUSC"
} | {
"nodes": [
{
"name": "dataset request"
}
]
} | [
"Hi @zixiliuUSC, \r\n\r\nAs explained in the documentation (https://huggingface.co/docs/datasets/loading.html#json), we support loading any dataset in JSON (as well as CSV, text, Parquet) format:\r\n```python\r\nds = load_dataset('json', data_files='my_file.json')\r\n```"
] |
I_kwDODunzps49FX34 | 3,069 | CI fails on Windows with FileNotFoundError when stting up s3_base fixture | ## Describe the bug
After commit 9353fc863d0c99ab0427f83cc5a4f04fcf52f1df, the CI fails on Windows with FileNotFoundError when stting up s3_base fixture. See: https://app.circleci.com/pipelines/github/huggingface/datasets/8151/workflows/5db8d154-badd-4d3d-b202-ca7a318997a2/jobs/50321
Error summary:
```
ERROR tes... | CLOSED | 2021-10-13T05:52:26 | 2021-10-13T08:05:49 | 2021-10-13T06:49:48 | https://github.com/huggingface/datasets/issues/3069 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps49B3mr | 3,064 | Make `interleave_datasets` more robust | **Is your feature request related to a problem? Please describe.**
Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration.
It creates new problems in calculation... | OPEN | 2021-10-12T14:34:53 | 2022-07-30T08:47:26 | null | https://github.com/huggingface/datasets/issues/3064 | {
"login": "sbmaruf"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"Hi @lhoestq Any response on this issue?",
"Hi ! Sorry for the late response\r\n\r\nI agree `interleave_datasets` would benefit a lot from having more flexibility. If I understand correctly it would be nice to be able to define stopping strategies like `stop=\"first_exhausted\"` (default) or `stop=\"all_exhauste... |
I_kwDODunzps49ArfJ | 3,063 | Windows CI is unable to test streaming properly because of SSL issues | In https://github.com/huggingface/datasets/pull/3041 the windows tests were skipped because of SSL issues with moon-staging.huggingface.co:443
The issue appears only on windows with asyncio. On Linux it works. With requests it works as well. And with the production environment huggingface.co it also works.
to rep... | CLOSED | 2021-10-12T09:33:40 | 2022-08-24T14:59:29 | 2022-08-24T14:59:29 | https://github.com/huggingface/datasets/issues/3063 | {
"login": "lhoestq"
} | {
"nodes": [
{
"name": "streaming"
}
]
} | [
"I think this problem is already fixed:\r\n```python\r\nIn [4]: import fsspec\r\n ...:\r\n ...: url = \"https://moon-staging.huggingface.co/datasets/__DUMMY_TRANSFORMERS_USER__/my-dataset-16242824690709/resolve/main/.gitattributes\"\r\n ...:\r\n ...: fsspec.open(url).open()\r\nOut[4]: <File-like object HTTP... |
I_kwDODunzps48-1CP | 3,061 | Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?) | **A clear and concise description of what you want to happen.**
It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the grander scheme of things and whilst we're at it why not other functions.
**Describe alternatives you've considered**
By the way is there not a way to directl... | OPEN | 2021-10-11T20:49:49 | 2021-10-22T09:34:10 | null | https://github.com/huggingface/datasets/issues/3061 | {
"login": "BenoitDalFerro"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"@lhoestq, @albertvillanova can we have `**tqdm_kwargs` in `map`? If there are any fields that are important to our tqdm (like iterable or unit), we can pop them before initialising the tqdm object so as to avoid duplicity.",
"Hi ! Sounds like a good idea :)\r\n\r\nAlso I think it would be better to have this as ... |
I_kwDODunzps48-MVM | 3,060 | load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached" | ## Describe the bug
When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error.
## Steps to reproduce the bug
```
from datasets import load_dataset
dataset = load_dataset('openwebtext')
```
## Expected results
I expect the `datas... | CLOSED | 2021-10-11T17:05:27 | 2021-10-28T05:52:21 | 2021-10-28T05:52:21 | https://github.com/huggingface/datasets/issues/3060 | {
"login": "RylanSchaeffer"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @RylanSchaeffer, thanks for reporting.\r\n\r\nI'm sorry, but I was not able to reproduce your problem.\r\n\r\nNormally, the reason for this type of error is that, during your download of the data files, this was not fully complete.\r\n\r\nCould you please try to load the dataset again but forcing its redownload... |
I_kwDODunzps4889S4 | 3,058 | Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader. | ## Describe the bug
I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `wikitext` works and the `bookcorpusopen` raises the same errors as `wikipe... | CLOSED | 2021-10-11T11:54:59 | 2022-01-19T14:03:49 | 2022-01-19T14:03:49 | https://github.com/huggingface/datasets/issues/3058 | {
"login": "hobbitlzy"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi ! I think this issue is more related to the `transformers` project. Could you open an issue on https://github.com/huggingface/transformers ?\r\n\r\nAnyway I think the issue could be that both wikipedia and bookcorpusopen have an additional \"title\" column, contrary to wikitext which only has a \"text\" column.... |
I_kwDODunzps488j0b | 3,057 | Error in per class precision computation | ## Describe the bug
When trying to get the per class precision values by providing `average=None`, following error is thrown `ValueError: can only convert an array of size 1 to a Python scalar`
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
precision_metric = load_metric("... | CLOSED | 2021-10-11T10:05:19 | 2021-10-11T10:17:44 | 2021-10-11T10:16:16 | https://github.com/huggingface/datasets/issues/3057 | {
"login": "tidhamecha2"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @tidhamecha2, thanks for reporting.\r\n\r\nIndeed, we fixed this issue just one week ago: #3008\r\n\r\nThe fix will be included in our next version release.\r\n\r\nIn the meantime, you can incorporate the fix by installing `datasets` from the master branch:\r\n```\r\npip install -U git+ssh://git@github.com/hugg... |
I_kwDODunzps4871qG | 3,055 | CI test suite fails after meteor metric update | ## Describe the bug
CI test suite fails: https://app.circleci.com/pipelines/github/huggingface/datasets/8110/workflows/f059ba43-9154-4632-bebb-82318447ddc9/jobs/50010
Stack trace:
```
___________________ LocalMetricTest.test_load_metric_meteor ____________________
[gw1] linux -- Python 3.6.15 /home/circleci/.pye... | CLOSED | 2021-10-11T06:37:12 | 2021-10-11T07:30:31 | 2021-10-11T07:30:31 | https://github.com/huggingface/datasets/issues/3055 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps4866fp | 3,053 | load_dataset('the_pile_openwebtext2') produces ArrowInvalid, value too large to fit in C integer type | ## Describe the bug
When loading `the_pile_openwebtext2`, we get the error `pyarrow.lib.ArrowInvalid: Value 2111 too large to fit in C integer type`
## Steps to reproduce the bug
```python
import datasets
ds = datasets.load_dataset('the_pile_openwebtext2')
```
## Expected results
Should download the dataset... | CLOSED | 2021-10-10T19:55:21 | 2023-02-24T14:02:20 | 2023-02-24T14:02:20 | https://github.com/huggingface/datasets/issues/3053 | {
"login": "davidbau"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"I encountered the same bug using different datasets.\r\nany suggestions?",
"+1, can reproduce here!",
"I get the same error\r\nPlatform: Windows 10\r\nPython: python 3.8.8\r\nPyArrow: 5.0",
"I was getting a similar error `pyarrow.lib.ArrowInvalid: Integer value 528 not in range: -128 to 127` - AFAICT, this i... |
I_kwDODunzps486aJz | 3,052 | load_dataset cannot download the data and hangs on forever if cache dir specified | ## Describe the bug
After updating datasets, a code that ran just fine for ages began to fail. Specifying _datasets.load_dataset_'s _cache_dir_ optional argument on Windows 10 machine results in data download to hang on forever. Same call without cache_dir works just fine. Surprisingly exact same code just runs perfec... | CLOSED | 2021-10-10T10:31:36 | 2021-10-11T10:57:09 | 2021-10-11T10:56:36 | https://github.com/huggingface/datasets/issues/3052 | {
"login": "BenoitDalFerro"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Issue was environment inconsistency, updating packages did the trick\r\n\r\n`conda install -c huggingface -c conda-forge datasets`\r\n\r\n> Collecting package metadata (current_repodata.json): done\r\n> Solving environment: |\r\n> The environment is inconsistent, please check the package plan carefully\r\n> The fo... |
I_kwDODunzps486DpK | 3,051 | Non-Matching Checksum Error with crd3 dataset | ## Describe the bug
When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown.
## Steps to reproduce the bug
```python
dataset = load_dataset('crd3', split='train')
```
## Expected results
I expect no error to be thrown.
## Actual results
A non-matching checksum err... | CLOSED | 2021-10-10T01:32:43 | 2022-03-15T15:54:26 | 2022-03-15T15:54:26 | https://github.com/huggingface/datasets/issues/3051 | {
"login": "RylanSchaeffer"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"I got the same error for another dataset (`multi_woz_v22`):\r\n\r\n```\r\ndatasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:\r\n['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/... |
I_kwDODunzps485vkY | 3,049 | TimeoutError during streaming | ## Describe the bug
I got a TimeoutError after streaming for about 10h.
## Steps to reproduce the bug
Very long code but we could do a test of streaming indefinitely data, though error may take a while to appear.
## Expected results
This error was not expected in the code which considers only `ClientError` but... | CLOSED | 2021-10-09T18:06:51 | 2021-10-11T09:35:38 | 2021-10-11T09:35:38 | https://github.com/huggingface/datasets/issues/3049 | {
"login": "borisdayma"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps485ugd | 3,048 | Identify which shard data belongs to | **Is your feature request related to a problem? Please describe.**
I'm training on a large dataset made of multiple sub-datasets.
During training I can observe some jumps in loss which may correspond to different shards.
.
Create a dataset for masled-language modeling from the IMDB dataset.
```python
from datasets ... | CLOSED | 2021-10-08T18:23:11 | 2021-11-03T17:13:08 | 2021-11-03T17:13:08 | https://github.com/huggingface/datasets/issues/3047 | {
"login": "sgugger"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"This has been fixed in 1.15, let me know if you still have this issue"
] |
I_kwDODunzps482TyS | 3,044 | Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1` | ## Describe the bug
Caching does not work when using `Dataset.map()` with:
1. a function that cannot be deterministically fingerprinted
2. `num_proc>1`
3. using a custom fingerprint set with the argument `new_fingerprint`.
This means that the dataset will be mapped with the function for each and every call, w... | OPEN | 2021-10-08T09:07:10 | 2025-03-04T07:16:00 | null | https://github.com/huggingface/datasets/issues/3044 | {
"login": "vlievin"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Following the discussion in #3045 if would be nice to have a way to let users have a nice experience with caching even if the function is not hashable.\r\n\r\nCurrently a workaround is to make the function picklable. This can be done by implementing a callable class instead, that can be pickled using by implementi... |
I_kwDODunzps48z8_S | 3,043 | Add PASS dataset | ## Adding a Dataset
- **Name:** PASS
- **Description:** An ImageNet replacement for self-supervised pretraining without humans
- **Data:** https://www.robots.ox.ac.uk/~vgg/research/pass/ https://github.com/yukimasano/PASS
Instructions to add a new dataset can be found [here](https://github.com/huggingface/dataset... | CLOSED | 2021-10-07T16:43:43 | 2022-01-20T16:50:47 | 2022-01-20T16:50:47 | https://github.com/huggingface/datasets/issues/3043 | {
"login": "osanseviero"
} | {
"nodes": [
{
"name": "dataset request"
},
{
"name": "vision"
}
]
} | [] |
I_kwDODunzps48uWML | 3,040 | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset | ## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very... | CLOSED | 2021-10-06T17:08:47 | 2021-11-02T15:41:08 | 2021-11-02T15:41:08 | https://github.com/huggingface/datasets/issues/3040 | {
"login": "patrickvonplaten"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi,\r\n\r\nthe `save_to_disk` docstring explains that `flatten_indices` has to be called on a dataset before saving it to save only the shard/slice of the dataset.",
"That works! Thansk!\r\n\r\nMight be worth doing that automatically actually in case the `save_to_disk` is called on a dataset that has an indices ... |
I_kwDODunzps48qK-I | 3,036 | Protect master branch to force contributions via Pull Requests | In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed.
- The Pull Request allows to give context, discuss any potential issues and improve the quality of the contribution
- The Pull... | CLOSED | 2021-10-06T07:34:17 | 2021-10-07T06:51:47 | 2021-10-07T06:49:52 | https://github.com/huggingface/datasets/issues/3036 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"It would be nice to protect the master from direct commits, but still having a way to merge our own PRs when no review is required (for example when updating a dataset_infos.json file, or minor bug fixes - things that happen quite often actually).\r\nDo you know if there's a way ?",
"you can if you're an admin o... |
I_kwDODunzps48mq4X | 3,035 | `load_dataset` does not work with uploaded arrow file | ## Describe the bug
I've preprocessed and uploaded a dataset here: https://huggingface.co/datasets/ami-wav2vec2/ami_headset_single_preprocessed . The dataset is in `.arrow` format.
The dataset can correctly be loaded when doing:
```bash
git lfs install
git clone https://huggingface.co/datasets/ami-wav2vec2/a... | OPEN | 2021-10-05T20:15:10 | 2021-10-06T17:01:37 | null | https://github.com/huggingface/datasets/issues/3035 | {
"login": "patrickvonplaten"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"Hi ! This is not a bug, this is simply not implemented.\r\n`save_to_disk` is for on-disk serialization and was not made compatible for the Hub.\r\nThat being said, I agree we actually should make it work with the Hub x)",
"cc @LysandreJik maybe we can solve this at the same time as adding `push_to_hub`"
] |
I_kwDODunzps48moOi | 3,034 | Errors loading dataset using fs = a gcsfs.GCSFileSystem | ## Describe the bug
Cannot load dataset using a `gcsfs.GCSFileSystem`. I'm not sure if this should be a bug in `gcsfs` or here...
Basically what seems to be happening is that since datasets saves datasets as folders and folders aren't "real objects" in gcs, gcsfs raises a 404 error. There are workarounds if you... | OPEN | 2021-10-05T20:07:08 | 2021-10-05T20:26:39 | null | https://github.com/huggingface/datasets/issues/3034 | {
"login": "dconatha"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps48lmIb | 3,032 | Error when loading private dataset with "data_files" arg | ## Describe the bug
A clear and concise description of what the bug is.
Private datasets with no loading script can't be loaded using `data_files` parameter.
## Steps to reproduce the bug
```python
from datasets import load_dataset
data_files = {"train": "**/train/*/*.jsonl", "valid": "**/valid/*/*.jsonl"}
d... | CLOSED | 2021-10-05T15:46:27 | 2021-10-12T15:26:22 | 2021-10-12T15:25:46 | https://github.com/huggingface/datasets/issues/3032 | {
"login": "borisdayma"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"We'll do a release tomorrow or on wednesday to make the fix available :)\r\n\r\nThanks for reproting !"
] |
I_kwDODunzps48kThl | 3,027 | Resolve data_files by split name | This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example:
```python
load_dataset("lhoestq/demo1")
```
should return two splits "train" and "test" since the dataset repostiory is like
```
data/
├── train.csv
└── test.csv
```
Currently it returns ... | CLOSED | 2021-10-05T10:24:36 | 2021-11-05T17:49:58 | 2021-11-05T17:49:57 | https://github.com/huggingface/datasets/issues/3027 | {
"login": "lhoestq"
} | {
"nodes": []
} | [
"Awesome @lhoestq I like the proposal and it works great on my JSON community dataset. Here is the [log](https://gist.github.com/vblagoje/714babc325bcbdd5de579fd8e1648892). ",
"From my discussion with @borisdayma it would be more general the files match if their paths contains the split name - not only if the fil... |
I_kwDODunzps48j7yv | 3,024 | Windows test suite fails | ## Describe the bug
There is an error during installation of tests dependencies for Windows: https://app.circleci.com/pipelines/github/huggingface/datasets/7981/workflows/9b6a0114-2b8e-4069-94e5-e844dbbdba4e/jobs/49206
```
ERROR: Cannot uninstall 'ruamel-yaml'. It is a distutils installed project and thus we can... | CLOSED | 2021-10-05T08:46:46 | 2021-10-05T09:58:27 | 2021-10-05T09:58:27 | https://github.com/huggingface/datasets/issues/3024 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps48hG4F | 3,018 | Support multiple zipped CSV data files | As requested by @lewtun, support loading multiple zipped CSV data files.
```python
from datasets import load_dataset
url = "https://domain.org/filename.zip"
data_files = {"train": "train_filename.csv", "test": "test_filename.csv"}
dataset = load_dataset("csv", data_dir=url, data_files=data_files)
```
| OPEN | 2021-10-04T15:16:59 | 2021-10-05T14:32:57 | null | https://github.com/huggingface/datasets/issues/3018 | {
"login": "albertvillanova"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"@lhoestq I would like to draw your attention to the proposed API by @lewtun, using `data_dir` to pass the ZIP URL.\r\n\r\nI'm not totally convinced with this... What do you think?\r\n\r\nMaybe we could discuss other approaches...\r\n\r\nOne brainstorming idea: what about using URL chaining with the hop operator in... |
I_kwDODunzps48fxEj | 3,013 | Improve `get_dataset_infos`? | Using the dedicated function `get_dataset_infos` on a dataset that has no dataset-info.json file returns an empty info:
```
>>> from datasets import get_dataset_infos
>>> get_dataset_infos('wit')
{}
```
While it's totally possible to get it (regenerate it) with:
```
>>> from datasets import load_dataset_b... | CLOSED | 2021-10-04T09:47:04 | 2022-02-21T15:57:10 | 2022-02-21T15:57:10 | https://github.com/huggingface/datasets/issues/3013 | {
"login": "severo"
} | {
"nodes": [
{
"name": "question"
},
{
"name": "dataset-viewer"
}
]
} | [
"To keeps things simple maybe we should use `load_dataset_builder` in `get_dataset_infos`.\r\n`load_dataset_builder` instantiates a builder and runs the _infos() method in order to give you the most up-to-date infos, even if the dataset_infos.json is outdated or missing."
] |
I_kwDODunzps48frCh | 3,011 | load_dataset_builder should error if "name" does not exist? | ```
import datasets as ds
builder = ds.load_dataset_builder('sent_comp', name="doesnotexist")
builder.info.config_name
```
returns
```
'doesnotexist'
```
Shouldn't it raise an error instead?
For this dataset, the only valid values for `name` should be: `"default"` or `None` (ie. argument not passed) | OPEN | 2021-10-04T09:20:46 | 2022-09-20T13:05:07 | null | https://github.com/huggingface/datasets/issues/3011 | {
"login": "severo"
} | {
"nodes": [
{
"name": "bug"
},
{
"name": "dataset-viewer"
}
]
} | [
"Yes I think it should raise an error. Currently it looks like it instantiates a custom configuration with the name given by the user:\r\nhttps://github.com/huggingface/datasets/blob/ba27ce33bf568374cf23a07669fdd875b5718bc2/src/datasets/builder.py#L391-L397"
] |
I_kwDODunzps48fm1G | 3,010 | Chain filtering is leaking | ## Describe the bug
As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'.
These samples show that filtering behavior diverges from what's expected when chaining filterings.
On sample 2 the second... | CLOSED | 2021-10-04T09:04:55 | 2022-06-01T17:36:44 | 2022-06-01T17:36:44 | https://github.com/huggingface/datasets/issues/3010 | {
"login": "DrMatters"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"### Update:\r\nI wrote a bit cleaner code snippet (without transforming to json) that can expose leaking.\r\n```python\r\nimport datasets\r\nimport json\r\n\r\nitems = ['ab', 'c', 'df']\r\n\r\nds = datasets.Dataset.from_dict({'col': items})\r\nprint(list(ds))\r\n# > Prints: [{'col': 'ab'}, {'col': 'c'}, {'col': 'd... |
I_kwDODunzps48ec18 | 3,005 | DatasetDict.filter and Dataset.filter crashes with any "fn_kwargs" argument | ## Describe the bug
The ".filter" method of DatasetDict or Dataset objects fails when passing any "fn_kwargs" argument
## Steps to reproduce the bug
```python
import datasets
example_dataset = datasets.Dataset.from_dict({"a": {1, 2, 3, 4}})
def filter_value(example, value):
return example['a'] == value... | CLOSED | 2021-10-04T00:49:29 | 2021-10-11T10:18:01 | 2021-10-04T08:46:13 | https://github.com/huggingface/datasets/issues/3005 | {
"login": "DrMatters"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @DrMatters, thanks for reporting.\r\n\r\nThis issue was fixed 14 days ago: #2950.\r\n\r\nCurrently, the fix is only in the master branch and will be made available in our next library release.\r\n\r\nIn the meantime, you can incorporate the fix by installing datasets from the master branch:\r\n```shell\r\npip i... |
I_kwDODunzps48ZtfH | 2,998 | cannot shuffle dataset loaded from disk | ## Describe the bug
dataset loaded from disk cannot be shuffled.
## Steps to reproduce the bug
```
my_dataset = load_from_disk('s3://my_file/validate', fs=s3)
sample = my_dataset.select(range(100)).shuffle(seed=1234)
```
## Actual results
```
sample = my_dataset .select(range(100)).shuffle(seed=1234)
... | OPEN | 2021-10-01T13:49:52 | 2021-10-01T13:49:52 | null | https://github.com/huggingface/datasets/issues/2998 | {
"login": "pya25"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [] |
I_kwDODunzps48ZUY1 | 2,997 | Dataset has incorrect labels | The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached:
.\r\n\r\nPlease, update `datasets` with: `pip install -U datasets`",
"Thanks. Please note that the dataset explorer (https://huggingface.co/datasets/viewer/?dataset=tur... |
I_kwDODunzps48XJ3J | 2,993 | Can't download `trivia_qa/unfiltered` | ## Describe the bug
For some reason, I can't download `trivia_qa/unfilted`. A file seems to be missing... I am able to see it fine though the viewer tough...
## Steps to reproduce the bug
```python
>>> from datasets import load_dataset
>>> load_dataset("trivia_qa", "unfiltered")
Downloading and preparing data... | CLOSED | 2021-09-30T23:00:18 | 2021-10-01T19:07:23 | 2021-10-01T19:07:22 | https://github.com/huggingface/datasets/issues/2993 | {
"login": "VictorSanh"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"wooo that was fast! thank you @lhoestq !\r\nit is able to process now, though it's ignoring all files and ending up with 0 examples now haha :/\r\n\r\nFor subset \"unfiltered\":\r\n```python\r\n>>> load_dataset(\"trivia_qa\", \"unfiltered\")\r\nDownloading and preparing dataset trivia_qa/unfiltered (download: 3.07... |
I_kwDODunzps48VI_n | 2,991 | add docmentation for the `Unix style pattern` matching feature that can be leverage for `data_files` into `load_dataset` | Unless I'm mistaken, it seems that in the new documentation it is no longer mentioned that you can use Unix style pattern matching in the `data_files` argument of the `load_dataset` method.
This feature was mentioned [here](https://huggingface.co/docs/datasets/loading_datasets.html#from-a-community-dataset-on-the-h... | OPEN | 2021-09-30T13:22:01 | 2021-09-30T13:22:01 | null | https://github.com/huggingface/datasets/issues/2991 | {
"login": "SaulLu"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [] |
I_kwDODunzps48ROTx | 2,988 | IndexError: Invalid key: 14 is out of bounds for size 0 | ## Describe the bug
A clear and concise description of what the bug is.
Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor... | CLOSED | 2021-09-29T16:04:24 | 2022-04-10T14:49:49 | 2022-04-10T14:49:49 | https://github.com/huggingface/datasets/issues/2988 | {
"login": "dorost1234"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi ! Could you check the length of the `self.dataset` object (i.e. the Dataset object passed to the data loader) ? It looks like the dataset is empty.\r\nNot sure why the SWA optimizer would cause this though.",
"Any updates on this? \r\nThe same error occurred to me too when running `cardiffnlp/twitter-roberta-... |
I_kwDODunzps48Qwjd | 2,987 | ArrowInvalid: Can only convert 1-dimensional array values | ## Describe the bug
For the ViT and LayoutLMv2 demo notebooks in my [Transformers-Tutorials repo](https://github.com/NielsRogge/Transformers-Tutorials), people reported an ArrowInvalid issue after applying the following function to a Dataset:
```
def preprocess_data(examples):
images = [Image.open(path).conve... | CLOSED | 2021-09-29T14:18:52 | 2021-10-01T13:57:45 | 2021-10-01T13:57:45 | https://github.com/huggingface/datasets/issues/2987 | {
"login": "NielsRogge"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @NielsRogge, thanks for reporting!\r\n\r\nIn `datasets`, we were handling N-dimensional arrays only when passed as an instance of `np.array`, not when passed as a list of `np.array`s.\r\n\r\nI'm fixing it."
] |
I_kwDODunzps48OsRm | 2,984 | Exceeded maximum rows when reading large files | ## Describe the bug
A clear and concise description of what the bug is.
When using `load_dataset` with json files, if the files are too large, there will be "Exceeded maximum rows" error.
## Steps to reproduce the bug
```python
dataset = load_dataset('json', data_files=data_files) # data files have 3M rows in a ... | CLOSED | 2021-09-29T04:49:22 | 2021-10-12T06:05:42 | 2021-10-12T06:05:42 | https://github.com/huggingface/datasets/issues/2984 | {
"login": "zijwang"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @zijwang, thanks for reporting this issue.\r\n\r\nYou did not mention which `datasets` version you are using, but looking at the code in the stack trace, it seems you are using an old version.\r\n\r\nCould you please update `datasets` (`pip install -U datasets`) and check if the problem persists?"
] |
I_kwDODunzps48MXJK | 2,980 | OpenSLR 25: ASR data for Amharic, Swahili and Wolof | ## Adding a Dataset
- **Name:** *SLR25*
- **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data*
- **Paper:** *https://www.openslr.org/25/ has citations for each of the three subsubsets. *
- **Data:** *Currently ... | OPEN | 2021-09-28T15:04:36 | 2021-09-29T17:25:14 | null | https://github.com/huggingface/datasets/issues/2980 | {
"login": "cdleong"
} | {
"nodes": [
{
"name": "dataset request"
}
]
} | [
"Whoever handles this just needs to: \r\n\r\n- [ ] fork the HuggingFace Datasets repo\r\n- [ ] update the [existing dataset script](https://github.com/huggingface/datasets/blob/master/datasets/openslr/openslr.py) to add SLR25. Lots of copypasting from other sections of the script should make that easy. \r\nAmharic ... |
I_kwDODunzps48Lctj | 2,979 | ValueError when computing f1 metric with average None | ## Describe the bug
When I try to compute the f1 score for each class in a multiclass classification problem, I get a ValueError. The same happens with recall and precision. I traced the error to the `.item()` in these scripts, which is probably there for the other averages. E.g. from f1.py:
```python
return {
... | CLOSED | 2021-09-28T11:34:53 | 2021-10-01T14:17:38 | 2021-10-01T14:17:38 | https://github.com/huggingface/datasets/issues/2979 | {
"login": "asofiaoliveira"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @asofiaoliveira, thanks for reporting.\r\n\r\nI'm fixing it."
] |
I_kwDODunzps48LBML | 2,978 | Run CI tests against non-production server | Currently, the CI test suite performs requests to the HF production server.
As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`. | OPEN | 2021-09-28T09:41:26 | 2021-09-28T15:23:50 | null | https://github.com/huggingface/datasets/issues/2978 | {
"login": "albertvillanova"
} | {
"nodes": []
} | [
"Hey @albertvillanova could you provide more context, including extracts from the discussion we had ?\r\n\r\nLet's ping @Pierrci @julien-c and @n1t0 for their opinion about that",
"@julien-c increased the huggingface.co production workers in order to see if it solve [the 502 you had this morning](https://app.circ... |
I_kwDODunzps48KeWE | 2,977 | Impossible to load compressed csv | ## Describe the bug
It is not possible to load from a compressed csv anymore.
## Steps to reproduce the bug
```python
load_dataset('csv', data_files=['/path/to/csv.bz2'])
```
## Problem and possible solution
This used to work, but the commit that broke it is [this one](https://github.com/huggingface/datasets... | CLOSED | 2021-09-28T07:18:54 | 2021-10-01T15:53:16 | 2021-10-01T15:53:15 | https://github.com/huggingface/datasets/issues/2977 | {
"login": "Valahaar"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @Valahaar, thanks for reporting and for your investigation about the source cause.\r\n\r\nYou are right and that commit prevents `pandas` from inferring the compression. On the other hand, @lhoestq did that change to support loading that dataset in streaming mode. \r\n\r\nI'm fixing it."
] |
I_kwDODunzps48Hr7R | 2,976 | Can't load dataset | I'm trying to load a wikitext dataset
```
from datasets import load_dataset
raw_datasets = load_dataset("wikitext")
```
ValueError: Config name is missing.
Please pick one among the available configs: ['wikitext-103-raw-v1', 'wikitext-2-raw-v1', 'wikitext-103-v1', 'wikitext-2-v1']
Example of usage:
`load_d... | CLOSED | 2021-09-27T21:38:14 | 2024-04-08T03:27:29 | 2021-09-28T06:53:01 | https://github.com/huggingface/datasets/issues/2976 | {
"login": "mskovalova"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Hi @mskovalova, \r\n\r\nSome datasets have multiple configurations. Therefore, in order to load them, you have to specify both the *dataset name* and the *configuration name*.\r\n\r\nIn the error message you got, you have a usage example:\r\n- To load the 'wikitext-103-raw-v1' configuration of the 'wikitext' datas... |
I_kwDODunzps48EfDK | 2,972 | OSError: Not enough disk space. | ## Describe the bug
I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of root `/` disk having no enough spac... | CLOSED | 2021-09-27T07:41:22 | 2024-12-04T02:56:19 | 2021-09-28T06:43:15 | https://github.com/huggingface/datasets/issues/2972 | {
"login": "qqaatw"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Maybe we can change the disk space calculating API from `shutil.disk_usage` to `os.statvfs` in UNIX-like system, which can provide correct results.\r\n```\r\nstatvfs = os.statvfs('path')\r\navail_space_bytes = statvfs.f_frsize * statvfs.f_bavail\r\n```",
"Hi @qqaatw, thanks for reporting.\r\n\r\nCould you pleas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.