id
int64
599M
3.18B
number
int64
1
7.65k
title
stringlengths
1
290
state
stringclasses
2 values
body
stringlengths
0
228k
is_pull_request
bool
1 class
created_at
stringdate
2020-04-14 10:18:02
2025-06-26 12:23:48
updated_at
stringdate
2020-04-27 16:04:17
2025-06-26 14:02:38
closed_at
stringlengths
20
20
⌀
user_login
stringlengths
3
26
author_association
stringclasses
4 values
pr_url
stringlengths
46
49
⌀
pr_merged_at
stringlengths
20
20
⌀
comments_count
int64
0
70
reactions_total
int64
0
61
reactions_plus1
int64
0
39
reactions_heart
int64
0
22
draft
bool
2 classes
locked
bool
1 class
labels
listlengths
0
4
html_url
stringlengths
46
51
is_pr_url
bool
2 classes
comments
listlengths
0
30
616,511,101
74
fix overflow check
closed
I did some tests and unfortunately the test ``` pa_array.nbytes > MAX_BATCH_BYTES ``` doesn't work. Indeed for a StructArray, `nbytes` can be less 2GB even if there is an overflow (it loops...). I don't think we can do a proper overflow test for the limit of 2GB... For now I replaced it with a sanity check on...
true
2020-05-12T09:38:01Z
2020-05-12T10:04:39Z
2020-05-12T10:04:38Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/74
2020-05-12T10:04:37Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/74
true
[]
616,417,845
73
JSON script
closed
Add a JSONS script to read JSON datasets from files.
true
2020-05-12T07:11:22Z
2020-05-18T06:50:37Z
2020-05-18T06:50:36Z
jplu
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/73
2020-05-18T06:50:36Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/73
true
[ "The tests for the Wikipedia dataset do not pass anymore with the error:\r\n```\r\nTo be able to use this dataset, you need to install the following dependencies ['mwparserfromhell'] using 'pip install mwparserfromhell' for instance'\r\n```", "This was an issue on master. You can just rebase from master.", "Per...
616,225,010
72
[README dummy data tests] README to better understand how the dummy data structure works
closed
In this PR a README.md is added to tests to shine more light on how the dummy data structure works. I try to explain the different possible cases. IMO the best way to understand the logic is to checkout the dummy data structure of the different datasets I mention in the README.md since those are the "edge cases". @...
true
2020-05-11T22:19:03Z
2020-05-11T22:26:03Z
2020-05-11T22:26:01Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/72
2020-05-11T22:26:01Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/72
true
[]
615,942,180
71
Fix arrow writer for big datasets using writer_batch_size
closed
This PR fixes Yacine's bug. According to [this](https://github.com/apache/arrow/blob/master/docs/source/cpp/arrays.rst#size-limitations-and-recommendations), it is not recommended to have pyarrow arrays bigger than 2Go. Therefore I set a default batch size of 100 000 examples per batch. In general it shouldn't exce...
true
2020-05-11T14:45:36Z
2020-05-11T20:09:47Z
2020-05-11T20:00:38Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/71
2020-05-11T20:00:38Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/71
true
[ "After a quick chat with Yacine : the 2Go test may not be sufficient actually, as I'm looking at the size of the array and not the size of the current_rows. If the test doesn't do the job I think I'll remove it and lower the batch size a bit to be sure that it never exceeds 2Go. I'll do more tests later" ]
615,679,102
70
adding RACE, QASC, Super_glue and Tiny_shakespear datasets
closed
true
2020-05-11T08:07:49Z
2020-05-12T13:21:52Z
2020-05-12T13:21:51Z
mariamabarham
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/70
2020-05-12T13:21:51Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/70
true
[ "I think rebasing to master will solve the quality test and the datasets that don't have a testing structure yet because of the manual download - maybe you can put them in `datasets under construction`? Then would also make it easier for me to see how to add tests for them :-) " ]
615,450,534
69
fix cache dir in builder tests
closed
minor fix
true
2020-05-10T18:39:21Z
2020-05-11T07:19:30Z
2020-05-11T07:19:28Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/69
2020-05-11T07:19:28Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/69
true
[ "Nice, is that the reason one cannot rerun the tests without deleting the cache? \r\n", "Yes exactly. It was not using the temporary dir for tests." ]
614,882,655
68
[CSV] re-add csv
closed
Re-adding csv under the datasets under construction to keep circle ci happy - will have to see how to include it in the tests. @lhoestq noticed that I accidently deleted it in https://github.com/huggingface/nlp/pull/63#discussion_r422263729.
true
2020-05-08T17:38:29Z
2020-05-08T17:40:48Z
2020-05-08T17:40:46Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/68
2020-05-08T17:40:46Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/68
true
[]
614,798,483
67
[Tests] Test files locally
closed
This PR adds a `aws` and a `local` decorator to the tests so that tests now run on the local datasets. By default, the `aws` is deactivated and `local` is activated and `slow` is deactivated, so that only 1 test per dataset runs on circle ci. **When local is activated all folders in `./datasets` are tested.** ...
true
2020-05-08T15:02:43Z
2020-05-08T19:50:47Z
2020-05-08T15:17:00Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/67
2020-05-08T15:17:00Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/67
true
[ "Super nice, good job @patrickvonplaten!" ]
614,748,552
66
[Datasets] ReadME
closed
true
2020-05-08T13:37:43Z
2020-05-08T13:39:23Z
2020-05-08T13:39:22Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/66
2020-05-08T13:39:22Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/66
true
[]
614,746,516
65
fix math dataset and xcopa
closed
- fixes math dataset and xcopa, uploaded both of the to S3
true
2020-05-08T13:33:55Z
2020-05-08T13:35:41Z
2020-05-08T13:35:40Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/65
2020-05-08T13:35:40Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/65
true
[]
614,737,057
64
[Datasets] Make master ready for datasets adding
closed
Add all relevant files so that datasets can now be added on master
true
2020-05-08T13:17:00Z
2020-05-08T13:17:31Z
2020-05-08T13:17:30Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/64
2020-05-08T13:17:30Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/64
true
[]
614,666,365
63
[Dataset scripts] add all datasets scripts
closed
As mentioned, we can have the canonical datasets in the master. For now I also want to include all the data as present on S3 to make the synchronization easier when uploading new datastes. @mariamabarham @lhoestq @thomwolf - what do you think? If this is ok for you, I can sync up the master with the `add_datase...
true
2020-05-08T10:50:15Z
2020-05-08T17:39:22Z
2020-05-08T11:34:00Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/63
2020-05-08T11:34:00Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/63
true
[]
614,630,830
62
[Cached Path] Better error message
closed
IMO returning `None` in this function only leads to confusion and is never helpful.
true
2020-05-08T09:39:47Z
2020-05-08T09:45:47Z
2020-05-08T09:45:47Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/62
null
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/62
true
[]
614,607,474
61
[Load] rename setup_module to prepare_module
closed
rename setup_module to prepare_module due to issues with pytests `setup_module` function. See: PR #59.
true
2020-05-08T08:54:22Z
2020-05-08T08:56:32Z
2020-05-08T08:56:16Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/61
2020-05-08T08:56:16Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/61
true
[]
614,372,553
60
Update to simplify some datasets conversion
closed
This PR updates the encoding of `Values` like `integers`, `boolean` and `float` to use python casting and avoid having to cast in the dataset scripts, as mentioned here: https://github.com/huggingface/nlp/pull/37#discussion_r420176626 We could also change (not included in this PR yet): - `supervized_keys` to make t...
true
2020-05-07T22:02:24Z
2020-05-08T10:38:32Z
2020-05-08T10:18:24Z
thomwolf
MEMBER
https://github.com/huggingface/datasets/pull/60
2020-05-08T10:18:24Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/60
true
[ "Awesome! ", "Also we should convert `tf.io.gfile.exists` into `os.path.exists` , `tf.io.gfile.listdir`into `os.listdir` and `tf.io.gfile.glob` into `glob.glob` (will need to add `import glob`)", "> Also we should convert `tf.io.gfile.exists` into `os.path.exists` , `tf.io.gfile.listdir`into `os.listdir` and `...
614,366,045
59
Fix tests
closed
@patrickvonplaten I've broken a bit the tests with #25 while simplifying and re-organizing the `load.py` and `download_manager.py` scripts. I'm trying to fix them here but I have a weird error, do you think you can have a look? ```bash (datasets) MacBook-Pro-de-Thomas:datasets thomwolf$ python -m pytest -sv ./test...
true
2020-05-07T21:48:09Z
2020-05-08T10:57:57Z
2020-05-08T10:46:51Z
thomwolf
MEMBER
https://github.com/huggingface/datasets/pull/59
2020-05-08T10:46:51Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/59
true
[ "I can fix the tests tomorrow :-) ", "Very weird bug indeed! I think the problem was that when importing `setup_module` we overwrote `pytest's` setup_module function. I think this is the relevant code in pytest: https://github.com/pytest-dev/pytest/blob/9d2eabb397b059b75b746259daeb20ee5588f559/src/_pytest/python....
614,362,308
58
Aborted PR - Fix tests
closed
@patrickvonplaten I've broken a bit the tests with #25 while simplifying and re-organizing the `load.py` and `download_manager.py` scripts. I'm trying to fix them here but I have a weird error, do you think you can have a look? ```bash (datasets) MacBook-Pro-de-Thomas:datasets thomwolf$ python -m pytest -sv ./test...
true
2020-05-07T21:40:19Z
2020-05-07T21:48:01Z
2020-05-07T21:41:27Z
thomwolf
MEMBER
https://github.com/huggingface/datasets/pull/58
null
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/58
true
[ "Wait I messed up my branch, let me clean this." ]
614,261,638
57
Better cached path
closed
### Changes: - The `cached_path` no longer returns None if the file is missing/the url doesn't work. Instead, it can raise `FileNotFoundError` (missing file), `ConnectionError` (no cache and unreachable url) or `ValueError` (parsing error) - Fix requests to firebase API that doesn't handle HEAD requests... - Allow c...
true
2020-05-07T18:36:00Z
2020-05-08T13:20:30Z
2020-05-08T13:20:28Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/57
2020-05-08T13:20:28Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/57
true
[ "I should have read this PR before doing my own: https://github.com/huggingface/nlp/pull/62 :D \r\nwill close mine. Looks great :-) ", "> Awesome, this is really nice!\r\n> \r\n> By the way, we should improve the `cached_path` method of the `transformers` repo similarly, don't you think (@patrickvonplaten in part...
614,236,869
56
[Dataset] Tester add mock function
closed
need to add an empty `extract()` function to make `hansard` dataset test work.
true
2020-05-07T17:51:37Z
2020-05-07T17:52:51Z
2020-05-07T17:52:50Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/56
2020-05-07T17:52:50Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/56
true
[]
613,968,072
55
Beam datasets
closed
# Beam datasets ## Intro Beam Datasets are using beam pipelines for preprocessing (basically lots of `.map` over objects called PCollections). The advantage of apache beam is that you can choose which type of runner you want to use to preprocess your data. The main runners are: - the `DirectRunner` to run the p...
true
2020-05-07T11:04:32Z
2020-05-11T07:20:02Z
2020-05-11T07:20:00Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/55
2020-05-11T07:20:00Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/55
true
[ "Right now the changes are a bit hard to read as the one from #25 are also included. You can wait until #25 is merged before looking at the implementation details", "Nice!! I tested it a bit and works quite well. I will do a my review once the #25 will be merged because there are several overlaps.\r\n\r\nAt least...
613,513,348
54
[Tests] Improved Error message for dummy folder structure
closed
Improved Error message
true
2020-05-06T18:11:48Z
2020-05-06T18:13:00Z
2020-05-06T18:12:59Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/54
2020-05-06T18:12:59Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/54
true
[]
613,436,158
53
[Features] Typo in generate_from_dict
closed
Change `isinstance` test in features when generating features from dict.
true
2020-05-06T16:05:23Z
2020-05-07T15:28:46Z
2020-05-07T15:28:45Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/53
2020-05-07T15:28:45Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/53
true
[]
613,339,071
52
allow dummy folder structure to handle dict of lists
closed
`esnli.py` needs that extension of the dummy data testing.
true
2020-05-06T13:54:35Z
2020-05-06T13:55:19Z
2020-05-06T13:55:18Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/52
2020-05-06T13:55:18Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/52
true
[]
613,266,668
51
[Testing] Improved testing structure
closed
This PR refactors the test design a bit and puts the mock download manager in the `utils` files as it is just a test helper class. as @mariamabarham pointed out, creating a dummy folder structure can be quite hard to grasp. This PR tries to change that to some extent. It follows the following logic for the `dumm...
true
2020-05-06T12:03:07Z
2020-05-07T22:07:19Z
2020-05-06T13:20:18Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/51
2020-05-06T13:20:17Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/51
true
[ "Awesome!\r\nLet's have this in the doc at the end :-)" ]
612,583,126
50
[Tests] test only for fast test as a default
closed
Test only for one config on circle ci to speed up testing. Add all config test as a slow test. @mariamabarham @thomwolf
true
2020-05-05T12:59:22Z
2020-05-05T13:02:18Z
2020-05-05T13:02:16Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/50
2020-05-05T13:02:16Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/50
true
[ "Test failure is not related to change in test file.\r\n" ]
612,545,483
49
fix flatten nested
closed
true
2020-05-05T11:55:13Z
2020-05-05T13:59:26Z
2020-05-05T13:59:25Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/49
2020-05-05T13:59:25Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/49
true
[]
612,504,687
48
[Command Convert] remove tensorflow import
closed
Remove all tensorflow import statements.
true
2020-05-05T10:41:00Z
2020-05-05T11:13:58Z
2020-05-05T11:13:56Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/48
2020-05-05T11:13:56Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/48
true
[]
612,446,493
47
[PyArrow Feature] fix py arrow bool
closed
To me it seems that `bool` can only be accessed with `bool_` when looking at the pyarrow types: https://arrow.apache.org/docs/python/api/datatypes.html.
true
2020-05-05T08:56:28Z
2020-05-05T10:40:28Z
2020-05-05T10:40:27Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/47
2020-05-05T10:40:27Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/47
true
[]
612,398,190
46
[Features] Strip str key before dict look-up
closed
The dataset `anli.py` currently fails because it tries to look up a key `1\n` in a dict that only has the key `1`. Added an if statement to strip key if it cannot be found in dict.
true
2020-05-05T07:31:45Z
2020-05-05T08:37:45Z
2020-05-05T08:37:44Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/46
2020-05-05T08:37:44Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/46
true
[]
612,386,583
45
[Load] Separate Module kwargs and builder kwargs.
closed
Kwargs for the `load_module` fn should be passed with `module_xxxx` to `builder_kwargs` of `load` fn. This is a follow-up PR of: https://github.com/huggingface/nlp/pull/41
true
2020-05-05T07:09:54Z
2022-10-04T09:32:11Z
2020-05-08T09:51:22Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/45
null
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/45
true
[]
611,873,486
44
[Tests] Fix tests for datasets with no config
closed
Forgot to fix `None` problem for datasets that have no config this in PR: https://github.com/huggingface/nlp/pull/42
true
2020-05-04T13:25:38Z
2020-05-04T13:28:04Z
2020-05-04T13:28:03Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/44
2020-05-04T13:28:03Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/44
true
[]
611,773,279
43
[Checksums] If no configs exist prevent to run over empty list
closed
`movie_rationales` e.g. has no configs.
true
2020-05-04T10:39:42Z
2022-10-04T09:32:02Z
2020-05-04T13:18:03Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/43
null
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/43
true
[ "Whoops I fixed it directly on master before checking that you have done it in this PR. We may close it", "Yeah, I saw :-) But I think we should add this as well since some datasets have an empty list of configs and then as the code is now it would fail. \r\n\r\nIn this PR, I just make sure that the code jumps in...
611,754,343
42
[Tests] allow tests for builders without config
closed
Some dataset scripts have no configs - the tests have to be adapted for this case. In this case the dummy data will be saved as: - natural_questions -> dummy -> -> 1.0.0 (version num) -> -> -> dummy_data.zip
true
2020-05-04T10:06:22Z
2020-05-04T13:10:50Z
2020-05-04T13:10:48Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/42
2020-05-04T13:10:48Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/42
true
[]
611,739,219
41
[Load module] allow kwargs into load module
closed
Currenly it is not possible to force a re-download of the dataset script. This simple change allows to pass ``force_reload=True`` as ``builder_kwargs`` in the ``load.py`` function.
true
2020-05-04T09:42:11Z
2020-05-04T19:39:07Z
2020-05-04T19:39:06Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/41
2020-05-04T19:39:06Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/41
true
[]
611,721,308
40
Update remote checksums instead of overwrite
closed
When the user uploads a dataset on S3, checksums are also uploaded with the `--upload_checksums` parameter. If the user uploads the dataset in several steps, then the remote checksums file was previously overwritten. Now it's going to be updated with the new checksums.
true
2020-05-04T09:13:14Z
2020-05-04T11:51:51Z
2020-05-04T11:51:49Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/40
2020-05-04T11:51:49Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/40
true
[]
611,712,135
39
[Test] improve slow testing
closed
true
2020-05-04T08:58:33Z
2020-05-04T08:59:50Z
2020-05-04T08:59:49Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/39
2020-05-04T08:59:49Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/39
true
[]
611,677,656
38
[Checksums] Error for some datasets
closed
The checksums command works very nicely for `squad`. But for `crime_and_punish` and `xnli`, the same bug happens: When running: ``` python nlp-cli nlp-cli test xnli --save_checksums ``` leads to: ``` File "nlp-cli", line 33, in <module> service.run() File "/home/patrick/python_bin/nlp/commands...
true
2020-05-04T08:00:16Z
2020-05-04T09:48:20Z
2020-05-04T09:48:20Z
patrickvonplaten
CONTRIBUTOR
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/38
false
[ "@lhoestq - could you take a look? It's not very urgent though!", "Fixed with 06882b4\r\n\r\nNow your command works :)\r\nNote that you can also do\r\n```\r\nnlp-cli test datasets/nlp/xnli --save_checksums\r\n```\r\nSo that it will save the checksums directly in the right directory.", "Awesome!" ]
611,670,295
37
[Datasets ToDo-List] add datasets
closed
## Description This PR acts as a dashboard to see which datasets are added to the library and work. Cicle-ci should always be green so that we can be sure that newly added datasets are functional. This PR should not be merged. ## Progress **For the following datasets the test commands**: ``` RUN_SLOW...
true
2020-05-04T07:47:39Z
2022-10-04T09:32:17Z
2020-05-08T13:48:23Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/37
null
8
0
0
0
true
false
[]
https://github.com/huggingface/datasets/pull/37
true
[ "Note:\r\n```\r\nnlp-cli test datasets/nlp/<your-dataset-folder> --save_checksums --all_configs\r\n```\r\ndirectly saves the checksums in the right place, and runs for all the dataset configurations.", "@patrickvonplaten can you provide the add the link to the PR for the dummy data? ", "https://github.com/huggi...
611,528,349
36
Metrics - refactoring, adding support for download and distributed metrics
closed
Refactoring metrics to have a similar loading API than the datasets and improving the import system. # Import system The import system has ben upgraded. There are now three types of imports allowed: 1. `library` imports (identified as "absolute imports") ```python import seqeval ``` => we'll test all the impor...
true
2020-05-03T23:00:17Z
2020-05-11T08:16:02Z
2020-05-11T08:16:00Z
thomwolf
MEMBER
https://github.com/huggingface/datasets/pull/36
2020-05-11T08:16:00Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/36
true
[ "Ok, this one seems to be ready to merge.", "> Really cool, I love it! I would just raise a tiny point, the distributive version of the metrics might not work properly with TF because it is a different way to do, why not to add a \"framework\" detection and raise warning when TF is used, saying something like \"n...
611,413,731
35
[Tests] fix typo
closed
@lhoestq - currently the slow test fail with: ``` _____________________________________________________________________________________ DatasetTest.test_load_real_dataset_xnli _____________________________________________________________________________________ ...
true
2020-05-03T13:23:49Z
2020-05-03T13:24:21Z
2020-05-03T13:24:20Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/35
2020-05-03T13:24:20Z
0
1
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/35
true
[]
611,385,516
34
[Tests] add slow tests
closed
This PR adds a slow test that downloads the "real" dataset. The test is decorated as "slow" so that it will not automatically run on circle ci. Before uploading a dataset, one should test that this test passes, manually by running ``` RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_d...
true
2020-05-03T11:01:22Z
2020-05-03T12:18:30Z
2020-05-03T12:18:29Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/34
2020-05-03T12:18:29Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/34
true
[]
611,052,081
33
Big cleanup/refactoring for clean serialization
closed
This PR cleans many base classes to re-build them as `dataclasses`. We can thus use a simple serialization workflow for `DatasetInfo`, including it's `Features` and `SplitDict` based on `dataclasses` `asdict()`. The resulting code is a lot shorter, can be easily serialized/deserialized, dataset info are human-readab...
true
2020-05-01T23:45:57Z
2020-05-03T12:17:34Z
2020-05-03T12:17:33Z
thomwolf
MEMBER
https://github.com/huggingface/datasets/pull/33
2020-05-03T12:17:33Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/33
true
[ "Great! I think when this merged, we can merge sure that Circle Ci stays happy when uploading new datasets. " ]
610,715,580
32
Fix map caching notebooks
closed
Previously, caching results with `.map()` didn't work in notebooks. To reuse a result, `.map()` serializes the functions with `dill.dumps` and then it hashes it. The problem is that when using `dill.dumps` to serialize a function, it also saves its origin (filename + line no.) and the origin of all the `globals` th...
true
2020-05-01T11:55:26Z
2020-05-03T12:15:58Z
2020-05-03T12:15:57Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/32
2020-05-03T12:15:57Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/32
true
[]
610,677,641
31
[Circle ci] Install a virtual env before running tests
closed
Install a virtual env before running tests to not running into sudo issues when dynamically downloading files. Same number of tests now pass / fail as on my local computer: ![Screenshot from 2020-05-01 12-14-44](https://user-images.githubusercontent.com/23423619/80798814-8a0a0a80-8ba5-11ea-8db8-599d33bbfccd.png)
true
2020-05-01T10:11:17Z
2020-05-01T22:06:16Z
2020-05-01T22:06:15Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/31
2020-05-01T22:06:15Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/31
true
[]
610,549,072
30
add metrics which require download files from github
closed
To download files from github, I copied the `load_dataset_module` and its dependencies (without the builder) in `load.py` to `metrics/metric_utils.py`. I made the following changes: - copy the needed files in a folder`metric_name` - delete all other files that are not needed For metrics that require an external...
true
2020-05-01T04:13:22Z
2022-10-04T09:31:58Z
2020-05-11T08:19:54Z
mariamabarham
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/30
null
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/30
true
[]
610,243,997
29
Hf_api small changes
closed
From Patrick: ```python from nlp import hf_api api = hf_api.HfApi() api.dataset_list() ``` works :-)
true
2020-04-30T17:06:43Z
2020-04-30T19:51:45Z
2020-04-30T19:51:44Z
julien-c
MEMBER
https://github.com/huggingface/datasets/pull/29
2020-04-30T19:51:44Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/29
true
[ "Ok merging! I think it's good now" ]
610,241,907
28
[Circle ci] Adds circle ci config
closed
@thomwolf can you take a look and set up circle ci on: https://app.circleci.com/projects/project-dashboard/github/huggingface I think for `nlp` only admins can set it up, which I guess is you :-)
true
2020-04-30T17:03:35Z
2020-04-30T19:51:09Z
2020-04-30T19:51:08Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/28
2020-04-30T19:51:08Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/28
true
[]
610,230,476
27
[Cleanup] Removes all files in testing except test_dataset_common
closed
As far as I know, all files in `tests` were old `tfds test files` so I removed them. We can still look them up on the other library.
true
2020-04-30T16:45:21Z
2020-04-30T17:39:25Z
2020-04-30T17:39:23Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/27
2020-04-30T17:39:23Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/27
true
[]
610,226,047
26
[Tests] Clean tests
closed
the abseil testing library (https://abseil.io/docs/python/quickstart.html) is better than the one I had before, so I decided to switch to that and changed the `setup.py` config file. Abseil has more support and a cleaner API for parametrized testing I think. I added a list of all dataset scripts that are currentl...
true
2020-04-30T16:38:29Z
2020-04-30T20:12:04Z
2020-04-30T20:12:03Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/26
2020-04-30T20:12:03Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/26
true
[]
609,708,863
25
Add script csv datasets
closed
This is a PR allowing to create datasets from local CSV files. A usage might be: ```python import nlp ds = nlp.load( path="csv", name="bbc", dataset_files={ nlp.Split.TRAIN: ["datasets/dummy_data/csv/train.csv"], nlp.Split.TEST: [""datasets/dummy_data/csv/test.csv""] }, c...
true
2020-04-30T08:28:08Z
2022-10-04T09:32:13Z
2020-05-07T21:14:49Z
jplu
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/25
2020-05-07T21:14:49Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/25
true
[ "Very interesting thoughts, we should think deeper about all what you raised indeed.", "Ok here is a proposal for a more general API and workflow.\r\n\r\n# New `ArrowBasedBuilder`\r\n\r\nFor all the formats that can be directly and efficiently loaded by Arrow (CSV, JSON, Parquet, Arrow), we don't really want to h...
609,064,987
24
Add checksums
closed
### Checksums files They are stored next to the dataset script in urls_checksums/checksums.txt. They are used to check the integrity of the datasets downloaded files. I kept the same format as tensorflow-datasets. There is one checksums file for all configs. ### Load a dataset When you do `load("squad")`, i...
true
2020-04-29T13:37:29Z
2020-04-30T19:52:50Z
2020-04-30T19:52:49Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/24
2020-04-30T19:52:49Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/24
true
[ "Looks good to me :-) \r\n\r\nJust would prefer to get rid of the `_DYNAMICALLY_IMPORTED_MODULE` attribute and replace it by a `get_imported_module()` function. Maybe there is something I'm not seeing here though - what do you think? ", "> * I'm not sure I understand the general organization of checksums. I see w...
608,508,706
23
Add metrics
closed
This PR is a draft for adding metrics (sacrebleu and seqeval are added) use case examples: `import nlp` **sacrebleu:** ``` refs = [['The dog bit the man.', 'It was not unexpected.', 'The man bit him first.'], ['The dog had bit the man.', 'No one was surprised.', 'The man had bitten the dog.']] sys = ['...
true
2020-04-28T18:02:05Z
2022-10-04T09:31:56Z
2020-05-11T08:19:38Z
mariamabarham
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/23
null
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/23
true
[]
608,298,586
22
adding bleu score code
closed
this PR add the BLEU score metric to the lib. It can be tested by running the following code. ` from nlp.metrics import bleu hyp1 = "It is a guide to action which ensures that the military always obeys the commands of the party" ref1a = "It is a guide to action that ensures that the military forces always being...
true
2020-04-28T13:00:50Z
2020-04-28T17:48:20Z
2020-04-28T17:48:08Z
mariamabarham
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/22
null
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/22
true
[]
607,914,185
21
Cleanup Features - Updating convert command - Fix Download manager
closed
This PR makes a number of changes: # Updating `Features` Features are a complex mechanism provided in `tfds` to be able to modify a dataset on-the-fly when serializing to disk and when loading from disk. We don't really need this because (1) it hides too much from the user and (2) our datatype can be directly ...
true
2020-04-27T23:16:55Z
2020-05-01T09:29:47Z
2020-05-01T09:29:46Z
thomwolf
MEMBER
https://github.com/huggingface/datasets/pull/21
2020-05-01T09:29:46Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/21
true
[ "For conflicts, I think the mention hint \"This should be modified because it mentions ...\" is missing.", "Looks great!" ]
607,313,557
20
remove boto3 and promise dependencies
closed
With the new download manager, we don't need `promise` anymore. I also removed `boto3` as in [this pr](https://github.com/huggingface/transformers/pull/3968)
true
2020-04-27T07:39:45Z
2020-04-27T16:04:17Z
2020-04-27T14:15:45Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/20
2020-04-27T14:15:45Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/20
true
[]
606,400,645
19
Replace tf.constant for TF
closed
Replace simple tf.constant type of Tensor to tf.ragged.constant which allows to have examples of different size in a tf.data.Dataset. Now the training works with TF. Here the same example than for the PT in collab: ```python import tensorflow as tf import nlp from transformers import BertTokenizerFast, TFBertF...
true
2020-04-24T15:32:06Z
2020-04-29T09:27:08Z
2020-04-25T21:18:45Z
jplu
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/19
2020-04-25T21:18:45Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/19
true
[ "Awesome!" ]
606,109,196
18
Updating caching mechanism - Allow dependency in dataset processing scripts - Fix style and quality in the repo
closed
This PR has a lot of content (might be hard to review, sorry, in particular because I fixed the style in the repo at the same time). # Style & quality: You can now install the style and quality tools with `pip install -e .[quality]`. This will install black, the compatible version of sort and flake8. You can then ...
true
2020-04-24T07:39:48Z
2020-04-29T15:27:28Z
2020-04-28T16:06:28Z
thomwolf
MEMBER
https://github.com/huggingface/datasets/pull/18
2020-04-28T16:06:28Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/18
true
[ "LGTM" ]
605,753,027
17
Add Pandas as format type
closed
As detailed in the title ^^
true
2020-04-23T18:20:14Z
2020-04-27T18:07:50Z
2020-04-27T18:07:48Z
jplu
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/17
2020-04-27T18:07:48Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/17
true
[]
605,661,462
16
create our own DownloadManager
closed
I tried to create our own - and way simpler - download manager, by replacing all the complicated stuff with our own `cached_path` solution. With this implementation, I tried `dataset = nlp.load('squad')` and it seems to work fine. For the implementation, what I did exactly: - I copied the old download manager - I...
true
2020-04-23T16:08:07Z
2021-05-05T18:25:24Z
2020-04-25T21:25:10Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/16
2020-04-25T21:25:10Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/16
true
[ "Looks great to me! ", "The new download manager is ready. I removed the old folder and I fixed a few remaining dependencies.\r\nI tested it on squad and a few others from the dataset folder and it works fine.\r\n\r\nThe only impact of these changes is that it breaks the `download_and_prepare` script that was use...
604,906,708
15
[Tests] General Test Design for all dataset scripts
closed
The general idea is similar to how testing is done in `transformers`. There is one general `test_dataset_common.py` file which has a `DatasetTesterMixin` class. This class implements all of the logic that can be used in a generic way for all dataset classes. The idea is to keep each individual dataset test file as mini...
true
2020-04-22T16:46:01Z
2022-10-04T09:31:54Z
2020-04-27T14:48:02Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/15
2020-04-27T14:48:02Z
10
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/15
true
[ "> I think I'm fine with this.\r\n> \r\n> The alternative would be to host a small subset of the dataset on the S3 together with the testing script. But I think having all (test file creation + actual tests) in one file is actually quite convenient.\r\n> \r\n> Good for me!\r\n> \r\n> One question though, will we ha...
604,761,315
14
[Download] Only create dir if not already exist
closed
This was quite annoying to find out :D. Some datasets have save in the same directory. So we should only create a new directory if it doesn't already exist.
true
2020-04-22T13:32:51Z
2022-10-04T09:31:50Z
2020-04-23T08:27:33Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/14
2020-04-23T08:27:33Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/14
true
[]
604,547,951
13
[Make style]
closed
Added Makefile and applied make style to all. make style runs the following code: ``` style: black --line-length 119 --target-version py35 src isort --recursive src ``` It's the same code that is run in `transformers`.
true
2020-04-22T08:10:06Z
2024-11-20T13:42:58Z
2020-04-23T13:02:22Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/13
2020-04-23T13:02:22Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/13
true
[ "I think this can be quickly reproduced. \r\nI use `black, version 19.10b0`. \r\n\r\nWhen running: \r\n`black nlp/src/arrow_reader.py` \r\nit gives me: \r\n\r\n```\r\nerror: cannot format /home/patrick/hugging_face/nlp/src/nlp/arrow_reader.py: cannot use --safe with this file; failed to parse source file. AST erro...
604,518,583
12
[Map Function] add assert statement if map function does not return dict or None
closed
IMO, if a function is provided that is not a print statement (-> returns variable of type `None`) or a function that updates the datasets (-> returns variable of type `dict`), then a `TypeError` should be raised. Not sure whether you had cases in mind where the user should do something else @thomwolf , but I think ...
true
2020-04-22T07:21:24Z
2022-10-04T09:31:53Z
2020-04-24T06:29:03Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/12
2020-04-24T06:29:03Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/12
true
[ "Also added to an assert statement that if a dict is returned by function, all values of `dicts` are `lists`", "Wait to merge until `make style` is set in place.", "Updated the assert statements. Played around with multiple cases and it should be good now IMO. " ]
603,921,624
11
[Convert TFDS to HFDS] Extend script to also allow just converting a single file
closed
Adds another argument to be able to convert only a single file
true
2020-04-21T11:25:33Z
2022-10-04T09:31:46Z
2020-04-21T20:47:00Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/11
2020-04-21T20:47:00Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/11
true
[]
603,909,327
10
Name json file "squad.json" instead of "squad.py.json"
closed
true
2020-04-21T11:04:28Z
2022-10-04T09:31:44Z
2020-04-21T20:48:06Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/10
2020-04-21T20:48:06Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/10
true
[]
603,894,874
9
[Clean up] Datasets
closed
Clean up `nlp/datasets` folder. As I understood, eventually the `nlp/datasets` shall not exist anymore at all. The folder `nlp/datasets/nlp` is kept for the moment, but won't be needed in the future, since it will live on S3 (actually it already does) at: `https://s3.console.aws.amazon.com/s3/buckets/datasets.h...
true
2020-04-21T10:39:56Z
2022-10-04T09:31:42Z
2020-04-21T20:49:58Z
patrickvonplaten
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/9
2020-04-21T20:49:58Z
1
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/9
true
[ "Yes!" ]
601,783,243
8
Fix issue 6: error when the citation is missing in the DatasetInfo
closed
true
2020-04-17T08:04:26Z
2020-04-29T09:27:11Z
2020-04-20T13:24:12Z
jplu
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/8
2020-04-20T13:24:12Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/8
true
[]
601,780,534
7
Fix issue 5: allow empty datasets
closed
true
2020-04-17T07:59:56Z
2020-04-29T09:27:13Z
2020-04-20T13:23:48Z
jplu
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/7
2020-04-20T13:23:47Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/7
true
[]
600,330,836
6
Error when citation is not given in the DatasetInfo
closed
The following error is raised when the `citation` parameter is missing when we instantiate a `DatasetInfo`: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jplu/dev/jplu/datasets/src/nlp/info.py", line 338, in __repr__ citation_pprint = _indent('"""{}"""'.format(self....
true
2020-04-15T14:14:54Z
2020-04-29T09:23:22Z
2020-04-29T09:23:22Z
jplu
CONTRIBUTOR
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6
false
[ "Yes looks good to me.\r\nNote that we may refactor quite strongly the `info.py` to make it a lot simpler (it's very complicated for basically a dictionary of info I think)", "No, problem ^^ It might just be a temporary fix :)", "Fixed." ]
600,295,889
5
ValueError when a split is empty
closed
When a split is empty either TEST, VALIDATION or TRAIN I get the following error: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 295, in load ds = dbuilder.as_dataset(**as_dataset_kwargs) File "/home/jplu/dev/jplu/data...
true
2020-04-15T13:25:13Z
2020-04-29T09:23:05Z
2020-04-29T09:23:05Z
jplu
CONTRIBUTOR
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/5
false
[ "To fix this I propose to modify only the file `arrow_reader.py` with few updates. First update, the following method:\r\n```python\r\ndef _make_file_instructions_from_absolutes(\r\n name,\r\n name2len,\r\n absolute_instructions,\r\n):\r\n \"\"\"Returns the files instructions from the absolu...
600,185,417
4
[Feature] Keep the list of labels of a dataset as metadata
closed
It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata.
true
2020-04-15T10:17:10Z
2020-07-08T16:59:46Z
2020-05-04T06:11:57Z
jplu
CONTRIBUTOR
null
null
6
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/4
false
[ "Yes! I see mostly two options for this:\r\n- a `Feature` approach like currently (but we might deprecate features)\r\n- wrapping in a smart way the Dictionary arrays of Arrow: https://arrow.apache.org/docs/python/data.html?highlight=dictionary%20encode#dictionary-arrays", "I would have a preference for the secon...
600,180,050
3
[Feature] More dataset outputs
closed
Add the following dataset outputs: - Spark - Pandas
true
2020-04-15T10:08:14Z
2020-05-04T06:12:27Z
2020-05-04T06:12:27Z
jplu
CONTRIBUTOR
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/3
false
[ "Yes!\r\n- pandas will be a one-liner in `arrow_dataset`: https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.to_pandas\r\n- for Spark I have no idea. let's investigate that at some point", "For Spark it looks to be pretty straightforward as well https://spark.apache.org/docs/latest/sq...
599,767,671
2
Issue to read a local dataset
closed
Hello, As proposed by @thomwolf, I open an issue to explain what I'm trying to do without success. What I want to do is to create and load a local dataset, the script I have done is the following: ```python import os import csv import nlp class BbcConfig(nlp.BuilderConfig): def __init__(self, **kwarg...
true
2020-04-14T18:18:51Z
2020-05-11T18:55:23Z
2020-05-11T18:55:22Z
jplu
CONTRIBUTOR
null
null
5
1
1
0
null
false
[]
https://github.com/huggingface/datasets/issues/2
false
[ "My first bug report ❤️\r\nLooking into this right now!", "Ok, there are some news, most good than bad :laughing: \r\n\r\nThe dataset script now became:\r\n```python\r\nimport csv\r\n\r\nimport nlp\r\n\r\n\r\nclass Bbc(nlp.GeneratorBasedBuilder):\r\n VERSION = nlp.Version(\"1.0.0\")\r\n\r\n def __init__(sel...
599,457,467
1
changing nlp.bool to nlp.bool_
closed
true
2020-04-14T10:18:02Z
2022-10-04T09:31:40Z
2020-04-14T12:01:40Z
mariamabarham
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/1
2020-04-14T12:01:40Z
0
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/1
true
[]