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/220 | 220 | dataset_arcd | Added Arabic Reading Comprehension Dataset (ARCD): https://arxiv.org/abs/1906.05394 | closed | 2020-05-29T13:46:50 | https://api.github.com/repos/huggingface/datasets/issues/220/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/220",
"html_url": "https://github.com/huggingface/datasets/pull/220",
"diff_url": "https://github.com/huggingface/datasets/pull/220.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/220.patch",
"merged_at": "2020-05-29T14:57:21"... | true | dataset_arcd
Added Arabic Reading Comprehension Dataset (ARCD): https://arxiv.org/abs/1906.05394 | [
"you can rebase from master to fix the CI error :)",
"Awesome !"
] |
https://api.github.com/repos/huggingface/datasets/issues/219 | 219 | force mwparserfromhell as third party | This should fix your env because you had `mwparserfromhell ` as a first party for `isort` @patrickvonplaten | closed | 2020-05-29T12:33:17 | https://api.github.com/repos/huggingface/datasets/issues/219/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/219",
"html_url": "https://github.com/huggingface/datasets/pull/219",
"diff_url": "https://github.com/huggingface/datasets/pull/219.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/219.patch",
"merged_at": "2020-05-29T13:30:12"... | true | force mwparserfromhell as third party
This should fix your env because you had `mwparserfromhell ` as a first party for `isort` @patrickvonplaten | [] |
https://api.github.com/repos/huggingface/datasets/issues/218 | 218 | Add Natual Questions and C4 scripts | Scripts are ready !
However they are not processed nor directly available from gcp yet. | closed | 2020-05-29T10:40:30 | https://api.github.com/repos/huggingface/datasets/issues/218/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/218",
"html_url": "https://github.com/huggingface/datasets/pull/218",
"diff_url": "https://github.com/huggingface/datasets/pull/218.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/218.patch",
"merged_at": "2020-05-29T12:31:00"... | true | Add Natual Questions and C4 scripts
Scripts are ready !
However they are not processed nor directly available from gcp yet. | [] |
https://api.github.com/repos/huggingface/datasets/issues/217 | 217 | Multi-task dataset mixing | It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sam... | open | 2020-05-29T09:22:26 | https://api.github.com/repos/huggingface/datasets/issues/217/comments | null | false | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-p... | [
"I like this feature! I think the first question we should decide on is how to convert all datasets into the same format. In T5, the authors decided to format every dataset into a text-to-text format. If the dataset had \"multiple\" inputs like MNLI, the inputs were concatenated. So in MNLI the input:\r\n\r\n> - **... |
https://api.github.com/repos/huggingface/datasets/issues/216 | 216 | ❓ How to get ROUGE-2 with the ROUGE metric ? | I'm trying to use ROUGE metric, but I don't know how to get the ROUGE-2 metric.
---
I compute scores with :
```python
import nlp
rouge = nlp.load_metric('rouge')
with open("pred.txt") as p, open("ref.txt") as g:
for lp, lg in zip(p, g):
rouge.add([lp], [lg])
score = rouge.compute()
```
... | closed | 2020-05-28T23:47:32 | https://api.github.com/repos/huggingface/datasets/issues/216/comments | null | false | ❓ How to get ROUGE-2 with the ROUGE metric ?
I'm trying to use ROUGE metric, but I don't know how to get the ROUGE-2 metric.
---
I compute scores with :
```python
import nlp
rouge = nlp.load_metric('rouge')
with open("pred.txt") as p, open("ref.txt") as g:
for lp, lg in zip(p, g):
rouge.add(... | [
"ROUGE-1 and ROUGE-L shouldn't return the same thing. This is weird",
"For the rouge2 metric you can do\r\n\r\n```python\r\nrouge = nlp.load_metric('rouge')\r\nwith open(\"pred.txt\") as p, open(\"ref.txt\") as g:\r\n for lp, lg in zip(p, g):\r\n rouge.add(lp, lg)\r\nscore = rouge.compute(rouge_types=[\... |
https://api.github.com/repos/huggingface/datasets/issues/215 | 215 | NonMatchingSplitsSizesError when loading blog_authorship_corpus | Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`.
```
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train',
num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'),
'recorded... | closed | 2020-05-28T22:55:19 | https://api.github.com/repos/huggingface/datasets/issues/215/comments | null | false | NonMatchingSplitsSizesError when loading blog_authorship_corpus
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`.
```
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train',
num_bytes=610252351, num_exam... | [
"I just ran it on colab and got this\r\n```\r\n[{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812,\r\ndataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train',\r\nnum_bytes=611607465, num_examples=533285, dataset_name='blog_authorship_corpus')},\r\n{'expected': SplitInf... |
https://api.github.com/repos/huggingface/datasets/issues/214 | 214 | [arrow_dataset.py] add new filter function | The `.map()` function is super useful, but can IMO a bit tedious when filtering certain examples.
I think, filtering out examples is also a very common operation people would like to perform on datasets.
This PR is a proposal to add a `.filter()` function in the same spirit than the `.map()` function.
Here is a ... | closed | 2020-05-28T16:21:40 | https://api.github.com/repos/huggingface/datasets/issues/214/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/214",
"html_url": "https://github.com/huggingface/datasets/pull/214",
"diff_url": "https://github.com/huggingface/datasets/pull/214.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/214.patch",
"merged_at": "2020-05-29T11:32:20"... | true | [arrow_dataset.py] add new filter function
The `.map()` function is super useful, but can IMO a bit tedious when filtering certain examples.
I think, filtering out examples is also a very common operation people would like to perform on datasets.
This PR is a proposal to add a `.filter()` function in the same spiri... | [
"I agree that a `.filter` method would be VERY useful and appreciated. I'm not a big fan of using `flatten_nested` as it completely breaks down the structure of the example and it may create bugs. Right now I think it may not work for nested structures. Maybe there's a simpler way that we've not figured out yet.",
... |
https://api.github.com/repos/huggingface/datasets/issues/213 | 213 | better message if missing beam options | WDYT @yjernite ?
For example:
```python
dataset = nlp.load_dataset('wikipedia', '20200501.aa')
```
Raises:
```
MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to ru... | closed | 2020-05-28T15:06:57 | https://api.github.com/repos/huggingface/datasets/issues/213/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/213",
"html_url": "https://github.com/huggingface/datasets/pull/213",
"diff_url": "https://github.com/huggingface/datasets/pull/213.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/213.patch",
"merged_at": "2020-05-29T09:51:16"... | true | better message if missing beam options
WDYT @yjernite ?
For example:
```python
dataset = nlp.load_dataset('wikipedia', '20200501.aa')
```
Raises:
```
MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder a... | [] |
https://api.github.com/repos/huggingface/datasets/issues/212 | 212 | have 'add' and 'add_batch' for metrics | This should fix #116
Previously the `.add` method of metrics expected a batch of examples.
Now `.add` expects one prediction/reference and `.add_batch` expects a batch.
I think it is more coherent with the way the ArrowWriter works. | closed | 2020-05-28T14:56:47 | https://api.github.com/repos/huggingface/datasets/issues/212/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/212",
"html_url": "https://github.com/huggingface/datasets/pull/212",
"diff_url": "https://github.com/huggingface/datasets/pull/212.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/212.patch",
"merged_at": "2020-05-29T10:41:04"... | true | have 'add' and 'add_batch' for metrics
This should fix #116
Previously the `.add` method of metrics expected a batch of examples.
Now `.add` expects one prediction/reference and `.add_batch` expects a batch.
I think it is more coherent with the way the ArrowWriter works. | [] |
https://api.github.com/repos/huggingface/datasets/issues/211 | 211 | [Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type | Running the following code
```
import nlp
ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards...
ds.map(lambda x: x, load_from_cache_file=False)
```
triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to n... | closed | 2020-05-28T14:38:14 | https://api.github.com/repos/huggingface/datasets/issues/211/comments | null | false | [Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type
Running the following code
```
import nlp
ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards...
ds.map(lambda x: x, load_from_cache_file=False)... | [
"Here the full error trace:\r\n\r\n```\r\nArrowInvalid Traceback (most recent call last)\r\n<ipython-input-1-7aaf3f011358> in <module>\r\n 1 import nlp\r\n 2 ds = nlp.load_dataset(\"trivia_qa\", \"rc\", split=\"validation[:1%]\") # this might take 2.3 min to download but it's... |
https://api.github.com/repos/huggingface/datasets/issues/210 | 210 | fix xnli metric kwargs description | The text was wrong as noticed in #202 | closed | 2020-05-28T13:21:44 | https://api.github.com/repos/huggingface/datasets/issues/210/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/210",
"html_url": "https://github.com/huggingface/datasets/pull/210",
"diff_url": "https://github.com/huggingface/datasets/pull/210.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/210.patch",
"merged_at": "2020-05-28T13:22:10"... | true | fix xnli metric kwargs description
The text was wrong as noticed in #202 | [] |
https://api.github.com/repos/huggingface/datasets/issues/209 | 209 | Add a Google Drive exception for small files | I tried to use the ``nlp`` library to load personnal datasets. I mainly copy-paste the code for ``multi-news`` dataset because my files are stored on Google Drive.
One of my dataset is small (< 25Mo) so it can be verified by Drive without asking the authorization to the user. This makes the download starts directly... | closed | 2020-05-28T10:40:17 | https://api.github.com/repos/huggingface/datasets/issues/209/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/209",
"html_url": "https://github.com/huggingface/datasets/pull/209",
"diff_url": "https://github.com/huggingface/datasets/pull/209.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/209.patch",
"merged_at": "2020-05-28T15:15:04"... | true | Add a Google Drive exception for small files
I tried to use the ``nlp`` library to load personnal datasets. I mainly copy-paste the code for ``multi-news`` dataset because my files are stored on Google Drive.
One of my dataset is small (< 25Mo) so it can be verified by Drive without asking the authorization to the ... | [
"Can you run the style formatting tools to pass the code quality test?\r\n\r\nYou can find all the details in CONTRIBUTING.md: https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-contribute-to-nlp",
"Nice ! ",
"``make style`` done! Thanks for the approvals."
] |
https://api.github.com/repos/huggingface/datasets/issues/208 | 208 | [Dummy data] insert config name instead of config | Thanks @yjernite for letting me know. in the dummy data command the config name shuold be passed to the dataset builder and not the config itself.
Also, @lhoestq fixed small import bug introduced by beam command I think. | closed | 2020-05-28T10:28:19 | https://api.github.com/repos/huggingface/datasets/issues/208/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/208",
"html_url": "https://github.com/huggingface/datasets/pull/208",
"diff_url": "https://github.com/huggingface/datasets/pull/208.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/208.patch",
"merged_at": "2020-05-28T12:48:00"... | true | [Dummy data] insert config name instead of config
Thanks @yjernite for letting me know. in the dummy data command the config name shuold be passed to the dataset builder and not the config itself.
Also, @lhoestq fixed small import bug introduced by beam command I think. | [] |
https://api.github.com/repos/huggingface/datasets/issues/207 | 207 | Remove test set from NLP viewer | While the new [NLP viewer](https://huggingface.co/nlp/viewer/) is a great tool, I think it would be best to outright remove the option of looking at the test sets. At the very least, a warning should be displayed to users before showing the test set. Newcomers to the field might not be aware of best practices, and smal... | closed | 2020-05-27T18:32:07 | https://api.github.com/repos/huggingface/datasets/issues/207/comments | null | false | Remove test set from NLP viewer
While the new [NLP viewer](https://huggingface.co/nlp/viewer/) is a great tool, I think it would be best to outright remove the option of looking at the test sets. At the very least, a warning should be displayed to users before showing the test set. Newcomers to the field might not be a... | [
"~is the viewer also open source?~\r\n[is a streamlit app!](https://docs.streamlit.io/en/latest/getting_started.html)",
"Appears that [two thirds of those polled on Twitter](https://twitter.com/srush_nlp/status/1265734497632477185) are in favor of _some_ mechanism for averting eyeballs from the test data.",
"We... |
https://api.github.com/repos/huggingface/datasets/issues/206 | 206 | [Question] Combine 2 datasets which have the same columns | Hi,
I am using ``nlp`` to load personal datasets. I created summarization datasets in multi-languages based on wikinews. I have one dataset for english and one for german (french is getting to be ready as well). I want to keep these datasets independent because they need different pre-processing (add different task-... | closed | 2020-05-27T16:25:52 | https://api.github.com/repos/huggingface/datasets/issues/206/comments | null | false | [Question] Combine 2 datasets which have the same columns
Hi,
I am using ``nlp`` to load personal datasets. I created summarization datasets in multi-languages based on wikinews. I have one dataset for english and one for german (french is getting to be ready as well). I want to keep these datasets independent becau... | [
"We are thinking about ways to combine datasets for T5 in #217, feel free to share your thoughts about this.",
"Ok great! I will look at it. Thanks"
] |
https://api.github.com/repos/huggingface/datasets/issues/205 | 205 | Better arrow dataset iter | I tried to play around with `tf.data.Dataset.from_generator` and I found out that the `__iter__` that we have for `nlp.arrow_dataset.Dataset` ignores the format that has been set (torch or tensorflow).
With these changes I should be able to come up with a `tf.data.Dataset` that uses lazy loading, as asked in #193. | closed | 2020-05-27T16:20:21 | https://api.github.com/repos/huggingface/datasets/issues/205/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/205",
"html_url": "https://github.com/huggingface/datasets/pull/205",
"diff_url": "https://github.com/huggingface/datasets/pull/205.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/205.patch",
"merged_at": "2020-05-27T16:39:56"... | true | Better arrow dataset iter
I tried to play around with `tf.data.Dataset.from_generator` and I found out that the `__iter__` that we have for `nlp.arrow_dataset.Dataset` ignores the format that has been set (torch or tensorflow).
With these changes I should be able to come up with a `tf.data.Dataset` that uses lazy load... | [] |
https://api.github.com/repos/huggingface/datasets/issues/204 | 204 | Add Dataflow support + Wikipedia + Wiki40b | # Add Dataflow support + Wikipedia + Wiki40b
## Support datasets processing with Apache Beam
Some datasets are too big to be processed on a single machine, for example: wikipedia, wiki40b, etc. Apache Beam allows to process datasets on many execution engines like Dataflow, Spark, Flink, etc.
To process such da... | closed | 2020-05-27T12:32:49 | https://api.github.com/repos/huggingface/datasets/issues/204/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/204",
"html_url": "https://github.com/huggingface/datasets/pull/204",
"diff_url": "https://github.com/huggingface/datasets/pull/204.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/204.patch",
"merged_at": "2020-05-28T08:10:34"... | true | Add Dataflow support + Wikipedia + Wiki40b
# Add Dataflow support + Wikipedia + Wiki40b
## Support datasets processing with Apache Beam
Some datasets are too big to be processed on a single machine, for example: wikipedia, wiki40b, etc. Apache Beam allows to process datasets on many execution engines like Dataflo... | [] |
https://api.github.com/repos/huggingface/datasets/issues/203 | 203 | Raise an error if no config name for datasets like glue | Some datasets like glue (see #130) and scientific_papers (see #197) have many configs.
For example for glue there are cola, sst2, mrpc etc.
Currently if a user does `load_dataset('glue')`, then Cola is loaded by default and it can be confusing. Instead, we should raise an error to let the user know that he has to p... | closed | 2020-05-27T09:03:58 | https://api.github.com/repos/huggingface/datasets/issues/203/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/203",
"html_url": "https://github.com/huggingface/datasets/pull/203",
"diff_url": "https://github.com/huggingface/datasets/pull/203.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/203.patch",
"merged_at": "2020-05-27T16:40:38"... | true | Raise an error if no config name for datasets like glue
Some datasets like glue (see #130) and scientific_papers (see #197) have many configs.
For example for glue there are cola, sst2, mrpc etc.
Currently if a user does `load_dataset('glue')`, then Cola is loaded by default and it can be confusing. Instead, we sho... | [] |
https://api.github.com/repos/huggingface/datasets/issues/202 | 202 | Mistaken `_KWARGS_DESCRIPTION` for XNLI metric | Hi!
The [`_KWARGS_DESCRIPTION`](https://github.com/huggingface/nlp/blob/7d0fa58641f3f462fb2861dcdd6ce7f0da3f6a56/metrics/xnli/xnli.py#L45) for the XNLI metric uses `Args` and `Returns` text from [BLEU](https://github.com/huggingface/nlp/blob/7d0fa58641f3f462fb2861dcdd6ce7f0da3f6a56/metrics/bleu/bleu.py#L58) metric:
... | closed | 2020-05-27T08:34:42 | https://api.github.com/repos/huggingface/datasets/issues/202/comments | null | false | Mistaken `_KWARGS_DESCRIPTION` for XNLI metric
Hi!
The [`_KWARGS_DESCRIPTION`](https://github.com/huggingface/nlp/blob/7d0fa58641f3f462fb2861dcdd6ce7f0da3f6a56/metrics/xnli/xnli.py#L45) for the XNLI metric uses `Args` and `Returns` text from [BLEU](https://github.com/huggingface/nlp/blob/7d0fa58641f3f462fb2861dcdd6c... | [
"Indeed, good catch ! thanks\r\nFixing it right now"
] |
https://api.github.com/repos/huggingface/datasets/issues/201 | 201 | Fix typo in README | closed | 2020-05-26T22:18:21 | https://api.github.com/repos/huggingface/datasets/issues/201/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/201",
"html_url": "https://github.com/huggingface/datasets/pull/201",
"diff_url": "https://github.com/huggingface/datasets/pull/201.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/201.patch",
"merged_at": "2020-05-26T23:00:56"... | true | Fix typo in README
| [
"Amazing, @LysandreJik!",
"Really did my best!"
] | |
https://api.github.com/repos/huggingface/datasets/issues/200 | 200 | [ArrowWriter] Set schema at first write example | Right now if the schema was not specified when instantiating `ArrowWriter`, then it could be set with the first `write_table` for example (it calls `self._build_writer()` to do so).
I noticed that it was not done if the first example is added via `.write`, so I added it for coherence. | closed | 2020-05-26T21:59:48 | https://api.github.com/repos/huggingface/datasets/issues/200/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/200",
"html_url": "https://github.com/huggingface/datasets/pull/200",
"diff_url": "https://github.com/huggingface/datasets/pull/200.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/200.patch",
"merged_at": "2020-05-27T09:07:53"... | true | [ArrowWriter] Set schema at first write example
Right now if the schema was not specified when instantiating `ArrowWriter`, then it could be set with the first `write_table` for example (it calls `self._build_writer()` to do so).
I noticed that it was not done if the first example is added via `.write`, so I added i... | [
"Good point!\r\n\r\nI guess we could add this to `write_batch` as well (before using `self._schema` in the first line of this method)?"
] |
https://api.github.com/repos/huggingface/datasets/issues/199 | 199 | Fix GermEval 2014 dataset infos | Hi,
this PR just removes the `dataset_info.json` file and adds a newly generated `dataset_infos.json` file. | closed | 2020-05-26T21:41:44 | https://api.github.com/repos/huggingface/datasets/issues/199/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/199",
"html_url": "https://github.com/huggingface/datasets/pull/199",
"diff_url": "https://github.com/huggingface/datasets/pull/199.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/199.patch",
"merged_at": "2020-05-26T21:50:24"... | true | Fix GermEval 2014 dataset infos
Hi,
this PR just removes the `dataset_info.json` file and adds a newly generated `dataset_infos.json` file. | [
"Hopefully. this also fixes the dataset view on https://huggingface.co/nlp/viewer/ :)",
"Oh good catch ! This should fix it indeed"
] |
https://api.github.com/repos/huggingface/datasets/issues/198 | 198 | Index outside of table length | The offset input box warns of numbers larger than a limit (like 2000) but then the errors start at a smaller value than that limit (like 1955).
> ValueError: Index (2000) outside of table length (2000).
> Traceback:
> File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/ScriptRunner.py", line 322, in _ru... | closed | 2020-05-26T21:09:40 | https://api.github.com/repos/huggingface/datasets/issues/198/comments | null | false | Index outside of table length
The offset input box warns of numbers larger than a limit (like 2000) but then the errors start at a smaller value than that limit (like 1955).
> ValueError: Index (2000) outside of table length (2000).
> Traceback:
> File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/Scri... | [
"Sounds like something related to the nlp viewer @srush ",
"Fixed. "
] |
https://api.github.com/repos/huggingface/datasets/issues/197 | 197 | Scientific Papers only downloading Pubmed | Hi!
I have been playing around with this module, and I am a bit confused about the `scientific_papers` dataset. I thought that it would download two separate datasets, arxiv and pubmed. But when I run the following:
```
dataset = nlp.load_dataset('scientific_papers', data_dir='.', cache_dir='.')
Downloading: 10... | closed | 2020-05-26T15:18:47 | https://api.github.com/repos/huggingface/datasets/issues/197/comments | null | false | Scientific Papers only downloading Pubmed
Hi!
I have been playing around with this module, and I am a bit confused about the `scientific_papers` dataset. I thought that it would download two separate datasets, arxiv and pubmed. But when I run the following:
```
dataset = nlp.load_dataset('scientific_papers', dat... | [
"Hi so there are indeed two configurations in the datasets as you can see [here](https://github.com/huggingface/nlp/blob/master/datasets/scientific_papers/scientific_papers.py#L81-L82).\r\n\r\nYou can load either one with:\r\n```python\r\ndataset = nlp.load_dataset('scientific_papers', 'pubmed')\r\ndataset = nlp.lo... |
https://api.github.com/repos/huggingface/datasets/issues/196 | 196 | Check invalid config name | As said in #194, we should raise an error if the config name has bad characters.
Bad characters are those that are not allowed for directory names on windows. | closed | 2020-05-26T13:52:51 | https://api.github.com/repos/huggingface/datasets/issues/196/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/196",
"html_url": "https://github.com/huggingface/datasets/pull/196",
"diff_url": "https://github.com/huggingface/datasets/pull/196.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/196.patch",
"merged_at": "2020-05-26T21:04:55"... | true | Check invalid config name
As said in #194, we should raise an error if the config name has bad characters.
Bad characters are those that are not allowed for directory names on windows. | [
"I think that's not related to the config name but the filenames in the dummy data. Mostly it occurs with files downloaded from drive. In that case the dummy file name is extracted from the google drive link and it corresponds to what comes after `https://drive.google.com/`\r\n\r\n",
"> I think that's not related... |
https://api.github.com/repos/huggingface/datasets/issues/195 | 195 | [Dummy data command] add new case to command | Qanta: #194 introduces a case that was not noticed before. This change in code helps community users to have an easier time creating the dummy data. | closed | 2020-05-26T12:50:47 | https://api.github.com/repos/huggingface/datasets/issues/195/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/195",
"html_url": "https://github.com/huggingface/datasets/pull/195",
"diff_url": "https://github.com/huggingface/datasets/pull/195.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/195.patch",
"merged_at": "2020-05-26T14:38:27"... | true | [Dummy data command] add new case to command
Qanta: #194 introduces a case that was not noticed before. This change in code helps community users to have an easier time creating the dummy data. | [
"@lhoestq - tiny change in the dummy data command, should be good to merge."
] |
https://api.github.com/repos/huggingface/datasets/issues/194 | 194 | Add Dataset: Qanta | Fixes dummy data for #169 @EntilZha | closed | 2020-05-26T12:44:35 | https://api.github.com/repos/huggingface/datasets/issues/194/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/194",
"html_url": "https://github.com/huggingface/datasets/pull/194",
"diff_url": "https://github.com/huggingface/datasets/pull/194.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/194.patch",
"merged_at": "2020-05-26T13:16:20"... | true | Add Dataset: Qanta
Fixes dummy data for #169 @EntilZha | [
"@lhoestq - the config name is rather special here: *E.g.* `mode=first,char_skip=25`. It includes `=` and `,` - will that be a problem for windows folders, you think? \r\n\r\nApart from that good to merge for me.",
"It's ok to have `=` and `,`.\r\nWindows doesn't like things like `?`, `:`, `/` etc.\r\n\r\nI'll ad... |
https://api.github.com/repos/huggingface/datasets/issues/193 | 193 | [Tensorflow] Use something else than `from_tensor_slices()` | In the example notebook, the TF Dataset is built using `from_tensor_slices()` :
```python
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
features = {x: train_tf_dataset[x] for x in columns[:3]}
label... | closed | 2020-05-26T07:19:14 | https://api.github.com/repos/huggingface/datasets/issues/193/comments | null | false | [Tensorflow] Use something else than `from_tensor_slices()`
In the example notebook, the TF Dataset is built using `from_tensor_slices()` :
```python
columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions']
train_tf_dataset.set_format(type='tensorflow', columns=columns)
feat... | [
"I guess we can use `tf.data.Dataset.from_generator` instead. I'll give it a try.",
"Is `tf.data.Dataset.from_generator` working on TPU ?",
"`from_generator` is not working on TPU, I met the following error :\r\n\r\n```\r\nFile \"/usr/local/lib/python3.6/contextlib.py\", line 88, in __exit__\r\n next(self.ge... |
https://api.github.com/repos/huggingface/datasets/issues/192 | 192 | [Question] Create Apache Arrow dataset from raw text file | Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide?
Is the worth of send it to you and add i... | closed | 2020-05-25T16:42:47 | https://api.github.com/repos/huggingface/datasets/issues/192/comments | null | false | [Question] Create Apache Arrow dataset from raw text file
Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT lik... | [
"We store every dataset in the Arrow format. This is convenient as it supports nested types and memory mapping. If you are curious feel free to check the [pyarrow documentation](https://arrow.apache.org/docs/python/)\r\n\r\nYou can use this library to load your covid papers by creating a dataset script. You can fin... |
https://api.github.com/repos/huggingface/datasets/issues/191 | 191 | [Squad es] add dataset_infos | @mariamabarham - was still about to upload this. Should have waited with my comment a bit more :D | closed | 2020-05-25T16:35:52 | https://api.github.com/repos/huggingface/datasets/issues/191/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/191",
"html_url": "https://github.com/huggingface/datasets/pull/191",
"diff_url": "https://github.com/huggingface/datasets/pull/191.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/191.patch",
"merged_at": "2020-05-25T16:39:58"... | true | [Squad es] add dataset_infos
@mariamabarham - was still about to upload this. Should have waited with my comment a bit more :D | [] |
https://api.github.com/repos/huggingface/datasets/issues/190 | 190 | add squad Spanish v1 and v2 | This PR add the Spanish Squad versions 1 and 2 datasets.
Fixes #164 | closed | 2020-05-25T08:08:40 | https://api.github.com/repos/huggingface/datasets/issues/190/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/190",
"html_url": "https://github.com/huggingface/datasets/pull/190",
"diff_url": "https://github.com/huggingface/datasets/pull/190.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/190.patch",
"merged_at": "2020-05-25T16:28:45"... | true | add squad Spanish v1 and v2
This PR add the Spanish Squad versions 1 and 2 datasets.
Fixes #164 | [
"Nice ! :) \r\nCan we group them into one dataset with two versions, instead of having two datasets ?",
"Yes sure, I can use the version as config name",
"@lhoestq can you check? I grouped them",
"Awesome :) feel free to merge after fixing the test in the CI",
"@mariamabarham - feel free to merge when you'r... |
https://api.github.com/repos/huggingface/datasets/issues/189 | 189 | [Question] BERT-style multiple choice formatting | Hello, I am wondering what the equivalent formatting of a dataset should be to allow for multiple-choice answering prediction, BERT-style. Previously, this was done by passing a list of `InputFeatures` to the dataloader instead of a list of `InputFeature`, where `InputFeatures` contained lists of length equal to the nu... | closed | 2020-05-25T05:11:05 | https://api.github.com/repos/huggingface/datasets/issues/189/comments | null | false | [Question] BERT-style multiple choice formatting
Hello, I am wondering what the equivalent formatting of a dataset should be to allow for multiple-choice answering prediction, BERT-style. Previously, this was done by passing a list of `InputFeatures` to the dataloader instead of a list of `InputFeature`, where `InputFe... | [
"Hi @sarahwie, can you details this a little more?\r\n\r\nI'm not sure I understand what you refer to and what you mean when you say \"Previously, this was done by passing a list of InputFeatures to the dataloader instead of a list of InputFeature\"",
"I think I've resolved it. For others' reference: to convert f... |
https://api.github.com/repos/huggingface/datasets/issues/188 | 188 | When will the remaining math_dataset modules be added as dataset objects | Currently only the algebra_linear_1d is supported. Is there a timeline for making the other modules supported. If no timeline is established, how can I help? | closed | 2020-05-24T15:46:52 | https://api.github.com/repos/huggingface/datasets/issues/188/comments | null | false | When will the remaining math_dataset modules be added as dataset objects
Currently only the algebra_linear_1d is supported. Is there a timeline for making the other modules supported. If no timeline is established, how can I help? | [
"On a similar note it would be nice to differentiate between train-easy, train-medium, and train-hard",
"Hi @tylerroost, we don't have a timeline for this at the moment.\r\nIf you want to give it a look we would be happy to review a PR on it.\r\nAlso, the library is one week old so everything is quite barebones, ... |
https://api.github.com/repos/huggingface/datasets/issues/187 | 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 | https://api.github.com/repos/huggingface/datasets/issues/187/comments | null | false | [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(dow... | [
"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."
] |
https://api.github.com/repos/huggingface/datasets/issues/186 | 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 | https://api.github.com/repos/huggingface/datasets/issues/186/comments | null | false | 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_... | [
"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"
] |
https://api.github.com/repos/huggingface/datasets/issues/185 | 185 | [Commands] In-detail instructions to create dummy data folder | ### Dummy data command
This PR adds a new command `python nlp-cli dummy_data <path_to_dataset_folder>` that gives in-detail instructions on how to add the dummy data files.
It would be great if you can try it out by moving the current dummy_data folder of any dataset in `./datasets` with `mv datasets/<dataset_s... | closed | 2020-05-22T12:26:25 | https://api.github.com/repos/huggingface/datasets/issues/185/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/185",
"html_url": "https://github.com/huggingface/datasets/pull/185",
"diff_url": "https://github.com/huggingface/datasets/pull/185.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/185.patch",
"merged_at": "2020-05-22T14:06:34"... | true | [Commands] In-detail instructions to create dummy data folder
### Dummy data command
This PR adds a new command `python nlp-cli dummy_data <path_to_dataset_folder>` that gives in-detail instructions on how to add the dummy data files.
It would be great if you can try it out by moving the current dummy_data fold... | [
"awesome !"
] |
https://api.github.com/repos/huggingface/datasets/issues/184 | 184 | Use IndexError instead of ValueError when index out of range | **`default __iter__ needs IndexError`**.
When I want to create a wrapper of arrow dataset to adapt to fastai,
I don't know how to initialize it, so I didn't use inheritance but use object composition.
I wrote sth like this.
```
clas HF_dataset():
def __init__(self, arrow_dataset):
self.dset = arrow_datas... | closed | 2020-05-22T10:43:42 | https://api.github.com/repos/huggingface/datasets/issues/184/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/184",
"html_url": "https://github.com/huggingface/datasets/pull/184",
"diff_url": "https://github.com/huggingface/datasets/pull/184.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/184.patch",
"merged_at": "2020-05-28T08:31:18"... | true | Use IndexError instead of ValueError when index out of range
**`default __iter__ needs IndexError`**.
When I want to create a wrapper of arrow dataset to adapt to fastai,
I don't know how to initialize it, so I didn't use inheritance but use object composition.
I wrote sth like this.
```
clas HF_dataset():
de... | [] |
https://api.github.com/repos/huggingface/datasets/issues/183 | 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 | https://api.github.com/repos/huggingface/datasets/issues/183/comments | null | false | [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,
``` | [
"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."
] |
https://api.github.com/repos/huggingface/datasets/issues/182 | 182 | Update newsroom.py | Updated the URL for Newsroom download so it's more robust to future changes. | closed | 2020-05-21T17:07:43 | https://api.github.com/repos/huggingface/datasets/issues/182/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/182",
"html_url": "https://github.com/huggingface/datasets/pull/182",
"diff_url": "https://github.com/huggingface/datasets/pull/182.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/182.patch",
"merged_at": "2020-05-22T16:38:23"... | true | Update newsroom.py
Updated the URL for Newsroom download so it's more robust to future changes. | [] |
https://api.github.com/repos/huggingface/datasets/issues/181 | 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 | https://api.github.com/repos/huggingface/datasets/issues/181/comments | null | false | 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 upl... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/180 | 180 | Add hall of fame | powered by https://github.com/sourcerer-io/hall-of-fame | closed | 2020-05-21T14:53:48 | https://api.github.com/repos/huggingface/datasets/issues/180/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/180",
"html_url": "https://github.com/huggingface/datasets/pull/180",
"diff_url": "https://github.com/huggingface/datasets/pull/180.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/180.patch",
"merged_at": "2020-05-22T16:35:14"... | true | Add hall of fame
powered by https://github.com/sourcerer-io/hall-of-fame | [] |
https://api.github.com/repos/huggingface/datasets/issues/179 | 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 | https://api.github.com/repos/huggingface/datasets/issues/179/comments | null | false | [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... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/178 | 178 | [Manual data] improve error message for manual data in general | `nlp.load("xsum")` now leads to the following error message:

I guess the manual download instructions for `xsum` can also be improved. | closed | 2020-05-20T18:10:45 | https://api.github.com/repos/huggingface/datasets/issues/178/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/178",
"html_url": "https://github.com/huggingface/datasets/pull/178",
"diff_url": "https://github.com/huggingface/datasets/pull/178.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/178.patch",
"merged_at": "2020-05-20T18:18:50"... | true | [Manual data] improve error message for manual data in general
`nlp.load("xsum")` now leads to the following error message:

I guess the manual download instructions for `xsu... | [] |
https://api.github.com/repos/huggingface/datasets/issues/177 | 177 | Xsum manual download instruction | closed | 2020-05-20T18:02:41 | https://api.github.com/repos/huggingface/datasets/issues/177/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/177",
"html_url": "https://github.com/huggingface/datasets/pull/177",
"diff_url": "https://github.com/huggingface/datasets/pull/177.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/177.patch",
"merged_at": "2020-05-20T18:16:49"... | true | Xsum manual download instruction
| [] | |
https://api.github.com/repos/huggingface/datasets/issues/176 | 176 | [Tests] Refactor MockDownloadManager | Clean mock download manager class.
The print function was not of much help I think.
We should think about adding a command that creates the dummy folder structure for the user. | closed | 2020-05-20T17:07:36 | https://api.github.com/repos/huggingface/datasets/issues/176/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/176",
"html_url": "https://github.com/huggingface/datasets/pull/176",
"diff_url": "https://github.com/huggingface/datasets/pull/176.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/176.patch",
"merged_at": "2020-05-20T18:17:18"... | true | [Tests] Refactor MockDownloadManager
Clean mock download manager class.
The print function was not of much help I think.
We should think about adding a command that creates the dummy folder structure for the user. | [] |
https://api.github.com/repos/huggingface/datasets/issues/175 | 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 | https://api.github.com/repos/huggingface/datasets/issues/175/comments | null | false | [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 ... | [] |
https://api.github.com/repos/huggingface/datasets/issues/174 | 174 | nlp.load_dataset('xsum') -> TypeError | closed | 2020-05-20T16:59:09 | https://api.github.com/repos/huggingface/datasets/issues/174/comments | null | false | nlp.load_dataset('xsum') -> TypeError
| [] | |
https://api.github.com/repos/huggingface/datasets/issues/173 | 173 | Rm extracted test dirs | All the dummy data used for tests were duplicated. For each dataset, we had one zip file but also its extracted directory. I removed all these directories
Furthermore instead of extracting next to the dummy_data.zip file, we extract in the temp `cached_dir` used for tests, so that all the extracted directories get r... | closed | 2020-05-20T13:30:48 | https://api.github.com/repos/huggingface/datasets/issues/173/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/173",
"html_url": "https://github.com/huggingface/datasets/pull/173",
"diff_url": "https://github.com/huggingface/datasets/pull/173.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/173.patch",
"merged_at": "2020-05-22T16:34:35"... | true | Rm extracted test dirs
All the dummy data used for tests were duplicated. For each dataset, we had one zip file but also its extracted directory. I removed all these directories
Furthermore instead of extracting next to the dummy_data.zip file, we extract in the temp `cached_dir` used for tests, so that all the extr... | [
"Thanks for cleaning up the extracted dummy data folders! Instead of changing the file_utils we could also just put these folders under `.gitignore` (or maybe already done?).",
"Awesome! I guess you might have to add the changes for the MockDLManager now in a different file though because of my last PR - sorry!"
... |
https://api.github.com/repos/huggingface/datasets/issues/172 | 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 | https://api.github.com/repos/huggingface/datasets/issues/172/comments | null | false | 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... | [
"Should be fixed on master now :)",
"Thanks @lhoestq 👍 Now I can uninstall WSL and get back to work with windows.🙂"
] |
https://api.github.com/repos/huggingface/datasets/issues/171 | 171 | fix squad metric format | The format of the squad metric was wrong.
This should fix #143
I tested with
```python3
predictions = [
{'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'}
]
references = [
{'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'}
]
``` | closed | 2020-05-19T18:37:36 | https://api.github.com/repos/huggingface/datasets/issues/171/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/171",
"html_url": "https://github.com/huggingface/datasets/pull/171",
"diff_url": "https://github.com/huggingface/datasets/pull/171.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/171.patch",
"merged_at": "2020-05-22T13:36:48"... | true | fix squad metric format
The format of the squad metric was wrong.
This should fix #143
I tested with
```python3
predictions = [
{'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'}
]
references = [
{'answers': [{'text': 'Denver Broncos'}], 'id': '56be4db0acb8001400a502ec'}
]
``` | [
"One thing for SQuAD is that I wanted to be able to use the SQuAD dataset directly in the metrics and I'm not sure it will be possible with this format.\r\n\r\n(maybe it's not really possible in general though)",
"This is kinda related to one thing I had in mind which is that we may want to be able to dump our mo... |
https://api.github.com/repos/huggingface/datasets/issues/170 | 170 | Rename anli dataset | What we have now as the `anli` dataset is actually the αNLI dataset from the ART challenge dataset. This name is confusing because `anli` is also the name of adversarial NLI (see [https://github.com/facebookresearch/anli](https://github.com/facebookresearch/anli)).
I renamed the current `anli` dataset by `art`. | closed | 2020-05-19T16:26:57 | https://api.github.com/repos/huggingface/datasets/issues/170/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/170",
"html_url": "https://github.com/huggingface/datasets/pull/170",
"diff_url": "https://github.com/huggingface/datasets/pull/170.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/170.patch",
"merged_at": "2020-05-20T12:23:07"... | true | Rename anli dataset
What we have now as the `anli` dataset is actually the αNLI dataset from the ART challenge dataset. This name is confusing because `anli` is also the name of adversarial NLI (see [https://github.com/facebookresearch/anli](https://github.com/facebookresearch/anli)).
I renamed the current `anli` da... | [] |
https://api.github.com/repos/huggingface/datasets/issues/169 | 169 | Adding Qanta (Quizbowl) Dataset | This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/) (adversarial fold)
This part... | closed | 2020-05-19T16:03:01 | https://api.github.com/repos/huggingface/datasets/issues/169/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/169",
"html_url": "https://github.com/huggingface/datasets/pull/169",
"diff_url": "https://github.com/huggingface/datasets/pull/169.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/169.patch",
"merged_at": null
} | true | Adding Qanta (Quizbowl) Dataset
This PR adds the qanta question answering datasets from [Quizbowl: The Case for Incremental Question Answering](https://arxiv.org/abs/1904.04792) and [Trick Me If You Can: Human-in-the-loop Generation of Adversarial Question Answering Examples](https://www.aclweb.org/anthology/Q19-1029/)... | [
"Hi @EntilZha - sorry for waiting so long until taking action here. We created a new command and a new recipe of how to add dummy_data. Can you maybe rebase to `master` as explained in 7. of https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-contribute-to-nlp and check that your dummy data is cor... |
https://api.github.com/repos/huggingface/datasets/issues/168 | 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 | https://api.github.com/repos/huggingface/datasets/issues/168/comments | null | false | 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 ... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/167 | 167 | [Tests] refactor tests | This PR separates AWS and Local tests to remove these ugly statements in the script:
```python
if "/" not in dataset_name:
logging.info("Skip {} because it is a canonical dataset")
return
```
To run a `aws` test, one should now run the following command:
```python
pytest -s... | closed | 2020-05-19T11:43:32 | https://api.github.com/repos/huggingface/datasets/issues/167/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/167",
"html_url": "https://github.com/huggingface/datasets/pull/167",
"diff_url": "https://github.com/huggingface/datasets/pull/167.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/167.patch",
"merged_at": "2020-05-19T16:17:10"... | true | [Tests] refactor tests
This PR separates AWS and Local tests to remove these ugly statements in the script:
```python
if "/" not in dataset_name:
logging.info("Skip {} because it is a canonical dataset")
return
```
To run a `aws` test, one should now run the following command:
... | [
"Nice !"
] |
https://api.github.com/repos/huggingface/datasets/issues/166 | 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 | https://api.github.com/repos/huggingface/datasets/issues/166/comments | null | false | 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 me... | [
"+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 ... |
https://api.github.com/repos/huggingface/datasets/issues/165 | 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 | https://api.github.com/repos/huggingface/datasets/issues/165/comments | null | false | 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 "W... | [] |
https://api.github.com/repos/huggingface/datasets/issues/164 | 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 | https://api.github.com/repos/huggingface/datasets/issues/164/comments | null | false | 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. | [
"Hello @mrm8488, are these datasets official datasets published in an NLP/CL/ML venue?",
"What about this one: https://github.com/ccasimiro88/TranslateAlignRetrieve?"
] |
https://api.github.com/repos/huggingface/datasets/issues/163 | 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 | https://api.github.com/repos/huggingface/datasets/issues/163/comments | null | false | [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/sales... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/162 | 162 | fix prev files hash in map | Fix the `.map` issue in #160.
This makes sure it takes the previous files when computing the hash. | closed | 2020-05-18T21:20:51 | https://api.github.com/repos/huggingface/datasets/issues/162/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/162",
"html_url": "https://github.com/huggingface/datasets/pull/162",
"diff_url": "https://github.com/huggingface/datasets/pull/162.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/162.patch",
"merged_at": "2020-05-18T21:36:20"... | true | fix prev files hash in map
Fix the `.map` issue in #160.
This makes sure it takes the previous files when computing the hash. | [
"Awesome! ",
"Hi, yes, this seems to fix #160 -- I cloned the branch locally and verified",
"Perfect then :)"
] |
https://api.github.com/repos/huggingface/datasets/issues/161 | 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 | https://api.github.com/repos/huggingface/datasets/issues/161/comments | null | false | 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_commo... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/160 | 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 | https://api.github.com/repos/huggingface/datasets/issues/160/comments | null | false | 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', defau... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/159 | 159 | How can we add more datasets to nlp library? | closed | 2020-05-18T18:35:31 | https://api.github.com/repos/huggingface/datasets/issues/159/comments | null | false | How can we add more datasets to nlp library?
| [
"Found it. https://github.com/huggingface/nlp/tree/master/datasets"
] | |
https://api.github.com/repos/huggingface/datasets/issues/158 | 158 | add Toronto Books Corpus | This PR adds the Toronto Books Corpus.
.
It on consider TMX and plain text files (Moses) defined in the table **Statistics and TMX/Moses Downloads** [here](http://opus.nlpl.eu/Books.php ) | closed | 2020-05-18T17:54:45 | https://api.github.com/repos/huggingface/datasets/issues/158/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/158",
"html_url": "https://github.com/huggingface/datasets/pull/158",
"diff_url": "https://github.com/huggingface/datasets/pull/158.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/158.patch",
"merged_at": null
} | true | add Toronto Books Corpus
This PR adds the Toronto Books Corpus.
.
It on consider TMX and plain text files (Moses) defined in the table **Statistics and TMX/Moses Downloads** [here](http://opus.nlpl.eu/Books.php ) | [] |
https://api.github.com/repos/huggingface/datasets/issues/157 | 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 | https://api.github.com/repos/huggingface/datasets/issues/157/comments | null | false | 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 | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/156 | 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 | https://api.github.com/repos/huggingface/datasets/issues/156/comments | null | false | 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_... | [
"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 ... |
https://api.github.com/repos/huggingface/datasets/issues/155 | 155 | Include more links in README, fix typos | Include more links and fix typos in README | closed | 2020-05-18T09:47:08 | https://api.github.com/repos/huggingface/datasets/issues/155/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/155",
"html_url": "https://github.com/huggingface/datasets/pull/155",
"diff_url": "https://github.com/huggingface/datasets/pull/155.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/155.patch",
"merged_at": "2020-05-28T08:31:57"... | true | Include more links in README, fix typos
Include more links and fix typos in README | [
"I fixed a conflict :) thanks !"
] |
https://api.github.com/repos/huggingface/datasets/issues/154 | 154 | add Ubuntu Dialogs Corpus datasets | This PR adds the Ubuntu Dialog Corpus datasets version 2.0. | closed | 2020-05-18T09:34:48 | https://api.github.com/repos/huggingface/datasets/issues/154/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/154",
"html_url": "https://github.com/huggingface/datasets/pull/154",
"diff_url": "https://github.com/huggingface/datasets/pull/154.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/154.patch",
"merged_at": "2020-05-18T10:12:27"... | true | add Ubuntu Dialogs Corpus datasets
This PR adds the Ubuntu Dialog Corpus datasets version 2.0. | [] |
https://api.github.com/repos/huggingface/datasets/issues/153 | 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 | https://api.github.com/repos/huggingface/datasets/issues/153/comments | null | false | 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 ref... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/152 | 152 | Add GLUE config name check | Fixes #130 by adding a name check to the Glue class | closed | 2020-05-18T07:23:43 | https://api.github.com/repos/huggingface/datasets/issues/152/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/152",
"html_url": "https://github.com/huggingface/datasets/pull/152",
"diff_url": "https://github.com/huggingface/datasets/pull/152.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/152.patch",
"merged_at": null
} | true | Add GLUE config name check
Fixes #130 by adding a name check to the Glue class | [
"If tests are being added, any guidance on where to add tests would be helpful!\r\n\r\nTagging @thomwolf for review",
"Looks good to me. Is this compatible with the way we are doing tests right now @patrickvonplaten ?",
"If the tests pass it should be fine :-) \r\n\r\n@Bharat123rox could you check whether the t... |
https://api.github.com/repos/huggingface/datasets/issues/151 | 151 | Fix JSON tests. | closed | 2020-05-18T07:17:38 | https://api.github.com/repos/huggingface/datasets/issues/151/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/151",
"html_url": "https://github.com/huggingface/datasets/pull/151",
"diff_url": "https://github.com/huggingface/datasets/pull/151.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/151.patch",
"merged_at": "2020-05-18T07:21:51"... | true | Fix JSON tests.
| [] | |
https://api.github.com/repos/huggingface/datasets/issues/150 | 150 | Add WNUT 17 NER dataset | Hi,
this PR adds the WNUT 17 dataset to `nlp`.
> Emerging and Rare entity recognition
> This shared task focuses on identifying unusual, previously-unseen entities in the context of emerging discussions. Named entities form the basis of many modern approaches to other tasks (like event clustering and summarisati... | closed | 2020-05-17T22:19:04 | https://api.github.com/repos/huggingface/datasets/issues/150/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/150",
"html_url": "https://github.com/huggingface/datasets/pull/150",
"diff_url": "https://github.com/huggingface/datasets/pull/150.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/150.patch",
"merged_at": "2020-05-26T20:37:59"... | true | Add WNUT 17 NER dataset
Hi,
this PR adds the WNUT 17 dataset to `nlp`.
> Emerging and Rare entity recognition
> This shared task focuses on identifying unusual, previously-unseen entities in the context of emerging discussions. Named entities form the basis of many modern approaches to other tasks (like event cl... | [
"The PR looks awesome! \r\nSince you have already added a dataset I imagine the tests as described in 5. of https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset all pass, right @stefan-it ?\r\n\r\nI think we are then good to merge this :-) @lhoestq ",
"Nice !\r\n\r\nOne thing though... |
https://api.github.com/repos/huggingface/datasets/issues/149 | 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 | https://api.github.com/repos/huggingface/datasets/issues/149/comments | null | false | [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/ | [
"@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... |
https://api.github.com/repos/huggingface/datasets/issues/148 | 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 | https://api.github.com/repos/huggingface/datasets/issues/148/comments | null | false | _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:... | [
"Same error for dataset 'wiki40b'",
"Should be fixed on master :)"
] |
https://api.github.com/repos/huggingface/datasets/issues/147 | 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 | https://api.github.com/repos/huggingface/datasets/issues/147/comments | null | false | 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'... | [
"Indeed. Probably we will want to have a similar method directly in the library",
"Related: #166 "
] |
https://api.github.com/repos/huggingface/datasets/issues/146 | 146 | Add BERTScore to metrics | This PR adds [BERTScore](https://arxiv.org/abs/1904.09675) to metrics.
Here is an example of how to use it.
```sh
import nlp
bertscore = nlp.load_metric('metrics/bertscore') # or simply nlp.load_metric('bertscore') after this is added to huggingface's s3 bucket
predictions = ['example', 'fruit']
references = [[... | closed | 2020-05-16T22:09:39 | https://api.github.com/repos/huggingface/datasets/issues/146/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/146",
"html_url": "https://github.com/huggingface/datasets/pull/146",
"diff_url": "https://github.com/huggingface/datasets/pull/146.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/146.patch",
"merged_at": "2020-05-17T22:22:09"... | true | Add BERTScore to metrics
This PR adds [BERTScore](https://arxiv.org/abs/1904.09675) to metrics.
Here is an example of how to use it.
```sh
import nlp
bertscore = nlp.load_metric('metrics/bertscore') # or simply nlp.load_metric('bertscore') after this is added to huggingface's s3 bucket
predictions = ['example', ... | [] |
https://api.github.com/repos/huggingface/datasets/issues/145 | 145 | [AWS Tests] Follow-up PR from #144 | I forgot to add this line in PR #145 . | closed | 2020-05-16T13:53:46 | https://api.github.com/repos/huggingface/datasets/issues/145/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/145",
"html_url": "https://github.com/huggingface/datasets/pull/145",
"diff_url": "https://github.com/huggingface/datasets/pull/145.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/145.patch",
"merged_at": "2020-05-16T13:54:22"... | true | [AWS Tests] Follow-up PR from #144
I forgot to add this line in PR #145 . | [] |
https://api.github.com/repos/huggingface/datasets/issues/144 | 144 | [AWS tests] AWS test should not run for canonical datasets | AWS tests should in general not run for canonical datasets. Only local tests will run in this case. This way a PR is able to pass when adding a new dataset.
This PR changes to logic to the following:
1) All datasets that are present in `nlp/datasets` are tested only locally. This way when one adds a canonical da... | closed | 2020-05-16T13:39:30 | https://api.github.com/repos/huggingface/datasets/issues/144/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/144",
"html_url": "https://github.com/huggingface/datasets/pull/144",
"diff_url": "https://github.com/huggingface/datasets/pull/144.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/144.patch",
"merged_at": "2020-05-16T13:44:33"... | true | [AWS tests] AWS test should not run for canonical datasets
AWS tests should in general not run for canonical datasets. Only local tests will run in this case. This way a PR is able to pass when adding a new dataset.
This PR changes to logic to the following:
1) All datasets that are present in `nlp/datasets` are... | [] |
https://api.github.com/repos/huggingface/datasets/issues/143 | 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 | https://api.github.com/repos/huggingface/datasets/issues/143/comments | null | false | 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 ... | [
"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 ... |
https://api.github.com/repos/huggingface/datasets/issues/142 | 142 | [WMT] Add all wmt | This PR adds all wmt datasets scripts. At the moment the script is **not** functional for the language pairs "cs-en", "ru-en", "hi-en" because apparently it takes up to a week to get the manual data for these datasets: see http://ufal.mff.cuni.cz/czeng.
The datasets are fully functional though for the "big" languag... | closed | 2020-05-16T11:28:46 | https://api.github.com/repos/huggingface/datasets/issues/142/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/142",
"html_url": "https://github.com/huggingface/datasets/pull/142",
"diff_url": "https://github.com/huggingface/datasets/pull/142.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/142.patch",
"merged_at": "2020-05-17T12:18:20"... | true | [WMT] Add all wmt
This PR adds all wmt datasets scripts. At the moment the script is **not** functional for the language pairs "cs-en", "ru-en", "hi-en" because apparently it takes up to a week to get the manual data for these datasets: see http://ufal.mff.cuni.cz/czeng.
The datasets are fully functional though for... | [] |
https://api.github.com/repos/huggingface/datasets/issues/141 | 141 | [Clean up] remove bogus folder | @mariamabarham - I think you accidentally placed it there. | closed | 2020-05-16T11:13:42 | https://api.github.com/repos/huggingface/datasets/issues/141/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/141",
"html_url": "https://github.com/huggingface/datasets/pull/141",
"diff_url": "https://github.com/huggingface/datasets/pull/141.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/141.patch",
"merged_at": "2020-05-16T13:24:25"... | true | [Clean up] remove bogus folder
@mariamabarham - I think you accidentally placed it there. | [
"Same for the dataset_infos.json at the project root no ?",
"Sorry guys, I haven't noticed. Thank you for mentioning it."
] |
https://api.github.com/repos/huggingface/datasets/issues/140 | 140 | [Tests] run local tests as default | This PR also enables local tests by default
I think it's safer for now to enable both local and aws tests for every commit. The problem currently is that when we do a PR to add a dataset, the dataset is not yet on AWS on therefore not tested on the PR itself. Thus the PR will always be green even if the datasets are... | closed | 2020-05-16T10:56:06 | https://api.github.com/repos/huggingface/datasets/issues/140/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/140",
"html_url": "https://github.com/huggingface/datasets/pull/140",
"diff_url": "https://github.com/huggingface/datasets/pull/140.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/140.patch",
"merged_at": "2020-05-16T13:21:43"... | true | [Tests] run local tests as default
This PR also enables local tests by default
I think it's safer for now to enable both local and aws tests for every commit. The problem currently is that when we do a PR to add a dataset, the dataset is not yet on AWS on therefore not tested on the PR itself. Thus the PR will alway... | [
"You are right and I think those are usual best practice :) I'm 100% fine with this^^",
"Merging this for now to unblock other PRs."
] |
https://api.github.com/repos/huggingface/datasets/issues/139 | 139 | Add GermEval 2014 NER dataset | Hi,
this PR adds the GermEval 2014 NER dataset 😃
> The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation [1] with the following properties:
> - The data was sampled from German Wikipedia and News Corpora as a collection of citations.
> - The dataset covers over 31,000... | closed | 2020-05-15T23:42:09 | https://api.github.com/repos/huggingface/datasets/issues/139/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/139",
"html_url": "https://github.com/huggingface/datasets/pull/139",
"diff_url": "https://github.com/huggingface/datasets/pull/139.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/139.patch",
"merged_at": "2020-05-16T13:56:22"... | true | Add GermEval 2014 NER dataset
Hi,
this PR adds the GermEval 2014 NER dataset 😃
> The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation [1] with the following properties:
> - The data was sampled from German Wikipedia and News Corpora as a collection of citations.
> - ... | [
"Had really fun playing around with this new library :heart: ",
"That's awesome - thanks @stefan-it :-) \r\n\r\nCould you maybe rebase to master and check if all dummy data tests are fine. I should have included the local tests directly in the test suite so that all PRs are fully checked: #140 - sorry :D ",
"@p... |
https://api.github.com/repos/huggingface/datasets/issues/138 | 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 | https://api.github.com/repos/huggingface/datasets/issues/138/comments | null | false | 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 conflic... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/136 | 136 | Update README.md | small typo | closed | 2020-05-15T20:01:07 | https://api.github.com/repos/huggingface/datasets/issues/136/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/136",
"html_url": "https://github.com/huggingface/datasets/pull/136",
"diff_url": "https://github.com/huggingface/datasets/pull/136.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/136.patch",
"merged_at": null
} | true | Update README.md
small typo | [
"Thanks, this was fixed with #135 :)"
] |
https://api.github.com/repos/huggingface/datasets/issues/135 | 135 | Fix print statement in READ.md | print statement was throwing generator object instead of printing names of available datasets/metrics | closed | 2020-05-15T19:52:23 | https://api.github.com/repos/huggingface/datasets/issues/135/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/135",
"html_url": "https://github.com/huggingface/datasets/pull/135",
"diff_url": "https://github.com/huggingface/datasets/pull/135.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/135.patch",
"merged_at": "2020-05-17T12:14:05"... | true | Fix print statement in READ.md
print statement was throwing generator object instead of printing names of available datasets/metrics | [
"Indeed, thanks!"
] |
https://api.github.com/repos/huggingface/datasets/issues/134 | 134 | Update README.md | closed | 2020-05-15T16:56:14 | https://api.github.com/repos/huggingface/datasets/issues/134/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/134",
"html_url": "https://github.com/huggingface/datasets/pull/134",
"diff_url": "https://github.com/huggingface/datasets/pull/134.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/134.patch",
"merged_at": null
} | true | Update README.md
| [
"the readme got removed, closing this one"
] | |
https://api.github.com/repos/huggingface/datasets/issues/133 | 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 | https://api.github.com/repos/huggingface/datasets/issues/133/comments | null | false | [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 exac... | [
"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\... |
https://api.github.com/repos/huggingface/datasets/issues/132 | 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 | https://api.github.com/repos/huggingface/datasets/issues/132/comments | null | false | [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... | [
"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 "
] |
https://api.github.com/repos/huggingface/datasets/issues/131 | 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 | https://api.github.com/repos/huggingface/datasets/issues/131/comments | null | false | [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. | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/130 | 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 | https://api.github.com/repos/huggingface/datasets/issues/130/comments | null | false | 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... | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/129 | 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 | https://api.github.com/repos/huggingface/datasets/issues/129/comments | null | false | [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. | [
"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... |
https://api.github.com/repos/huggingface/datasets/issues/128 | 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 | https://api.github.com/repos/huggingface/datasets/issues/128/comments | null | false | 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 connec... | [
"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"
] |
https://api.github.com/repos/huggingface/datasets/issues/127 | 127 | Update Overview.ipynb | update notebook | closed | 2020-05-15T11:46:48 | https://api.github.com/repos/huggingface/datasets/issues/127/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/127",
"html_url": "https://github.com/huggingface/datasets/pull/127",
"diff_url": "https://github.com/huggingface/datasets/pull/127.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/127.patch",
"merged_at": "2020-05-15T11:47:25"... | true | Update Overview.ipynb
update notebook | [] |
https://api.github.com/repos/huggingface/datasets/issues/126 | 126 | remove webis | Remove webis from dataset folder.
Our first dataset script that only lives on AWS :-) https://s3.console.aws.amazon.com/s3/buckets/datasets.huggingface.co/nlp/datasets/webis/tl_dr/?region=us-east-1 @julien-c @jplu | closed | 2020-05-15T11:25:20 | https://api.github.com/repos/huggingface/datasets/issues/126/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/126",
"html_url": "https://github.com/huggingface/datasets/pull/126",
"diff_url": "https://github.com/huggingface/datasets/pull/126.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/126.patch",
"merged_at": "2020-05-15T11:30:26"... | true | remove webis
Remove webis from dataset folder.
Our first dataset script that only lives on AWS :-) https://s3.console.aws.amazon.com/s3/buckets/datasets.huggingface.co/nlp/datasets/webis/tl_dr/?region=us-east-1 @julien-c @jplu | [] |
https://api.github.com/repos/huggingface/datasets/issues/125 | 125 | [Newsroom] add newsroom | I checked it with the data link of the mail you forwarded @thomwolf => works well! | closed | 2020-05-15T10:34:34 | https://api.github.com/repos/huggingface/datasets/issues/125/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/125",
"html_url": "https://github.com/huggingface/datasets/pull/125",
"diff_url": "https://github.com/huggingface/datasets/pull/125.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/125.patch",
"merged_at": "2020-05-15T10:37:02"... | true | [Newsroom] add newsroom
I checked it with the data link of the mail you forwarded @thomwolf => works well! | [] |
https://api.github.com/repos/huggingface/datasets/issues/124 | 124 | Xsum, require manual download of some files | closed | 2020-05-15T10:26:13 | https://api.github.com/repos/huggingface/datasets/issues/124/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/124",
"html_url": "https://github.com/huggingface/datasets/pull/124",
"diff_url": "https://github.com/huggingface/datasets/pull/124.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/124.patch",
"merged_at": "2020-05-15T11:04:46"... | true | Xsum, require manual download of some files
| [] | |
https://api.github.com/repos/huggingface/datasets/issues/123 | 123 | [Tests] Local => aws | ## Change default Test from local => aws
As a default we set` aws=True`, `Local=False`, `slow=False`
### 1. RUN_AWS=1 (default)
This runs 4 tests per dataset script.
a) Does the dataset script have a valid etag / Can it be reached on AWS?
b) Can we load its `builder_class`?
c) Can we load **all** dataset c... | closed | 2020-05-15T09:12:25 | https://api.github.com/repos/huggingface/datasets/issues/123/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/123",
"html_url": "https://github.com/huggingface/datasets/pull/123",
"diff_url": "https://github.com/huggingface/datasets/pull/123.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/123.patch",
"merged_at": "2020-05-15T10:03:26"... | true | [Tests] Local => aws
## Change default Test from local => aws
As a default we set` aws=True`, `Local=False`, `slow=False`
### 1. RUN_AWS=1 (default)
This runs 4 tests per dataset script.
a) Does the dataset script have a valid etag / Can it be reached on AWS?
b) Can we load its `builder_class`?
c) Can we l... | [
"For each dataset, If there exist a `dataset_info.json`, then the command `nlp-cli test path/to/my/dataset --al_configs` is successful only if the `dataset_infos.json` is correct. The infos are correct if the size and checksums of the downloaded file are correct, and if the number of examples in each split are corr... |
https://api.github.com/repos/huggingface/datasets/issues/122 | 122 | Final cleanup of readme and metrics | closed | 2020-05-15T09:00:52 | https://api.github.com/repos/huggingface/datasets/issues/122/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/122",
"html_url": "https://github.com/huggingface/datasets/pull/122",
"diff_url": "https://github.com/huggingface/datasets/pull/122.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/122.patch",
"merged_at": "2020-05-15T09:02:22"... | true | Final cleanup of readme and metrics
| [] | |
https://api.github.com/repos/huggingface/datasets/issues/121 | 121 | make style | closed | 2020-05-15T08:23:36 | https://api.github.com/repos/huggingface/datasets/issues/121/comments | {
"url": "https://api.github.com/repos/huggingface/datasets/pulls/121",
"html_url": "https://github.com/huggingface/datasets/pull/121",
"diff_url": "https://github.com/huggingface/datasets/pull/121.diff",
"patch_url": "https://github.com/huggingface/datasets/pull/121.patch",
"merged_at": "2020-05-15T08:25:38"... | true | make style
| [] | |
https://api.github.com/repos/huggingface/datasets/issues/120 | 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 | https://api.github.com/repos/huggingface/datasets/issues/120/comments | null | false | 🐛 `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 te... | [
"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```"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.