id stringlengths 18 24 | number int64 2 8.48k | title stringlengths 1 290 | body stringlengths 0 228k | state stringclasses 2
values | createdAt timestamp[s]date 2020-04-14 18:18:51 2026-08-13 03:02:44 | updatedAt timestamp[s]date 2020-04-29 09:23:05 2026-08-15 04:47:12 | closedAt timestamp[s]date 2020-04-29 09:23:05 2026-07-28 10:29:56 ⌀ | url stringlengths 48 51 | author dict | labels dict | comments listlengths 0 30 |
|---|---|---|---|---|---|---|---|---|---|---|---|
MDU6SXNzdWU3MTEzODU3Mzk= | 686 | Dataset browser url is still https://huggingface.co/nlp/viewer/ | Might be worth updating to https://huggingface.co/datasets/viewer/ | CLOSED | 2020-09-29T19:21:52 | 2021-01-08T18:29:26 | 2021-01-08T18:29:26 | https://github.com/huggingface/datasets/issues/686 | {
"login": "jarednielsen"
} | {
"nodes": []
} | [
"Yes! might do it with @srush one of these days. Hopefully it won't break too many links (we can always redirect from old url to new)",
"This was fixed but forgot to close the issue. cc @lhoestq @yjernite \r\n\r\nThanks @jarednielsen!"
] |
MDU6SXNzdWU3MTAwNjA0OTc= | 678 | The download instructions for c4 datasets are not contained in the error message | The manual download instructions are not clear
```The dataset c4 with config en requires manual data.
Please follow the manual download instructions: <bound method C4.manual_download_instructions of <datasets_modules.datasets.c4.830b0c218bd41fed439812c8dd19dbd4767d2a3faa385eb695cf8666c982b1b3.c4.C4 object at 0x7ff... | CLOSED | 2020-09-28T08:30:54 | 2020-09-28T10:26:09 | 2020-09-28T10:26:09 | https://github.com/huggingface/datasets/issues/678 | {
"login": "Narsil"
} | {
"nodes": []
} | [
"Good catch !\r\nIndeed the `@property` is missing.\r\n\r\nFeel free to open a PR :)",
"Also not that C4 is a dataset that needs an Apache Beam runtime to be generated.\r\nFor example Dataflow, Spark, Flink etc.\r\n\r\nUsually we generate the dataset on our side once and for all, but we haven't done it for C4 yet... |
MDU6SXNzdWU3MTAwMTQzMTk= | 676 | train_test_split returns empty dataset item | I try to split my dataset by `train_test_split`, but after that the item in `train` and `test` `Dataset` is empty.
The codes:
```
yelp_data = datasets.load_from_disk('/home/ssd4/huanglianzhe/test_yelp')
print(yelp_data[0])
yelp_data = yelp_data.train_test_split(test_size=0.1)
print(yelp_data)
pri... | CLOSED | 2020-09-28T07:19:33 | 2020-10-07T13:46:33 | 2020-10-07T13:38:06 | https://github.com/huggingface/datasets/issues/676 | {
"login": "mojave-pku"
} | {
"nodes": []
} | [
"The problem still exists after removing the cache files.",
"Can you reproduce this example in a Colab so we can investigate? (or give more information on your software/hardware config)",
"Thanks for reporting.\r\nI just found the issue, I'm creating a PR",
"We'll do a release pretty soon to include the fix :... |
MDU6SXNzdWU3MDk4MTg3MjU= | 675 | Add custom dataset to NLP? | Is it possible to add a custom dataset such as a .csv to the NLP library?
Thanks. | CLOSED | 2020-09-27T21:22:50 | 2020-10-20T09:08:49 | 2020-10-20T09:08:49 | https://github.com/huggingface/datasets/issues/675 | {
"login": "timpal0l"
} | {
"nodes": []
} | [
"Yes you can have a look here: https://huggingface.co/docs/datasets/loading_datasets.html#csv-files",
"No activity, closing"
] |
MDU6SXNzdWU3MDk2NjEwMDY= | 674 | load_dataset() won't download in Windows | I don't know if this is just me or Windows. Maybe other Windows users can chime in if they don't have this problem. I've been trying to get some of the tutorials working on Windows, but when I use the load_dataset() function, it just stalls and the script keeps running indefinitely without downloading anything. I've wa... | CLOSED | 2020-09-27T03:56:25 | 2020-10-05T08:28:18 | 2020-10-05T08:28:18 | https://github.com/huggingface/datasets/issues/674 | {
"login": "ThisDavehead"
} | {
"nodes": []
} | [
"I have the same issue. Tried to download a few of them and not a single one is downloaded successfully.\r\n\r\nThis is the output:\r\n```\r\n>>> dataset = load_dataset('blended_skill_talk', split='train')\r\nUsing custom data configuration default <-- This step never ends\r\n```",
"This was fixed i... |
MDU6SXNzdWU3MDk2MDM5ODk= | 673 | blog_authorship_corpus crashed | This is just to report that When I pick blog_authorship_corpus in
https://huggingface.co/nlp/viewer/?dataset=blog_authorship_corpus
I get this:

| CLOSED | 2020-09-26T20:15:28 | 2022-02-15T10:47:58 | 2022-02-15T10:47:58 | https://github.com/huggingface/datasets/issues/673 | {
"login": "Moshiii"
} | {
"nodes": [
{
"name": "nlp-viewer"
}
]
} | [
"Thanks for reporting !\r\nWe'll free some memory"
] |
MDU6SXNzdWU3MDk1NzU1Mjc= | 672 | Questions about XSUM | Hi there ✋
I'm looking into your `xsum` dataset and I have several questions on that.
So here is how I loaded the data:
```
>>> data = datasets.load_dataset('xsum', version='1.0.1')
>>> data['train']
Dataset(features: {'document': Value(dtype='string', id=None), 'summary': Value(dtype='string', id=None)}, nu... | CLOSED | 2020-09-26T17:16:24 | 2022-10-04T17:30:17 | 2022-10-04T17:30:17 | https://github.com/huggingface/datasets/issues/672 | {
"login": "danyaljj"
} | {
"nodes": []
} | [
"We should try to regenerate the data using the official script.\r\nBut iirc that's what we used in the first place, so not sure why it didn't match in the first place.\r\n\r\nI'll let you know when the dataset is updated",
"Thanks, looking forward to hearing your update on this thread. \r\n\r\nThis is a blocking... |
MDU6SXNzdWU3MDkwOTMxNTE= | 671 | [BUG] No such file or directory | This happens when both
1. Huggingface datasets cache dir does not exist
2. Try to load a local dataset script
builder.py throws an error when trying to create a filelock in a directory (cache/datasets) that does not exist
https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L177
Tested o... | CLOSED | 2020-09-25T16:38:54 | 2020-09-28T14:42:42 | 2020-09-28T14:42:42 | https://github.com/huggingface/datasets/issues/671 | {
"login": "jbragg"
} | {
"nodes": []
} | [] |
MDU6SXNzdWU3MDg4NTc1OTU= | 669 | How to skip a example when running dataset.map | in processing func, I process examples and detect some invalid examples, which I did not want it to be added into train dataset. However I did not find how to skip this recognized invalid example when doing dataset.map. | CLOSED | 2020-09-25T11:17:53 | 2022-06-17T21:45:03 | 2020-10-05T16:28:13 | https://github.com/huggingface/datasets/issues/669 | {
"login": "xixiaoyao"
} | {
"nodes": []
} | [
"Hi @xixiaoyao,\r\nDepending on what you want to do you can:\r\n- use a first step of `filter` to filter out the invalid examples: https://huggingface.co/docs/datasets/processing.html#filtering-rows-select-and-filter\r\n- or directly detect the invalid examples inside the callable used with `map` and return them un... |
MDU6SXNzdWU3MDgzMTA5NTY= | 668 | OverflowError when slicing with an array containing negative ids | ```python
from datasets import Dataset
d = ds.Dataset.from_dict({"a": range(10)})
print(d[0])
# {'a': 0}
print(d[-1])
# {'a': 9}
print(d[[0, -1]])
# OverflowError
```
results in
```
---------------------------------------------------------------------------
OverflowError ... | CLOSED | 2020-09-24T16:27:14 | 2020-09-28T14:42:19 | 2020-09-28T14:42:19 | https://github.com/huggingface/datasets/issues/668 | {
"login": "lhoestq"
} | {
"nodes": []
} | [] |
MDU6SXNzdWU3MDgyNTgzOTI= | 667 | Loss not decrease with Datasets and Transformers | HI,
The following script is used to fine-tune a BertForSequenceClassification model on SST2.
The script is adapted from [this colab](https://colab.research.google.com/github/huggingface/datasets/blob/master/notebooks/Overview.ipynb) that presents an example of fine-tuning BertForQuestionAnswering using squad data... | CLOSED | 2020-09-24T15:14:43 | 2021-01-01T20:01:25 | 2021-01-01T20:01:25 | https://github.com/huggingface/datasets/issues/667 | {
"login": "wangcongcong123"
} | {
"nodes": []
} | [
"And I tested it on T5ForConditionalGeneration, that works no problem.",
"Hi did you manage to fix your issue ?\r\n\r\nIf so feel free to share your fix and close this thread"
] |
MDU6SXNzdWU3MDc2MDg1Nzg= | 666 | Does both 'bookcorpus' and 'wikipedia' belong to the same datasets which Google used for pretraining BERT? | CLOSED | 2020-09-23T19:02:25 | 2020-10-27T15:19:25 | 2020-10-27T15:19:25 | https://github.com/huggingface/datasets/issues/666 | {
"login": "wahab4114"
} | {
"nodes": []
} | [
"No they are other similar copies but they are not provided by the official Bert models authors."
] | |
MDU6SXNzdWU3MDcwMzc3Mzg= | 665 | runing dataset.map, it raises TypeError: can't pickle Tokenizer objects | I load squad dataset. Then want to process data use following function with `Huggingface Transformers LongformerTokenizer`.
```
def convert_to_features(example):
# Tokenize contexts and questions (as pairs of inputs)
input_pairs = [example['question'], example['context']]
encodings = tokenizer.encode... | CLOSED | 2020-09-23T04:28:14 | 2020-10-08T09:32:16 | 2020-10-08T09:32:16 | https://github.com/huggingface/datasets/issues/665 | {
"login": "xixiaoyao"
} | {
"nodes": []
} | [
"Hi !\r\nIt works on my side with both the LongFormerTokenizer and the LongFormerTokenizerFast.\r\n\r\nWhich version of transformers/datasets are you using ?",
"transformers and datasets are both the latest",
"Then I guess you need to give us more informations on your setup (OS, python, GPU, etc) or a Google Co... |
MDU6SXNzdWU3MDcwMTc3OTE= | 664 | load_dataset from local squad.py, raise error: TypeError: 'NoneType' object is not callable |
version: 1.0.2
```
train_dataset = datasets.load_dataset('squad')
```
The above code can works. However, when I download the squad.py from your server, and saved as `my_squad.py` to local. I run followings raise errors.
```
train_dataset = datasets.load_dataset('./my_squad.py') ... | CLOSED | 2020-09-23T03:53:36 | 2023-04-17T09:31:20 | 2020-10-20T09:06:13 | https://github.com/huggingface/datasets/issues/664 | {
"login": "xixiaoyao"
} | {
"nodes": []
} | [
"Hi !\r\nThanks for reporting.\r\nIt looks like no object inherits from `datasets.GeneratorBasedBuilder` (or more generally from `datasets.DatasetBuilder`) in your script.\r\n\r\nCould you check that there exist at least one dataset builder class ?",
"Hi @xixiaoyao did you manage to fix your issue ?",
"No activ... |
MDU6SXNzdWU3MDYyMDQzODM= | 657 | Squad Metric Description & Feature Mismatch | The [description](https://github.com/huggingface/datasets/blob/master/metrics/squad/squad.py#L39) doesn't mention `answer_start` in squad. However the `datasets.features` require [it](https://github.com/huggingface/datasets/blob/master/metrics/squad/squad.py#L68). It's also not used in the evaluation. | CLOSED | 2020-09-22T09:07:00 | 2020-10-13T02:16:56 | 2020-09-29T15:57:38 | https://github.com/huggingface/datasets/issues/657 | {
"login": "tshrjn"
} | {
"nodes": []
} | [
"Thanks for reporting !\r\nThere indeed a mismatch between the features and the kwargs description\r\n\r\nI believe `answer_start` was added to match the squad dataset format for consistency, even though it is not used in the metric computation. I think I'd rather keep it this way, so that you can just give `refere... |
MDU6SXNzdWU3MDUyMTIwMzQ= | 651 | Problem with JSON dataset format | I have a local json dataset with the following form.
{
'id01234': {'key1': value1, 'key2': value2, 'key3': value3},
'id01235': {'key1': value1, 'key2': value2, 'key3': value3},
.
.
.
'id09999': {'key1': value1, 'key2': value2, 'key3': value3}
}
Note that instead of a list of records i... | OPEN | 2020-09-20T23:57:14 | 2020-09-21T12:14:24 | null | https://github.com/huggingface/datasets/issues/651 | {
"login": "vikigenius"
} | {
"nodes": []
} | [
"Currently the `json` dataset doesn't support this format unfortunately.\r\nHowever you could load it with\r\n```python\r\nfrom datasets import Dataset\r\nimport pandas as pd\r\n\r\ndf = pd.read_json(\"path_to_local.json\", orient=\"index\")\r\ndataset = Dataset.from_pandas(df)\r\n```",
"or you can make a custom ... |
MDU6SXNzdWU3MDQ4NjE4NDQ= | 650 | dummy data testing can't test datasets using `dl_manager.extract` in `_split_generators` | Hi, I recently want to add a dataset whose source data is like this
```
openwebtext.tar.xz
|__ openwebtext
|__subset000.xz
| |__ ....txt
| |__ ....txt
| ...
|__ subset001.xz
|
....
```
So I wrote `openwebtext.py` like this
```
d... | CLOSED | 2020-09-19T11:07:03 | 2020-09-22T11:54:10 | 2020-09-22T11:54:09 | https://github.com/huggingface/datasets/issues/650 | {
"login": "richarddwang"
} | {
"nodes": []
} | [
"Hi :) \r\nIn your dummy data zip file you can just have `subset000.xz` as directories instead of compressed files.\r\nLet me know if it helps",
"Thanks for your comment @lhoestq ,\r\nJust for confirmation, changing dummy data like this won't make dummy test test the functionality to extract `subsetxxx.xz` but ac... |
MDU6SXNzdWU3MDQ4Mzg0MTU= | 649 | Inconsistent behavior in map | I'm observing inconsistent behavior when applying .map(). This happens specifically when I'm incrementally adding onto a feature that is a nested dictionary. Here's a simple example that reproduces the problem.
```python
import datasets
# Dataset with a single feature called 'field' consisting of two examples
d... | CLOSED | 2020-09-19T08:41:12 | 2020-09-21T16:13:05 | 2020-09-21T16:13:05 | https://github.com/huggingface/datasets/issues/649 | {
"login": "krandiash"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Thanks for reporting !\r\n\r\nThis issue must have appeared when we refactored type inference in `nlp`\r\nBy default the library tries to keep the same feature types when applying `map` but apparently it has troubles with nested structures. I'll try to fix that next week"
] |
MDU6SXNzdWU3MDQ3NTMxMjM= | 648 | offset overflow when multiprocessing batched map on large datasets. | It only happened when "multiprocessing" + "batched" + "large dataset" at the same time.
```
def bprocess(examples):
examples['len'] = []
for text in examples['text']:
examples['len'].append(len(text))
return examples
wiki.map(brpocess, batched=True, num_proc=8)
```
```
----------------------------... | CLOSED | 2020-09-19T02:15:11 | 2025-06-17T12:56:07 | 2020-09-19T16:46:31 | https://github.com/huggingface/datasets/issues/648 | {
"login": "richarddwang"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"This should be fixed with #645 ",
"Feel free to re-open if it still occurs",
"This has just happened to me while working with a large (65GB) Parquet dataset.\n```\n[rank0]: Traceback (most recent call last):\n[rank0]: File \"/app/LLaMA-Factory/src/llamafactory/launcher.py\", line 23, in <module>\n[rank0]: ... |
MDU6SXNzdWU3MDQ3MzQ3NjQ= | 647 | Cannot download dataset_info.json | I am running my job on a cloud server where does not provide for connections from the standard compute nodes to outside resources. Hence, when I use `dataset.load_dataset()` to load data, I got an error like this:
```
ConnectionError: Couldn't reach https://storage.googleapis.com/huggingface-nlp/cache/datasets/text... | CLOSED | 2020-09-19T01:35:15 | 2020-09-21T08:28:42 | 2020-09-21T08:28:42 | https://github.com/huggingface/datasets/issues/647 | {
"login": "chiyuzhang94"
} | {
"nodes": []
} | [
"Thanks for reporting !\r\nWe should add support for servers without internet connection indeed\r\nI'll do that early next week",
"Thanks, @lhoestq !\r\nPlease let me know when it is available. ",
"Right now the recommended way is to create the dataset on a server with internet connection and then to save it an... |
MDU6SXNzdWU3MDQ0NzcxNjQ= | 643 | Caching processed dataset at wrong folder | Hi guys, I run this on my Colab (PRO):
```python
from datasets import load_dataset
dataset = load_dataset('text', data_files='/content/corpus.txt', cache_dir='/content/drive/My Drive', split='train')
def encode(examples):
return tokenizer(examples['text'], truncation=True, padding='max_length')
dataset = ... | CLOSED | 2020-09-18T15:41:26 | 2022-02-16T14:53:29 | 2022-02-16T14:53:29 | https://github.com/huggingface/datasets/issues/643 | {
"login": "mrm8488"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"Thanks for reporting !\r\nIt uses a temporary file to write the data.\r\nHowever it looks like the temporary file is not placed in the right directory during the processing",
"Well actually I just tested and the temporary file is placed in the same directory, so it should work as expected.\r\nWhich version of `d... |
MDU6SXNzdWU3MDQxNDY5NTY= | 638 | GLUE/QQP dataset: NonMatchingChecksumError | Hi @lhoestq , I know you are busy and there are also other important issues. But if this is easy to be fixed, I am shamelessly wondering if you can give me some help , so I can evaluate my models and restart with my developing cycle asap. 😚
datasets version: editable install of master at 9/17
`datasets.load_data... | CLOSED | 2020-09-18T07:09:10 | 2020-09-18T11:37:07 | 2020-09-18T11:37:07 | https://github.com/huggingface/datasets/issues/638 | {
"login": "richarddwang"
} | {
"nodes": []
} | [
"Hi ! Sure I'll take a look"
] |
MDU6SXNzdWU3MDI0NDA0ODQ= | 633 | Load large text file for LM pre-training resulting in OOM | I tried to pretrain Longformer using transformers and datasets. But I got OOM issues with loading a large text file. My script is almost like this:
```python
from datasets import load_dataset
@dataclass
class DataCollatorForDatasetsLanguageModeling(DataCollatorForLanguageModeling):
"""
Data collator u... | OPEN | 2020-09-16T04:33:15 | 2026-05-21T23:27:22 | null | https://github.com/huggingface/datasets/issues/633 | {
"login": "leethu2012"
} | {
"nodes": []
} | [
"Not sure what could cause that on the `datasets` side. Could this be a `Trainer` issue ? cc @julien-c @sgugger ?",
"There was a memory leak issue fixed recently in master. You should install from source and see if it fixes your problem.",
"@lhoestq @sgugger Thanks for your comments. I have install from source ... |
MDU6SXNzdWU3MDE2MzYzNTA= | 630 | Text dataset not working with large files | ```
Traceback (most recent call last):
File "examples/language-modeling/run_language_modeling.py", line 333, in <module>
main()
File "examples/language-modeling/run_language_modeling.py", line 262, in main
get_dataset(data_args, tokenizer=tokenizer, cache_dir=model_args.cache_dir) if training_args.do_t... | CLOSED | 2020-09-15T06:02:36 | 2020-09-25T22:21:43 | 2020-09-25T22:21:43 | https://github.com/huggingface/datasets/issues/630 | {
"login": "ksjae"
} | {
"nodes": []
} | [
"Seems like it works when setting ```block_size=2100000000``` or something arbitrarily large though.",
"Can you give us some stats on the data files you use as inputs?",
"Basically ~600MB txt files(UTF-8) * 59. \r\ncontents like ```안녕하세요, 이것은 예제로 한번 말해보는 텍스트입니다. 그냥 이렇다고요.<|endoftext|>\\n```\r\n\r\nAlso, it gets... |
MDU6SXNzdWU3MDE1MTc1NTA= | 629 | straddling object straddles two block boundaries | I am trying to read json data (it's an array with lots of dictionaries) and getting block boundaries issue as below :
I tried calling read_json with readOptions but no luck .
```
table = json.read_json(fn)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyarrow/_json.pyx", li... | CLOSED | 2020-09-15T00:30:46 | 2020-09-15T00:36:17 | 2020-09-15T00:32:17 | https://github.com/huggingface/datasets/issues/629 | {
"login": "bharaniabhishek123"
} | {
"nodes": []
} | [
"sorry it's an apache arrow issue."
] |
MDU6SXNzdWU3MDEwNTc3OTk= | 625 | dtype of tensors should be preserved | After switching to `datasets` my model just broke. After a weekend of debugging, the issue was that my model could not handle the double that the Dataset provided, as it expected a float (but didn't give a warning, which seems a [PyTorch issue](https://discuss.pytorch.org/t/is-it-required-that-input-and-hidden-for-gru-... | CLOSED | 2020-09-14T12:38:05 | 2021-08-17T08:30:04 | 2021-08-17T08:30:04 | https://github.com/huggingface/datasets/issues/625 | {
"login": "BramVanroy"
} | {
"nodes": []
} | [
"Indeed we convert tensors to list to be able to write in arrow format. Because of this conversion we lose the dtype information. We should add the dtype detection when we do type inference. However it would require a bit of refactoring since currently the conversion happens before the type inference..\r\n\r\nAnd t... |
MDU6SXNzdWU3MDA1NDE2Mjg= | 624 | Add learningq dataset | Hi,
Thank you again for this amazing repo.
Would it be possible for y'all to add the LearningQ dataset - https://github.com/AngusGLChen/LearningQ ?
| OPEN | 2020-09-13T10:20:27 | 2026-05-21T23:27:15 | null | https://github.com/huggingface/datasets/issues/624 | null | {
"nodes": [
{
"name": "dataset request"
}
]
} | [
"Hi! Triaging older issues this week — I think this one can be closed as out-of-scope for the current `datasets` repo.\n\n- Script-based dataset loaders are no longer added to this repo. The current model is \"upload directly to the Hub\": see [`ADD_NEW_DATASET.md`](https://github.com/huggingface/datasets/blob/main... |
MDU6SXNzdWU3MDAyMzUzMDg= | 623 | Custom feature types in `load_dataset` from CSV | I am trying to load a local file with the `load_dataset` function and I want to predefine the feature types with the `features` argument. However, the types are always the same independent of the value of `features`.
I am working with the local files from the emotion dataset. To get the data you can use the followi... | CLOSED | 2020-09-12T13:21:34 | 2020-09-30T19:51:43 | 2020-09-30T08:39:54 | https://github.com/huggingface/datasets/issues/623 | {
"login": "lvwerra"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"Currently `csv` doesn't support the `features` attribute (unlike `json`).\r\nWhat you can do for now is cast the features using the in-place transform `cast_`\r\n\r\n```python\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset('csv', data_files=file_dict, delimiter=';', column_names=['text', 'label... |
MDU6SXNzdWU3MDAyMjU4MjY= | 622 | load_dataset for text files not working | Trying the following snippet, I get different problems on Linux and Windows.
```python
dataset = load_dataset("text", data_files="data.txt")
# or
dataset = load_dataset("text", data_files=["data.txt"])
```
(ps [This example](https://huggingface.co/docs/datasets/loading_datasets.html#json-files) shows that ... | CLOSED | 2020-09-12T12:49:28 | 2020-10-28T11:07:31 | 2020-10-28T11:07:30 | https://github.com/huggingface/datasets/issues/622 | {
"login": "BramVanroy"
} | {
"nodes": [
{
"name": "dataset bug"
}
]
} | [
"Can you give us more information on your os and pip environments (pip list)?",
"@thomwolf Sure. I'll try downgrading to 3.7 now even though Arrow say they support >=3.5.\r\n\r\nLinux (Ubuntu 18.04) - Python 3.8\r\n======================\r\nPackage - Version\r\n---------------------\r\ncertifi 2... |
MDU6SXNzdWU2OTk4MTUxMzU= | 620 | map/filter multiprocessing raises errors and corrupts datasets | After upgrading to the 1.0 started seeing errors in my data loading script after enabling multiprocessing.
```python
...
ner_ds_dict = ner_ds.train_test_split(test_size=test_pct, shuffle=True, seed=seed)
ner_ds_dict["validation"] = ner_ds_dict["test"]
rel_ds_dict = rel_ds.train_test_split(test_si... | CLOSED | 2020-09-11T22:30:06 | 2020-10-08T16:31:47 | 2020-10-08T16:31:46 | https://github.com/huggingface/datasets/issues/620 | {
"login": "timothyjlaurent"
} | {
"nodes": [
{
"name": "bug"
}
]
} | [
"It seems that I ran into the same problem\r\n```\r\ndef tokenize(cols, example):\r\n for in_col, out_col in cols.items():\r\n example[out_col] = hf_tokenizer.convert_tokens_to_ids(hf_tokenizer.tokenize(example[in_col]))\r\n return example\r\ncola = datasets.load_dataset('glue', 'cola')\r\ntokenized_cola = col... |
MDU6SXNzdWU2OTk3MzM2MTI= | 619 | Mistakes in MLQA features names | I think the following features in MLQA shouldn't be named the way they are:
1. `questions` (should be `question`)
2. `ids` (should be `id`)
3. `start` (should be `answer_start`)
The reasons I'm suggesting these features be renamed are:
* To make them consistent with other QA datasets like SQuAD, XQuAD, TyDiQA et... | CLOSED | 2020-09-11T20:46:23 | 2020-09-16T06:59:19 | 2020-09-16T06:59:19 | https://github.com/huggingface/datasets/issues/619 | {
"login": "M-Salti"
} | {
"nodes": []
} | [
"Indeed you're right ! Thanks for reporting that\r\n\r\nCould you open a PR to fix the features names ?"
] |
MDU6SXNzdWU2OTk0NzI1OTY= | 617 | Compare different Rouge implementations | I used RougeL implementation provided in `datasets` [here](https://github.com/huggingface/datasets/blob/master/metrics/rouge/rouge.py) and it gives numbers that match those reported in the pegasus paper but very different from those reported in other papers, [this](https://arxiv.org/pdf/1909.03186.pdf) for example.
Ca... | CLOSED | 2020-09-11T15:49:32 | 2023-03-22T12:08:44 | 2020-10-02T09:52:18 | https://github.com/huggingface/datasets/issues/617 | {
"login": "ibeltagy"
} | {
"nodes": []
} | [
"Updates - the differences between the following three\r\n(1) https://github.com/bheinzerling/pyrouge (previously popular. The one I trust the most)\r\n(2) https://github.com/google-research/google-research/tree/master/rouge\r\n(3) https://github.com/pltrdy/files2rouge (used in fairseq)\r\ncan be explained by two t... |
MDU6SXNzdWU2OTk0NjIyOTM= | 616 | UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors | I am trying out the library and want to load in pickled data with `from_dict`. In that dict, one column `text` should be tokenized and the other (an embedding vector) should be retained. All other columns should be removed. When I eventually try to set the format for the columns with `set_format` I am getting this stra... | OPEN | 2020-09-11T15:39:16 | 2026-05-21T23:27:08 | null | https://github.com/huggingface/datasets/issues/616 | {
"login": "BramVanroy"
} | {
"nodes": []
} | [
"I have the same issue",
"Same issue here when Trying to load a dataset from disk.",
"I am also experiencing this issue, and don't know if it's affecting my training.",
"Same here. I hope the dataset is not being modified in-place.",
"I think the only way to avoid this warning would be to do a copy of the n... |
MDU6SXNzdWU2OTk0MTA3NzM= | 615 | Offset overflow when slicing a big dataset with an array of indices in Pyarrow >= 1.0.0 | How to reproduce:
```python
from datasets import load_dataset
wiki = load_dataset("wikipedia", "20200501.en", split="train")
wiki[[0]]
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
<ipython-input-13-38... | CLOSED | 2020-09-11T14:50:38 | 2024-05-02T06:53:15 | 2020-09-19T16:46:31 | https://github.com/huggingface/datasets/issues/615 | {
"login": "lhoestq"
} | {
"nodes": []
} | [
"Related: https://issues.apache.org/jira/browse/ARROW-9773\r\n\r\nIt's definitely a size thing. I took a smaller dataset with 87000 rows and did:\r\n```\r\nfor i in range(10,1000,20):\r\n table = pa.concat_tables([dset._data]*i)\r\n table.take([0])\r\n```\r\nand it broke at around i=300.\r\n\r\nAlso when `_in... |
MDU6SXNzdWU2OTg4NjM5ODg= | 611 | ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648 | Hi, I'm trying to load a dataset from Dataframe, but I get the error:
```bash
---------------------------------------------------------------------------
ArrowCapacityError Traceback (most recent call last)
<ipython-input-7-146b6b495963> in <module>
----> 1 dataset = Dataset.from_pandas(emb)... | CLOSED | 2020-09-11T05:29:12 | 2022-06-01T15:11:43 | 2022-06-01T15:11:43 | https://github.com/huggingface/datasets/issues/611 | {
"login": "sangyx"
} | {
"nodes": []
} | [
"Can you give us stats/information on your pandas DataFrame?",
"```\r\n<class 'pandas.core.frame.DataFrame'>\r\nInt64Index: 17136104 entries, 0 to 17136103\r\nData columns (total 6 columns):\r\n # Column Dtype \r\n--- ------ ----- \r\n 0 item_id int64 \r\n 1 item_titl object \r\n... |
MDU6SXNzdWU2OTgzNDkzODg= | 610 | Load text file for RoBERTa pre-training. | I migrate my question from https://github.com/huggingface/transformers/pull/4009#issuecomment-690039444
I tried to train a Roberta from scratch using transformers. But I got OOM issues with loading a large text file.
According to the suggestion from @thomwolf , I tried to implement `datasets` to load my text file.... | CLOSED | 2020-09-10T18:41:38 | 2022-11-22T13:51:24 | 2022-11-22T13:51:23 | https://github.com/huggingface/datasets/issues/610 | {
"login": "chiyuzhang94"
} | {
"nodes": []
} | [
"Could you try\r\n```python\r\nload_dataset('text', data_files='test.txt',cache_dir=\"./\", split=\"train\")\r\n```\r\n?\r\n\r\n`load_dataset` returns a dictionary by default, like {\"train\": your_dataset}",
"Hi @lhoestq\r\nThanks for your suggestion.\r\n\r\nI tried \r\n```\r\ndataset = load_dataset('text', data... |
MDU6SXNzdWU2OTgyOTExNTY= | 608 | Don't use the old NYU GLUE dataset URLs | NYU is switching dataset hosting from Google to FB. Initial changes to `datasets` are in https://github.com/jeswan/nlp/commit/b7d4a071d432592ded971e30ef73330529de25ce. What tests do you suggest I run before opening a PR?
See: https://github.com/jiant-dev/jiant/issues/161 and https://github.com/nyu-mll/jiant/pull/111... | CLOSED | 2020-09-10T17:47:02 | 2020-09-16T06:53:18 | 2020-09-16T06:53:18 | https://github.com/huggingface/datasets/issues/608 | {
"login": "jeswan"
} | {
"nodes": []
} | [
"Feel free to open the PR ;)\r\nThanks for updating the dataset_info.json file !"
] |
MDU6SXNzdWU2OTc0OTY5MTM= | 600 | Pickling error when loading dataset | Hi,
I modified line 136 in the original [run_language_modeling.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_language_modeling.py) as:
```
# line 136: return LineByLineTextDataset(tokenizer=tokenizer, file_path=file_path, block_size=args.block_size)
dataset = load_da... | CLOSED | 2020-09-10T06:28:08 | 2020-09-25T14:31:54 | 2020-09-25T14:31:54 | https://github.com/huggingface/datasets/issues/600 | {
"login": "kandorm"
} | {
"nodes": []
} | [
"When I change from python3.6 to python3.8, it works! ",
"Does it work when you install `nlp` from source on python 3.6?",
"No, still the pickling error.",
"I wasn't able to reproduce on google colab (python 3.6.9 as well) with \r\n\r\npickle==4.0\r\ndill=0.3.2\r\ntransformers==3.1.0\r\ndatasets=1.0.1 (also t... |
MDU6SXNzdWU2OTcxNTY1MDE= | 598 | The current version of the package on github has an error when loading dataset | Instead of downloading the package from pip, downloading the version from source will result in an error when loading dataset (the pip version is completely fine):
To recreate the error:
First, installing nlp directly from source:
```
git clone https://github.com/huggingface/nlp.git
cd nlp
pip install -e .
``... | CLOSED | 2020-09-09T21:03:23 | 2020-09-10T06:25:21 | 2020-09-09T22:57:28 | https://github.com/huggingface/datasets/issues/598 | {
"login": "zeyuyun1"
} | {
"nodes": []
} | [
"Thanks for reporting !\r\nWhich version of transformers are you using ?\r\nIt looks like it doesn't have the PreTrainedTokenizerBase class",
"I was using transformer 2.9. And I switch to the latest transformer package. Everything works just fine!!\r\n\r\nThanks for helping! I should look more carefully next time... |
MDU6SXNzdWU2OTcxMTIwMjk= | 597 | Indices incorrect with multiprocessing | When `num_proc` > 1, the indices argument passed to the map function is incorrect:
```python
d = load_dataset('imdb', split='test[:1%]')
def fn(x, inds):
print(inds)
return x
d.select(range(10)).map(fn, with_indices=True, batched=True)
# [0, 1]
# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
d.select(range(10... | CLOSED | 2020-09-09T19:50:56 | 2020-09-10T11:03:37 | 2020-09-10T11:03:37 | https://github.com/huggingface/datasets/issues/597 | {
"login": "joeddav"
} | {
"nodes": []
} | [
"I fixed a bug that could cause this issue earlier today. Could you pull the latest version and try again ?",
"Still the case on master.\r\nI guess we should have an offset in the multi-procs indeed (hopefully it's enough).\r\n\r\nAlso, side note is that we should add some logging before the \"test\" to say we ar... |
MDU6SXNzdWU2OTY4OTIzMDQ= | 595 | `Dataset`/`DatasetDict` has no attribute 'save_to_disk' | Hi,
As the title indicates, both `Dataset` and `DatasetDict` classes don't seem to have the `save_to_disk` method. While the file [`arrow_dataset.py`](https://github.com/huggingface/nlp/blob/34bf0b03bfe03e7f77b8fec1cd48f5452c4fc7c1/src/nlp/arrow_dataset.py) in the repo here has the method, the file `arrow_dataset.p... | CLOSED | 2020-09-09T15:01:52 | 2020-09-09T16:20:19 | 2020-09-09T16:20:18 | https://github.com/huggingface/datasets/issues/595 | {
"login": "sudarshan85"
} | {
"nodes": []
} | [
"`pip install git+https://github.com/huggingface/nlp.git` should have done the job.\r\n\r\nDid you uninstall `nlp` before installing from github ?",
"> Did you uninstall `nlp` before installing from github ?\r\n\r\nI did not. I created a new environment and installed `nlp` directly from `github` and it worked!\r\... |
MDU6SXNzdWU2OTY1MDE4Mjc= | 590 | The process cannot access the file because it is being used by another process (windows) | Hi, I consistently get the following error when developing in my PC (windows 10):
```
train_dataset = train_dataset.map(convert_to_features, batched=True)
File "C:\Users\saareliad\AppData\Local\Continuum\miniconda3\envs\py38\lib\site-packages\nlp\arrow_dataset.py", line 970, in map
shutil.move(tmp_file.... | CLOSED | 2020-09-09T07:01:36 | 2020-09-25T14:02:28 | 2020-09-25T14:02:28 | https://github.com/huggingface/datasets/issues/590 | {
"login": "saareliad"
} | {
"nodes": []
} | [
"Hi, which version of `nlp` are you using?\r\n\r\nBy the way we'll be releasing today a significant update fixing many issues (but also comprising a few breaking changes).\r\nYou can see more informations here #545 and try it by installing from source from the master branch.",
"I'm using version 0.4.0.\r\n\r\n",
... |
MDU6SXNzdWU2OTY0ODg0NDc= | 589 | Cannot use nlp.load_dataset text, AttributeError: module 'nlp.utils' has no attribute 'logging' |
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.7/site-packages/nlp/load.py", line 533, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/root/anaconda3/envs/pytorch/lib/python3.7/site-packages/nlp... | CLOSED | 2020-09-09T06:46:53 | 2020-09-09T08:57:54 | 2020-09-09T08:57:54 | https://github.com/huggingface/datasets/issues/589 | {
"login": "ksjae"
} | {
"nodes": []
} | [] |
MDU6SXNzdWU2OTUxNjYyNjU= | 583 | ArrowIndexError on Dataset.select | If the indices table consists in several chunks, then `dataset.select` results in an `ArrowIndexError` error for pyarrow < 1.0.0
Example:
```python
from nlp import load_dataset
mnli = load_dataset("glue", "mnli", split="train")
shuffled = mnli.shuffle(seed=42)
mnli.select(list(range(len(mnli))))
```
rai... | CLOSED | 2020-09-07T14:36:29 | 2020-09-08T07:43:15 | 2020-09-08T07:43:15 | https://github.com/huggingface/datasets/issues/583 | {
"login": "lhoestq"
} | {
"nodes": []
} | [] |
MDU6SXNzdWU2OTUxMjY0NTY= | 582 | Allow for PathLike objects | Using PathLike objects as input for `load_dataset` does not seem to work. The following will throw an error.
```python
files = list(Path(r"D:\corpora\yourcorpus").glob("*.txt"))
dataset = load_dataset("text", data_files=files)
```
Traceback:
```
Traceback (most recent call last):
File "C:/dev/python/dut... | CLOSED | 2020-09-07T13:54:51 | 2020-09-08T07:45:17 | 2020-09-08T07:45:17 | https://github.com/huggingface/datasets/issues/582 | {
"login": "BramVanroy"
} | {
"nodes": []
} | [] |
MDU6SXNzdWU2OTUxMjA1MTc= | 581 | Better error message when input file does not exist | In the following scenario, when `data_files` is an empty list, the stack trace and error message could be improved. This can probably be solved by checking for each file whether it actually exists and/or whether the argument is not false-y.
```python
dataset = load_dataset("text", data_files=[])
```
Example err... | CLOSED | 2020-09-07T13:47:59 | 2020-09-09T09:00:07 | 2020-09-09T09:00:07 | https://github.com/huggingface/datasets/issues/581 | {
"login": "BramVanroy"
} | {
"nodes": []
} | [] |
MDU6SXNzdWU2OTQ5NTQ1NTE= | 580 | nlp re-creates already-there caches when using a script, but not within a shell | `nlp` keeps creating new caches for the same file when launching `filter` from a script, and behaves correctly from within the shell.
Example: try running
```
import nlp
hans_easy_data = nlp.load_dataset('hans', split="validation").filter(lambda x: x['label'] == 0)
hans_hard_data = nlp.load_dataset('hans', s... | CLOSED | 2020-09-07T10:23:50 | 2020-09-07T15:19:09 | 2020-09-07T14:26:41 | https://github.com/huggingface/datasets/issues/580 | {
"login": "TevenLeScao"
} | {
"nodes": []
} | [
"Couln't reproduce on my side :/ \r\nlet me know if you manage to reproduce on another env (colab for example)",
"Fixed with a clean re-install!"
] |
MDU6SXNzdWU2OTQ2MDcxNDg= | 577 | Some languages in wikipedia dataset are not loading | Hi,
I am working with the `wikipedia` dataset and I have a script that goes over 92 of the available languages in that dataset. So far I have detected that `ar`, `af`, `an` are not loading. Other languages like `fr` and `en` are working fine. Here's how I am loading them:
```
import nlp
langs = ['ar'. 'af', '... | CLOSED | 2020-09-07T01:16:29 | 2023-04-11T22:50:48 | 2022-10-11T11:16:04 | https://github.com/huggingface/datasets/issues/577 | {
"login": "gaguilar"
} | {
"nodes": []
} | [
"Some wikipedia languages have already been processed by us and are hosted on our google storage. This is the case for \"fr\" and \"en\" for example.\r\n\r\nFor other smaller languages (in terms of bytes), they are directly downloaded and parsed from the wikipedia dump site.\r\nParsing can take some time for langua... |
MDU6SXNzdWU2OTM2OTE2MTE= | 575 | Couldn't reach certain URLs and for the ones that can be reached, code just blocks after downloading. | Hi,
I'm following the [quick tour](https://huggingface.co/nlp/quicktour.html) and tried to load the glue dataset:
```
>>> from nlp import load_dataset
>>> dataset = load_dataset('glue', 'mrpc', split='train')
```
However, this ran into a `ConnectionError` saying it could not reach the URL (just pasting the la... | CLOSED | 2020-09-04T21:46:25 | 2020-09-22T10:41:36 | 2020-09-22T10:41:36 | https://github.com/huggingface/datasets/issues/575 | {
"login": "sudarshan85"
} | {
"nodes": []
} | [
"Update:\r\n\r\nThe imdb download completed after a long time (about 45 mins). Ofcourse once download loading was instantaneous. Also, the loaded object was of type `arrow_dataset`. \r\n\r\nThe urls for glue still doesn't work though.",
"Thanks for the report, I'll give a look!",
"I am also seeing a similar err... |
MDU6SXNzdWU2OTE2Mzg2NTY= | 568 | `metric.compute` throws `ArrowInvalid` error | I get the following error with `rouge.compute`. It happens only with distributed training, and it occurs randomly I can't easily reproduce it. This is using `nlp==0.4.0`
```
File "/home/beltagy/trainer.py", line 92, in validation_step
rouge_scores = rouge.compute(predictions=generated_str, references=gold_st... | CLOSED | 2020-09-03T04:56:57 | 2020-10-05T16:33:53 | 2020-10-05T16:33:53 | https://github.com/huggingface/datasets/issues/568 | {
"login": "ibeltagy"
} | {
"nodes": []
} | [
"Hmm might be related to what we are solving in #564",
"Could you try to update to `datasets>=1.0.0` (we changed the name of the library) and try again ?\r\nIf is was related to the distributed setup settings it must be fixed.\r\nIf it was related to empty metric inputs it's going to be fixed in #654 ",
"Closin... |
MDU6SXNzdWU2OTEwMzkxMjE= | 565 | No module named 'nlp.logging' | Hi, I am using nlp version 0.4.0. Trying to use bleurt as an eval metric, however, the bleurt script imports nlp.logging which creates the following error. What am I missing?
```
>>> import nlp
2020-09-02 13:47:09.210310: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic l... | CLOSED | 2020-09-02T13:49:50 | 2020-09-03T07:29:50 | 2020-09-03T07:29:50 | https://github.com/huggingface/datasets/issues/565 | {
"login": "melody-ju"
} | {
"nodes": []
} | [
"Thanks for reporting.\r\n\r\nApparently this is a versioning issue: the lib downloaded the `bleurt` script from the master branch where we did this change recently. We'll fix that in a new release this week or early next week. Cc @thomwolf \r\n\r\nUntil that, I'd suggest you to download the right bleurt folder fro... |
MDU6SXNzdWU2OTA0ODg3NjQ= | 560 | Using custom DownloadConfig results in an error | ## Version / Environment
Ubuntu 18.04
Python 3.6.8
nlp 0.4.0
## Description
Loading `imdb` dataset works fine when when I don't specify any `download_config` argument. When I create a custom `DownloadConfig` object and pass it to the `nlp.load_dataset` function, this results in an error.
## How to reprodu... | CLOSED | 2020-09-01T22:23:02 | 2022-10-04T17:23:45 | 2022-10-04T17:23:45 | https://github.com/huggingface/datasets/issues/560 | {
"login": "ynouri"
} | {
"nodes": []
} | [
"From my limited understanding, part of the issue seems related to the `prepare_module` and `download_and_prepare` functions each handling the case where no config is passed. For example, `prepare_module` does mutate the object passed and forces the flags `extract_compressed_file` and `force_extract` to `True`.\r\... |
MDU6SXNzdWU2OTAxNzMyMTQ= | 554 | nlp downloads to its module path | I am trying to package `nlp` for Nix, because it is now an optional dependency for `transformers`. The problem that I encounter is that the `nlp` library downloads to the module path, which is typically not writable in most package management systems:
```>>> import nlp
>>> squad_dataset = nlp.load_dataset('squad')
... | CLOSED | 2020-09-01T14:06:14 | 2020-09-11T06:19:24 | 2020-09-11T06:19:24 | https://github.com/huggingface/datasets/issues/554 | {
"login": "danieldk"
} | {
"nodes": []
} | [
"Indeed this is a known issue arising from the fact that we try to be compatible with cloupickle.\r\n\r\nDoes this also happen if you are installing in a virtual environment?",
"> Indeed this is a know issue with the fact that we try to be compatible with cloupickle.\r\n> \r\n> Does this also happen if you are in... |
MDU6SXNzdWU2ODkxODY1MjY= | 546 | Very slow data loading on large dataset | I made a simple python script to check the NLP library speed, which loads 1.1 TB of textual data.
It has been 8 hours and still, it is on the loading steps.
It does work when the text dataset size is small about 1 GB, but it doesn't scale.
It also uses a single thread during the data loading step.
```
train_fil... | CLOSED | 2020-08-31T12:57:23 | 2024-01-02T20:26:24 | 2020-09-08T10:19:57 | https://github.com/huggingface/datasets/issues/546 | {
"login": "agemagician"
} | {
"nodes": []
} | [
"When you load a text file for the first time with `nlp`, the file is converted into Apache Arrow format. Arrow allows to use memory-mapping, which means that you can load an arbitrary large dataset.\r\n\r\nNote that as soon as the conversion has been done once, the next time you'll load the dataset it will be much... |
MDU6SXNzdWU2ODkxMzg4Nzg= | 545 | New release coming up for this library | Hi all,
A few words on the roadmap for this library.
The next release will be a big one and is planed at the end of this week.
In addition to the support for indexed datasets (useful for non-parametric models like REALM, RAG, DPR, knn-LM and many other fast dataset retrieval technics), it will:
- have support f... | CLOSED | 2020-08-31T11:37:38 | 2021-01-13T10:59:04 | 2021-01-13T10:59:04 | https://github.com/huggingface/datasets/issues/545 | {
"login": "thomwolf"
} | {
"nodes": []
} | [
"Update: release is planed mid-next week."
] |
MDU6SXNzdWU2ODg2NDQ0MDc= | 543 | nlp.load_dataset is not safe for multi processes when loading from local files | Loading from local files, e.g., `dataset = nlp.load_dataset('csv', data_files=['file_1.csv', 'file_2.csv'])`
concurrently from multiple processes, will raise `FileExistsError` from builder's line 430, https://github.com/huggingface/nlp/blob/6655008c738cb613c522deb3bd18e35a67b2a7e5/src/nlp/builder.py#L423-L438
Likel... | CLOSED | 2020-08-30T03:20:34 | 2020-08-31T11:15:10 | 2020-08-31T11:15:10 | https://github.com/huggingface/datasets/issues/543 | {
"login": "luyug"
} | {
"nodes": []
} | [
"I'll take a look!"
] |
MDU6SXNzdWU2ODg1MjEyMjQ= | 541 | Best practices for training tokenizers with nlp | Hi, thank you for developing this library.
What do you think are the best practices for training tokenizers using `nlp`? In the document and examples, I could only find pre-trained tokenizers used. | CLOSED | 2020-08-29T12:06:49 | 2022-10-04T17:28:04 | 2022-10-04T17:28:04 | https://github.com/huggingface/datasets/issues/541 | {
"login": "moskomule"
} | {
"nodes": []
} | [
"Docs that explain how to train a tokenizer with `datasets` are available here: https://huggingface.co/docs/tokenizers/training_from_memory#using-the-datasets-library"
] |
MDU6SXNzdWU2ODgzMjM2MDI= | 539 | [Dataset] `NonMatchingChecksumError` due to an update in the LinCE benchmark data | Hi,
There is a `NonMatchingChecksumError` error for the `lid_msaea` (language identification for Modern Standard Arabic - Egyptian Arabic) dataset from the LinCE benchmark due to a minor update on that dataset.
How can I update the checksum of the library to solve this issue? The error is below and it also appea... | CLOSED | 2020-08-28T19:55:51 | 2020-09-03T16:34:02 | 2020-09-03T16:34:01 | https://github.com/huggingface/datasets/issues/539 | {
"login": "gaguilar"
} | {
"nodes": []
} | [
"Hi @gaguilar \r\n\r\nIf you want to take care of this, it very simple, you just need to regenerate the `dataset_infos.json` file as indicated [in the doc](https://huggingface.co/nlp/share_dataset.html#adding-metadata) by [installing from source](https://huggingface.co/nlp/installation.html#installing-from-source) ... |
MDU6SXNzdWU2ODc2MTQ2OTk= | 537 | [Dataset] RACE dataset Checksums error | Hi there, I just would like to use this awesome lib to perform a dataset fine-tuning on RACE dataset. I have performed the following steps:
```
dataset = nlp.load_dataset("race")
len(dataset["train"]), len(dataset["validation"])
```
But then I got the following error:
```
----------------------------------... | CLOSED | 2020-08-27T23:58:16 | 2020-09-18T12:07:04 | 2020-09-18T12:07:04 | https://github.com/huggingface/datasets/issues/537 | {
"login": "abarbosa94"
} | {
"nodes": [
{
"name": "dataset bug"
}
]
} | [
"`NonMatchingChecksumError` means that the checksum of the downloaded file is not the expected one.\r\nEither the file you downloaded was corrupted along the way, or the host updated the file.\r\nCould you try to clear your cache and run `load_dataset` again ? If the error is still there, it means that there was an... |
MDU6SXNzdWU2ODYxMTU5MTI= | 534 | `list_datasets()` is broken. | version = '0.4.0'
`list_datasets()` is broken. It results in the following error :
```
In [3]: nlp.list_datasets()
Out[3]: ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
~/.virtualenvs/san-lgUCsFg_/lib/py... | CLOSED | 2020-08-26T08:19:01 | 2020-08-27T06:31:11 | 2020-08-27T06:31:11 | https://github.com/huggingface/datasets/issues/534 | {
"login": "ashutoshrdwivedi"
} | {
"nodes": []
} | [
"Thanks for reporting !\r\nThis has been fixed in #475 and the fix will be available in the next release",
"What you can do instead to get the list of the datasets is call\r\n\r\n```python\r\nprint([dataset.id for dataset in nlp.list_datasets()])\r\n```",
"Thanks @lhoestq . "
] |
MDU6SXNzdWU2ODU1NDA2MTQ= | 532 | File exists error when used with TPU | Hi,
I'm getting a "File exists" error when I use [text dataset](https://github.com/huggingface/nlp/tree/master/datasets/text) for pre-training a RoBERTa model using `transformers` (3.0.2) and `nlp`(0.4.0) on a VM with TPU (v3-8).
I modified [line 131 in the original `run_language_modeling.py`](https://github.com/... | OPEN | 2020-08-25T14:36:38 | 2026-05-21T23:27:02 | null | https://github.com/huggingface/datasets/issues/532 | {
"login": "go-inoue"
} | {
"nodes": []
} | [
"I am facing probably facing similar issues with \r\n\r\n`wiki40b_en_100_0`",
"Could you try to run `dataset = load_dataset(\"text\", data_files=file_path, split=\"train\")` once before calling the script ?\r\n\r\nIt looks like several processes try to create the dataset in arrow format at the same time. If the d... |
MDU6SXNzdWU2ODM4NzU0ODM= | 525 | wmt download speed example | Continuing from the slack 1.0 roadmap thread w @lhoestq , I realized the slow downloads is only a thing sometimes. Here are a few examples, I suspect there are multiple issues. All commands were run from the same gcp us-central-1f machine.
```
import nlp
nlp.load_dataset('wmt16', 'de-en')
```
Downloads at 49.1 K... | CLOSED | 2020-08-21T23:29:06 | 2022-10-04T17:45:39 | 2022-10-04T17:45:39 | https://github.com/huggingface/datasets/issues/525 | {
"login": "sshleifer"
} | {
"nodes": []
} | [
"Thanks for creating the issue :)\r\nThe download link for wmt-en-de raw looks like a mirror. We should use that instead of the current url.\r\nIs this mirror official ?\r\n\r\nAlso it looks like for `ro-en` it tried to download other languages. If we manage to only download the one that is asked it'd be cool\r\n\r... |
MDU6SXNzdWU2ODM2ODYzNTk= | 524 | Some docs are missing parameter names | See https://huggingface.co/nlp/master/package_reference/main_classes.html#nlp.Dataset.map. I believe this is because the parameter names are enclosed in backticks in the docstrings, maybe it's an old docstring format that doesn't work with the current Sphinx version. | CLOSED | 2020-08-21T16:47:34 | 2020-08-25T09:04:03 | 2020-08-25T09:04:03 | https://github.com/huggingface/datasets/issues/524 | {
"login": "jarednielsen"
} | {
"nodes": []
} | [
"Indeed, good catch!"
] |
MDU6SXNzdWU2ODI0Nzg4MzM= | 522 | dictionnary typo in docs | Many places dictionary is spelled dictionnary, not sure if its on purpose or not.
Fixed in this pr:
https://github.com/huggingface/nlp/pull/521 | CLOSED | 2020-08-20T07:11:05 | 2020-08-20T07:52:14 | 2020-08-20T07:52:13 | https://github.com/huggingface/datasets/issues/522 | {
"login": "yonigottesman"
} | {
"nodes": []
} | [
"Thanks!"
] |
MDU6SXNzdWU2ODIxOTM4ODI= | 519 | [BUG] Metrics throwing new error on master since 0.4.0 | The following error occurs when passing in references of type `List[List[str]]` to metrics like bleu.
Wasn't happening on 0.4.0 but happening now on master.
```
File "/usr/local/lib/python3.7/site-packages/nlp/metric.py", line 226, in compute
self.add_batch(predictions=predictions, references=references)
... | CLOSED | 2020-08-19T21:29:15 | 2022-06-02T16:41:01 | 2020-08-19T22:04:40 | https://github.com/huggingface/datasets/issues/519 | {
"login": "jbragg"
} | {
"nodes": []
} | [
"Update - maybe this is only failing on bleu because I was not tokenizing inputs to the metric",
"Closing - seems to be just forgetting to tokenize. And found the helpful discussion in huggingface/evaluate#105 "
] |
MDU6SXNzdWU2ODE4OTY5NDQ= | 517 | add MLDoc dataset | Hi,
I am recommending that someone add MLDoc, a multilingual news topic classification dataset.
- Here's a link to the Github: https://github.com/facebookresearch/MLDoc
- and the paper: http://www.lrec-conf.org/proceedings/lrec2018/pdf/658.pdf
Looks like the dataset contains news stories in multiple languages... | OPEN | 2020-08-19T14:41:59 | 2026-05-21T23:26:57 | null | https://github.com/huggingface/datasets/issues/517 | {
"login": "jxmorris12"
} | {
"nodes": [
{
"name": "dataset request"
}
]
} | [
"Any updates on this?",
"This request is still an open issue waiting to be addressed by any community member, @GuillemGSubies.",
"Hi! Triaging older issues this week — I think this one can be closed as out-of-scope for the current `datasets` repo.\n\n- Script-based dataset loaders are no longer added to this re... |
MDU6SXNzdWU2ODEyNTYzNDg= | 514 | dataset.shuffle(keep_in_memory=True) is never allowed | As of commit ef4aac2, the usage of the parameter `keep_in_memory=True` is never possible: `dataset.select(keep_in_memory=True)`
The commit added the lines
```python
# lines 994-996 in src/nlp/arrow_dataset.py
assert (
not keep_in_memory or cache_file_name is None
), "Please use either... | CLOSED | 2020-08-18T18:47:40 | 2022-10-10T12:21:58 | 2022-10-10T12:21:58 | https://github.com/huggingface/datasets/issues/514 | {
"login": "vegarab"
} | {
"nodes": [
{
"name": "good first issue"
},
{
"name": "hacktoberfest"
}
]
} | [
"This seems to be fixed in #513 for the filter function, replacing `cache_file_name` with `indices_cache_file_name` in the assert. Although not for the `map()` function @thomwolf ",
"Maybe I'm a bit tired but I fail to see the issue here.\r\n\r\nSince `cache_file_name` is `None` by default, if you set `keep_in_me... |
MDU6SXNzdWU2ODEwNTU1NTM= | 511 | dataset.shuffle() and select() resets format. Intended? | Calling `dataset.shuffle()` or `dataset.select()` on a dataset resets its format set by `dataset.set_format()`. Is this intended or an oversight?
When working on quite large datasets that require a lot of preprocessing I find it convenient to save the processed dataset to file using `torch.save("dataset.pt")`. Later... | CLOSED | 2020-08-18T13:46:01 | 2020-09-14T08:45:38 | 2020-09-14T08:45:38 | https://github.com/huggingface/datasets/issues/511 | {
"login": "vegarab"
} | {
"nodes": []
} | [
"Hi @vegarab yes feel free to open a discussion here.\r\n\r\nThis design choice was not very much thought about.\r\n\r\nSince `dataset.select()` (like all the method without a trailing underscore) is non-destructive and returns a new dataset it has most of its properties initialized from scratch (except the table a... |
MDU6SXNzdWU2ODA4MjM2NDQ= | 510 | Version of numpy to use the library | Thank you so much for your excellent work! I would like to use nlp library in my project. While importing nlp, I am receiving the following error `AttributeError: module 'numpy.random' has no attribute 'Generator'` Numpy version in my project is 1.16.0. May I learn which numpy version is used for the nlp library.
Th... | CLOSED | 2020-08-18T08:59:13 | 2020-08-19T18:35:56 | 2020-08-19T18:35:56 | https://github.com/huggingface/datasets/issues/510 | {
"login": "isspek"
} | {
"nodes": []
} | [
"Seems like this method was added in 1.17. I'll add a requirement on this.",
"Thank you so much. After upgrading the numpy library, it worked."
] |
MDU6SXNzdWU2Nzk3MTE1ODU= | 509 | Converting TensorFlow dataset example | Hi,
I want to use TensorFlow datasets with this repo, I noticed you made some conversion script,
can you give a simple example of using it?
Thanks
| CLOSED | 2020-08-16T08:05:20 | 2021-08-03T06:01:18 | 2021-08-03T06:01:17 | https://github.com/huggingface/datasets/issues/509 | {
"login": "saareliad"
} | {
"nodes": []
} | [
"Do you want to convert a dataset script to the tfds format ?\r\nIf so, we currently have a comversion script nlp/commands/convert.py but it is a conversion script that goes from tfds to nlp.\r\nI think it shouldn't be too hard to do the changes in reverse (at some manual adjustments).\r\nIf you manage to make it w... |
MDU6SXNzdWU2Nzk3MDU3MzQ= | 508 | TypeError: Receiver() takes no arguments | I am trying to load a wikipedia data set
```
import nlp
from nlp import load_dataset
dataset = load_dataset("wikipedia", "20200501.en", split="train", cache_dir=data_path, beam_runner='DirectRunner')
#dataset = load_dataset('wikipedia', '20200501.sv', cache_dir=data_path, beam_runner='DirectRunner')
```
Th... | CLOSED | 2020-08-16T07:18:16 | 2020-09-01T14:53:33 | 2020-09-01T14:49:03 | https://github.com/huggingface/datasets/issues/508 | {
"login": "sebastiantomac"
} | {
"nodes": []
} | [
"Which version of Apache Beam do you have (can you copy your full environment info here)?",
"apache-beam==2.23.0\r\nnlp==0.4.0\r\n\r\nFor me this was resolved by running the same python script on Linux (or really WSL). ",
"Do you manage to run a dummy beam pipeline with python on windows ? \r\nYou can test a du... |
MDU6SXNzdWU2Nzk0MDA2ODM= | 507 | Errors when I use | I tried the following example code from https://huggingface.co/deepset/roberta-base-squad2 and got errors
I am using **transformers 3.0.2** code .
from transformers.pipelines import pipeline
from transformers.modeling_auto import AutoModelForQuestionAnswering
from transformers.tokenization_auto import AutoToke... | CLOSED | 2020-08-14T21:03:57 | 2020-08-14T21:39:10 | 2020-08-14T21:39:10 | https://github.com/huggingface/datasets/issues/507 | {
"login": "mchari"
} | {
"nodes": []
} | [
"Looks like an issue with 3.0.2 transformers version. Works fine when I use \"master\" version of transformers."
] |
MDU6SXNzdWU2Nzc5NTI4OTM= | 501 | Caching doesn't work for map (non-deterministic) | The caching functionality doesn't work reliably when tokenizing a dataset. Here's a small example to reproduce it.
```python
import nlp
import transformers
def main():
ds = nlp.load_dataset("reddit", split="train[:500]")
tokenizer = transformers.AutoTokenizer.from_pretrained("gpt2")
def conv... | CLOSED | 2020-08-12T20:20:07 | 2022-08-08T11:02:23 | 2020-08-24T16:34:35 | https://github.com/huggingface/datasets/issues/501 | {
"login": "wulu473"
} | {
"nodes": []
} | [
"Thanks for reporting !\r\n\r\nTo store the cache file, we compute a hash of the function given in `.map`, using our own hashing function.\r\nThe hash doesn't seem to stay the same over sessions for the tokenizer.\r\nApparently this is because of the regex at `tokenizer.pat` is not well supported by our hashing fun... |
MDU6SXNzdWU2NzY0OTUwNjQ= | 492 | nlp.Features does not distinguish between nullable and non-nullable types in PyArrow schema | Here's the code I'm trying to run:
```python
dset_wikipedia = nlp.load_dataset("wikipedia", "20200501.en", split="train", cache_dir=args.cache_dir)
dset_wikipedia.drop(columns=["title"])
dset_wikipedia.features.pop("title")
dset_books = nlp.load_dataset("bookcorpus", split="train", cache_dir=args.cache_dir)
dse... | CLOSED | 2020-08-11T00:27:46 | 2020-08-26T16:17:19 | 2020-08-26T16:17:19 | https://github.com/huggingface/datasets/issues/492 | {
"login": "jarednielsen"
} | {
"nodes": []
} | [
"In 0.4.0, the assertion in `concatenate_datasets ` is on the features, and not the schema.\r\nCould you try to update `nlp` ?\r\n\r\nAlso, since 0.4.0, you can use `dset_wikipedia.cast_(dset_books.features)` to avoid the schema cast hack.",
"Or maybe the assertion comes from elsewhere ?",
"I'm using the master... |
MDU6SXNzdWU2NzY0ODYyNzU= | 491 | No 0.4.0 release on GitHub | 0.4.0 was released on PyPi, but not on GitHub. This means [the documentation](https://huggingface.co/nlp/) is still displaying from 0.3.0, and that there's no tag to easily clone the 0.4.0 version of the repo. | CLOSED | 2020-08-10T23:59:57 | 2020-08-11T16:50:07 | 2020-08-11T16:50:07 | https://github.com/huggingface/datasets/issues/491 | {
"login": "jarednielsen"
} | {
"nodes": []
} | [
"I did the release on github, and updated the doc :)\r\nSorry for the delay",
"Thanks!"
] |
MDU6SXNzdWU2NzY0ODIyNDI= | 490 | Loading preprocessed Wikipedia dataset requires apache_beam | Running
`nlp.load_dataset("wikipedia", "20200501.en", split="train", dir="/tmp/wikipedia")`
gives an error if apache_beam is not installed, stemming from
https://github.com/huggingface/nlp/blob/38eb2413de54ee804b0be81781bd65ac4a748ced/src/nlp/builder.py#L981-L988
This succeeded without the dependency in ve... | CLOSED | 2020-08-10T23:46:50 | 2020-08-14T13:17:20 | 2020-08-14T13:17:20 | https://github.com/huggingface/datasets/issues/490 | {
"login": "jarednielsen"
} | {
"nodes": []
} | [] |
MDU6SXNzdWU2NzY0NTYyNTc= | 489 | ug | CLOSED | 2020-08-10T22:33:03 | 2020-08-10T22:55:14 | 2020-08-10T22:33:40 | https://github.com/huggingface/datasets/issues/489 | {
"login": "timothyjlaurent"
} | {
"nodes": []
} | [
"whoops",
"please delete this"
] | |
MDU6SXNzdWU2NzYyOTk5OTM= | 488 | issues with downloading datasets for wmt16 and wmt19 | I have encountered multiple issues while trying to:
```
import nlp
dataset = nlp.load_dataset('wmt16', 'ru-en')
metric = nlp.load_metric('wmt16')
```
1. I had to do `pip install -e ".[dev]" ` on master, currently released nlp didn't work (sorry, didn't save the error) - I went back to the released version and no... | CLOSED | 2020-08-10T17:32:51 | 2022-10-04T17:46:59 | 2022-10-04T17:46:58 | https://github.com/huggingface/datasets/issues/488 | {
"login": "stas00"
} | {
"nodes": []
} | [
"I found `UNv1.0.en-ru.tar.gz` here: https://conferences.unite.un.org/uncorpus/en/downloadoverview, so it can be reconstructed with:\r\n```\r\nwget -c https://stuncorpusprod.blob.core.windows.net/corpusfiles/UNv1.0.en-ru.tar.gz.00\r\nwget -c https://stuncorpusprod.blob.core.windows.net/corpusfiles/UNv1.0.en-ru.tar.... |
MDU6SXNzdWU2NzU2NDkwMzQ= | 486 | Bookcorpus data contains pretokenized text | It seem that the bookcoprus data downloaded through the library was pretokenized with NLTK's Treebank tokenizer, which changes the text in incompatible ways to how, for instance, BERT's wordpiece tokenizer works. For example, "didn't" becomes "did" + "n't", and double quotes are changed to `` and '' for start and end q... | CLOSED | 2020-08-09T06:53:24 | 2022-10-04T17:44:33 | 2022-10-04T17:44:33 | https://github.com/huggingface/datasets/issues/486 | {
"login": "orsharir"
} | {
"nodes": []
} | [
"Yes indeed it looks like some `'` and spaces are missing (for example in `dont` or `didnt`).\r\nDo you know if there exist some copies without this issue ?\r\nHow would you fix this issue on the current data exactly ? I can see that the data is raw text (not tokenized) so I'm not sure I understand how you would do... |
MDU6SXNzdWU2NzU1OTUzOTM= | 485 | PAWS dataset first item is header | ```
import nlp
dataset = nlp.load_dataset('xtreme', 'PAWS-X.en')
dataset['test'][0]
```
prints the following
```
{'label': 'label', 'sentence1': 'sentence1', 'sentence2': 'sentence2'}
```
dataset['test'][0] should probably be the first item in the dataset, not just a dictionary mapping the column names t... | CLOSED | 2020-08-08T22:05:25 | 2020-08-19T09:50:01 | 2020-08-19T09:50:01 | https://github.com/huggingface/datasets/issues/485 | {
"login": "jxmorris12"
} | {
"nodes": []
} | [] |
MDU6SXNzdWU2NzUwODA2OTQ= | 483 | rotten tomatoes movie review dataset taken down | In an interesting twist of events, the individual who created the movie review seems to have left Cornell, and their webpage has been removed, along with the movie review dataset (http://www.cs.cornell.edu/people/pabo/movie-review-data/rt-polaritydata.tar.gz). It's not downloadable anymore. | CLOSED | 2020-08-07T15:12:01 | 2020-09-08T09:36:34 | 2020-09-08T09:36:33 | https://github.com/huggingface/datasets/issues/483 | {
"login": "jxmorris12"
} | {
"nodes": []
} | [
"found a mirror: https://storage.googleapis.com/seldon-datasets/sentence_polarity_v1/rt-polaritydata.tar.gz",
"fixed in #484 ",
"Closing this one. Thanks again @jxmorris12 for taking care of this :)"
] |
MDU6SXNzdWU2NzQ4NTExNDc= | 482 | Bugs : dataset.map() is frozen on ELI5 | Hi Huggingface Team!
Thank you guys once again for this amazing repo.
I have tried to prepare ELI5 to train with T5, based on [this wonderful notebook of Suraj Patil](https://github.com/patil-suraj/exploring-T5/blob/master/T5_on_TPU.ipynb)
However, when I run `dataset.map()` on ELI5 to prepare `input_text, ta... | CLOSED | 2020-08-07T08:23:35 | 2023-04-06T09:39:59 | 2020-08-11T23:55:15 | https://github.com/huggingface/datasets/issues/482 | {
"login": "ratthachat"
} | {
"nodes": []
} | [
"This comes from an overflow in pyarrow's array.\r\nIt is stuck inside the loop that reduces the batch size to avoid the overflow.\r\nI'll take a look",
"I created a PR to fix the issue.\r\nIt was due to an overflow check that handled badly an empty list.\r\n\r\nYou can try the changes by using \r\n```\r\n!pip in... |
MDU6SXNzdWU2NzMxNzgzMTc= | 478 | Export TFRecord to GCP bucket | Previously, I was writing TFRecords manually to GCP bucket with : `with tf.io.TFRecordWriter('gs://my_bucket/x.tfrecord')`
Since `0.4.0` is out with the `export()` function, I tried it. But it seems TFRecords cannot be directly written to GCP bucket.
`dataset.export('local.tfrecord')` works fine,
but `dataset.... | CLOSED | 2020-08-05T01:08:32 | 2020-08-05T01:21:37 | 2020-08-05T01:21:36 | https://github.com/huggingface/datasets/issues/478 | {
"login": "astariul"
} | {
"nodes": []
} | [
"Nevermind, I restarted my python session and it worked fine...\r\n\r\n---\r\n\r\nI had an authentification error, and I authenticated from another terminal. After that, no more error but it was not working. Restarting the sessions makes it work :)"
] |
MDU6SXNzdWU2NzMxNDIxNDM= | 477 | Overview.ipynb throws exceptions with nlp 0.4.0 | with nlp 0.4.0, the TensorFlow example in Overview.ipynb throws the following exceptions:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-48907f2ad433> in <module>
----> 1 features = {x: trai... | CLOSED | 2020-08-04T23:18:15 | 2021-08-03T06:02:15 | 2021-08-03T06:02:15 | https://github.com/huggingface/datasets/issues/477 | {
"login": "mandy-li"
} | {
"nodes": []
} | [
"Thanks for reporting this issue\r\n\r\nThere was a bug where numpy arrays would get returned instead of tensorflow tensors.\r\nThis is fixed on master.\r\n\r\nI tried to re-run the colab and encountered this error instead:\r\n\r\n```\r\nAttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no at... |
MDU6SXNzdWU2NzI0MDczMzA= | 474 | test_load_real_dataset when config has BUILDER_CONFIGS that matter | It a dataset has custom `BUILDER_CONFIGS` with non-keyword arguments (or keyword arguments with non default values), the config is not loaded during the test and causes an error.
I think the problem is that `test_load_real_dataset` calls `load_dataset` with `data_dir=temp_data_dir` ([here](https://github.com/huggingfa... | CLOSED | 2020-08-03T23:46:36 | 2020-09-07T14:53:13 | 2020-09-07T14:53:13 | https://github.com/huggingface/datasets/issues/474 | {
"login": "marcotcr"
} | {
"nodes": []
} | [
"The `data_dir` parameter has been removed. Now the error is `ValueError: Config name is missing`\r\n\r\nAs mentioned in #470 I think we can have one test with the first config of BUILDER_CONFIGS, and another test that runs all of the configs in BUILDER_CONFIGS",
"This was fixed in #527 \r\n\r\nClosing this one, ... |
MDU6SXNzdWU2NzE4NzY5NjM= | 469 | invalid data type 'str' at _convert_outputs in arrow_dataset.py | I trying to build multi label text classifier model using Transformers lib.
I'm using Transformers NLP to load the data set, while calling trainer.train() method. It throws the following error
File "C:\***\arrow_dataset.py", line 343, in _convert_outputs
v = command(v)
TypeError: new(): invalid data type ... | CLOSED | 2020-08-03T07:48:29 | 2023-07-20T15:54:17 | 2023-07-20T15:54:17 | https://github.com/huggingface/datasets/issues/469 | {
"login": "Murgates"
} | {
"nodes": []
} | [
"Hi ! Did you try to set the output format to pytorch ? (or tensorflow if you're using tensorflow)\r\nIt can be done with `dataset.set_format(\"torch\", columns=columns)` (or \"tensorflow\").\r\n\r\nNote that for pytorch, string columns can't be converted to `torch.Tensor`, so you have to specify in `columns=` the... |
MDU6SXNzdWU2NzE2MjI0NDE= | 468 | UnicodeDecodeError while loading PAN-X task of XTREME dataset | Hi 🤗 team!
## Description of the problem
I'm running into a `UnicodeDecodeError` while trying to load the PAN-X subset the XTREME dataset:
```
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-inp... | CLOSED | 2020-08-02T14:05:10 | 2020-08-20T08:16:08 | 2020-08-20T08:16:08 | https://github.com/huggingface/datasets/issues/468 | {
"login": "lewtun"
} | {
"nodes": []
} | [
"Indeed. Solution 1 is the simplest.\r\n\r\nThis is actually a recurring problem.\r\nI think we should scan all the datasets with regexpr to fix the use of `open()` without encodings.\r\nAnd probably add a test in the CI to forbid using this in the future.",
"I'm happy to tackle the broader problem - will open a ... |
MDU6SXNzdWU2NjY4MzY2NTg= | 445 | DEFAULT_TOKENIZER import error in sacrebleu | Latest Version 0.3.0
When loading the metric "sacrebleu" there is an import error due to the wrong path

| CLOSED | 2020-07-28T07:31:30 | 2020-07-28T12:58:56 | 2020-07-28T12:58:56 | https://github.com/huggingface/datasets/issues/445 | {
"login": "idoh"
} | {
"nodes": []
} | [
"This issue was resolved by #447 "
] |
MDU6SXNzdWU2NjYyODA4NDI= | 444 | Keep loading old file even I specify a new file in load_dataset | I used load a file called 'a.csv' by
```
dataset = load_dataset('csv', data_file='./a.csv')
```
And after a while, I tried to load another csv called 'b.csv'
```
dataset = load_dataset('csv', data_file='./b.csv')
```
However, the new dataset seems to remain the old 'a.csv' and not loading new csv file.
Even... | CLOSED | 2020-07-27T13:08:06 | 2020-07-29T13:57:22 | 2020-07-29T13:57:22 | https://github.com/huggingface/datasets/issues/444 | {
"login": "joshhu"
} | {
"nodes": [
{
"name": "dataset bug"
}
]
} | [
"Same here !",
"This is the only fix I could come up with without touching the repo's code.\r\n```python\r\nfrom nlp.builder import FORCE_REDOWNLOAD\r\ndataset = load_dataset('csv', data_file='./a.csv', download_mode=FORCE_REDOWNLOAD, version='0.0.1')\r\n```\r\nYou'll have to change the version each time you want... |
MDU6SXNzdWU2NjYyNDY3MTY= | 443 | Cannot unpickle saved .pt dataset with torch.save()/load() | Saving a formatted torch dataset to file using `torch.save()`. Loading the same file fails during unpickling:
```python
>>> import torch
>>> import nlp
>>> squad = nlp.load_dataset("squad.py", split="train")
>>> squad
Dataset(features: {'source_text': Value(dtype='string', id=None), 'target_text': Value(dtype... | CLOSED | 2020-07-27T12:13:37 | 2020-07-27T13:05:11 | 2020-07-27T13:05:11 | https://github.com/huggingface/datasets/issues/443 | {
"login": "vegarab"
} | {
"nodes": []
} | [
"This seems to be fixed in a non-released version. \r\n\r\nInstalling nlp from source\r\n```\r\ngit clone https://github.com/huggingface/nlp\r\ncd nlp\r\npip install .\r\n```\r\nsolves the issue. "
] |
MDU6SXNzdWU2NjYyMDE4MTA= | 442 | [Suggestion] Glue Diagnostic Data with Labels | Hello! First of all, thanks for setting up this useful project!
I've just realised you provide the the [Glue Diagnostics Data](https://huggingface.co/nlp/viewer/?dataset=glue&config=ax) without labels, indicating in the `GlueConfig` that you've only a test set.
Yet, the data with labels is available, too (see als... | OPEN | 2020-07-27T10:59:58 | 2026-05-21T23:26:52 | null | https://github.com/huggingface/datasets/issues/442 | {
"login": "ggbetz"
} | {
"nodes": [
{
"name": "Dataset discussion"
}
]
} | [
"Hi! Triaging older issues this week — I think this one can be closed as out-of-scope for the current `datasets` repo.\n\n- Script-based dataset loaders (the `datasets/glue/` folder this issue was implicitly targeting) are no longer hosted in this repo. The current model is \"add the dataset directly to the Hub\": ... |
MDU6SXNzdWU2NjU5NjQ2NzM= | 439 | Issues: Adding a FAISS or Elastic Search index to a Dataset | It seems the DPRContextEncoder, DPRContextEncoderTokenizer cited[ in this documentation](https://huggingface.co/nlp/faiss_and_ea.html) is not implemented ? It didnot work with the standard nlp installation . Also, I couldn't find or use it with the latest nlp install from github in Colab. Is there any dependency on t... | CLOSED | 2020-07-27T04:25:17 | 2020-10-28T01:46:24 | 2020-10-28T01:46:24 | https://github.com/huggingface/datasets/issues/439 | {
"login": "nsankar"
} | {
"nodes": []
} | [
"`DPRContextEncoder` and `DPRContextEncoderTokenizer` will be available in the next release of `transformers`.\r\n\r\nRight now you can experiment with it by installing `transformers` from the master branch.\r\nYou can also check the docs of DPR [here](https://huggingface.co/transformers/master/model_doc/dpr.html).... |
MDU6SXNzdWU2NjU4NjU0OTA= | 438 | New Datasets: IWSLT15+, ITTB | **Links:**
[iwslt](https://pytorchnlp.readthedocs.io/en/latest/_modules/torchnlp/datasets/iwslt.html)
Don't know if that link is up to date.
[ittb](http://www.cfilt.iitb.ac.in/iitb_parallel/)
**Motivation**: replicate mbart finetuning results (table below)
 \r\n\r\n(Though it's worth noting if we fixed the version number of pyarrow to 0.16.0 that would fix our problem too. But in this case w... |
MDU6SXNzdWU2NjU1MDcxNDE= | 435 | ImportWarning for pyarrow 1.0.0 | The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files | CLOSED | 2020-07-25T03:44:39 | 2020-09-08T17:57:15 | 2020-08-03T16:37:32 | https://github.com/huggingface/datasets/issues/435 | {
"login": "HanGuo97"
} | {
"nodes": []
} | [
"This was fixed in #434 \r\nWe'll do a release later this week to include this fix.\r\nThanks for reporting",
"I dont know if the fix was made but the problem is still present : \r\nInstaled with pip : NLP 0.3.0 // pyarrow 1.0.0 \r\nOS : archlinux with kernel zen 5.8.5",
"Yes it was fixed in `nlp>=0.4.0`\r\nYou... |
MDU6SXNzdWU2NjUzMTEwMjU= | 433 | How to reuse functionality of a (generic) dataset? | I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to... | CLOSED | 2020-07-24T17:27:37 | 2022-10-04T17:59:34 | 2022-10-04T17:59:33 | https://github.com/huggingface/datasets/issues/433 | {
"login": "ArneBinder"
} | {
"nodes": []
} | [
"Hi @ArneBinder, we have a few \"generic\" datasets which are intended to load data files with a predefined format:\r\n- csv: https://github.com/huggingface/nlp/tree/master/datasets/csv\r\n- json: https://github.com/huggingface/nlp/tree/master/datasets/json\r\n- text: https://github.com/huggingface/nlp/tree/master/... |
MDU6SXNzdWU2NjQyMDM4OTc= | 426 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter | It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? | CLOSED | 2020-07-23T05:00:41 | 2021-03-12T09:34:12 | 2020-09-07T14:48:04 | https://github.com/huggingface/datasets/issues/426 | {
"login": "timothyjlaurent"
} | {
"nodes": [
{
"name": "enhancement"
}
]
} | [
"Yes that's definitely something we plan to add ^^",
"Yes, that would be nice. We could take a look at what tensorflow `tf.data` does under the hood for instance.",
"So `tf.data.Dataset.map()` returns a `ParallelMapDataset` if `num_parallel_calls is not None` [link](https://github.com/tensorflow/tensorflow/blob... |
MDU6SXNzdWU2NjQwMjk4NDg= | 425 | Correct data structure for PAN-X task in XTREME dataset? | Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['tr... | CLOSED | 2020-07-22T20:29:20 | 2020-08-02T13:30:34 | 2020-08-02T13:30:34 | https://github.com/huggingface/datasets/issues/425 | {
"login": "lewtun"
} | {
"nodes": []
} | [
"Thanks for noticing ! This looks more reasonable indeed.\r\nFeel free to open a PR",
"Hi @lhoestq \r\nI made the proposed changes to the `xtreme.py` script. I noticed that I also need to change the schema in the `dataset_infos.json` file. More specifically the `\"features\"` part of the PAN-X.LANG dataset:\r\n\... |
MDU6SXNzdWU2NjE5MTQ4NzM= | 418 | Addition of google drive links to dl_manager | Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown.
This is the script for me:
```python
class EmoConfig(nlp.BuilderConfig):
"""BuilderConfig ... | CLOSED | 2020-07-20T14:52:02 | 2020-07-20T15:39:32 | 2020-07-20T15:39:32 | https://github.com/huggingface/datasets/issues/418 | {
"login": "lordtt13"
} | {
"nodes": []
} | [
"I think the problem is the way you wrote your urls. Try the following structure to see `https://drive.google.com/uc?export=download&id=your_file_id` . \r\n\r\n@lhoestq ",
"Oh sorry, I think `_get_drive_url` is doing that. \r\n\r\nHave you tried to use `dl_manager.download_and_extract(_get_drive_url(_TRAIN_URL)`... |
MDU6SXNzdWU2NjA2ODcwNzY= | 415 | Something is wrong with WMT 19 kk-en dataset | The translation in the `train` set does not look right:
```
>>>import nlp
>>>from nlp import load_dataset
>>>dataset = load_dataset('wmt19', 'kk-en')
>>>dataset["train"]["translation"][0]
{'kk': 'Trumpian Uncertainty', 'en': 'Трамптық белгісіздік'}
>>>dataset["validation"]["translation"][0]
{'kk': 'Ақша-несие... | OPEN | 2020-07-19T08:18:51 | 2026-05-21T23:25:31 | null | https://github.com/huggingface/datasets/issues/415 | {
"login": "ChenghaoMou"
} | {
"nodes": [
{
"name": "dataset bug"
}
]
} | [
"Hi! Triaging older issues — I think this one can be closed as out-of-scope for the current `datasets` repo.\n\n- The script-based `wmt19` loader that this issue targets is no longer hosted in this repo (the old `datasets/wmt19/` folder is gone — script-based loaders were migrated out, see [`ADD_NEW_DATASET.md`](ht... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.