id
stringlengths
18
24
number
int64
2
8.48k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
createdAt
timestamp[s]date
2020-04-14 18:18:51
2026-08-13 03:02:44
updatedAt
timestamp[s]date
2020-04-29 09:23:05
2026-08-15 04:47:12
closedAt
timestamp[s]date
2020-04-29 09:23:05
2026-07-28 10:29:56
url
stringlengths
48
51
author
dict
labels
dict
comments
listlengths
0
30
MDU6SXNzdWU2MjM2Mjc4MDA=
187
[Question] How to load wikipedia ? Beam runner ?
When `nlp.load_dataset('wikipedia')`, I got * `WARNING:nlp.builder:Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided. Please pass a nlp.DownloadConfig(beam_runner=...) object to the builder.download_and_prepare(download_config=...) method. Default values will be ...
CLOSED
2020-05-23T10:18:52
2020-05-25T00:12:02
2020-05-25T00:12:02
https://github.com/huggingface/datasets/issues/187
{ "login": "richarddwang" }
{ "nodes": [] }
[ "I have seen that somebody is hard working on easierly loadable wikipedia. #129 \r\nMaybe I should wait a few days for that version ?", "Yes we (well @lhoestq) are very actively working on this." ]
MDU6SXNzdWU2MjM1OTUxODA=
186
Weird-ish: Not creating unique caches for different phases
Sample code: ```python import nlp dataset = nlp.load_dataset('boolq') def func1(x): return x def func2(x): return None train_output = dataset["train"].map(func1) valid_output = dataset["validation"].map(func1) print() print(len(train_output), len(valid_output)) # Output: 9427 9427 ``` Th...
CLOSED
2020-05-23T06:40:58
2020-05-23T20:22:18
2020-05-23T20:22:17
https://github.com/huggingface/datasets/issues/186
{ "login": "zphang" }
{ "nodes": [] }
[ "Looks like a duplicate of #120.\r\nThis is already fixed on master. We'll do a new release on pypi soon", "Good catch, it looks fixed.\r\n" ]
MDU6SXNzdWU2MjMwNTQyNzA=
183
[Bug] labels of glue/ax are all -1
``` ax = nlp.load_dataset('glue', 'ax') for i in range(30): print(ax['test'][i]['label'], end=', ') ``` ``` -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, ```
CLOSED
2020-05-22T08:43:36
2020-05-22T22:14:05
2020-05-22T22:14:05
https://github.com/huggingface/datasets/issues/183
{ "login": "richarddwang" }
{ "nodes": [] }
[ "This is the test set given by the Glue benchmark. The labels are not provided, and therefore set to -1.", "Ah, yeah. Why it didn’t occur to me. 😂\nThank you for your comment." ]
MDU6SXNzdWU2MjI2MzQ0MjA=
181
Cannot upload my own dataset
I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` ...
CLOSED
2020-05-21T16:45:52
2020-06-18T22:14:42
2020-06-18T22:14:42
https://github.com/huggingface/datasets/issues/181
{ "login": "korakot" }
{ "nodes": [] }
[ "It's my misunderstanding. I cannot just upload a csv. I need to write a dataset loading script too.", "I now try with the sample `datasets/csv` folder. \r\n\r\n nlp-cli upload csv\r\n\r\nThe error is still the same\r\n\r\n```\r\n2020-05-21 17:20:56.394659: I tensorflow/stream_executor/platform/default/dso_loa...
MDU6SXNzdWU2MjI1MjU0MTA=
179
[Feature request] separate split name and split instructions
Currently, the name of an nlp.NamedSplit is parsed in arrow_reader.py and used as the instruction. This makes it impossible to have several training sets, which can occur when: - A dataset corresponds to a collection of sub-datasets - A dataset was built in stages, adding new examples at each stage Would it be ...
CLOSED
2020-05-21T14:10:51
2020-05-22T13:31:08
2020-05-22T13:31:07
https://github.com/huggingface/datasets/issues/179
{ "login": "yjernite" }
{ "nodes": [] }
[ "If your dataset is a collection of sub-datasets, you should probably consider having one config per sub-dataset. For example for Glue, we have sst2, mnli etc.\r\nIf you want to have multiple train sets (for example one per stage). The easiest solution would be to name them `nlp.Split(\"train_stage1\")`, `nlp.Split...
MDU6SXNzdWU2MjE5Mjk0Mjg=
175
[Manual data dir] Error message: nlp.load_dataset('xsum') -> TypeError
v 0.1.0 from pip ```python import nlp xsum = nlp.load_dataset('xsum') ``` Issue is `dl_manager.manual_dir`is `None` ```python --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-42-8a32f06...
CLOSED
2020-05-20T17:00:32
2020-05-20T18:18:50
2020-05-20T18:18:50
https://github.com/huggingface/datasets/issues/175
{ "login": "sshleifer" }
{ "nodes": [] }
[]
MDU6SXNzdWU2MjE5Mjg0MDM=
174
nlp.load_dataset('xsum') -> TypeError
CLOSED
2020-05-20T16:59:09
2020-05-20T17:43:46
2020-05-20T17:43:46
https://github.com/huggingface/datasets/issues/174
{ "login": "sshleifer" }
{ "nodes": [] }
[]
MDU6SXNzdWU2MjEzNzczODY=
172
Clone not working on Windows environment
Cloning in a windows environment is not working because of use of special character '?' in folder name .. Please consider changing the folder name .... Reference to folder - nlp/datasets/cnn_dailymail/dummy/3.0.0/3.0.0/dummy_data-zip-extracted/dummy_data/uc?export=download&id=0BwmD_VLjROrfM1BxdkxVaTY2bWs/dailymail/s...
CLOSED
2020-05-20T00:45:14
2020-05-23T12:49:13
2020-05-23T11:27:52
https://github.com/huggingface/datasets/issues/172
{ "login": "codehunk628" }
{ "nodes": [] }
[ "Should be fixed on master now :)", "Thanks @lhoestq 👍 Now I can uninstall WSL and get back to work with windows.🙂" ]
MDU6SXNzdWU2MjA5NTk4MTk=
168
Loading 'wikitext' dataset fails
Loading the 'wikitext' dataset fails with Attribute error: Code to reproduce (From example notebook): import nlp wikitext_dataset = nlp.load_dataset('wikitext') Error: --------------------------------------------------------------------------- AttributeError Traceback (most rece...
CLOSED
2020-05-19T13:04:29
2020-05-26T21:46:52
2020-05-26T21:46:52
https://github.com/huggingface/datasets/issues/168
{ "login": "itay1itzhak" }
{ "nodes": [] }
[ "Hi, make sure you have a recent version of pyarrow.\r\n\r\nAre you using it in Google Colab? In this case, this error is probably the same as #128", "Thanks!\r\n\r\nYes I'm using Google Colab, it seems like a duplicate then.", "Closing as it is a duplicate", "Hi,\r\nThe squad bug seems to be fixed, but the l...
MDU6SXNzdWU2MjA4NTAyMTg=
166
Add a method to shuffle a dataset
Could maybe be a `dataset.shuffle(generator=None, seed=None)` signature method. Also, we could maybe have a clear indication of which method modify in-place and which methods return/cache a modified dataset. I kinda like torch conversion of having an underscore suffix for all the methods which modify a dataset in-pl...
CLOSED
2020-05-19T10:08:46
2020-06-23T15:07:33
2020-06-23T15:07:32
https://github.com/huggingface/datasets/issues/166
{ "login": "thomwolf" }
{ "nodes": [ { "name": "generic discussion" } ] }
[ "+1 for the naming convention\r\n\r\nAbout the `shuffle` method, from my understanding it should be done in `Dataloader` (better separation between dataset processing - usage)", "+1 for shuffle in `Dataloader`. \r\nSome `Dataloader` just store idxs of dataset and just shuffle those idxs, which might(?) be faster ...
MDU6SXNzdWU2MjA3NTgyMjE=
165
ANLI
Can I recommend the following: For ANLI, use https://github.com/facebookresearch/anli. As that paper says, "Our dataset is not to be confused with abductive NLI (Bhagavatula et al., 2019), which calls itself αNLI, or ART.". Indeed, the paper cited under what is currently called anli says in the abstract "We int...
CLOSED
2020-05-19T07:50:57
2020-05-20T12:23:07
2020-05-20T12:23:07
https://github.com/huggingface/datasets/issues/165
{ "login": "douwekiela" }
{ "nodes": [] }
[]
MDU6SXNzdWU2MjA1NDAyNTA=
164
Add Spanish POR and NER Datasets
Hi guys, In order to cover multilingual support a little step could be adding standard Datasets used for Spanish NER and POS tasks. I can provide it in raw and preprocessed formats.
CLOSED
2020-05-18T22:18:21
2020-05-25T16:28:45
2020-05-25T16:28:45
https://github.com/huggingface/datasets/issues/164
{ "login": "mrm8488" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "Hello @mrm8488, are these datasets official datasets published in an NLP/CL/ML venue?", "What about this one: https://github.com/ccasimiro88/TranslateAlignRetrieve?" ]
MDU6SXNzdWU2MjA1MzQzMDc=
163
[Feature request] Add cos-e v1.0
I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](ht...
CLOSED
2020-05-18T22:05:26
2020-06-16T23:15:25
2020-06-16T18:52:06
https://github.com/huggingface/datasets/issues/163
{ "login": "sarahwie" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "Sounds good, @mariamabarham do you want to give a look?\r\nI think we should have two configurations so we can allow either version of the dataset to be loaded with the `1.0` version being the default maybe.\r\n\r\nCc some authors of the great cos-e: @nazneenrajani @bmccann", "cos_e v1.0 is related to CQA v1.0 b...
MDU6SXNzdWU2MjA0ODc1MzU=
161
Discussion on version identifier & MockDataLoaderManager for test data
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers ...
OPEN
2020-05-18T20:31:30
2026-05-21T23:24:46
null
https://github.com/huggingface/datasets/issues/161
{ "login": "EntilZha" }
{ "nodes": [ { "name": "generic discussion" } ] }
[ "usually you can replace `download` in your dataset script with `download_and_prepare()` - could you share the code for your dataset here? :-) ", "I have an initial version here: https://github.com/EntilZha/nlp/tree/master/datasets/qanta Thats pretty close to what I'll do as a PR, but still want to do some more s...
MDU6SXNzdWU2MjA0NDgyMzY=
160
caching in map causes same result to be returned for train, validation and test
hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args....
CLOSED
2020-05-18T19:22:03
2020-05-18T21:36:20
2020-05-18T21:36:20
https://github.com/huggingface/datasets/issues/160
{ "login": "dpressel" }
{ "nodes": [ { "name": "dataset bug" } ] }
[ "Hi @dpressel, \r\n\r\nthanks for posting your issue! Can you maybe add a complete code snippet that we can copy paste to reproduce the error? For example, I'm not sure where the variable `train_set` comes from in your code and it seems like you are loading multiple datasets at once? ", "Hi, the full example was...
MDU6SXNzdWU2MjA0MjA3MDA=
159
How can we add more datasets to nlp library?
CLOSED
2020-05-18T18:35:31
2020-05-18T18:37:08
2020-05-18T18:37:07
https://github.com/huggingface/datasets/issues/159
{ "login": "Tahsin-Mayeesha" }
{ "nodes": [] }
[ "Found it. https://github.com/huggingface/nlp/tree/master/datasets" ]
MDU6SXNzdWU2MjAzNTY1NDI=
157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
CLOSED
2020-05-18T16:46:38
2020-06-05T08:08:58
2020-06-05T08:08:58
https://github.com/huggingface/datasets/issues/157
{ "login": "saahiluppal" }
{ "nodes": [] }
[ "You can just run: \r\n`val = nlp.load_dataset('squad')` \r\n\r\nif you want to have just the validation script you can also do:\r\n\r\n`val = nlp.load_dataset('squad', split=\"validation\")`", "If you want to load a local dataset, make sure you include a `./` before the folder name. ", "This happens by just do...
MDU6SXNzdWU2MjAyNjM2ODc=
156
SyntaxError with WMT datasets
The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self....
CLOSED
2020-05-18T14:38:18
2020-07-23T16:41:55
2020-07-23T16:41:55
https://github.com/huggingface/datasets/issues/156
{ "login": "tomhosking" }
{ "nodes": [] }
[ "Jeez - don't know what happened there :D Should be fixed now! \r\n\r\nThanks a lot for reporting this @tomhosking !", "Hi @patrickvonplaten!\r\n\r\nI'm now getting the below error:\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nTypeError ...
MDU6SXNzdWU2MTk5NzIyNDY=
153
Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations
Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessibl...
OPEN
2020-05-18T07:24:22
2020-05-18T21:18:16
null
https://github.com/huggingface/datasets/issues/153
{ "login": "thomwolf" }
{ "nodes": [ { "name": "generic discussion" } ] }
[ "As @yoavgo suggested, there should be the possibility to call a function like nlp.bib that outputs all bibtex ref from the datasets and models actually used and eventually nlp.bib.forreadme that would output the same info + versions numbers so they can be included in a readme.md file.", "Actually, double checki...
MDU6SXNzdWU2MTk3MzU3Mzk=
149
[Feature request] Add Ubuntu Dialogue Corpus dataset
https://github.com/rkadlec/ubuntu-ranking-dataset-creator or http://dataset.cs.mcgill.ca/ubuntu-corpus-1.0/
CLOSED
2020-05-17T15:42:39
2020-05-18T17:01:46
2020-05-18T17:01:46
https://github.com/huggingface/datasets/issues/149
{ "login": "danth" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "@AlphaMycelium the Ubuntu Dialogue Corpus [version 2]( https://github.com/rkadlec/ubuntu-ranking-dataset-creator) is added. Note that it requires a manual download by following the download instructions in the [repos]( https://github.com/rkadlec/ubuntu-ranking-dataset-creator).\r\nMaybe we can close this issue for...
MDU6SXNzdWU2MTk1OTA1NTU=
148
_download_and_prepare() got an unexpected keyword argument 'verify_infos'
# Reproduce In Colab, ``` %pip install -q nlp %pip install -q apache_beam mwparserfromhell dataset = nlp.load_dataset('wikipedia') ``` get ``` Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/w...
CLOSED
2020-05-17T01:48:53
2020-05-18T07:38:33
2020-05-18T07:38:33
https://github.com/huggingface/datasets/issues/148
{ "login": "richarddwang" }
{ "nodes": [ { "name": "dataset bug" } ] }
[ "Same error for dataset 'wiki40b'", "Should be fixed on master :)" ]
MDU6SXNzdWU2MTk1ODE5MDc=
147
Error with sklearn train_test_split
It would be nice if we could use sklearn `train_test_split` to quickly generate subsets from the dataset objects returned by `nlp.load_dataset`. At the moment the code: ```python data = nlp.load_dataset('imdb', cache_dir=data_cache) f_half, s_half = train_test_split(data['train'], test_size=0.5, random_state=seed)...
CLOSED
2020-05-17T00:28:24
2020-06-18T16:23:23
2020-06-18T16:23:23
https://github.com/huggingface/datasets/issues/147
{ "login": "ClonedOne" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Indeed. Probably we will want to have a similar method directly in the library", "Related: #166 " ]
MDU6SXNzdWU2MTk0NTc2NDE=
143
ArrowTypeError in squad metrics
`squad_metric.compute` is giving following error ``` ArrowTypeError: Could not convert [{'text': 'Denver Broncos'}, {'text': 'Denver Broncos'}, {'text': 'Denver Broncos'}] with type list: was not a dict, tuple, or recognized null value for conversion to struct type ``` This is how my predictions and references lo...
CLOSED
2020-05-16T12:06:37
2020-05-22T13:38:52
2020-05-22T13:36:48
https://github.com/huggingface/datasets/issues/143
{ "login": "patil-suraj" }
{ "nodes": [ { "name": "metric bug" } ] }
[ "There was an issue in the format, thanks.\r\nNow you can do\r\n```python3\r\nsquad_dset = nlp.load_dataset(\"squad\")\r\nsquad_metric = nlp.load_metric(\"/Users/quentinlhoest/Desktop/hf/nlp-bis/metrics/squad\")\r\npredictions = [\r\n {\"id\": v[\"id\"], \"prediction_text\": v[\"answers\"][\"text\"][0]} # take ...
MDU6SXNzdWU2MTkyMjUxOTE=
138
Consider renaming to nld
Hey :) Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing. The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This...
CLOSED
2020-05-15T20:23:27
2022-09-16T05:18:22
2020-09-28T00:08:10
https://github.com/huggingface/datasets/issues/138
{ "login": "honnibal" }
{ "nodes": [ { "name": "generic discussion" } ] }
[ "I would suggest `nlds`. NLP is a very general, broad and ambiguous term, the library is not about NLP (as in processing) per se, it is about accessing Natural Language related datasets. So the name should reflect its purpose.\r\n", "Chiming in to second everything @honnibal said, and to add that I think the curr...
MDU6SXNzdWU2MTkwOTQ5NTQ=
133
[Question] Using/adding a local dataset
Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets. It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this. ...
CLOSED
2020-05-15T16:26:06
2020-07-23T16:44:09
2020-07-23T16:44:09
https://github.com/huggingface/datasets/issues/133
{ "login": "zphang" }
{ "nodes": [] }
[ "Hi @zphang,\r\n\r\nSo you can just give the local path to a dataset script file and it should work.\r\n\r\nHere is an example:\r\n- you can download one of the scripts in the `datasets` folder of the present repo (or clone the repo)\r\n- then you can load it with `load_dataset('PATH/TO/YOUR/LOCAL/SCRIPT.py')`\r\n\...
MDU6SXNzdWU2MTkwNzc4NTE=
132
[Feature Request] Add the OpenWebText dataset
The OpenWebText dataset is an open clone of OpenAI's WebText dataset. It can be used to train ELECTRA as is specified in the [README](https://www.github.com/google-research/electra). More information and the download link are available [here](https://skylion007.github.io/OpenWebTextCorpus/).
CLOSED
2020-05-15T15:57:29
2020-10-07T14:22:48
2020-10-07T14:22:48
https://github.com/huggingface/datasets/issues/132
{ "login": "LysandreJik" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "We're experimenting with hosting the OpenWebText corpus on Zenodo for easier downloading. https://zenodo.org/record/3834942#.Xs1w8i-z2J8", "Closing since it's been added in #660 " ]
MDU6SXNzdWU2MTkwNzM3MzE=
131
[Feature request] Add Toronto BookCorpus dataset
I know the copyright/distribution of this one is complex, but it would be great to have! That, combined with the existing `wikitext`, would provide a complete dataset for pretraining models like BERT.
CLOSED
2020-05-15T15:50:44
2020-06-28T21:27:31
2020-06-28T21:27:31
https://github.com/huggingface/datasets/issues/131
{ "login": "jarednielsen" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "As far as I understand, `wikitext` is refer to `WikiText-103` and `WikiText-2` that created by researchers in Salesforce, and mostly used in traditional language modeling.\r\n\r\nYou might want to say `wikipedia`, a dump from wikimedia foundation.\r\n\r\nAlso I would like to have Toronto BookCorpus too ! Though it...
MDU6SXNzdWU2MTkwMzU0NDA=
130
Loading GLUE dataset loads CoLA by default
If I run: ```python dataset = nlp.load_dataset('glue') ``` The resultant dataset seems to be CoLA be default, without throwing any error. This is in contrast to calling: ```python metric = nlp.load_metric("glue") ``` which throws an error telling the user that they need to specify a task in GLUE. Should the...
CLOSED
2020-05-15T14:55:50
2020-05-27T22:08:15
2020-05-27T22:08:15
https://github.com/huggingface/datasets/issues/130
{ "login": "zphang" }
{ "nodes": [ { "name": "dataset bug" } ] }
[ "As a follow-up to this: It looks like the actual GLUE task name is supplied as the `name` argument. Is there a way to check what `name`s/sub-datasets are available under a grouping like GLUE? That information doesn't seem to be readily available in info from `nlp.list_datasets()`.\r\n\r\nEdit: I found the info und...
MDU6SXNzdWU2MTg5OTc3MjU=
129
[Feature request] Add Google Natural Question dataset
Would be great to have https://github.com/google-research-datasets/natural-questions as an alternative to SQuAD.
CLOSED
2020-05-15T14:14:20
2020-07-23T13:21:29
2020-07-23T13:21:29
https://github.com/huggingface/datasets/issues/129
{ "login": "elyase" }
{ "nodes": [ { "name": "dataset request" } ] }
[ "Indeed, I think this one is almost ready cc @lhoestq ", "I'm doing the latest adjustments to make the processing of the dataset run on Dataflow", "Is there an update to this? It will be very beneficial for the QA community!", "Still work in progress :)\r\nThe idea is to have the dataset already processed som...
MDU6SXNzdWU2MTg5NTExMTc=
128
Some error inside nlp.load_dataset()
First of all, nice work! I am going through [this overview notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb) In simple step `dataset = nlp.load_dataset('squad', split='validation[:10%]')` I get an error, which is connected with some inner code, I think: `...
CLOSED
2020-05-15T13:01:29
2020-05-15T13:10:40
2020-05-15T13:10:40
https://github.com/huggingface/datasets/issues/128
{ "login": "polkaYK" }
{ "nodes": [] }
[ "Google colab has an old version of Apache Arrow built-in.\r\nBe sure you execute the \"pip install\" cell and restart the notebook environment if the colab asks for it.", "Thanks for reply, worked fine!\r\n" ]
MDU6SXNzdWU2MTg3Mzc3ODM=
120
🐛 `map` not working
I'm trying to run a basic example (mapping function to add a prefix). [Here is the colab notebook I'm using.](https://colab.research.google.com/drive/1YH4JCAy0R1MMSc-k_Vlik_s1LEzP_t1h?usp=sharing) ```python import nlp dataset = nlp.load_dataset('squad', split='validation[:10%]') def test(sample): samp...
CLOSED
2020-05-15T06:43:08
2020-05-15T07:02:38
2020-05-15T07:02:38
https://github.com/huggingface/datasets/issues/120
{ "login": "astariul" }
{ "nodes": [] }
[ "I didn't assign the output 🤦‍♂️\r\n\r\n```python\r\ndataset.map(test)\r\n```\r\n\r\nshould be :\r\n\r\n```python\r\ndataset = dataset.map(test)\r\n```" ]
MDU6SXNzdWU2MTg2NTIxNDU=
119
🐛 Colab : type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
I'm trying to load CNN/DM dataset on Colab. [Colab notebook](https://colab.research.google.com/drive/11Mf7iNhIyt6GpgA1dBEtg3cyMHmMhtZS?usp=sharing) But I meet this error : > AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
CLOSED
2020-05-15T02:27:26
2020-05-15T05:11:22
2020-05-15T02:45:28
https://github.com/huggingface/datasets/issues/119
{ "login": "astariul" }
{ "nodes": [] }
[ "It's strange, after installing `nlp` on Colab, the `pyarrow` version seems fine from `pip` but not from python :\r\n\r\n```python\r\nimport pyarrow\r\n\r\n!pip show pyarrow\r\nprint(\"version = {}\".format(pyarrow.__version__))\r\n```\r\n\r\n> Name: pyarrow\r\nVersion: 0.17.0\r\nSummary: Python library for Apache ...
MDU6SXNzdWU2MTg2NDMwODg=
118
❓ How to apply a map to all subsets ?
I'm working with CNN/DM dataset, where I have 3 subsets : `train`, `test`, `validation`. Should I apply my map function on the subsets one by one ? ```python import nlp cnn_dm = nlp.load_dataset('cnn_dailymail') for corpus in ['train', 'test', 'validation']: cnn_dm[corpus] = cnn_dm[corpus].map(my_f...
CLOSED
2020-05-15T01:58:52
2020-05-15T07:05:49
2020-05-15T07:04:25
https://github.com/huggingface/datasets/issues/118
{ "login": "astariul" }
{ "nodes": [] }
[ "That's the way!" ]
MDU6SXNzdWU2MTg2MzI1NzM=
117
❓ How to remove specific rows of a dataset ?
I saw on the [example notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb#scrollTo=efFhDWhlvSVC) how to remove a specific column : ```python dataset.drop('id') ``` But I didn't find how to remove a specific row. **For example, how can I remove all sample w...
CLOSED
2020-05-15T01:25:06
2022-07-15T08:36:44
2020-05-15T07:04:32
https://github.com/huggingface/datasets/issues/117
{ "login": "astariul" }
{ "nodes": [] }
[ "Hi, you can't do that at the moment.", "Can you do it by now? Coz it would be awfully helpful!", "you can convert dataset object to pandas and remove a feature and convert back to dataset .", "That's what I ended up doing too. but it feels like a workaround to a feature that should be added to the datasets c...
MDU6SXNzdWU2MTg2MjgyNjQ=
116
🐛 Trying to use ROUGE metric : pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
I'm trying to use rouge metric. I have to files : `test.pred.tokenized` and `test.gold.tokenized` with each line containing a sentence. I tried : ```python import nlp rouge = nlp.load_metric('rouge') with open("test.pred.tokenized") as p, open("test.gold.tokenized") as g: for lp, lg in zip(p, g): ...
CLOSED
2020-05-15T01:12:06
2020-05-28T23:43:07
2020-05-28T23:43:07
https://github.com/huggingface/datasets/issues/116
{ "login": "astariul" }
{ "nodes": [ { "name": "metric bug" } ] }
[ "Can you share your data files or a minimally reproducible example?", "Sure, [here is a Colab notebook](https://colab.research.google.com/drive/1uiS89fnHMG7HV_cYxp3r-_LqJQvNNKs9?usp=sharing) reproducing the error.\r\n\r\n> ArrowInvalid: Column 1 named references expected length 36 but got length 56", "This is b...
MDU6SXNzdWU2MTg2MTU4NTU=
115
AttributeError: 'dict' object has no attribute 'info'
I'm trying to access the information of CNN/DM dataset : ```python cnn_dm = nlp.load_dataset('cnn_dailymail') print(cnn_dm.info) ``` returns : > AttributeError: 'dict' object has no attribute 'info'
CLOSED
2020-05-15T00:29:47
2020-05-17T13:11:00
2020-05-17T13:11:00
https://github.com/huggingface/datasets/issues/115
{ "login": "astariul" }
{ "nodes": [] }
[ "I could access the info by first accessing the different splits :\r\n\r\n```python\r\nimport nlp\r\n\r\ncnn_dm = nlp.load_dataset('cnn_dailymail')\r\nprint(cnn_dm['train'].info)\r\n```\r\n\r\nInformation seems to be duplicated between the subsets :\r\n\r\n```python\r\nprint(cnn_dm[\"train\"].info == cnn_dm[\"test\...
MDU6SXNzdWU2MTg2MTEzMTA=
114
Couldn't reach CNN/DM dataset
I can't get CNN / DailyMail dataset. ```python import nlp assert "cnn_dailymail" in [dataset.id for dataset in nlp.list_datasets()] cnn_dm = nlp.load_dataset('cnn_dailymail') ``` [Colab notebook](https://colab.research.google.com/drive/1zQ3bYAVzm1h0mw0yWPqKAg_4EUlSx5Ex?usp=sharing) gives following error ...
CLOSED
2020-05-15T00:16:17
2020-05-15T00:19:52
2020-05-15T00:19:51
https://github.com/huggingface/datasets/issues/114
{ "login": "astariul" }
{ "nodes": [] }
[ "Installing from source (instead of Pypi package) solved the problem." ]
MDU6SXNzdWU2MTE2Nzc2NTY=
38
[Checksums] Error for some datasets
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...
CLOSED
2020-05-04T08:00:16
2020-05-04T09:48:20
2020-05-04T09:48:20
https://github.com/huggingface/datasets/issues/38
{ "login": "patrickvonplaten" }
{ "nodes": [] }
[ "@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!" ]
MDU6SXNzdWU2MDAzMzA4MzY=
6
Error when citation is not given in the DatasetInfo
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....
CLOSED
2020-04-15T14:14:54
2020-04-29T09:23:22
2020-04-29T09:23:22
https://github.com/huggingface/datasets/issues/6
{ "login": "jplu" }
{ "nodes": [] }
[ "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." ]
MDU6SXNzdWU2MDAyOTU4ODk=
5
ValueError when a split is empty
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...
CLOSED
2020-04-15T13:25:13
2020-04-29T09:23:05
2020-04-29T09:23:05
https://github.com/huggingface/datasets/issues/5
{ "login": "jplu" }
{ "nodes": [] }
[ "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...
MDU6SXNzdWU2MDAxODU0MTc=
4
[Feature] Keep the list of labels of a dataset as metadata
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.
CLOSED
2020-04-15T10:17:10
2020-07-08T16:59:46
2020-05-04T06:11:57
https://github.com/huggingface/datasets/issues/4
{ "login": "jplu" }
{ "nodes": [] }
[ "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...
MDU6SXNzdWU2MDAxODAwNTA=
3
[Feature] More dataset outputs
Add the following dataset outputs: - Spark - Pandas
CLOSED
2020-04-15T10:08:14
2020-05-04T06:12:27
2020-05-04T06:12:27
https://github.com/huggingface/datasets/issues/3
{ "login": "jplu" }
{ "nodes": [] }
[ "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...
MDU6SXNzdWU1OTk3Njc2NzE=
2
Issue to read a local dataset
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...
CLOSED
2020-04-14T18:18:51
2020-05-11T18:55:23
2020-05-11T18:55:22
https://github.com/huggingface/datasets/issues/2
{ "login": "jplu" }
{ "nodes": [] }
[ "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...