url
stringlengths
58
61
number
int64
1
8.23k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
created_at
timestamp[s]date
2020-04-14 10:18:02
2026-05-30 09:38:59
comments_url
stringlengths
67
70
pull_request
dict
is_pull_request
bool
2 classes
text
stringlengths
2
228k
comments
listlengths
0
30
https://api.github.com/repos/huggingface/datasets/issues/3776
3,776
Allow download only some files from the Wikipedia dataset
**Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory (e.g. 32gb). **Describe the solution you'd like** I...
open
2022-02-22T13:46:41
https://api.github.com/repos/huggingface/datasets/issues/3776/comments
null
false
Allow download only some files from the Wikipedia dataset **Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory...
[ "Hi @jvanz, thank you for your proposal.\r\n\r\nIn fact, we are aware that it is very common the problem you mention. Because of that, we are currently working in implementing a new version of wikipedia on the Hub, with all data preprocessed (no need to use Apache Beam), from where you will be able to use `data_fil...
https://api.github.com/repos/huggingface/datasets/issues/3775
3,775
Update gigaword card and info
Reported on the forum: https://discuss.huggingface.co/t/error-loading-dataset/14999
closed
2022-02-22T12:27:16
https://api.github.com/repos/huggingface/datasets/issues/3775/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3775", "html_url": "https://github.com/huggingface/datasets/pull/3775", "diff_url": "https://github.com/huggingface/datasets/pull/3775.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3775.patch", "merged_at": "2022-02-28T11:35...
true
Update gigaword card and info Reported on the forum: https://discuss.huggingface.co/t/error-loading-dataset/14999
[ "I think it actually comes from an issue here:\r\n\r\nhttps://github.com/huggingface/datasets/blob/810b12f763f5cf02f2e43565b8890d278b7398cd/src/datasets/utils/file_utils.py#L575-L579\r\n\r\nand \r\n\r\nhttps://github.com/huggingface/datasets/blob/810b12f763f5cf02f2e43565b8890d278b7398cd/src/datasets/utils/streaming...
https://api.github.com/repos/huggingface/datasets/issues/3774
3,774
Fix reddit_tifu data URL
Fix #3773.
closed
2022-02-22T12:21:15
https://api.github.com/repos/huggingface/datasets/issues/3774/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3774", "html_url": "https://github.com/huggingface/datasets/pull/3774", "diff_url": "https://github.com/huggingface/datasets/pull/3774.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3774.patch", "merged_at": "2022-02-22T12:38...
true
Fix reddit_tifu data URL Fix #3773.
[]
https://api.github.com/repos/huggingface/datasets/issues/3773
3,773
Checksum mismatch for the reddit_tifu dataset
## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "...
closed
2022-02-22T10:57:07
https://api.github.com/repos/huggingface/datasets/issues/3773/comments
null
false
Checksum mismatch for the reddit_tifu dataset ## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and ...
[ "Thanks for reporting, @anna-kay. We are fixing it.", "@albertvillanova Thank you for the fast response! However I am still getting the same error:\r\n\r\nDownloading: 2.23kB [00:00, ?B/s]\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\Anna\\PycharmProjects\\summarization\\main.py\", line 17, in <mo...
https://api.github.com/repos/huggingface/datasets/issues/3772
3,772
Fix: dataset name is stored in keys
null
closed
2022-02-22T10:20:37
https://api.github.com/repos/huggingface/datasets/issues/3772/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3772", "html_url": "https://github.com/huggingface/datasets/pull/3772", "diff_url": "https://github.com/huggingface/datasets/pull/3772.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3772.patch", "merged_at": "2022-02-22T11:08...
true
Fix: dataset name is stored in keys
[]
https://api.github.com/repos/huggingface/datasets/issues/3771
3,771
Fix DuplicatedKeysError on msr_sqa dataset
Fix #3770.
closed
2022-02-22T07:44:24
https://api.github.com/repos/huggingface/datasets/issues/3771/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3771", "html_url": "https://github.com/huggingface/datasets/pull/3771", "diff_url": "https://github.com/huggingface/datasets/pull/3771.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3771.patch", "merged_at": "2022-02-22T08:12...
true
Fix DuplicatedKeysError on msr_sqa dataset Fix #3770.
[]
https://api.github.com/repos/huggingface/datasets/issues/3770
3,770
DuplicatedKeysError on msr_sqa dataset
### Describe the bug Failure to generate dataset msr_sqa because of duplicate keys. ### Steps to reproduce the bug ``` from datasets import load_dataset load_dataset("msr_sqa") ``` ### Expected results The examples keys should be unique. **Actual results** ``` >>> load_dataset("msr_sqa") Downloading: 6...
closed
2022-02-22T00:43:33
https://api.github.com/repos/huggingface/datasets/issues/3770/comments
null
false
DuplicatedKeysError on msr_sqa dataset ### Describe the bug Failure to generate dataset msr_sqa because of duplicate keys. ### Steps to reproduce the bug ``` from datasets import load_dataset load_dataset("msr_sqa") ``` ### Expected results The examples keys should be unique. **Actual results** ``` >>> l...
[ "Thanks for reporting, @kolk.\r\n\r\nWe are fixing it. " ]
https://api.github.com/repos/huggingface/datasets/issues/3769
3,769
`dataset = dataset.map()` causes faiss index lost
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddin...
open
2022-02-21T21:59:23
https://api.github.com/repos/huggingface/datasets/issues/3769/comments
null
false
`dataset = dataset.map()` causes faiss index lost ## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embed...
[ "Hi ! Indeed `map` is dropping the index right now, because one can create a dataset with more or fewer rows using `map` (and therefore the index might not be relevant anymore)\r\n\r\nI guess we could check the resulting dataset length, and if the user hasn't changed the dataset size we could keep the index, what d...
https://api.github.com/repos/huggingface/datasets/issues/3768
3,768
Fix HfFileSystem docstring
null
closed
2022-02-21T18:14:40
https://api.github.com/repos/huggingface/datasets/issues/3768/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3768", "html_url": "https://github.com/huggingface/datasets/pull/3768", "diff_url": "https://github.com/huggingface/datasets/pull/3768.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3768.patch", "merged_at": "2022-02-22T09:13...
true
Fix HfFileSystem docstring
[]
https://api.github.com/repos/huggingface/datasets/issues/3767
3,767
Expose method and fix param
A fix + expose a new method, following https://github.com/huggingface/datasets/pull/3670
closed
2022-02-21T16:57:47
https://api.github.com/repos/huggingface/datasets/issues/3767/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3767", "html_url": "https://github.com/huggingface/datasets/pull/3767", "diff_url": "https://github.com/huggingface/datasets/pull/3767.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3767.patch", "merged_at": "2022-02-22T08:35...
true
Expose method and fix param A fix + expose a new method, following https://github.com/huggingface/datasets/pull/3670
[]
https://api.github.com/repos/huggingface/datasets/issues/3766
3,766
Fix head_qa data URL
Fix #3758.
closed
2022-02-21T13:52:50
https://api.github.com/repos/huggingface/datasets/issues/3766/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3766", "html_url": "https://github.com/huggingface/datasets/pull/3766", "diff_url": "https://github.com/huggingface/datasets/pull/3766.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3766.patch", "merged_at": "2022-02-21T14:39...
true
Fix head_qa data URL Fix #3758.
[]
https://api.github.com/repos/huggingface/datasets/issues/3765
3,765
Update URL for tagging app
This PR updates the URL for the tagging app to be the one on Spaces.
closed
2022-02-20T20:34:31
https://api.github.com/repos/huggingface/datasets/issues/3765/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3765", "html_url": "https://github.com/huggingface/datasets/pull/3765", "diff_url": "https://github.com/huggingface/datasets/pull/3765.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3765.patch", "merged_at": null }
true
Update URL for tagging app This PR updates the URL for the tagging app to be the one on Spaces.
[ "Oh, this URL shouldn't be updated to the tagging app as it's actually used for creating the README - closing this." ]
https://api.github.com/repos/huggingface/datasets/issues/3764
3,764
!
## Dataset viewer issue for '*name of the dataset*' **Link:** *link to the dataset viewer page* *short description of the issue* Am I the one who added this dataset ? Yes-No
closed
2022-02-20T19:05:43
https://api.github.com/repos/huggingface/datasets/issues/3764/comments
null
false
! ## Dataset viewer issue for '*name of the dataset*' **Link:** *link to the dataset viewer page* *short description of the issue* Am I the one who added this dataset ? Yes-No
[]
https://api.github.com/repos/huggingface/datasets/issues/3763
3,763
It's not possible download `20200501.pt` dataset
## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect t...
closed
2022-02-20T18:34:58
https://api.github.com/repos/huggingface/datasets/issues/3763/comments
null
false
It's not possible download `20200501.pt` dataset ## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='Direc...
[ "Hi @jvanz, thanks for reporting.\r\n\r\nPlease note that Wikimedia website does not longer host Wikipedia dumps for so old dates.\r\n\r\nFor a list of accessible dump dates of `pt` Wikipedia, please see: https://dumps.wikimedia.org/ptwiki/\r\n\r\nYou can load for example `20220220` `pt` Wikipedia:\r\n```python\r\n...
https://api.github.com/repos/huggingface/datasets/issues/3762
3,762
`Dataset.class_encode` should support custom class names
I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/sr...
closed
2022-02-19T21:21:45
https://api.github.com/repos/huggingface/datasets/issues/3762/comments
null
false
`Dataset.class_encode` should support custom class names I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing...
[ "Hi @Dref360, thanks a lot for your proposal.\r\n\r\nIt totally makes sense to have more flexibility when class encoding, I agree.\r\n\r\nYou could even further customize the class encoding by passing an instance of `ClassLabel` itself (instead of replicating `ClassLabel` instantiation arguments as `Dataset.class_e...
https://api.github.com/repos/huggingface/datasets/issues/3761
3,761
Know your data for HF hub
**Is your feature request related to a problem? Please describe.** Would be great to see be able to understand datasets with the goal of improving data quality, and helping mitigate fairness and bias issues. **Describe the solution you'd like** Something like https://knowyourdata.withgoogle.com/ for HF hub
closed
2022-02-19T19:48:47
https://api.github.com/repos/huggingface/datasets/issues/3761/comments
null
false
Know your data for HF hub **Is your feature request related to a problem? Please describe.** Would be great to see be able to understand datasets with the goal of improving data quality, and helping mitigate fairness and bias issues. **Describe the solution you'd like** Something like https://knowyourdata.withgoo...
[ "Hi @Muhtasham you should take a look at https://huggingface.co/blog/data-measurements-tool and accompanying demo app at https://huggingface.co/spaces/huggingface/data-measurements-tool\r\n\r\nWe would be interested in your feedback. cc @meg-huggingface @sashavor @yjernite " ]
https://api.github.com/repos/huggingface/datasets/issues/3760
3,760
Unable to view the Gradio flagged call back dataset
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://h...
closed
2022-02-19T17:45:08
https://api.github.com/repos/huggingface/datasets/issues/3760/comments
null
false
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset...
[ "Hi @kingabzpro.\r\n\r\nI think you need to create a loading script that creates the dataset from the CSV file and the image paths.\r\n\r\nAs example, you could have a look at the Food-101 dataset: https://huggingface.co/datasets/food101\r\n- Loading script: https://huggingface.co/datasets/food101/blob/main/food101...
https://api.github.com/repos/huggingface/datasets/issues/3759
3,759
Rename GenerateMode to DownloadMode
This PR: - Renames `GenerateMode` to `DownloadMode` - Implements `DeprecatedEnum` - Deprecates `GenerateMode` Close #769.
closed
2022-02-18T16:53:53
https://api.github.com/repos/huggingface/datasets/issues/3759/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3759", "html_url": "https://github.com/huggingface/datasets/pull/3759", "diff_url": "https://github.com/huggingface/datasets/pull/3759.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3759.patch", "merged_at": "2022-02-22T12:22...
true
Rename GenerateMode to DownloadMode This PR: - Renames `GenerateMode` to `DownloadMode` - Implements `DeprecatedEnum` - Deprecates `GenerateMode` Close #769.
[ "Thanks! Used here: https://github.com/huggingface/datasets-preview-backend/blob/main/src/datasets_preview_backend/models/dataset.py#L26 :) " ]
https://api.github.com/repos/huggingface/datasets/issues/3758
3,758
head_qa file missing
## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="en") ``` ## Expec...
closed
2022-02-18T16:32:43
https://api.github.com/repos/huggingface/datasets/issues/3758/comments
null
false
head_qa file missing ## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="...
[ "We usually find issues with files hosted at Google Drive...\r\n\r\nIn this case we download the Google Drive Virus scan warning instead of the data file.", "Fixed: https://huggingface.co/datasets/head_qa/viewer/en/train. Thanks\r\n\r\n<img width=\"1551\" alt=\"Capture d’écran 2022-02-28 à 15 29 04\" src=\"http...
https://api.github.com/repos/huggingface/datasets/issues/3757
3,757
Add perplexity to metrics
Adding perplexity metric This code differs from the code in [this](https://huggingface.co/docs/transformers/perplexity) HF blog post because the blogpost code fails in at least the following circumstances: - returns nans whenever the stride = 1 - hits a runtime error when the stride is significantly larger than th...
closed
2022-02-18T15:52:23
https://api.github.com/repos/huggingface/datasets/issues/3757/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3757", "html_url": "https://github.com/huggingface/datasets/pull/3757", "diff_url": "https://github.com/huggingface/datasets/pull/3757.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3757.patch", "merged_at": "2022-02-25T17:13...
true
Add perplexity to metrics Adding perplexity metric This code differs from the code in [this](https://huggingface.co/docs/transformers/perplexity) HF blog post because the blogpost code fails in at least the following circumstances: - returns nans whenever the stride = 1 - hits a runtime error when the stride is si...
[ "Awesome thank you ! The implementation of the parent `Metric` class was assuming that all metrics were supposed to have references/predictions pairs - I just changed that so you don't have to override `compute()`. I took the liberty of doing the changes directly inside this PR to make sure it works as expected wit...
https://api.github.com/repos/huggingface/datasets/issues/3756
3,756
Images get decoded when using `map()` with `input_columns` argument on a dataset
## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image ...
closed
2022-02-18T15:35:38
https://api.github.com/repos/huggingface/datasets/issues/3756/comments
null
false
Images get decoded when using `map()` with `input_columns` argument on a dataset ## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()`...
[ "Hi! If I'm not mistaken, this behavior is intentional, but I agree it could be more intuitive.\r\n\r\n@albertvillanova Do you remember why you decided not to decode columns in the `Audio` feature PR when `input_columns` is not `None`? IMO we should decode those columns, and we don't even have to use lazy structure...
https://api.github.com/repos/huggingface/datasets/issues/3755
3,755
Cannot preview dataset
## Dataset viewer issue for '*rubrix/news*' **Link:https://huggingface.co/datasets/rubrix/news** *link to the dataset viewer page* Cannot see the dataset preview: ``` Status code: 400 Exception: Status400Error Message: Not found. Cache is waiting to be refreshed. ``` Am I the one who added thi...
closed
2022-02-18T13:06:45
https://api.github.com/repos/huggingface/datasets/issues/3755/comments
null
false
Cannot preview dataset ## Dataset viewer issue for '*rubrix/news*' **Link:https://huggingface.co/datasets/rubrix/news** *link to the dataset viewer page* Cannot see the dataset preview: ``` Status code: 400 Exception: Status400Error Message: Not found. Cache is waiting to be refreshed. ``` Am ...
[ "Thanks for reporting. The dataset viewer depends on some backend treatments, and for now, they might take some hours to get processed. We're working on improving it.", "It has finally been processed. Thanks for the patience.", "Thanks for the info @severo !" ]
https://api.github.com/repos/huggingface/datasets/issues/3754
3,754
Overflowing indices in `select`
## Describe the bug The `Dataset.select` function seems to accept indices that are larger than the dataset size and seems to effectively use `index %len(ds)`. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"test": [1,2,3]}) ds = ds.select(range(5)) print(ds) p...
closed
2022-02-18T11:30:52
https://api.github.com/repos/huggingface/datasets/issues/3754/comments
null
false
Overflowing indices in `select` ## Describe the bug The `Dataset.select` function seems to accept indices that are larger than the dataset size and seems to effectively use `index %len(ds)`. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"test": [1,2,3]}) ds = ds....
[ "Fixed on master (see https://github.com/huggingface/datasets/pull/3719).", "Awesome, I did not find that one! Thanks." ]
https://api.github.com/repos/huggingface/datasets/issues/3753
3,753
Expanding streaming capabilities
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific li...
open
2022-02-18T10:45:41
https://api.github.com/repos/huggingface/datasets/issues/3753/comments
null
false
Expanding streaming capabilities Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages -...
[ "Related to: https://github.com/huggingface/datasets/issues/3444", "Cool ! `filter` will be very useful. There can be a filter that you can apply on a streaming dataset:\r\n```python\r\nload_dataset(..., streaming=True).filter(lambda x: x[\"lang\"] == \"sw\")\r\n```\r\n\r\nOtherwise if you want to apply a filter ...
https://api.github.com/repos/huggingface/datasets/issues/3752
3,752
Update metadata JSON for cats_vs_dogs dataset
Note that the number of examples in the train split was already fixed in the dataset card. Fix #3750.
closed
2022-02-18T08:32:53
https://api.github.com/repos/huggingface/datasets/issues/3752/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3752", "html_url": "https://github.com/huggingface/datasets/pull/3752", "diff_url": "https://github.com/huggingface/datasets/pull/3752.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3752.patch", "merged_at": "2022-02-18T14:56...
true
Update metadata JSON for cats_vs_dogs dataset Note that the number of examples in the train split was already fixed in the dataset card. Fix #3750.
[]
https://api.github.com/repos/huggingface/datasets/issues/3751
3,751
Fix typo in train split name
In the README guide (and consequently in many datasets) there was a typo in the train split name: ``` | Tain | Valid | Test | ``` This PR: - fixes the typo in the train split name - fixes the column alignment of the split tables in the README guide and in all datasets.
closed
2022-02-18T08:18:04
https://api.github.com/repos/huggingface/datasets/issues/3751/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3751", "html_url": "https://github.com/huggingface/datasets/pull/3751", "diff_url": "https://github.com/huggingface/datasets/pull/3751.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3751.patch", "merged_at": "2022-02-18T14:28...
true
Fix typo in train split name In the README guide (and consequently in many datasets) there was a typo in the train split name: ``` | Tain | Valid | Test | ``` This PR: - fixes the typo in the train split name - fixes the column alignment of the split tables in the README guide and in all datasets.
[]
https://api.github.com/repos/huggingface/datasets/issues/3750
3,750
`NonMatchingSplitsSizesError` for cats_vs_dogs dataset
## Describe the bug Cannot download cats_vs_dogs dataset due to `NonMatchingSplitsSizesError`. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("cats_vs_dogs") ``` ## Expected results Loading is successful. ## Actual results ``` NonMatchingSplitsSiz...
closed
2022-02-18T05:46:39
https://api.github.com/repos/huggingface/datasets/issues/3750/comments
null
false
`NonMatchingSplitsSizesError` for cats_vs_dogs dataset ## Describe the bug Cannot download cats_vs_dogs dataset due to `NonMatchingSplitsSizesError`. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("cats_vs_dogs") ``` ## Expected results Loading is succes...
[ "Thnaks for reporting @jaketae. We are fixing it. " ]
https://api.github.com/repos/huggingface/datasets/issues/3749
3,749
Add tqdm arguments
In this PR, tqdm arguments can be passed to the map() function and such, in order to be more flexible.
closed
2022-02-18T01:34:46
https://api.github.com/repos/huggingface/datasets/issues/3749/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3749", "html_url": "https://github.com/huggingface/datasets/pull/3749", "diff_url": "https://github.com/huggingface/datasets/pull/3749.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3749.patch", "merged_at": null }
true
Add tqdm arguments In this PR, tqdm arguments can be passed to the map() function and such, in order to be more flexible.
[ "Hi ! Thanks this will be very useful :)\r\n\r\nIt looks like there are some changes in the github diff that are not related to your contribution, can you try fixing this by merging `master` into your PR, or create a new PR from an updated version of `master` ?", "I have already solved the conflict on this latest...
https://api.github.com/repos/huggingface/datasets/issues/3748
3,748
Add tqdm arguments
In this PR, there are two changes. 1. It is able to show the progress bar by adding the length of the iterator. 2. Pass in tqdm_kwargs so that can enable more feasibility for the control of tqdm library.
closed
2022-02-18T00:47:55
https://api.github.com/repos/huggingface/datasets/issues/3748/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3748", "html_url": "https://github.com/huggingface/datasets/pull/3748", "diff_url": "https://github.com/huggingface/datasets/pull/3748.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3748.patch", "merged_at": null }
true
Add tqdm arguments In this PR, there are two changes. 1. It is able to show the progress bar by adding the length of the iterator. 2. Pass in tqdm_kwargs so that can enable more feasibility for the control of tqdm library.
[]
https://api.github.com/repos/huggingface/datasets/issues/3747
3,747
Passing invalid subset should throw an error
## Describe the bug Only some datasets have a subset (as in `load_dataset(name, subset)`). If you pass an invalid subset, an error should be thrown. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('rotten_tomatoes', 'asdfasdfa') ``` ## Expected results This should break, since ...
open
2022-02-17T18:16:11
https://api.github.com/repos/huggingface/datasets/issues/3747/comments
null
false
Passing invalid subset should throw an error ## Describe the bug Only some datasets have a subset (as in `load_dataset(name, subset)`). If you pass an invalid subset, an error should be thrown. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('rotten_tomatoes', 'asdfasdfa') ``` #...
[]
https://api.github.com/repos/huggingface/datasets/issues/3746
3,746
Use the same seed to shuffle shards and metadata in streaming mode
When shuffling in streaming mode, those two entangled lists are shuffled independently. In this PR I changed this to shuffle the lists of same length with the exact same seed, in order for the files and metadata to still be aligned. ```python gen_kwargs = { "files": [os.path.join(data_dir, filename) for filename...
closed
2022-02-17T17:06:31
https://api.github.com/repos/huggingface/datasets/issues/3746/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3746", "html_url": "https://github.com/huggingface/datasets/pull/3746", "diff_url": "https://github.com/huggingface/datasets/pull/3746.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3746.patch", "merged_at": "2022-02-23T15:00...
true
Use the same seed to shuffle shards and metadata in streaming mode When shuffling in streaming mode, those two entangled lists are shuffled independently. In this PR I changed this to shuffle the lists of same length with the exact same seed, in order for the files and metadata to still be aligned. ```python gen_kwar...
[]
https://api.github.com/repos/huggingface/datasets/issues/3745
3,745
Add mIoU metric
This PR adds the mean Intersection-over-Union metric to the library, useful for tasks like semantic segmentation. It is entirely based on mmseg's [implementation](https://github.com/open-mmlab/mmsegmentation/blob/master/mmseg/core/evaluation/metrics.py). I've removed any PyTorch dependency, and rely on Numpy only...
closed
2022-02-17T15:52:17
https://api.github.com/repos/huggingface/datasets/issues/3745/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3745", "html_url": "https://github.com/huggingface/datasets/pull/3745", "diff_url": "https://github.com/huggingface/datasets/pull/3745.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3745.patch", "merged_at": "2022-03-08T13:20...
true
Add mIoU metric This PR adds the mean Intersection-over-Union metric to the library, useful for tasks like semantic segmentation. It is entirely based on mmseg's [implementation](https://github.com/open-mmlab/mmsegmentation/blob/master/mmseg/core/evaluation/metrics.py). I've removed any PyTorch dependency, and re...
[ "Hmm the doctest failed again - maybe the full result needs to be on one single line", "cc @lhoestq for the final review", "Cool ! Feel free to merge if it's all good for you" ]
https://api.github.com/repos/huggingface/datasets/issues/3744
3,744
Better shards shuffling in streaming mode
Sometimes a dataset script has a `_split_generators` that returns several files as well as the corresponding metadata of each file. It often happens that they end up in two separate lists in the `gen_kwargs`: ```python gen_kwargs = { "files": [os.path.join(data_dir, filename) for filename in all_files], "me...
closed
2022-02-17T15:07:21
https://api.github.com/repos/huggingface/datasets/issues/3744/comments
null
false
Better shards shuffling in streaming mode Sometimes a dataset script has a `_split_generators` that returns several files as well as the corresponding metadata of each file. It often happens that they end up in two separate lists in the `gen_kwargs`: ```python gen_kwargs = { "files": [os.path.join(data_dir, file...
[]
https://api.github.com/repos/huggingface/datasets/issues/3743
3,743
initial monash time series forecasting repository
null
closed
2022-02-17T10:51:31
https://api.github.com/repos/huggingface/datasets/issues/3743/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3743", "html_url": "https://github.com/huggingface/datasets/pull/3743", "diff_url": "https://github.com/huggingface/datasets/pull/3743.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3743.patch", "merged_at": "2022-03-21T09:50...
true
initial monash time series forecasting repository
[ "_The documentation is not available anymore as the PR was closed or merged._", "The CI fails are unrelated to this PR, merging !", "thanks 🙇🏽 " ]
https://api.github.com/repos/huggingface/datasets/issues/3742
3,742
Fix ValueError message formatting in int2str
Hi! I bumped into this particular `ValueError` during my work (because an instance of `np.int64` was passed instead of regular Python `int`), and so I had to `print(type(values))` myself. Apparently, it's just the missing `f` to make message an f-string. It ain't much for a contribution, but it's honest work. Hop...
closed
2022-02-17T10:50:08
https://api.github.com/repos/huggingface/datasets/issues/3742/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3742", "html_url": "https://github.com/huggingface/datasets/pull/3742", "diff_url": "https://github.com/huggingface/datasets/pull/3742.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3742.patch", "merged_at": "2022-02-17T15:32...
true
Fix ValueError message formatting in int2str Hi! I bumped into this particular `ValueError` during my work (because an instance of `np.int64` was passed instead of regular Python `int`), and so I had to `print(type(values))` myself. Apparently, it's just the missing `f` to make message an f-string. It ain't much ...
[]
https://api.github.com/repos/huggingface/datasets/issues/3741
3,741
Rm sphinx doc
Checklist - [x] Update circle ci yaml - [x] Delete sphinx static & python files in docs dir - [x] Update readme in docs dir - [ ] Update docs config in setup.py
closed
2022-02-17T10:11:37
https://api.github.com/repos/huggingface/datasets/issues/3741/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3741", "html_url": "https://github.com/huggingface/datasets/pull/3741", "diff_url": "https://github.com/huggingface/datasets/pull/3741.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3741.patch", "merged_at": null }
true
Rm sphinx doc Checklist - [x] Update circle ci yaml - [x] Delete sphinx static & python files in docs dir - [x] Update readme in docs dir - [ ] Update docs config in setup.py
[]
https://api.github.com/repos/huggingface/datasets/issues/3740
3,740
Support streaming for pubmed
This PR makes some minor changes to the `pubmed` dataset to allow for `streaming=True`. Fixes #3739. Basically, I followed the C4 dataset which works in streaming mode as an example, and made the following changes: * Change URL prefix from `ftp://` to `https://` * Explicilty `open` the filename and pass the XML ...
closed
2022-02-17T00:18:22
https://api.github.com/repos/huggingface/datasets/issues/3740/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3740", "html_url": "https://github.com/huggingface/datasets/pull/3740", "diff_url": "https://github.com/huggingface/datasets/pull/3740.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3740.patch", "merged_at": "2022-02-18T14:42...
true
Support streaming for pubmed This PR makes some minor changes to the `pubmed` dataset to allow for `streaming=True`. Fixes #3739. Basically, I followed the C4 dataset which works in streaming mode as an example, and made the following changes: * Change URL prefix from `ftp://` to `https://` * Explicilty `open` t...
[ "@albertvillanova just FYI, since you were so helpful with the previous pubmed issue :) ", "IIRC streaming from FTP is not fully tested yet, so I'm fine with switching to HTTPS for now, as long as the download speed/availability is great", "@albertvillanova Thanks for pointing me to the `ET` module replacement....
https://api.github.com/repos/huggingface/datasets/issues/3739
3,739
Pubmed dataset does not work in streaming mode
## Describe the bug Trying to use the `pubmed` dataset with `streaming=True` fails. ## Steps to reproduce the bug ```python import datasets pubmed_train = datasets.load_dataset('pubmed', split='train', streaming=True) print (next(iter(pubmed_train))) ``` ## Expected results I would expect to see the first ...
closed
2022-02-16T17:13:37
https://api.github.com/repos/huggingface/datasets/issues/3739/comments
null
false
Pubmed dataset does not work in streaming mode ## Describe the bug Trying to use the `pubmed` dataset with `streaming=True` fails. ## Steps to reproduce the bug ```python import datasets pubmed_train = datasets.load_dataset('pubmed', split='train', streaming=True) print (next(iter(pubmed_train))) ``` ## Exp...
[ "Thanks for reporting, @abhi-mosaic (related to #3655).\r\n\r\nPlease note that `xml.etree.ElementTree.parse` already supports streaming:\r\n- #3476\r\n\r\nNo need to refactor to use `open`/`xopen`. Is is enough with importing the package `as ET` (instead of `as etree`)." ]
https://api.github.com/repos/huggingface/datasets/issues/3738
3,738
For data-only datasets, streaming and non-streaming don't behave the same
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadat...
open
2022-02-16T15:20:57
https://api.github.com/repos/huggingface/datasets/issues/3738/comments
null
false
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets a...
[ "Note that we might change the heuristic and create a different config per file, at least in that case.", "Hi @severo, thanks for reporting.\r\n\r\nYes, this happens because when non-streaming, a cast of all data is done in order to \"concatenate\" it all into a single dataset (thus the error), while this casting...
https://api.github.com/repos/huggingface/datasets/issues/3737
3,737
Make RedCaps streamable
Make RedCaps streamable. @lhoestq Using `data/redcaps_v1.0_annotations.zip` as a download URL gives an error locally when running `datasets-cli test` (will investigate this another time)
closed
2022-02-16T15:12:23
https://api.github.com/repos/huggingface/datasets/issues/3737/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3737", "html_url": "https://github.com/huggingface/datasets/pull/3737", "diff_url": "https://github.com/huggingface/datasets/pull/3737.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3737.patch", "merged_at": "2022-02-16T15:28...
true
Make RedCaps streamable Make RedCaps streamable. @lhoestq Using `data/redcaps_v1.0_annotations.zip` as a download URL gives an error locally when running `datasets-cli test` (will investigate this another time)
[]
https://api.github.com/repos/huggingface/datasets/issues/3736
3,736
Local paths in common voice
Continuation of https://github.com/huggingface/datasets/pull/3664: - pass the `streaming` parameter to _split_generator - update @anton-l's code to use this parameter for `common_voice` - add a comment to explain why we use `download_and_extract` in non-streaming and `iter_archive` in streaming Now the `common_...
closed
2022-02-16T15:01:29
https://api.github.com/repos/huggingface/datasets/issues/3736/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3736", "html_url": "https://github.com/huggingface/datasets/pull/3736", "diff_url": "https://github.com/huggingface/datasets/pull/3736.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3736.patch", "merged_at": "2022-02-22T09:13...
true
Local paths in common voice Continuation of https://github.com/huggingface/datasets/pull/3664: - pass the `streaming` parameter to _split_generator - update @anton-l's code to use this parameter for `common_voice` - add a comment to explain why we use `download_and_extract` in non-streaming and `iter_archive` in s...
[ "I just changed to `dl_manager.is_streaming` rather than an additional parameter `streaming` that has to be handled by the DatasetBuilder class - this way the streaming logic doesn't interfere with the base builder's code.\r\n\r\nI think it's better this way, but let me know if you preferred the previous way and I ...
https://api.github.com/repos/huggingface/datasets/issues/3735
3,735
Performance of `datasets` at scale
# Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The da...
open
2022-02-16T14:23:32
https://api.github.com/repos/huggingface/datasets/issues/3735/comments
null
false
Performance of `datasets` at scale # Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of...
[ "> using command line git-lfs - [...] 300MB/s!\r\n\r\nwhich server location did you upload from?", "From GCP region `us-central1-a`.", "The most surprising part to me is the saving time. Wondering if it could be due to compression (`ParquetWriter` uses SNAPPY compression by default; it can be turned off with `...
https://api.github.com/repos/huggingface/datasets/issues/3734
3,734
Fix bugs in NewsQA dataset
Fix #3733.
closed
2022-02-16T13:51:28
https://api.github.com/repos/huggingface/datasets/issues/3734/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3734", "html_url": "https://github.com/huggingface/datasets/pull/3734", "diff_url": "https://github.com/huggingface/datasets/pull/3734.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3734.patch", "merged_at": "2022-02-17T07:54...
true
Fix bugs in NewsQA dataset Fix #3733.
[]
https://api.github.com/repos/huggingface/datasets/issues/3733
3,733
Bugs in NewsQA dataset
## Describe the bug NewsQA dataset has the following bugs: - the field `validated_answers` is an exact copy of the field `answers` but with the addition of `'count': [0]` to each dict - the field `badQuestion` does not appear in `answers` nor `validated_answers` ## Steps to reproduce the bug By inspecting the da...
closed
2022-02-16T13:17:37
https://api.github.com/repos/huggingface/datasets/issues/3733/comments
null
false
Bugs in NewsQA dataset ## Describe the bug NewsQA dataset has the following bugs: - the field `validated_answers` is an exact copy of the field `answers` but with the addition of `'count': [0]` to each dict - the field `badQuestion` does not appear in `answers` nor `validated_answers` ## Steps to reproduce the bu...
[]
https://api.github.com/repos/huggingface/datasets/issues/3732
3,732
Support streaming in size estimation function in `push_to_hub`
This PR adds the streamable version of `os.path.getsize` (`fsspec` can return `None`, so we fall back to `fs.open` to make it more robust) to account for possible streamable paths in the nested `extra_nbytes_visitor` function inside `push_to_hub`.
closed
2022-02-16T13:10:48
https://api.github.com/repos/huggingface/datasets/issues/3732/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3732", "html_url": "https://github.com/huggingface/datasets/pull/3732", "diff_url": "https://github.com/huggingface/datasets/pull/3732.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3732.patch", "merged_at": "2022-02-21T18:18...
true
Support streaming in size estimation function in `push_to_hub` This PR adds the streamable version of `os.path.getsize` (`fsspec` can return `None`, so we fall back to `fs.open` to make it more robust) to account for possible streamable paths in the nested `extra_nbytes_visitor` function inside `push_to_hub`.
[ "would this allow to include the size in the dataset info without downloading the files? related to https://github.com/huggingface/datasets/pull/3670", "@severo I don't think so. We could use this to get `info.download_checksums[\"num_bytes\"]`, but we must process the files to get the rest of the size info. " ]
https://api.github.com/repos/huggingface/datasets/issues/3731
3,731
Fix Multi-News dataset metadata and card
Fix #3730.
closed
2022-02-16T07:14:57
https://api.github.com/repos/huggingface/datasets/issues/3731/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3731", "html_url": "https://github.com/huggingface/datasets/pull/3731", "diff_url": "https://github.com/huggingface/datasets/pull/3731.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3731.patch", "merged_at": "2022-02-16T08:48...
true
Fix Multi-News dataset metadata and card Fix #3730.
[]
https://api.github.com/repos/huggingface/datasets/issues/3730
3,730
Checksum Error when loading multi-news dataset
## Describe the bug When using the load_dataset function from datasets module to load the Multi-News dataset, does not load the dataset but throws Checksum Error instead. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("multi_news") ``` ## Expected results ...
closed
2022-02-16T05:11:08
https://api.github.com/repos/huggingface/datasets/issues/3730/comments
null
false
Checksum Error when loading multi-news dataset ## Describe the bug When using the load_dataset function from datasets module to load the Multi-News dataset, does not load the dataset but throws Checksum Error instead. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_datase...
[ "Thanks for reporting @byw2.\r\nWe are fixing it.\r\nIn the meantime, you can load the dataset by passing `ignore_verifications=True`:\r\n ```python\r\ndataset = load_dataset(\"multi_news\", ignore_verifications=True)" ]
https://api.github.com/repos/huggingface/datasets/issues/3729
3,729
Wrong number of examples when loading a text dataset
## Describe the bug when I use load_dataset to read a txt file I find that the number of the samples is incorrect ## Steps to reproduce the bug ``` fr = open('train.txt','r',encoding='utf-8').readlines() print(len(fr)) # 1199637 datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming...
closed
2022-02-16T01:13:31
https://api.github.com/repos/huggingface/datasets/issues/3729/comments
null
false
Wrong number of examples when loading a text dataset ## Describe the bug when I use load_dataset to read a txt file I find that the number of the samples is incorrect ## Steps to reproduce the bug ``` fr = open('train.txt','r',encoding='utf-8').readlines() print(len(fr)) # 1199637 datasets = load_dataset('...
[ "Hi @kg-nlp, thanks for reporting.\r\n\r\nThat is weird... I guess we would need some sample data file where this behavior appears to reproduce the bug for further investigation... ", "ok, I found the reason why that two results are not same.\r\nthere is /u2029 in the text, the datasets will split sentence accord...
https://api.github.com/repos/huggingface/datasets/issues/3728
3,728
VoxPopuli
## Adding a Dataset - **Name:** VoxPopuli - **Description:** A Large-Scale Multilingual Speech Corpus - **Paper:** https://arxiv.org/pdf/2101.00390.pdf - **Data:** https://github.com/facebookresearch/voxpopuli - **Motivation:** one of the largest (if not the largest) multilingual speech corpus: 400K hours of multi...
closed
2022-02-15T23:04:55
https://api.github.com/repos/huggingface/datasets/issues/3728/comments
null
false
VoxPopuli ## Adding a Dataset - **Name:** VoxPopuli - **Description:** A Large-Scale Multilingual Speech Corpus - **Paper:** https://arxiv.org/pdf/2101.00390.pdf - **Data:** https://github.com/facebookresearch/voxpopuli - **Motivation:** one of the largest (if not the largest) multilingual speech corpus: 400K hour...
[ "duplicate of https://github.com/huggingface/datasets/issues/2300" ]
https://api.github.com/repos/huggingface/datasets/issues/3727
3,727
Patch all module attributes in its namespace
When patching module attributes, only those defined in its `__all__` variable were considered by default (only falling back to `__dict__` if `__all__` was None). However those are only a subset of all the module attributes in its namespace (`__dict__` variable). This PR fixes the problem of modules that have non-...
closed
2022-02-15T17:12:27
https://api.github.com/repos/huggingface/datasets/issues/3727/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3727", "html_url": "https://github.com/huggingface/datasets/pull/3727", "diff_url": "https://github.com/huggingface/datasets/pull/3727.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3727.patch", "merged_at": "2022-02-17T17:06...
true
Patch all module attributes in its namespace When patching module attributes, only those defined in its `__all__` variable were considered by default (only falling back to `__dict__` if `__all__` was None). However those are only a subset of all the module attributes in its namespace (`__dict__` variable). This P...
[]
https://api.github.com/repos/huggingface/datasets/issues/3726
3,726
Use config pandas version in CSV dataset builder
Fix #3724.
closed
2022-02-15T15:47:49
https://api.github.com/repos/huggingface/datasets/issues/3726/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3726", "html_url": "https://github.com/huggingface/datasets/pull/3726", "diff_url": "https://github.com/huggingface/datasets/pull/3726.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3726.patch", "merged_at": "2022-02-15T16:55...
true
Use config pandas version in CSV dataset builder Fix #3724.
[]
https://api.github.com/repos/huggingface/datasets/issues/3725
3,725
Pin pandas to avoid bug in streaming mode
Temporarily pin pandas version to avoid bug in streaming mode (patching no longer works). Related to #3724.
closed
2022-02-15T15:21:00
https://api.github.com/repos/huggingface/datasets/issues/3725/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3725", "html_url": "https://github.com/huggingface/datasets/pull/3725", "diff_url": "https://github.com/huggingface/datasets/pull/3725.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3725.patch", "merged_at": "2022-02-15T15:52...
true
Pin pandas to avoid bug in streaming mode Temporarily pin pandas version to avoid bug in streaming mode (patching no longer works). Related to #3724.
[]
https://api.github.com/repos/huggingface/datasets/issues/3724
3,724
Bug while streaming CSV dataset with pandas 1.4
## Describe the bug If we upgrade to pandas `1.4`, the patching of the pandas module is no longer working ``` AttributeError: '_PatchedModuleObj' object has no attribute '__version__' ``` ## Steps to reproduce the bug ``` pip install pandas==1.4 ``` ```python from datasets import load_dataset ds = load_dat...
closed
2022-02-15T15:16:19
https://api.github.com/repos/huggingface/datasets/issues/3724/comments
null
false
Bug while streaming CSV dataset with pandas 1.4 ## Describe the bug If we upgrade to pandas `1.4`, the patching of the pandas module is no longer working ``` AttributeError: '_PatchedModuleObj' object has no attribute '__version__' ``` ## Steps to reproduce the bug ``` pip install pandas==1.4 ``` ```python ...
[]
https://api.github.com/repos/huggingface/datasets/issues/3723
3,723
Fix flatten of complex feature types
Fix `flatten` for the following feature types: Image/Audio, Translation, and TranslationVariableLanguages. Inspired by `cast`/`table_cast`, I've introduced a `table_flatten` function to handle the Image/Audio types. CC: @SBrandeis Fix #3686.
closed
2022-02-15T14:45:33
https://api.github.com/repos/huggingface/datasets/issues/3723/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3723", "html_url": "https://github.com/huggingface/datasets/pull/3723", "diff_url": "https://github.com/huggingface/datasets/pull/3723.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3723.patch", "merged_at": "2022-03-18T17:28...
true
Fix flatten of complex feature types Fix `flatten` for the following feature types: Image/Audio, Translation, and TranslationVariableLanguages. Inspired by `cast`/`table_cast`, I've introduced a `table_flatten` function to handle the Image/Audio types. CC: @SBrandeis Fix #3686.
[ "Apparently the merge brought back some tests that use `flatten_()` that we removed recently", "_The documentation is not available anymore as the PR was closed or merged._" ]
https://api.github.com/repos/huggingface/datasets/issues/3722
3,722
added electricity load diagram dataset
Initial Electricity Load Diagram time series dataset.
closed
2022-02-15T14:29:29
https://api.github.com/repos/huggingface/datasets/issues/3722/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3722", "html_url": "https://github.com/huggingface/datasets/pull/3722", "diff_url": "https://github.com/huggingface/datasets/pull/3722.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3722.patch", "merged_at": "2022-02-16T18:48...
true
added electricity load diagram dataset Initial Electricity Load Diagram time series dataset.
[]
https://api.github.com/repos/huggingface/datasets/issues/3721
3,721
Multi-GPU support for `FaissIndex`
Per #3716 , current implementation does not take into consideration that `faiss` can run on multiple GPUs. In this commit, I provided multi-GPU support for `FaissIndex` by modifying the device management in `IndexableMixin.add_faiss_index` and `FaissIndex.load`. Now users are able to pass in 1. a positive intege...
closed
2022-02-14T17:26:51
https://api.github.com/repos/huggingface/datasets/issues/3721/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3721", "html_url": "https://github.com/huggingface/datasets/pull/3721", "diff_url": "https://github.com/huggingface/datasets/pull/3721.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3721.patch", "merged_at": "2022-03-07T16:28...
true
Multi-GPU support for `FaissIndex` Per #3716 , current implementation does not take into consideration that `faiss` can run on multiple GPUs. In this commit, I provided multi-GPU support for `FaissIndex` by modifying the device management in `IndexableMixin.add_faiss_index` and `FaissIndex.load`. Now users are ab...
[ "Any love?", "Hi, any update?", "@albertvillanova Sorry for bothering you again, quick follow up: is there anything else you want me to add / modify?", "Hi @rentruewang , we updated the documentation on `master`, could you merge `master` into your branch please ?", "@lhoestq I've merge `huggingface/datasets...
https://api.github.com/repos/huggingface/datasets/issues/3720
3,720
Builder Configuration Update Required on Common Voice Dataset
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: ht...
closed
2022-02-14T16:21:41
https://api.github.com/repos/huggingface/datasets/issues/3720/comments
null
false
Builder Configuration Update Required on Common Voice Dataset Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I...
[ "Hi @aasem, thanks for reporting.\r\n\r\nPlease note that currently Commom Voice is hosted on our Hub as a community dataset by the Mozilla Foundation. See all Common Voice versions here: https://huggingface.co/mozilla-foundation\r\n\r\nMaybe we should add an explaining note in our \"legacy\" Common Voice canonical...
https://api.github.com/repos/huggingface/datasets/issues/3719
3,719
Check if indices values in `Dataset.select` are within bounds
Fix #3707 Instead of reusing `_check_valid_index_key` from `datasets.formatting`, I defined a new function to provide a more meaningful error message.
closed
2022-02-14T12:31:41
https://api.github.com/repos/huggingface/datasets/issues/3719/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3719", "html_url": "https://github.com/huggingface/datasets/pull/3719", "diff_url": "https://github.com/huggingface/datasets/pull/3719.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3719.patch", "merged_at": "2022-02-14T19:19...
true
Check if indices values in `Dataset.select` are within bounds Fix #3707 Instead of reusing `_check_valid_index_key` from `datasets.formatting`, I defined a new function to provide a more meaningful error message.
[]
https://api.github.com/repos/huggingface/datasets/issues/3718
3,718
Fix Evidence Infer Treatment dataset
This PR: - fixes a bug in the script, by removing an unnamed column with the row index: fix KeyError - fix the metadata JSON, by adding both configurations (1.1 and 2.0): fix ExpectedMoreDownloadedFiles - updates the dataset card Fix #3515.
closed
2022-02-14T11:58:07
https://api.github.com/repos/huggingface/datasets/issues/3718/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3718", "html_url": "https://github.com/huggingface/datasets/pull/3718", "diff_url": "https://github.com/huggingface/datasets/pull/3718.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3718.patch", "merged_at": "2022-02-14T13:21...
true
Fix Evidence Infer Treatment dataset This PR: - fixes a bug in the script, by removing an unnamed column with the row index: fix KeyError - fix the metadata JSON, by adding both configurations (1.1 and 2.0): fix ExpectedMoreDownloadedFiles - updates the dataset card Fix #3515.
[]
https://api.github.com/repos/huggingface/datasets/issues/3717
3,717
wrong condition in `Features ClassLabel encode_example`
## Describe the bug The `encode_example` function in *features.py* seems to have a wrong condition. ```python if not -1 <= example_data < self.num_classes: raise ValueError(f"Class label {example_data:d} greater than configured num_classes {self.num_classes}") ``` ## Expected results The `not - 1` co...
closed
2022-02-14T11:44:35
https://api.github.com/repos/huggingface/datasets/issues/3717/comments
null
false
wrong condition in `Features ClassLabel encode_example` ## Describe the bug The `encode_example` function in *features.py* seems to have a wrong condition. ```python if not -1 <= example_data < self.num_classes: raise ValueError(f"Class label {example_data:d} greater than configured num_classes {self.num_cl...
[ "Hi @Tudyx, \r\n\r\nPlease note that in Python, the boolean NOT operator (`not`) has lower precedence than comparison operators (`<=`, `<`), thus the expression you mention is equivalent to:\r\n```python\r\n not (-1 <= example_data < self.num_classes)\r\n```\r\n\r\nAlso note that as expected, the exception is raise...
https://api.github.com/repos/huggingface/datasets/issues/3716
3,716
`FaissIndex` to support multiple GPU and `custom_index`
**Is your feature request related to a problem? Please describe.** Currently, because `device` is of the type `int | None`, to leverage `faiss-gpu`'s multi-gpu support, you need to create a `custom_index`. However, if using a `custom_index` created by e.g. `faiss.index_cpu_to_all_gpus`, then `FaissIndex.save` does not ...
closed
2022-02-14T06:21:43
https://api.github.com/repos/huggingface/datasets/issues/3716/comments
null
false
`FaissIndex` to support multiple GPU and `custom_index` **Is your feature request related to a problem? Please describe.** Currently, because `device` is of the type `int | None`, to leverage `faiss-gpu`'s multi-gpu support, you need to create a `custom_index`. However, if using a `custom_index` created by e.g. `faiss....
[ "Hi @rentruewang, thansk for reporting and for your PR!!! We should definitely support this. ", "@albertvillanova Great! :)" ]
https://api.github.com/repos/huggingface/datasets/issues/3715
3,715
Fix bugs in msr_sqa dataset
The last version has many problems, 1) Errors in table load-in. Split by a single comma instead of using pandas is wrong. 2) id reduplicated in _generate_examples function. 3) Missing information of history questions which make it hard to use. I fix it refer to https://github.com/HKUNLP/UnifiedSKG. And we test ...
closed
2022-02-13T16:37:30
https://api.github.com/repos/huggingface/datasets/issues/3715/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3715", "html_url": "https://github.com/huggingface/datasets/pull/3715", "diff_url": "https://github.com/huggingface/datasets/pull/3715.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3715.patch", "merged_at": "2022-10-03T09:08...
true
Fix bugs in msr_sqa dataset The last version has many problems, 1) Errors in table load-in. Split by a single comma instead of using pandas is wrong. 2) id reduplicated in _generate_examples function. 3) Missing information of history questions which make it hard to use. I fix it refer to https://github.com/HKU...
[ "It shows below when I run test:\r\n\r\nFAILED tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_all_configs_msr_sqa - ValueError: Unknown split \"validation\". Should be one of ['train', 'test'].\r\n\r\nIt make no sense for me😂. \r\n", "@albertvillanova Does this PR has some additional fixes com...
https://api.github.com/repos/huggingface/datasets/issues/3714
3,714
tatoeba_mt: File not found error and key error
## Dataset viewer issue for 'tatoeba_mt' **Link:** https://huggingface.co/datasets/Helsinki-NLP/tatoeba_mt My data loader script does not seem to work. The files are part of the local repository but cannot be found. An example where it should work is the subset for "afr-eng". Another problem is that I do not ...
closed
2022-02-13T16:35:45
https://api.github.com/repos/huggingface/datasets/issues/3714/comments
null
false
tatoeba_mt: File not found error and key error ## Dataset viewer issue for 'tatoeba_mt' **Link:** https://huggingface.co/datasets/Helsinki-NLP/tatoeba_mt My data loader script does not seem to work. The files are part of the local repository but cannot be found. An example where it should work is the subset for ...
[ "Looks like I solved my problems ..." ]
https://api.github.com/repos/huggingface/datasets/issues/3713
3,713
Rm sphinx doc
Checklist - [x] Update circle ci yaml - [x] Delete sphinx static & python files in docs dir - [x] Update readme in docs dir - [ ] Update docs config in setup.py
closed
2022-02-13T11:26:31
https://api.github.com/repos/huggingface/datasets/issues/3713/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3713", "html_url": "https://github.com/huggingface/datasets/pull/3713", "diff_url": "https://github.com/huggingface/datasets/pull/3713.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3713.patch", "merged_at": null }
true
Rm sphinx doc Checklist - [x] Update circle ci yaml - [x] Delete sphinx static & python files in docs dir - [x] Update readme in docs dir - [ ] Update docs config in setup.py
[ "Thanks for pushing this :)\r\nOne minor comment regarding the PR itself - I noticed that some changes are coming from the upstream master, this might be due to a rebase. Would be nice if this PR doesn't include them for readabily, feel free to open a new one if necessary", "Closing in favour https://github.com/h...
https://api.github.com/repos/huggingface/datasets/issues/3712
3,712
Fix the error of msr_sqa dataset
Fix the error of _load_table_data function in msr_sqa dataset, it is wrong to use comma to split each row.
closed
2022-02-12T16:27:54
https://api.github.com/repos/huggingface/datasets/issues/3712/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3712", "html_url": "https://github.com/huggingface/datasets/pull/3712", "diff_url": "https://github.com/huggingface/datasets/pull/3712.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3712.patch", "merged_at": null }
true
Fix the error of msr_sqa dataset Fix the error of _load_table_data function in msr_sqa dataset, it is wrong to use comma to split each row.
[]
https://api.github.com/repos/huggingface/datasets/issues/3711
3,711
Fix the error of _load_table_data function in msr_sqa dataset
The _load_table_data function from the last version is wrong, it is wrong to use comma to split each row.
closed
2022-02-12T13:20:53
https://api.github.com/repos/huggingface/datasets/issues/3711/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3711", "html_url": "https://github.com/huggingface/datasets/pull/3711", "diff_url": "https://github.com/huggingface/datasets/pull/3711.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3711.patch", "merged_at": null }
true
Fix the error of _load_table_data function in msr_sqa dataset The _load_table_data function from the last version is wrong, it is wrong to use comma to split each row.
[]
https://api.github.com/repos/huggingface/datasets/issues/3710
3,710
Fix CI code quality issue
Fix CI code quality issue introduced by #3695.
closed
2022-02-12T12:05:39
https://api.github.com/repos/huggingface/datasets/issues/3710/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3710", "html_url": "https://github.com/huggingface/datasets/pull/3710", "diff_url": "https://github.com/huggingface/datasets/pull/3710.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3710.patch", "merged_at": "2022-02-12T12:58...
true
Fix CI code quality issue Fix CI code quality issue introduced by #3695.
[]
https://api.github.com/repos/huggingface/datasets/issues/3709
3,709
Set base path to hub url for canonical datasets
This should allow canonical datasets to use relative paths to download data files from the Hub cc @polinaeterna this will be useful if we have audio datasets that are canonical and for which you'd like to host data files
closed
2022-02-11T19:23:20
https://api.github.com/repos/huggingface/datasets/issues/3709/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3709", "html_url": "https://github.com/huggingface/datasets/pull/3709", "diff_url": "https://github.com/huggingface/datasets/pull/3709.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3709.patch", "merged_at": "2022-02-16T14:02...
true
Set base path to hub url for canonical datasets This should allow canonical datasets to use relative paths to download data files from the Hub cc @polinaeterna this will be useful if we have audio datasets that are canonical and for which you'd like to host data files
[ "If we agree to have data files in a dedicated directory \"data/\" then we should be fine. You're right we should not try to edit a dataset script from the repository directly, but from github, in order to avoid conflicts" ]
https://api.github.com/repos/huggingface/datasets/issues/3708
3,708
Loading JSON gets stuck with many workers/threads
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from dat...
open
2022-02-11T18:50:48
https://api.github.com/repos/huggingface/datasets/issues/3708/comments
null
false
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following s...
[ "Hi ! Note that it does `block_size *= 2` until `block_size > len(batch)`, so it doesn't loop indefinitely. What do you mean by \"get stuck indefinitely\" then ? Is this the actual call to `paj.read_json` that hangs ?\r\n\r\n> increasing the `chunksize` argument decreases the chance of getting stuck\r\n\r\nCould yo...
https://api.github.com/repos/huggingface/datasets/issues/3707
3,707
`.select`: unexpected behavior with `indices`
## Describe the bug The `.select` method will not throw when sending `indices` bigger than the dataset length; `indices` will be wrapped instead. This behavior is not documented anywhere, and is not intuitive. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"text": [...
closed
2022-02-11T15:20:01
https://api.github.com/repos/huggingface/datasets/issues/3707/comments
null
false
`.select`: unexpected behavior with `indices` ## Describe the bug The `.select` method will not throw when sending `indices` bigger than the dataset length; `indices` will be wrapped instead. This behavior is not documented anywhere, and is not intuitive. ## Steps to reproduce the bug ```python from datasets imp...
[ "Hi! Currently, we compute the final index as `index % len(dset)`. I agree this behavior is somewhat unexpected and that it would be more appropriate to raise an error instead (this is what `df.iloc` in Pandas does, for instance).\r\n\r\n@albertvillanova @lhoestq wdyt?", "I agree. I think `index % len(dset)` was ...
https://api.github.com/repos/huggingface/datasets/issues/3706
3,706
Unable to load dataset 'big_patent'
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\dat...
closed
2022-02-11T09:48:34
https://api.github.com/repos/huggingface/datasets/issues/3706/comments
null
false
Unable to load dataset 'big_patent' ## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoun...
[ "Hi @ankitk2109,\r\n\r\nHave you tried passing the split name with the keyword `split=`? See e.g. an example in our Quick Start docs: https://huggingface.co/docs/datasets/quickstart.html#load-the-dataset-and-model\r\n```python\r\n ds = load_dataset(\"big_patent\", \"d\", split=\"validation\")", "Hi @albertvillano...
https://api.github.com/repos/huggingface/datasets/issues/3705
3,705
Raise informative error when loading a save_to_disk dataset
People recurrently report error when trying to load a dataset (using `load_dataset`) that was previously saved using `save_to_disk`. This PR raises an informative error message telling them they should use `load_from_disk` instead. Close #3700.
closed
2022-02-11T08:21:03
https://api.github.com/repos/huggingface/datasets/issues/3705/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3705", "html_url": "https://github.com/huggingface/datasets/pull/3705", "diff_url": "https://github.com/huggingface/datasets/pull/3705.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3705.patch", "merged_at": "2022-02-11T22:56...
true
Raise informative error when loading a save_to_disk dataset People recurrently report error when trying to load a dataset (using `load_dataset`) that was previously saved using `save_to_disk`. This PR raises an informative error message telling them they should use `load_from_disk` instead. Close #3700.
[]
https://api.github.com/repos/huggingface/datasets/issues/3704
3,704
OSCAR-2109 datasets are misaligned and truncated
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the par...
closed
2022-02-11T08:14:59
https://api.github.com/repos/huggingface/datasets/issues/3704/comments
null
false
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples...
[ "Hi @adrianeboyd, thanks for reporting.\r\n\r\nThere is indeed a bug in that community dataset:\r\nLine:\r\n```python\r\nmetadata_and_text_files = list(zip(metadata_files, text_files))\r\n``` \r\nshould be replaced with\r\n```python\r\nmetadata_and_text_files = list(zip(sorted(metadata_files), sorted(text_files)))\...
https://api.github.com/repos/huggingface/datasets/issues/3703
3,703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File...
closed
2022-02-11T06:38:42
https://api.github.com/repos/huggingface/datasets/issues/3703/comments
null
false
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to ...
[ "![图片](https://user-images.githubusercontent.com/28425091/153547502-6bb0938d-788b-4857-b946-c3cf08fefce4.png)\r\nMy datasets version", "![图片](https://user-images.githubusercontent.com/28425091/153547587-f4677166-af9b-44a0-95ad-b6dba873978a.png)\r\n", "Hi! Some of our metrics require additional dependencies to w...
https://api.github.com/repos/huggingface/datasets/issues/3702
3,702
Update data URL of lm1b dataset
The http address doesn't work anymore
closed
2022-02-10T18:46:30
https://api.github.com/repos/huggingface/datasets/issues/3702/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3702", "html_url": "https://github.com/huggingface/datasets/pull/3702", "diff_url": "https://github.com/huggingface/datasets/pull/3702.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3702.patch", "merged_at": null }
true
Update data URL of lm1b dataset The http address doesn't work anymore
[ "Hi ! I'm getting some 503 from both the http and https addresses. Do you think we could host this data somewhere else ? (please check if there is a license and if it allows redistribution)", "Both HTTP and HTTPS links are working now.\r\n\r\nWe are closing this PR." ]
https://api.github.com/repos/huggingface/datasets/issues/3701
3,701
Pin ElasticSearch
Until we manage to support ES 8.0, I'm setting the version to `<8.0.0` Currently we're getting this error on 8.0: ```python ValueError: Either 'hosts' or 'cloud_id' must be specified ``` When instantiating a `Elasticsearch()` object
closed
2022-02-10T17:15:26
https://api.github.com/repos/huggingface/datasets/issues/3701/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3701", "html_url": "https://github.com/huggingface/datasets/pull/3701", "diff_url": "https://github.com/huggingface/datasets/pull/3701.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3701.patch", "merged_at": "2022-02-10T17:31...
true
Pin ElasticSearch Until we manage to support ES 8.0, I'm setting the version to `<8.0.0` Currently we're getting this error on 8.0: ```python ValueError: Either 'hosts' or 'cloud_id' must be specified ``` When instantiating a `Elasticsearch()` object
[]
https://api.github.com/repos/huggingface/datasets/issues/3700
3,700
Unable to load a dataset
## Describe the bug Unable to load a dataset from Huggingface that I have just saved. ## Steps to reproduce the bug On Google colab `! pip install datasets ` `from datasets import load_dataset` `my_path = "wiki_dataset"` `dataset = load_dataset('wikipedia', "20200501.fr")` `dataset.save_to_disk(my_path)` `...
closed
2022-02-10T15:05:53
https://api.github.com/repos/huggingface/datasets/issues/3700/comments
null
false
Unable to load a dataset ## Describe the bug Unable to load a dataset from Huggingface that I have just saved. ## Steps to reproduce the bug On Google colab `! pip install datasets ` `from datasets import load_dataset` `my_path = "wiki_dataset"` `dataset = load_dataset('wikipedia', "20200501.fr")` `dataset....
[ "Hi! `load_dataset` is intended to be used to load a canonical dataset (`wikipedia`), a packaged dataset (`csv`, `json`, ...) or a dataset hosted on the Hub. For local datasets saved with `save_to_disk(\"path/to/dataset\")`, use `load_from_disk(\"path/to/dataset\")`.", "Maybe we should raise an informative error ...
https://api.github.com/repos/huggingface/datasets/issues/3699
3,699
Add dev-only config to Natural Questions dataset
As suggested by @lhoestq and @thomwolf, a new config has been added to Natural Questions dataset, so that only dev split can be downloaded. Fix #413.
closed
2022-02-10T14:42:24
https://api.github.com/repos/huggingface/datasets/issues/3699/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3699", "html_url": "https://github.com/huggingface/datasets/pull/3699", "diff_url": "https://github.com/huggingface/datasets/pull/3699.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3699.patch", "merged_at": "2022-02-11T09:50...
true
Add dev-only config to Natural Questions dataset As suggested by @lhoestq and @thomwolf, a new config has been added to Natural Questions dataset, so that only dev split can be downloaded. Fix #413.
[ "Great thanks ! I think we can fix the CI by copying the NQ folder on gcs to 0.0.3. Does that sound good ?", "I've copied the 0.0.2 folder content to 0.0.3, as suggested.\r\n\r\nI'm updating the dataset card..." ]
https://api.github.com/repos/huggingface/datasets/issues/3698
3,698
Add finetune-data CodeFill
null
closed
2022-02-10T11:12:51
https://api.github.com/repos/huggingface/datasets/issues/3698/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3698", "html_url": "https://github.com/huggingface/datasets/pull/3698", "diff_url": "https://github.com/huggingface/datasets/pull/3698.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3698.patch", "merged_at": null }
true
Add finetune-data CodeFill
[ "Thanks for your contribution, @rgismondi. Are you still interested in adding this dataset?\r\n\r\nWe are removing the dataset scripts from this GitHub repo and moving them to the Hugging Face Hub: https://huggingface.co/datasets\r\n\r\nWe would suggest you create this dataset there. Please, feel free to tell us if...
https://api.github.com/repos/huggingface/datasets/issues/3697
3,697
Add code-fill datasets for pretraining/finetuning/evaluating
null
closed
2022-02-10T10:31:48
https://api.github.com/repos/huggingface/datasets/issues/3697/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3697", "html_url": "https://github.com/huggingface/datasets/pull/3697", "diff_url": "https://github.com/huggingface/datasets/pull/3697.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3697.patch", "merged_at": null }
true
Add code-fill datasets for pretraining/finetuning/evaluating
[ "Hi ! Thanks for adding this dataset :)\r\n\r\nIt looks like your PR contains many changes in files that are unrelated to your changes, I think it might come from running `make style` with an outdated version of `black`. Could you try opening a new PR that only contains your additions ? (or force push to this PR)" ...
https://api.github.com/repos/huggingface/datasets/issues/3696
3,696
Force unique keys in newsqa dataset
Currently, it may raise `DuplicatedKeysError`. Fix #3630.
closed
2022-02-10T10:09:19
https://api.github.com/repos/huggingface/datasets/issues/3696/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3696", "html_url": "https://github.com/huggingface/datasets/pull/3696", "diff_url": "https://github.com/huggingface/datasets/pull/3696.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3696.patch", "merged_at": "2022-02-14T08:37...
true
Force unique keys in newsqa dataset Currently, it may raise `DuplicatedKeysError`. Fix #3630.
[]
https://api.github.com/repos/huggingface/datasets/issues/3695
3,695
Fix ClassLabel to/from dict when passed names_file
Currently, `names_file` is a field of the data class `ClassLabel`, thus appearing when transforming it to dict (when saving infos). Afterwards, when trying to read it from infos, it conflicts with the other field `names`. This PR, removes `names_file` as a field of the data class `ClassLabel`. - it is only used at ...
closed
2022-02-10T09:47:10
https://api.github.com/repos/huggingface/datasets/issues/3695/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3695", "html_url": "https://github.com/huggingface/datasets/pull/3695", "diff_url": "https://github.com/huggingface/datasets/pull/3695.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3695.patch", "merged_at": "2022-02-11T23:02...
true
Fix ClassLabel to/from dict when passed names_file Currently, `names_file` is a field of the data class `ClassLabel`, thus appearing when transforming it to dict (when saving infos). Afterwards, when trying to read it from infos, it conflicts with the other field `names`. This PR, removes `names_file` as a field of ...
[]
https://api.github.com/repos/huggingface/datasets/issues/3693
3,693
Standardize to `Example::`
null
closed
2022-02-09T13:37:13
https://api.github.com/repos/huggingface/datasets/issues/3693/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3693", "html_url": "https://github.com/huggingface/datasets/pull/3693", "diff_url": "https://github.com/huggingface/datasets/pull/3693.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3693.patch", "merged_at": null }
true
Standardize to `Example::`
[ "Closing because https://github.com/huggingface/datasets/pull/3690/commits/ee0e0935d6105c1390b0e14a7622fbaad3044dbb" ]
https://api.github.com/repos/huggingface/datasets/issues/3692
3,692
Update data URL in pubmed dataset
Fix #3655.
closed
2022-02-09T10:06:21
https://api.github.com/repos/huggingface/datasets/issues/3692/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3692", "html_url": "https://github.com/huggingface/datasets/pull/3692", "diff_url": "https://github.com/huggingface/datasets/pull/3692.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3692.patch", "merged_at": "2022-02-14T14:15...
true
Update data URL in pubmed dataset Fix #3655.
[ "- I updated the previous dummy data: I just had to rename the file and its directory\r\n - the dummy data zip contains only a single file: `pubmed22n0001.xml.gz`\r\n\r\nThen I discover it fails: https://app.circleci.com/pipelines/github/huggingface/datasets/9800/workflows/173a4433-8feb-4fc6-ab9e-59762084e3e1/jobs...
https://api.github.com/repos/huggingface/datasets/issues/3691
3,691
Upgrade black to version ~=22.0
Upgrades the `datasets` library quality tool `black` to use the first stable release of `black`, version 22.0.
closed
2022-02-08T18:45:19
https://api.github.com/repos/huggingface/datasets/issues/3691/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3691", "html_url": "https://github.com/huggingface/datasets/pull/3691", "diff_url": "https://github.com/huggingface/datasets/pull/3691.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3691.patch", "merged_at": "2022-02-08T19:56...
true
Upgrade black to version ~=22.0 Upgrades the `datasets` library quality tool `black` to use the first stable release of `black`, version 22.0.
[]
https://api.github.com/repos/huggingface/datasets/issues/3690
3,690
Update docs to new frontend/UI
### TLDR: Update `datasets` `docs` to the new syntax (markdown and mdx files) & frontend (as how it looks on [hf.co/transformers](https://huggingface.co/docs/transformers/index)) | Light mode | Dark mode ...
closed
2022-02-08T16:38:09
https://api.github.com/repos/huggingface/datasets/issues/3690/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3690", "html_url": "https://github.com/huggingface/datasets/pull/3690", "diff_url": "https://github.com/huggingface/datasets/pull/3690.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3690.patch", "merged_at": "2022-03-03T20:04...
true
Update docs to new frontend/UI ### TLDR: Update `datasets` `docs` to the new syntax (markdown and mdx files) & frontend (as how it looks on [hf.co/transformers](https://huggingface.co/docs/transformers/index)) | Light mode | Dark mode ...
[ "We can have the docstrings of the properties that are missing docstrings (from discussion [here](https://github.com/huggingface/doc-builder/pull/96)) here by using your new `inject_arrow_table_documentation` onthem as well ?", "@sgugger & @lhoestq could you help me with what should the `docs` section in setup.py...
https://api.github.com/repos/huggingface/datasets/issues/3689
3,689
Fix streaming for servers not supporting HTTP range requests
Some servers do not support HTTP range requests, whereas this is required to stream some file formats (like ZIP). ~~This PR implements a workaround for those cases, by download the files locally in a temporary directory (cleaned up by the OS once the process is finished).~~ This PR raises custom error explaining ...
closed
2022-02-08T15:41:05
https://api.github.com/repos/huggingface/datasets/issues/3689/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3689", "html_url": "https://github.com/huggingface/datasets/pull/3689", "diff_url": "https://github.com/huggingface/datasets/pull/3689.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3689.patch", "merged_at": "2022-02-10T16:51...
true
Fix streaming for servers not supporting HTTP range requests Some servers do not support HTTP range requests, whereas this is required to stream some file formats (like ZIP). ~~This PR implements a workaround for those cases, by download the files locally in a temporary directory (cleaned up by the OS once the proce...
[ "Does it mean that huge files might end up being downloaded? It would go against the purpose of streaming, I think. At least, this fallback should be an option that could be disabled", "Yes, it is against the purpose of streaming, but streaming is not possible if the server does not allow HTTP range requests.\n\n...
https://api.github.com/repos/huggingface/datasets/issues/3688
3,688
Pyarrow version error
## Describe the bug I installed datasets(version 1.17.0, 1.18.0, 1.18.3) but i'm right now nor able to import it because of pyarrow. when i try to import it, i get the following error: `To use datasets, the module pyarrow>=3.0.0 is required, and the current version of pyarrow doesn't match this condition`. i tryed w...
closed
2022-02-08T12:53:59
https://api.github.com/repos/huggingface/datasets/issues/3688/comments
null
false
Pyarrow version error ## Describe the bug I installed datasets(version 1.17.0, 1.18.0, 1.18.3) but i'm right now nor able to import it because of pyarrow. when i try to import it, i get the following error: `To use datasets, the module pyarrow>=3.0.0 is required, and the current version of pyarrow doesn't match this ...
[ "Hi @Zaker237, thanks for reporting.\r\n\r\nThis is weird: the error you get is only thrown if the installed pyarrow version is less than 3.0.0.\r\n\r\nCould you please check that you install pyarrow in the same Python virtual environment where you installed datasets?\r\n\r\nFrom the Python command line (or termina...
https://api.github.com/repos/huggingface/datasets/issues/3687
3,687
Can't get the text data when calling to_tf_dataset
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = Defa...
closed
2022-02-08T11:52:10
https://api.github.com/repos/huggingface/datasets/issues/3687/comments
null
false
Can't get the text data when calling to_tf_dataset I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers...
[ "cc @Rocketknight1 ", "You are correct that `to_tf_dataset` only handles numerical columns right now, yes, though this is a limitation we might remove in future! The main reason we do this is that our models mostly do not include the tokenizer as a model layer, because it's very difficult to compile some of them ...
https://api.github.com/repos/huggingface/datasets/issues/3686
3,686
`Translation` features cannot be `flatten`ed
## Describe the bug (`Dataset.flatten`)[https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1265] fails for columns with feature (`Translation`)[https://github.com/huggingface/datasets/blob/3edbeb0ec6519b79f1119adc251a1a6b379a2c12/src/datasets/features/translation.py#L8] ## Steps to...
closed
2022-02-08T11:33:48
https://api.github.com/repos/huggingface/datasets/issues/3686/comments
null
false
`Translation` features cannot be `flatten`ed ## Describe the bug (`Dataset.flatten`)[https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1265] fails for columns with feature (`Translation`)[https://github.com/huggingface/datasets/blob/3edbeb0ec6519b79f1119adc251a1a6b379a2c12/src/datase...
[ "Thanks for reporting, @SBrandeis! Some additional feature types that don't behave as expected when flattened: `Audio`, `Image` and `TranslationVariableLanguages`" ]
https://api.github.com/repos/huggingface/datasets/issues/3685
3,685
Add support for `Audio` and `Image` feature in `push_to_hub`
Add support for the `Audio` and the `Image` feature in `push_to_hub`. The idea is to remove local path information and store file content under "bytes" in the Arrow table before the push. My initial approach (https://github.com/huggingface/datasets/commit/34c652afeff9686b6b8bf4e703c84d2205d670aa) was to use a ma...
closed
2022-02-07T16:47:16
https://api.github.com/repos/huggingface/datasets/issues/3685/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3685", "html_url": "https://github.com/huggingface/datasets/pull/3685", "diff_url": "https://github.com/huggingface/datasets/pull/3685.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3685.patch", "merged_at": "2022-02-14T18:04...
true
Add support for `Audio` and `Image` feature in `push_to_hub` Add support for the `Audio` and the `Image` feature in `push_to_hub`. The idea is to remove local path information and store file content under "bytes" in the Arrow table before the push. My initial approach (https://github.com/huggingface/datasets/com...
[ "> Cool thanks !\r\n> \r\n> Also cc @patrickvonplaten @anton-l it means that when calling push_to_hub, the audio bytes are embedded in the parquet files (we don't upload the audio files themselves)\r\n\r\nJust to verify quickly the size of the dataset doesn't change in this case no? E.g. if a dataset has say 20GB i...
https://api.github.com/repos/huggingface/datasets/issues/3684
3,684
[fix]: iwslt2017 download urls
Fixes #2076.
closed
2022-02-06T07:56:55
https://api.github.com/repos/huggingface/datasets/issues/3684/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3684", "html_url": "https://github.com/huggingface/datasets/pull/3684", "diff_url": "https://github.com/huggingface/datasets/pull/3684.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3684.patch", "merged_at": null }
true
[fix]: iwslt2017 download urls Fixes #2076.
[ "Hi ! Thanks for the fix ! Do you know where this new URL comes from ?\r\n\r\nAlso we try to not use Google Drive if possible, since it has download quota limitations. Do you know if the data is available from another host than Google Drive ?", "Oh, I found it just by following the link from the [IWSLT2017 homepa...
https://api.github.com/repos/huggingface/datasets/issues/3683
3,683
added told-br (brazilian hate speech) dataset
Hey, Adding ToLD-Br. Feel free to ask for modifications. Thanks!!
closed
2022-02-04T17:44:32
https://api.github.com/repos/huggingface/datasets/issues/3683/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3683", "html_url": "https://github.com/huggingface/datasets/pull/3683", "diff_url": "https://github.com/huggingface/datasets/pull/3683.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3683.patch", "merged_at": "2022-02-07T21:14...
true
added told-br (brazilian hate speech) dataset Hey, Adding ToLD-Br. Feel free to ask for modifications. Thanks!!
[ "Amazing thank you ! Feel free to regenerate the `dataset_infos.json` to account for the feature type change, and then I think we'll be good to merge :)", "Great thank you ! merging :)" ]
https://api.github.com/repos/huggingface/datasets/issues/3682
3,682
adding told-br for toxic/abusive hatespeech detection
Hey, I'm adding our dataset from our paper published at AACL 2020. Feel free to ask for modifications. Thanks!
closed
2022-02-04T17:18:29
https://api.github.com/repos/huggingface/datasets/issues/3682/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3682", "html_url": "https://github.com/huggingface/datasets/pull/3682", "diff_url": "https://github.com/huggingface/datasets/pull/3682.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3682.patch", "merged_at": null }
true
adding told-br for toxic/abusive hatespeech detection Hey, I'm adding our dataset from our paper published at AACL 2020. Feel free to ask for modifications. Thanks!
[ "Sorry for using multiple github accounts, I didn't notice I was using my professional account to commit/push. Please consider this @JAugusto97 account as the correct one.", "Will remake the PR with the correct github account." ]
https://api.github.com/repos/huggingface/datasets/issues/3681
3,681
Fix TestCommand to move dataset_infos instead of copying
Why do we copy instead of moving the file? CC: @lhoestq @lvwerra
closed
2022-02-04T14:01:52
https://api.github.com/repos/huggingface/datasets/issues/3681/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3681", "html_url": "https://github.com/huggingface/datasets/pull/3681", "diff_url": "https://github.com/huggingface/datasets/pull/3681.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3681.patch", "merged_at": null }
true
Fix TestCommand to move dataset_infos instead of copying Why do we copy instead of moving the file? CC: @lhoestq @lvwerra
[ "All the datasets that are loaded normally with `load_dataset`, if `dataset_infos.json` exists, have this file in the importable directory. So it's fine if we copy the file instead of moving it but it's not a big deal.\r\n\r\nAny reason to prefer moving it rather than copying it ?", "@lvwerra reported than when g...
https://api.github.com/repos/huggingface/datasets/issues/3680
3,680
Fix TestCommand to copy dataset_infos to local dir with only data files
Currently this case is missed. CC: @lvwerra
closed
2022-02-04T13:36:46
https://api.github.com/repos/huggingface/datasets/issues/3680/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3680", "html_url": "https://github.com/huggingface/datasets/pull/3680", "diff_url": "https://github.com/huggingface/datasets/pull/3680.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3680.patch", "merged_at": "2022-02-08T10:32...
true
Fix TestCommand to copy dataset_infos to local dir with only data files Currently this case is missed. CC: @lvwerra
[]
https://api.github.com/repos/huggingface/datasets/issues/3679
3,679
Download datasets from a private hub
In the context of a private hub deployment, customers would like to use load_dataset() to load datasets from their hub, not from the public hub. This doesn't seem to be configurable at the moment and it would be nice to add this feature. The obvious workaround is to clone the repo first and then load it from local s...
closed
2022-02-04T10:49:06
https://api.github.com/repos/huggingface/datasets/issues/3679/comments
null
false
Download datasets from a private hub In the context of a private hub deployment, customers would like to use load_dataset() to load datasets from their hub, not from the public hub. This doesn't seem to be configurable at the moment and it would be nice to add this feature. The obvious workaround is to clone the rep...
[ "For reference:\r\nhttps://github.com/huggingface/transformers/issues/15514\r\nhttps://github.com/huggingface/huggingface_hub/issues/650", "Hi ! For information one can set the environment variable `HF_ENDPOINT` (default is `https://huggingface.co`) if they want to use a private hub.\r\n\r\nWe may need to coordin...
https://api.github.com/repos/huggingface/datasets/issues/3678
3,678
Add code example in wikipedia card
Close #3292.
closed
2022-02-03T18:09:02
https://api.github.com/repos/huggingface/datasets/issues/3678/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/3678", "html_url": "https://github.com/huggingface/datasets/pull/3678", "diff_url": "https://github.com/huggingface/datasets/pull/3678.diff", "patch_url": "https://github.com/huggingface/datasets/pull/3678.patch", "merged_at": "2022-02-04T13:21...
true
Add code example in wikipedia card Close #3292.
[]
https://api.github.com/repos/huggingface/datasets/issues/3677
3,677
Discovery cannot be streamed anymore
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset iterable_dataset = load_dataset("discovery", name="discovery", split="train", streaming=True) list(iterable_dataset.take(1)) ``` ## Expected results The first ...
closed
2022-02-03T15:02:03
https://api.github.com/repos/huggingface/datasets/issues/3677/comments
null
false
Discovery cannot be streamed anymore ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python from datasets import load_dataset iterable_dataset = load_dataset("discovery", name="discovery", split="train", streaming=True) list(iterable_dataset.take(1)) ```...
[ "Seems like a regression from https://github.com/huggingface/datasets/pull/2843\r\n\r\nOr maybe it's an issue with the hosting. I don't think so, though, because https://www.dropbox.com/s/aox84z90nyyuikz/discovery.zip seems to work as expected\r\n\r\n", "Hi @severo, thanks for reporting.\r\n\r\nSome servers do no...
https://api.github.com/repos/huggingface/datasets/issues/3676
3,676
`None` replaced by `[]` after first batch in map
Sometimes `None` can be replaced by `[]` when running map: ```python from datasets import Dataset ds = Dataset.from_dict({"a": range(4)}) ds = ds.map(lambda x: {"b": [[None, [0]]]}, batched=True, batch_size=1, remove_columns=["a"]) print(ds.to_pandas()) # b # 0 [None, [0]] # 1 [[], [0]] # ...
closed
2022-02-03T13:36:48
https://api.github.com/repos/huggingface/datasets/issues/3676/comments
null
false
`None` replaced by `[]` after first batch in map Sometimes `None` can be replaced by `[]` when running map: ```python from datasets import Dataset ds = Dataset.from_dict({"a": range(4)}) ds = ds.map(lambda x: {"b": [[None, [0]]]}, batched=True, batch_size=1, remove_columns=["a"]) print(ds.to_pandas()) # ...
[ "It looks like this is because of this behavior in pyarrow:\r\n```python\r\nimport pyarrow as pa\r\n\r\narr = pa.array([None, [0]])\r\nreconstructed_arr = pa.ListArray.from_arrays(arr.offsets, arr.values)\r\nprint(reconstructed_arr.to_pylist())\r\n# [[], [0]]\r\n```\r\n\r\nIt seems that `arr.offsets` can reconstruc...