Dataset Preview
Full Screen Viewer
Full Screen
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError Exception: DatasetGenerationCastError Message: An error occurred while generating the dataset All the data files must have the same columns, but at some point there are 26 new columns ({'is_pull_request', 'milestone', 'timeline_url', 'pull_request', 'user', 'repository_url', 'number', 'url', 'labels_url', 'created_at', 'performed_via_github_app', 'assignee', 'id', 'comments_url', 'assignees', 'author_association', 'closed_at', 'labels', 'locked', 'events_url', 'reactions', 'node_id', 'draft', 'updated_at', 'state', 'active_lock_reason'}) and 3 missing columns ({'comment_length', 'text', 'embeddings'}). This happened while the json dataset builder was generating data using hf://datasets/eleldar/github-issues/issues-datasets-with-comments.jsonl (at revision faaa5ae72041e00317ea618556294838aae8d07f) Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations) Traceback: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single writer.write_table(table) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table pa_table = table_cast(pa_table, self._schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast return cast_table_to_schema(table, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema raise CastError( datasets.table.CastError: Couldn't cast url: string repository_url: string labels_url: string comments_url: string events_url: string html_url: string id: int64 node_id: string number: int64 title: string user: struct<login: string, id: int64, node_id: string, avatar_url: string, gravatar_id: string, url: string, html_url: string, followers_url: string, following_url: string, gists_url: string, starred_url: string, subscriptions_url: string, organizations_url: string, repos_url: string, events_url: string, received_events_url: string, type: string, site_admin: bool> child 0, login: string child 1, id: int64 child 2, node_id: string child 3, avatar_url: string child 4, gravatar_id: string child 5, url: string child 6, html_url: string child 7, followers_url: string child 8, following_url: string child 9, gists_url: string child 10, starred_url: string child 11, subscriptions_url: string child 12, organizations_url: string child 13, repos_url: string child 14, events_url: string child 15, received_events_url: string child 16, type: string child 17, site_admin: bool labels: list<item: struct<id: int64, node_id: string, url: string, name: string, color: string, default: bool, description: string>> child 0, item: struct<id: int64, node_id: string, url: string, name: string, color: string, default: bool, description: string> child 0, id: int64 child 1, node_id: string child 2, url: string child 3, name: string child 4, color: string child 5, defaul ... ld 7, followers_url: string child 8, following_url: string child 9, gists_url: string child 10, starred_url: string child 11, subscriptions_url: string child 12, organizations_url: string child 13, repos_url: string child 14, events_url: string child 15, received_events_url: string child 16, type: string child 17, site_admin: bool child 9, open_issues: int64 child 10, closed_issues: int64 child 11, state: string child 12, created_at: int64 child 13, updated_at: int64 child 14, due_on: int64 child 15, closed_at: int64 comments: list<item: string> child 0, item: string created_at: int64 updated_at: int64 closed_at: int64 author_association: string active_lock_reason: null body: string reactions: struct<url: string, total_count: int64, +1: int64, -1: int64, laugh: int64, hooray: int64, confused: int64, heart: int64, rocket: int64, eyes: int64> child 0, url: string child 1, total_count: int64 child 2, +1: int64 child 3, -1: int64 child 4, laugh: int64 child 5, hooray: int64 child 6, confused: int64 child 7, heart: int64 child 8, rocket: int64 child 9, eyes: int64 timeline_url: string performed_via_github_app: null draft: bool pull_request: struct<url: string, html_url: string, diff_url: string, patch_url: string, merged_at: int64> child 0, url: string child 1, html_url: string child 2, diff_url: string child 3, patch_url: string child 4, merged_at: int64 is_pull_request: bool to {'html_url': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'comments': Value(dtype='string', id=None), 'body': Value(dtype='string', id=None), 'comment_length': Value(dtype='int64', id=None), 'text': Value(dtype='string', id=None), 'embeddings': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None)} because column names don't match During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1321, in compute_config_parquet_and_info_response parquet_operations = convert_to_parquet(builder) File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 935, in convert_to_parquet builder.download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare self._download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single raise DatasetGenerationCastError.from_cast_error( datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset All the data files must have the same columns, but at some point there are 26 new columns ({'is_pull_request', 'milestone', 'timeline_url', 'pull_request', 'user', 'repository_url', 'number', 'url', 'labels_url', 'created_at', 'performed_via_github_app', 'assignee', 'id', 'comments_url', 'assignees', 'author_association', 'closed_at', 'labels', 'locked', 'events_url', 'reactions', 'node_id', 'draft', 'updated_at', 'state', 'active_lock_reason'}) and 3 missing columns ({'comment_length', 'text', 'embeddings'}). This happened while the json dataset builder was generating data using hf://datasets/eleldar/github-issues/issues-datasets-with-comments.jsonl (at revision faaa5ae72041e00317ea618556294838aae8d07f) Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
html_url
string | title
string | comments
string | body
string | comment_length
int64 | text
string | embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/3973 | ConnectionError and SSLError | Hi ! You can download the `oscar.py` file from this repository at `/datasets/oscar/oscar.py`.
Then you can load the dataset by passing the local path to `oscar.py` to `load_dataset`:
```python
load_dataset("path/to/oscar.py", "unshuffled_deduplicated_it")
``` | code
```
from datasets import load_dataset
dataset = load_dataset('oscar', 'unshuffled_deduplicated_it')
```
bug report
```
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module>
----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it')
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1658
1659 # Create a dataset builder
-> 1660 builder_instance = load_dataset_builder(
1661 path=path,
1662 name=name,
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
1484 download_config = download_config.copy() if download_config else DownloadConfig()
1485 download_config.use_auth_token = use_auth_token
-> 1486 dataset_module = dataset_module_factory(
1487 path,
1488 revision=revision,
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}"
1237 ) from None
-> 1238 raise e1 from None
1239 else:
1240 raise FileNotFoundError(
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now
1174 # TODO(QL): use a Hub dataset module factory instead of GitHub
-> 1175 return GithubDatasetModuleFactory(
1176 path,
1177 revision=revision,
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self)
531 revision = self.revision
532 try:
--> 533 local_path = self.download_loading_script(revision)
534 except FileNotFoundError:
535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None:
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision)
511 if download_config.download_desc is None:
512 download_config.download_desc = "Downloading builder script"
--> 513 return cached_path(file_path, download_config=download_config)
514
515 def download_dataset_infos_file(self, revision: Optional[str]) -> str:
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
232 if is_remote_url(url_or_filename):
233 # URL, so get it from the cache (downloading if necessary)
--> 234 output_path = get_from_cache(
235 url_or_filename,
236 cache_dir=cache_dir,
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc)
580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
581 if head_error is not None:
--> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
583 elif response is not None:
584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})")
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))")))
```
It may be caused by Caused by SSLError(in China?) because it works well on google colab.
So how can I download this dataset manually?
| 32 | ConnectionError and SSLError
code
```
from datasets import load_dataset
dataset = load_dataset('oscar', 'unshuffled_deduplicated_it')
```
bug report
```
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module>
----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it')
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1658
1659 # Create a dataset builder
-> 1660 builder_instance = load_dataset_builder(
1661 path=path,
1662 name=name,
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
1484 download_config = download_config.copy() if download_config else DownloadConfig()
1485 download_config.use_auth_token = use_auth_token
-> 1486 dataset_module = dataset_module_factory(
1487 path,
1488 revision=revision,
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}"
1237 ) from None
-> 1238 raise e1 from None
1239 else:
1240 raise FileNotFoundError(
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now
1174 # TODO(QL): use a Hub dataset module factory instead of GitHub
-> 1175 return GithubDatasetModuleFactory(
1176 path,
1177 revision=revision,
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self)
531 revision = self.revision
532 try:
--> 533 local_path = self.download_loading_script(revision)
534 except FileNotFoundError:
535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None:
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision)
511 if download_config.download_desc is None:
512 download_config.download_desc = "Downloading builder script"
--> 513 return cached_path(file_path, download_config=download_config)
514
515 def download_dataset_infos_file(self, revision: Optional[str]) -> str:
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
232 if is_remote_url(url_or_filename):
233 # URL, so get it from the cache (downloading if necessary)
--> 234 output_path = get_from_cache(
235 url_or_filename,
236 cache_dir=cache_dir,
D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc)
580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
581 if head_error is not None:
--> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
583 elif response is not None:
584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})")
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))")))
```
It may be caused by Caused by SSLError(in China?) because it works well on google colab.
So how can I download this dataset manually?
Hi ! You can download the `oscar.py` file from this repository at `/datasets/oscar/oscar.py`.
Then you can load the dataset by passing the local path to `oscar.py` to `load_dataset`:
```python
load_dataset("path/to/oscar.py", "unshuffled_deduplicated_it")
``` | [
-0.5248147249,
0.0405230634,
-0.1230327189,
0.0725033507,
0.3041602373,
-0.0861735046,
0.3794277012,
0.3197903037,
0.1657542586,
0.1261250079,
-0.0368023068,
0.1544640511,
0.0295699202,
0.2415485531,
-0.0804175362,
0.0118007232,
0.0215492398,
0.2121128887,
-0.2936364412,
0.1434446275,
-0.1580768973,
0.0597132817,
-0.1213339269,
0.0628936142,
0.0264170617,
-0.0918866172,
0.0635952353,
0.09248963,
-0.2721813619,
-0.5847228765,
0.3350659013,
0.0544011779,
0.1639633179,
0.3337168694,
-0.0001032296,
0.1607512534,
0.3830227554,
0.0225937646,
-0.4438838661,
-0.0753620267,
-0.2600414753,
-0.1699307561,
0.1725028008,
-0.2509514093,
-0.1271160692,
-0.1427579224,
0.0133180264,
-0.1045694277,
0.4266457558,
0.5949547887,
0.3087108433,
0.2350473255,
0.2211331576,
-0.2260816693,
-0.093868427,
-0.0528600365,
-0.0494220331,
0.3206468523,
-0.1541195363,
-0.0526125655,
-0.0211272147,
0.1484285742,
-0.0330743343,
0.131769076,
0.1853141338,
-0.1362235844,
0.2192585915,
-0.2343800515,
0.2789015472,
0.1347588897,
0.3769879937,
-0.2704375386,
-0.1939039081,
-0.0663898513,
0.0133975921,
-0.1153049618,
0.2672587931,
-0.0227161665,
-0.2561770678,
0.1315240115,
0.1152299568,
-0.0420314372,
-0.2920095026,
0.1214196384,
-0.2473967373,
0.3689371347,
-0.1031119749,
0.1338785291,
0.1406417042,
-0.2849055231,
0.3763561845,
-0.265576601,
-0.0630823895,
-0.0249633025,
-0.3652105033,
-0.0172486659,
0.0610821247,
-0.1850283295,
0.0179429464,
0.2507582903,
-0.1675679088,
0.0015166609,
0.2556134462,
0.0941412598,
0.1876465976,
-0.0191309657,
-0.0684208274,
0.2050613612,
0.2798160017,
0.4794403911,
-0.0046102297,
-0.0193345509,
0.0774071142,
-0.3451925218,
0.1494957656,
0.2217476517,
0.5676452518,
-0.0497964099,
-0.3642171621,
0.0815469772,
-0.0719113722,
-0.0626080707,
0.1049011424,
0.5125083923,
-0.1762953103,
-0.0208250247,
0.0871407911,
0.0257266648,
-0.1565681249,
0.0333860219,
-0.2656222582,
0.0218052436,
-0.0177687351,
-0.0600029491,
0.1233207211,
-0.2167026997,
0.0878132656,
0.0247986671,
0.0363383144,
-0.0132873524,
0.1787394583,
-0.2246454358,
-0.0337171294,
0.3683737814,
0.0790289044,
0.1233741343,
0.1865831465,
-0.3182586432,
0.0053789699,
-0.0215358064,
-0.1364102215,
-0.368914634,
-0.2977691889,
0.3526279032,
-0.099242948,
-0.0255752541,
0.1224341169,
-0.1396495104,
0.1118072271,
-0.1843087524,
-0.0066952514,
-0.3930797875,
-0.0140003776,
-0.2388254553,
0.4356188476,
0.5765903592,
-0.2544672191,
-0.0194348674,
-0.1086840257,
-0.3297651112,
0.1433623284,
-0.0008665854,
-0.1209413931,
0.1959979683,
-0.283337146,
0.0140805123,
0.4933345318,
-0.2732447386,
-0.474529624,
0.2703975141,
-0.0774072334,
-0.0675550029,
0.1488501728,
0.0251265038,
0.1717925221,
0.1925431043,
0.2184542567,
0.0975835547,
-0.132005766,
0.0138857523,
-0.110377647,
-0.2811441422,
0.086560525,
0.2148653269,
0.0964925736,
0.0370329134,
0.2573040128,
-0.0018459745,
0.2437432855,
-0.0702360198,
0.0848947614,
0.1108255014,
0.2402842641,
0.2289813906,
-0.0890921503,
-0.0985051766,
-0.3618351817,
0.1667391062,
0.0708520338,
0.2703915834,
-0.2953439355,
-0.0068604504,
-0.3324002028,
0.0225030053,
-0.3172858059,
-0.2356597483,
0.3202826977,
0.3172685206,
0.0873091444,
0.1541065276,
-0.1639429182,
0.3611117601,
-0.0898956805,
0.1543644816,
-0.3304589391,
0.3856510222,
-0.3553184867,
-0.1974292696,
0.1665094048,
-0.0455648899,
0.2814328969,
-0.1167608425,
-0.1832756102,
0.2978258431,
-0.1057495624,
0.1631053835,
-0.0631919801,
-0.0845946819,
0.0249384195,
-0.2407684773,
0.1089295,
0.1619396359,
0.2229104936,
-0.0165450443,
0.0845862702,
0.3176093996,
-0.0448932983,
0.2343648672,
0.1467713714,
0.138876155,
0.40602386,
-0.0116489045,
-0.05899553,
0.022523215,
0.0543649495,
-0.1573626548,
0.2438279837,
-0.2047215849,
-0.1547783166,
0.1012208983,
0.2893354297,
-0.0325203091,
0.1159038395,
-0.0359678641,
-0.1878464073,
-0.0219852645,
0.1158393696,
0.3814059794,
0.4593290389,
0.0940860584,
-0.1313472688,
0.2244416177,
0.0116805425,
-0.0999060944,
0.3175111711,
-0.025184432,
0.0247132182,
0.2216822207,
-0.0086906739,
-0.0564420596,
-0.3081172109,
-0.4279347062,
-0.2288101166,
0.384462744,
-0.2976517677,
0.1923933178,
-0.1080934033,
-0.4097387195,
-0.1233200654,
0.1638267189,
-0.1746722609,
-0.2784341276,
-0.204512164,
0.2484969348,
-0.0588205084,
0.195192799,
-0.3050100803,
0.0053670285,
0.203263998,
-0.0682167709,
-0.0573419482,
-0.110627979,
-0.0692984164,
0.1607012749,
0.161907196,
0.089840278,
0.4566483796,
-0.1733338684,
0.0086406097,
-0.2272708863,
-0.1802410185,
0.020428136,
0.0706614777,
0.0958890319,
0.4718353748,
0.4023368657,
0.1296416074,
-0.4160859287,
0.3316514194,
-0.1155416444,
-0.0953339264,
0.0498097949,
-0.1012485325,
0.0574603081,
-0.0175374411,
-0.4779075384,
-0.4305971265,
-0.4179047346,
0.0495835021,
0.094447419,
0.163816914,
0.1572206467,
0.0943631828,
0.2408653647,
-0.0294093676,
0.0499746762,
-0.1950811893,
-0.2628124058,
0.2003073692,
-0.1548718512,
-0.3877334595,
0.1066555679,
-0.0228675958,
0.1981830001,
-0.245931223,
-0.5698668957,
-0.3658428788,
-0.1819875389,
0.3429222405,
-0.0642679855,
-0.0980042294,
0.289735198,
0.1094275936,
-0.1510211974,
-0.0023643209,
-0.3675800264,
-0.0354960226,
0.0333933271,
0.0989801362,
-0.0744050369,
0.5484481454,
-0.1492922306,
0.4120691419,
0.2601548433,
-0.0247457903,
0.2816315889,
-0.1954274327,
0.2761997283,
-0.1008627191,
-0.4945629239,
0.1130713075,
0.0432168469,
0.022199478,
0.0754761323,
-0.1758337021,
-0.0101039456,
-0.2960941494,
-0.0057411119,
-0.1998945922,
-0.212282449,
0.0232858546,
-0.1751742214,
0.0291308984,
-0.0788468271,
0.0112789106,
-0.2012251318,
0.0340388007,
-0.0709403977,
0.3898421526,
-0.091430746,
-0.0414967798,
-0.3715037405,
-0.0763457343,
-0.4782921672,
0.2380044758,
-0.0107994173,
0.3943244219,
-0.254414171,
-0.0568363294,
0.0575070679,
-0.1579570174,
0.2725331485,
-0.1889368594,
0.0736242831,
0.2590829134,
0.1148896888,
-0.2326647341,
-0.095432058,
-0.1666534692,
0.2130455971,
0.2680743337,
0.1405574828,
-0.2034699917,
-0.0908513069,
0.2623946369,
0.0532125644,
-0.2037948966,
0.0266016908,
-0.2134418339,
-0.4743494689,
-0.2818517089,
-0.0204401799,
-0.1912372112,
0.1335671693,
0.0549864732,
0.0285454523,
-0.0205861572,
-0.0272800345,
-0.0409765691,
0.2094240338,
-0.0691878423,
-0.1309942901,
0.3358780444,
0.1157036349,
0.1482875943,
0.4378656149,
0.6769540906,
-0.0694247931,
-0.6899095178,
-0.0809613988,
0.0518613122,
-0.0451886281,
0.0609451681,
-0.1279142946,
0.0860833898,
0.0432816818,
0.3693654537,
-0.1242099106,
0.1319571584,
0.3456196487,
0.0634785444,
-0.4748459756,
-0.4151927829,
-0.0274868626,
-0.2298887819,
-0.0821822658,
-0.036139939,
0.1075443923,
-0.1986008286,
0.3165299296,
-0.3249164522,
0.7054335475,
0.2348479033,
-0.0746415034,
0.3237808645,
-0.1675437093,
0.547876358,
-0.204676047,
0.0434835926,
-0.2822026908,
-0.1322430968,
0.0454271622,
-0.1345933974,
0.3515821993,
-0.2074663192,
-0.3245690763,
0.2710916996,
-0.0519798473,
0.0632450804,
-0.0464376211,
0.2215222567,
-0.2527023256,
0.0796571523,
-0.2668380737,
0.3141139448,
-0.1192880496,
0.3367066085,
-0.0494054705,
-0.2108706832,
0.0448293053,
-0.3989041746,
-0.1825061142,
0.1253216416,
-0.3104630411,
0.1367138177,
-0.0282991659,
-0.1866285354,
0.0160666015,
0.0317393877,
0.2939423025,
-0.1041296348,
-0.075127095,
0.1690349877,
-0.0705162287,
0.0123767387,
-0.0534528196,
-0.0253505316,
0.1655366868,
-0.2067498267,
-0.3719678223,
0.2592323124,
0.0325296409,
-0.3715870082,
0.2193281353,
0.117677696,
0.1285215169,
-0.3902319074,
0.1690585166,
-0.2446875423,
-0.0616547018,
-0.2952109575,
0.2518806756,
0.0039180839,
-0.0792584494,
0.1976795495,
0.0241308734,
-0.1665943414,
-0.0916855708,
0.4564934969,
-0.0018756742,
0.0363484062,
0.4682956934,
-0.0226688366,
-0.2191780806,
-0.3535012007,
0.0366904102,
-0.1018354446,
-0.3600429296,
0.0033636636,
-0.0720669776,
0.1297991276,
0.0770969018,
0.0095871203,
0.1300436556,
0.1391845047,
0.0093854032,
-0.5026986003,
-0.281522572,
-0.1156678051,
0.0274128169,
0.2044061571,
0.1024859101,
0.2655484378,
-0.0844744891,
-0.0402604751,
-0.4307469428,
0.0776848271,
-0.3320926428,
0.1361424327,
0.2370242476,
-0.1819135249,
0.1668584943,
-0.0888586491,
0.3069469333,
-0.0922832713,
-0.223681882,
-0.3488815427,
0.0539861396,
0.0680668876,
-0.0025363404,
-0.386931181,
-0.2209594101,
-0.1348835528,
-0.0917253643,
0.0615387224,
0.126911357,
0.0708848387,
-0.1991494894,
0.0813185498,
-0.0468118973,
0.0657922179,
-0.064585112,
0.2825684845,
-0.1248582974,
0.3672300577,
-0.1008244604,
0.3301144838,
-0.2541351914,
-0.0960787088,
-0.0724377334,
0.1856045127,
-0.0236953571,
0.0627194196,
0.4409428835,
-0.1987112761,
-0.1662278771,
-0.0558097921,
0.2913612723,
0.4696552157,
-0.3229623735,
0.13657251,
0.044983305,
0.3554209471,
-0.193893522,
-0.0150361629,
0.166351378,
0.0039537861,
0.1663465053,
0.0106527675,
-0.1171375215,
-0.1680071354,
0.0511402674,
0.1151048318,
0.4547314048,
0.0374674872,
0.2497934401,
0.5506367683,
-0.0758397207,
-0.0764916241,
0.2184361815,
0.0582547337,
0.1417236179,
0.5635433793,
-0.2814538777,
0.3456499279,
0.0152606992,
-0.0004708254,
0.1758256555,
-0.3220492601,
0.136247173,
0.0261832848,
-0.3334970474,
-0.2632866204,
0.0670350417,
0.1029890254,
-0.2506716847,
-0.1310000867,
-0.252312988,
0.0661074072,
-0.154733777,
-0.0191567969,
-0.0078114779,
-0.0920327157,
-0.0614686906,
-0.1029288992,
0.2407506555,
-0.0761449635,
0.1470613927,
0.0810856596,
-0.1373151839,
-0.1889931113,
-0.1814134121,
0.1730408221,
0.0431970395,
-0.1138740405,
0.1160897613,
0.4162257314,
0.0114423763,
-0.0517085716,
0.4485641122,
0.7024621367,
0.2506975532,
-0.0180026721,
0.2781978846,
0.0651644692,
-0.1715702713,
-0.1216564775,
-0.0462337397,
-0.0936016142,
0.0901762396,
0.3595929742,
0.344175458,
-0.2294065654,
0.1580887139,
-0.074026905,
-0.0738187805,
-0.1520428509,
0.1456705332,
-0.1248112544,
-0.0720471442,
-0.235332042,
0.0414096303,
-0.3682882488,
-0.2032466531,
0.2662019134,
-0.1119168475,
0.3393986523,
-0.2184941173,
0.1320831627,
-0.2051073313,
0.5254536867,
0.0856600106,
0.2423613816,
-0.1519319117,
-0.1182736531,
-0.4373200834,
0.0970542207,
-0.070555225,
-0.0650265515,
-0.2627156675,
0.1811016351,
-0.2009331882,
0.1778687686,
0.2517582476,
0.1569930613,
0.130902499,
0.1834553033,
-0.1841632873,
-0.2023488879,
0.0517869294,
-0.0612592474,
-0.0073995045,
-0.3829692006,
0.3222228289,
-0.255838573,
0.1896578521,
-0.041996073,
-0.1358308643,
0.1195982173,
-0.0749321133,
0.5592899919,
0.2914412618,
0.6465467215,
-0.1111863181,
-0.1426214427,
-0.0561993793,
-0.2643943429,
-0.0356091782,
0.1849579215,
0.2205905467,
0.2121945322,
0.0759210512,
-0.1084877551,
-0.2705371976,
0.4441296458,
-0.0670004934,
-0.0112399049,
-0.2124058306,
0.1069640219,
-0.0377000794,
0.1096094102,
-0.0919887424,
-0.166841194,
-0.0024390558,
0.0873816684,
-0.2711550295,
-0.3653765619,
0.390650034,
-0.1145246103,
-0.0587037541,
-0.2743093669,
0.3120085001,
-0.1287274063,
0.2038161159,
-0.5106651187,
0.2680854797,
0.3385545313,
-0.111003533,
-0.2565121353,
0.2415075451,
-0.0612009093,
0.187172398,
0.0423916094,
0.2452308536,
-0.0002006661,
-0.1311197281,
0.1252480447,
-0.0863222182
] |
https://github.com/huggingface/datasets/issues/3969 | Cannot preview cnn_dailymail dataset | I guess the cache got corrupted due to a previous issue with Google Drive service.
The cache should be regenerated, e.g. by passing `download_mode="force_redownload"`.
CC: @severo | ## Dataset viewer issue for '*cnn_dailymail*'
**Link:** https://huggingface.co/datasets/cnn_dailymail
*short description of the issue*
Am I the one who added this dataset ? Yes-No
| 26 | Cannot preview cnn_dailymail dataset
## Dataset viewer issue for '*cnn_dailymail*'
**Link:** https://huggingface.co/datasets/cnn_dailymail
*short description of the issue*
Am I the one who added this dataset ? Yes-No
I guess the cache got corrupted due to a previous issue with Google Drive service.
The cache should be regenerated, e.g. by passing `download_mode="force_redownload"`.
CC: @severo | [
-0.3001443148,
0.1003711745,
-0.0295108072,
0.2527271807,
-0.0365714543,
0.4788869023,
0.3518633544,
0.1342158616,
-0.1076103002,
0.0816059932,
0.0185798742,
-0.0681077242,
-0.1297189742,
0.1330219954,
-0.054589849,
-0.0531774163,
0.0362982601,
0.0126727307,
0.0645384118,
0.1520994306,
-0.328705281,
0.1523635536,
-0.1258555204,
-0.1625272036,
-0.1889630109,
-0.2408405393,
0.0509407073,
-0.0764456764,
-0.2410833836,
-0.2481218129,
0.0258545354,
0.091694206,
0.0761290938,
0.286251992,
-0.0001108677,
0.1460110396,
0.5770383477,
0.0952286273,
-0.4096316695,
-0.1781215519,
0.1109841019,
-0.0640218556,
0.065616928,
-0.0470403694,
-0.2066573799,
-0.1666980237,
0.0564076602,
-0.2384856939,
0.2563394308,
0.2655278742,
0.2397268862,
0.2472810894,
0.0292735044,
-0.2963423133,
-0.1173273325,
-0.165860936,
-0.2852419019,
0.2716921568,
-0.246544838,
0.1303915083,
0.1296731979,
0.1965691596,
0.0484308302,
0.0150310528,
-0.0918338671,
0.1051229835,
-0.1604434401,
-0.3715656102,
0.1897888482,
-0.0067216209,
0.5617846251,
-0.0110142576,
-0.2454853058,
0.1766006202,
0.2344596982,
-0.1753761321,
0.2967875898,
0.1844427139,
0.1404484808,
0.2778817415,
-0.40473634,
-0.1989469975,
-0.0632664263,
0.31832847,
-0.1603921652,
0.0089877872,
-0.1415831894,
0.1223070323,
-0.0212871321,
-0.1049776301,
0.5157182217,
-0.1721924543,
-0.0639269128,
0.0498846173,
-0.0117330188,
-0.1290300488,
0.0433034748,
0.0984490141,
-0.0437055975,
0.116131939,
-0.1133807674,
-0.0721456781,
-0.0635623336,
0.0106569119,
0.110333316,
0.2751213312,
0.0813373327,
0.2554914057,
0.3578922451,
0.1652930081,
0.3596162498,
-0.0539102629,
-0.1404289603,
0.1071248204,
-0.0932276174,
-0.0819682181,
0.4510961771,
-0.0402333178,
-0.241812259,
0.1712124646,
-0.2220128179,
-0.0321245976,
-0.0712794363,
0.3751703799,
-0.1875046045,
-0.3492168486,
-0.0499136858,
0.1813981384,
0.0645083115,
-0.1590726376,
-0.3080528378,
-0.0439108647,
-0.1557722688,
0.252835542,
0.3908677399,
-0.2719049156,
0.111952357,
-0.0354322679,
0.1177471876,
-0.0882538632,
-0.1107253432,
0.0277161561,
-0.2258161306,
0.218535766,
0.0410527289,
0.3443533778,
0.1177532896,
0.1806509644,
0.1035268009,
0.2060120255,
-0.1977183223,
-0.4557098448,
0.0034161727,
0.1546727568,
-0.4183003008,
-0.1121838018,
-0.0704928786,
0.1604210734,
-0.2096106857,
-0.0834121779,
-0.2386018932,
0.2705118358,
-0.0968362316,
-0.1173521727,
0.0767766237,
0.3635947108,
-0.3849908412,
0.0475905649,
-0.4673796594,
-0.4734217227,
0.1199678853,
0.3018504381,
-0.0998107865,
-0.1450817138,
-0.3228721619,
0.0501847453,
0.1767573506,
-0.0054863323,
-0.8023152947,
-0.0368464924,
-0.1421165913,
-0.0080495309,
-0.0756033212,
0.1161130965,
0.0739757046,
-0.1442147344,
-0.1413904727,
0.4141310453,
0.0430425145,
-0.0266126748,
-0.2092333287,
-0.3023833036,
0.2087436318,
0.1786832511,
0.2769963145,
0.2069008648,
0.1031349897,
-0.2416488826,
-0.0761631727,
0.1954420805,
0.014392525,
0.1825558245,
0.0907430351,
-0.150275141,
0.1358540356,
0.1372164041,
-0.567986846,
0.0718719661,
0.178058356,
0.0281816069,
-0.150418818,
-0.129186064,
-0.2626024783,
0.070179455,
-0.1377693564,
-0.1789966226,
0.2244574279,
0.1023606732,
-0.1249391586,
0.2711905539,
0.0309280604,
0.0489558838,
-0.0438947715,
-0.1087173894,
-0.117921114,
0.3618579507,
-0.0935049206,
-0.0409866497,
0.2035871446,
-0.0774088576,
0.2939368784,
-0.083779335,
-0.2664110065,
0.1035315022,
-0.1308322549,
0.2918297648,
0.2929287553,
0.0693170428,
0.0885813609,
-0.3968087137,
0.1386912763,
0.2722697854,
-0.1687529683,
-0.0358427912,
-0.2935991585,
0.0438275002,
0.1748094857,
-0.1422575861,
-0.1314187199,
0.0886450112,
0.1271843165,
0.0016826026,
0.167722702,
-0.2345178574,
0.1830431819,
0.0120512024,
0.5338984728,
-0.1629336774,
-0.221036911,
0.1191416085,
0.205720976,
-0.2112344205,
0.0331556574,
0.1112066209,
-0.4103272259,
-0.2730825841,
-0.2425906062,
0.274220556,
0.2535567582,
0.0738537014,
0.2500463128,
0.2354700714,
0.1809593439,
-0.1370882243,
0.110237062,
0.071017459,
0.0420132615,
0.1230558008,
0.2608272433,
-0.0267975666,
-0.4891771376,
0.2632583976,
0.4685604274,
0.4192255139,
-0.1656619757,
-0.0913532972,
-0.1788526177,
-0.0869127214,
0.2301268578,
-0.2540560365,
-0.1784055531,
-0.3257436454,
0.1554211229,
0.2270703316,
0.012674286,
0.1348285228,
0.1219554469,
0.4795156419,
0.3065283895,
0.01757784,
-0.2787468135,
-0.0005129193,
-0.0804369673,
0.1368815303,
0.360237509,
-0.2678504586,
0.2713237703,
0.0690687671,
0.0595741458,
-0.7089738846,
-0.2868512571,
0.0434290394,
0.0361276343,
0.6266723871,
-0.1880392432,
0.3393319547,
0.1618057489,
0.1048678383,
-0.0417827405,
-0.2110104263,
-0.2959507704,
-0.0863000229,
-0.1145061105,
-0.0888173431,
0.0027829404,
-0.3537245691,
-0.2696407735,
-0.2092420161,
0.1742672473,
-0.1965801716,
-0.0642950237,
0.0015744645,
-0.0416056588,
-0.123150602,
0.1943286657,
-0.1102592796,
-0.5379715562,
-0.3815451264,
0.4116377532,
-0.5738167763,
-0.5965697169,
0.2564910054,
0.1105611771,
-0.1507775933,
-0.1051835865,
-0.543158412,
-0.2485460937,
-0.1045301035,
-0.2073769122,
0.0492331497,
-0.5171288848,
0.0807987154,
-0.1011416167,
-0.0628671944,
-0.0649817288,
-0.3293249309,
-0.178177461,
-0.129535988,
0.0845281631,
-0.1059697941,
0.4432548285,
-0.0378230922,
0.5717325211,
0.2785785496,
0.0316255577,
0.170555234,
-0.1906147003,
0.3731377721,
-0.0227058399,
-0.2890555263,
-0.0133194253,
0.1308900714,
-0.1853357106,
0.3492058814,
-0.0148822833,
-0.7280056477,
-0.0440215543,
-0.2733843029,
-0.3965799212,
-0.0067639328,
-0.0479780287,
0.2230187654,
0.2320896238,
0.2698619962,
0.054219231,
-0.0842870027,
-0.4655916691,
0.0624282956,
0.2920866609,
0.1022247523,
0.1292688102,
0.3309535682,
0.0790978447,
-0.4765009582,
0.3582941294,
-0.244800359,
0.3861543834,
-0.2327152789,
0.2313524038,
0.2678001821,
-0.0271397308,
0.4921704531,
-0.4117203355,
0.0836635157,
0.0568163022,
0.1589606255,
-0.0017536965,
-0.2134770602,
-0.210757643,
0.1903734803,
0.0844490007,
0.5196396708,
0.1831535995,
-0.1916305721,
0.6251745224,
-0.0488835163,
-0.2038533092,
-0.358602941,
-0.0683400556,
-0.0972044021,
-0.1431145221,
-0.2020858228,
-0.2618987858,
0.0929898098,
-0.0860561207,
-0.052575212,
-0.1281276196,
-0.0063302605,
-0.1239972189,
0.0129448278,
0.2984322011,
0.1801839322,
0.3636233211,
0.5598954558,
-0.0355610102,
0.2699555457,
0.564401865,
0.1970073432,
-0.1395012438,
0.3660872579,
0.0199933648,
-0.2348940223,
0.3721758127,
-0.3047795594,
-0.1218879819,
-0.0016197776,
0.2885044515,
-0.095500879,
0.1017819196,
0.5060563684,
-0.1230494082,
-0.6048084497,
-0.1517388374,
0.5762456059,
0.0990475118,
-0.0279876962,
0.2678115666,
-0.1136501953,
0.1134238094,
-0.0139115024,
-0.0709111914,
0.7619308233,
-0.004516216,
-0.1653607488,
0.2925010622,
0.196667105,
0.191435039,
-0.2597795129,
0.1361597627,
-0.1263286024,
-0.4885146618,
-0.167902559,
-0.0725475028,
0.154512018,
0.1789569259,
-0.0395259708,
0.0116458712,
-0.0705460161,
0.2080949098,
-0.0221006051,
0.2590301037,
-0.0507177003,
0.1166715845,
0.2728687525,
0.2294899225,
-0.1043201983,
0.2139923573,
-0.1635096967,
-0.0787358284,
0.0179754253,
-0.0258175861,
-0.5983509421,
0.0695401281,
-0.0914544165,
0.2793310285,
-0.150537461,
-0.2406316102,
0.0554525144,
0.071965605,
0.2276997864,
0.1766558141,
-0.4308983684,
0.2858772278,
-0.3468961716,
-0.2985721827,
-0.3866161108,
0.0231912807,
0.1952140033,
-0.1396135241,
-0.1923624426,
0.0098786354,
0.0304634757,
-0.1432764381,
-0.3307605684,
-0.0435835831,
-0.2455221415,
-0.0828329623,
-0.192205891,
-0.0636897981,
-0.1051935628,
-0.1155836806,
0.1533253342,
0.0388987623,
0.1533030272,
-0.0362579785,
0.0676591992,
-0.1992480457,
-0.1618558466,
0.3508848548,
0.0616412908,
-0.4205884039,
0.4750542641,
0.1260219514,
-0.3094174266,
-0.1334272772,
0.0749516413,
0.0142802754,
-0.1310949475,
0.1192287356,
-0.1663329452,
0.4167331159,
0.1055614576,
0.2135994881,
0.1316345483,
0.0631377548,
-0.1221451536,
-0.5720618367,
0.0185604356,
0.0481205657,
-0.2591784,
0.3482030928,
-0.1217404678,
-0.0064866403,
0.1807599515,
0.030261822,
-0.3195416927,
0.2370594144,
-0.1197886392,
-0.1485957652,
0.274985224,
0.0255035944,
0.5340718031,
-0.0549866743,
0.1214003488,
-0.001344559,
-0.3521380424,
-0.2571371198,
0.0450050645,
0.1128093153,
0.0507959165,
0.0364980102,
0.0543242395,
-0.1330450624,
-0.0965523049,
0.1194741651,
0.1999319047,
0.0206538662,
0.0907610357,
-0.2822996974,
0.0990876704,
-0.1440467834,
0.0883314013,
0.012428469,
0.0334730931,
0.4316857159,
-0.0348335654,
0.2072973102,
0.133660391,
0.0811916217,
-0.0296736564,
-0.1225297749,
-0.023950344,
0.1737574041,
0.1940296292,
-0.3491078615,
0.1684848964,
0.1763769835,
0.2007497549,
0.0083261365,
-0.3800146878,
-0.0615887195,
0.3089776635,
0.2214574218,
-0.3259367347,
-0.1062969193,
0.2988131344,
0.0127968369,
-0.042465765,
-0.1314162165,
0.1208386943,
0.3864598274,
-0.0108202389,
0.139348492,
0.5568742156,
-0.0353435241,
0.32800892,
0.0157175828,
-0.1115056947,
0.0222850144,
0.2663281262,
0.0866676047,
-0.1260007173,
0.5893323421,
-0.0420050845,
-0.0679394528,
0.1162573621,
0.2467628717,
0.1126576588,
-0.4951056838,
0.3242578208,
0.0821092129,
-0.2375187129,
0.2499783635,
0.02137536,
0.0940207541,
-0.0275062919,
0.1536613256,
-0.5776534081,
0.3209693134,
0.0285211392,
0.1753924638,
0.184823826,
-0.1928194463,
0.0245462228,
0.3231420219,
0.1619198024,
-0.2717520595,
0.0699929073,
0.3222027123,
-0.3757028878,
-0.0028609668,
0.1183011085,
0.1774780154,
0.0694689825,
-0.275980711,
0.2184581906,
-0.0542472899,
-0.0132786054,
-0.0172570627,
0.4541380405,
0.2783804834,
0.1087185591,
0.1161521599,
0.1744089574,
0.028905699,
-0.2144425511,
0.1168047637,
0.223333016,
0.4892680943,
-0.113934949,
0.0351320021,
0.1604224294,
-0.1953130513,
0.3680008054,
0.0339064077,
0.2534703314,
-0.1443011165,
0.0329539217,
-0.3892354667,
-0.0109110707,
-0.2006533295,
-0.3953436017,
-0.3323877752,
-0.0451921597,
0.3913974166,
-0.0037332883,
0.1073557511,
-0.1503627598,
0.0845604837,
0.040012598,
0.4985551834,
0.2868839204,
0.2580768168,
-0.1626444161,
-0.3849974275,
-0.4396678209,
0.2761609852,
-0.0426472574,
0.4879305065,
0.0861853138,
-0.0623120442,
-0.1452436894,
0.2347007245,
0.4238201082,
0.3310487866,
-0.0749213248,
0.2767628431,
-0.276368022,
0.0849356353,
0.3989917934,
-0.1417328715,
-0.1488864422,
-0.1953136176,
0.1361002028,
-0.2522143424,
-0.0111611495,
-0.1848623604,
0.0743521899,
-0.2690535784,
0.0888556242,
0.53174752,
0.2025760263,
0.5348266959,
0.0890579373,
-0.0540866964,
-0.5409857035,
-0.3321945369,
-0.0795340315,
0.0627427325,
0.191468358,
0.2505216897,
-0.0370391198,
-0.390288502,
-0.1148847267,
-0.0151103344,
-0.1231989563,
0.1420932561,
-0.3997482955,
0.0017643031,
-0.2176511884,
0.0913640335,
0.2186707854,
0.1126997098,
0.0683938414,
0.0122103803,
-0.1663650721,
-0.2358894944,
0.2702259719,
-0.4013171196,
-0.1612314731,
0.1810168177,
-0.0277976859,
0.0592984445,
-0.1085537001,
-0.4449395537,
0.1597713679,
0.2665714324,
-0.0712659359,
0.0569918565,
0.2801187336,
0.1335458308,
-0.0610219538,
0.0140267927,
0.5735370517,
0.3155302405,
-0.1863255203,
0.0955490842,
-0.1745575666
] |
https://github.com/huggingface/datasets/issues/3968 | Cannot preview 'indonesian-nlp/eli5_id' dataset | Hi @cahya-wirawan, thanks for reporting.
Your dataset is working OK in streaming mode:
```python
In [1]: from datasets import load_dataset
...: ds = load_dataset("indonesian-nlp/eli5_id", split="train", streaming=True)
...: item = next(iter(ds))
...: item
Using custom data configuration indonesian-nlp--eli5_id-9fe728a7e760fb7b
Out[1]:
{'q_id': '1oy5tc',
'title': 'dalam sepak bola apa gunanya menyia-nyiakan dua permainan pertama dengan terburu-buru - di tengah - bukan permainan terburu-buru biasa saya mendapatkannya',
'selftext': '',
'document': '',
'subreddit': 'explainlikeimfive',
'answers': {'a_id': ['ccwtgnz', 'ccwtmho', 'ccwt946', 'ccwvj0u'],
'text': ['Jaga pertahanan tetap jujur, rasakan operan terburu-buru, buka permainan yang lewat. Pelanggaran yang terlalu satu dimensi akan gagal. Dan mereka yang bergegas ke tengah kadang-kadang dapat dibuka lebar-lebar untuk ukuran yard yang besar.',
'Jika Anda melempar bola sepanjang waktu, maka pertahanan akan beradaptasi untuk selalu menutupi umpan. Dengan melakukan permainan lari sederhana sesekali, Anda memaksa pertahanan untuk tetap dekat dan menjaga dari lari. Terkadang, pelanggaran dapat membuat pertahanan lengah dengan berpura-pura berlari dan membebaskan penerima mereka. Selain itu, Anda tidak perlu mendapatkan yard besar di setiap permainan. Terkadang, paling baik mendapatkan beberapa yard sekaligus. Selama Anda mendapatkan yang pertama, Anda dalam kondisi yang baik.',
'Dalam kebanyakan kasus, O-Line seharusnya membuat lubang untuk dilalui kembali. Jika Anda menjalankan terlalu banyak permainan ke luar / melempar, pertahanan akan mengejar. Juga, 2 permainan 5 yard memberi Anda satu set down baru.',
'Saya Anda tidak suka jenis drama itu, tonton CFL. Kami hanya mendapatkan 3 down sehingga Anda tidak bisa menyia-nyiakannya. Lebih banyak lagi yang lewat.'],
'score': [3, 2, 2, 2]},
'title_urls': {'url': []},
'selftext_urls': {'url': []},
'answers_urls': {'url': []}}
```
Therefore, it should be properly rendered in the previewer. Let me ping @severo to have a look at it. | ## Dataset viewer issue for '*indonesian-nlp/eli5_id*'
**Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id
I can not see the dataset preview.
```
Server Error
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist.
```
Am I the one who added this dataset ? Yes
| 271 | Cannot preview 'indonesian-nlp/eli5_id' dataset
## Dataset viewer issue for '*indonesian-nlp/eli5_id*'
**Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id
I can not see the dataset preview.
```
Server Error
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist.
```
Am I the one who added this dataset ? Yes
Hi @cahya-wirawan, thanks for reporting.
Your dataset is working OK in streaming mode:
```python
In [1]: from datasets import load_dataset
...: ds = load_dataset("indonesian-nlp/eli5_id", split="train", streaming=True)
...: item = next(iter(ds))
...: item
Using custom data configuration indonesian-nlp--eli5_id-9fe728a7e760fb7b
Out[1]:
{'q_id': '1oy5tc',
'title': 'dalam sepak bola apa gunanya menyia-nyiakan dua permainan pertama dengan terburu-buru - di tengah - bukan permainan terburu-buru biasa saya mendapatkannya',
'selftext': '',
'document': '',
'subreddit': 'explainlikeimfive',
'answers': {'a_id': ['ccwtgnz', 'ccwtmho', 'ccwt946', 'ccwvj0u'],
'text': ['Jaga pertahanan tetap jujur, rasakan operan terburu-buru, buka permainan yang lewat. Pelanggaran yang terlalu satu dimensi akan gagal. Dan mereka yang bergegas ke tengah kadang-kadang dapat dibuka lebar-lebar untuk ukuran yard yang besar.',
'Jika Anda melempar bola sepanjang waktu, maka pertahanan akan beradaptasi untuk selalu menutupi umpan. Dengan melakukan permainan lari sederhana sesekali, Anda memaksa pertahanan untuk tetap dekat dan menjaga dari lari. Terkadang, pelanggaran dapat membuat pertahanan lengah dengan berpura-pura berlari dan membebaskan penerima mereka. Selain itu, Anda tidak perlu mendapatkan yard besar di setiap permainan. Terkadang, paling baik mendapatkan beberapa yard sekaligus. Selama Anda mendapatkan yang pertama, Anda dalam kondisi yang baik.',
'Dalam kebanyakan kasus, O-Line seharusnya membuat lubang untuk dilalui kembali. Jika Anda menjalankan terlalu banyak permainan ke luar / melempar, pertahanan akan mengejar. Juga, 2 permainan 5 yard memberi Anda satu set down baru.',
'Saya Anda tidak suka jenis drama itu, tonton CFL. Kami hanya mendapatkan 3 down sehingga Anda tidak bisa menyia-nyiakannya. Lebih banyak lagi yang lewat.'],
'score': [3, 2, 2, 2]},
'title_urls': {'url': []},
'selftext_urls': {'url': []},
'answers_urls': {'url': []}}
```
Therefore, it should be properly rendered in the previewer. Let me ping @severo to have a look at it. | [
-0.3884463906,
-0.1418884844,
-0.0735412017,
0.1538683325,
-0.0247687586,
0.2311385423,
0.0929410681,
0.5587155223,
0.0132091083,
-0.0031359883,
-0.2292771786,
0.1413205415,
-0.0089979507,
0.0560641401,
0.2455597967,
-0.385282129,
0.1090712696,
0.2116556913,
0.0661699772,
0.2062216103,
-0.2260432988,
0.1690868884,
-0.1779131442,
0.0307424162,
-0.1016645804,
0.126808852,
-0.2462918907,
-0.1787736565,
-0.2351306826,
-0.4451823533,
0.327098608,
-0.0066394787,
0.3465333879,
0.3288263381,
-0.0001176661,
0.1015073955,
0.4787644744,
0.0469392464,
-0.4361974895,
-0.2867253423,
-0.0695508793,
-0.2629032135,
0.1667048186,
-0.3640157282,
-0.3667900264,
-0.1416674256,
0.1614738852,
-0.2330999523,
0.44912377,
0.2519759238,
0.1802675724,
0.1842023879,
-0.0906575844,
-0.1951971054,
0.0046623503,
0.0135075469,
-0.340557456,
-0.0311178211,
0.0251057521,
0.1483627409,
0.0723093823,
0.1425684243,
0.0414824747,
0.0002270873,
-0.0983589888,
-0.1774888933,
-0.0742167607,
-0.4272820652,
0.2674390972,
0.0889695287,
0.829331398,
-0.1354740709,
-0.4231261909,
0.0516598485,
0.1803527772,
-0.3652415574,
0.0424412414,
0.1807281226,
0.0217582919,
0.2970374525,
-0.2148314714,
-0.1728135645,
-0.1344362646,
0.352918148,
0.0918898433,
0.4469756186,
-0.0729436353,
0.1788550913,
-0.1445162743,
0.0110884197,
0.3606284559,
-0.2371483296,
-0.0554233715,
0.3523611426,
-0.2338986397,
-0.0025194369,
-0.0487667806,
0.0658835098,
-0.0402618907,
0.2348724902,
0.0417962447,
0.1268389076,
0.2089369148,
0.0888385028,
-0.0419940986,
0.2751559317,
0.2118462622,
0.1947982609,
0.0795952007,
0.1010092124,
0.3155805171,
-0.1507544965,
-0.1895994395,
0.0298122987,
-0.0631499588,
-0.1059169248,
0.083505556,
-0.0825968534,
-0.2144390196,
0.0875712782,
-0.2015103996,
-0.1049720645,
-0.0790580288,
0.2095071375,
-0.2710109651,
0.0359089598,
-0.0197481364,
0.3294924796,
-0.1725652367,
-0.3394614458,
-0.204564169,
-0.0959231481,
-0.2350442708,
0.107418634,
0.2647384107,
-0.056143038,
0.354818821,
-0.175687477,
-0.0162342768,
-0.0401391648,
0.0868212953,
-0.0773989707,
-0.0552708022,
0.2023692131,
0.2660629749,
0.24442783,
0.2542658746,
-0.1456144154,
0.0261680279,
0.2186499387,
-0.0606235005,
-0.339638859,
-0.2691552043,
0.129211843,
-0.5351642966,
0.0107726809,
-0.4277229011,
0.2442936897,
0.0839643627,
-0.2213212997,
-0.0292767435,
0.1889336556,
-0.3994222879,
-0.0839852542,
0.1138235703,
0.5005108118,
-0.3949445188,
-0.3168523014,
-0.4791227579,
-0.2337372899,
0.2002006471,
0.2949112952,
-0.1533594131,
0.0940814167,
-0.4111356437,
0.2337620705,
0.6692294478,
-0.1584241092,
-0.8022477627,
0.3397337794,
-0.2535730898,
0.1907269657,
0.2465168983,
0.187956214,
0.2971201837,
-0.2125584334,
0.0285500977,
0.1409574151,
0.2370335311,
-0.149567917,
-0.2030353993,
-0.1790860146,
0.3119282424,
0.1220059544,
0.1393406242,
0.0354034118,
0.0201094951,
-0.0297424663,
0.3851157129,
0.2866754532,
0.1901659667,
-0.0552024916,
0.1308941841,
0.1412426233,
-0.0467300862,
-0.1130552813,
-0.1065964177,
0.1706553549,
0.0300967544,
0.0040671732,
-0.1335962862,
-0.1195596159,
-0.5475382209,
0.1618610173,
-0.4023771584,
-0.2562200129,
0.1501112431,
0.1153146029,
0.3233064115,
0.2405787855,
-0.0133459317,
0.316526711,
-0.1412055343,
-0.1434650272,
-0.3764167726,
0.368545413,
-0.0496472195,
0.0896378756,
0.2222929597,
0.1586568505,
0.369997561,
0.0389926955,
-0.1621093303,
0.2774929404,
-0.2628035843,
0.1149619296,
0.287896812,
0.0580263175,
0.1851752996,
-0.6591469646,
0.2241029739,
0.0801993236,
0.0848851204,
-0.0888003483,
-0.1891590059,
0.1237821206,
0.0863541439,
0.0509520248,
-0.1372753084,
0.117165029,
0.3348384798,
0.0314216577,
-0.1587203592,
-0.158145383,
0.2898854911,
-0.2606801987,
0.4740163982,
-0.2403022796,
-0.1924534887,
0.1025101095,
0.000977741,
-0.090708755,
0.0305853449,
0.1434001178,
-0.2073385566,
-0.2956685722,
0.0105985813,
0.0880796835,
0.4563913941,
0.2363197207,
0.2078634948,
0.0893920735,
0.0896414369,
-0.1324800253,
0.0991060734,
0.0699365363,
0.1454225332,
0.1838043332,
0.1430676877,
-0.0732428506,
-0.2717493474,
0.0095777353,
0.3296997547,
0.2500695884,
-0.0962308422,
-0.0076894443,
-0.2244861573,
-0.5751373768,
-0.0319591351,
-0.2915560901,
0.00723129,
-0.4501574934,
0.1041163132,
0.0707953349,
0.1665889025,
0.3464949727,
-0.4401084781,
0.0872653574,
0.1577487886,
0.0515143424,
-0.1567114443,
0.0336695947,
-0.0888903514,
0.0692386702,
0.2791858613,
0.0393030979,
0.4615880251,
-0.2586062253,
0.1123819724,
-0.5453107357,
-0.2779381275,
0.0850230083,
0.0678189695,
0.4314616024,
-0.1768881977,
0.2624557018,
0.1044780463,
-0.1249225512,
0.2560336292,
-0.1020508334,
-0.1849177182,
0.1137405112,
0.0292080306,
-0.009925927,
0.1951759905,
-0.3396383524,
-0.4454943836,
-0.3778810203,
0.0324128866,
-0.1336253732,
0.0466426052,
0.0414326303,
0.119172208,
-0.0381572954,
0.1233722642,
-0.2101917565,
-0.3526592255,
-0.4695138037,
0.3989985883,
-0.4600352347,
-0.439298749,
0.1779684275,
-0.0280604847,
0.3165484369,
-0.1425096542,
-0.5763728023,
0.1502581388,
-0.0402829088,
0.231717959,
0.1383294016,
-0.200196743,
0.184401527,
-0.186800316,
-0.0026976971,
-0.0738972947,
-0.0629624128,
-0.219480738,
-0.3743027747,
0.4920832217,
-0.0524415001,
0.5958861113,
0.0800614506,
0.7769434452,
0.5118920207,
0.1964694262,
0.3109145463,
-0.0558984168,
0.1896193773,
-0.1541992873,
-0.3330961764,
-0.030729454,
-0.10418199,
0.0561070479,
0.3702029288,
0.0461914167,
-0.7478687167,
-0.2228849232,
-0.3180100024,
-0.3578883708,
-0.0025216653,
0.0446537063,
-0.0950080678,
0.3055090308,
0.1023094878,
-0.077043049,
-0.2671767771,
-0.3467080593,
-0.1706091762,
0.2430207133,
0.1942958683,
0.223988995,
-0.2360145599,
-0.107578136,
-0.5076065063,
0.2159340531,
-0.0861785486,
0.6778609753,
-0.1766463518,
0.0751415864,
0.2410076708,
0.1103316694,
0.6576361656,
-0.3752942383,
0.124471277,
0.0072626229,
-0.0336235873,
-0.2673303485,
-0.0279253311,
0.1722080559,
0.5803574324,
0.1842872202,
0.249771744,
0.0066855797,
-0.0502868518,
0.2616533041,
-0.0226476341,
-0.3687914312,
-0.5654736757,
-0.1940602958,
-0.019146705,
-0.1339982152,
-0.0453677811,
-0.0319575369,
0.1435599625,
-0.0498829558,
0.0581281707,
-0.1275373101,
-0.0482760035,
-0.1593323201,
0.102031,
0.0281052515,
0.2048404664,
0.2786639035,
0.3728689551,
-0.135855332,
0.0300650503,
0.5851709247,
0.1980641633,
-0.2018025815,
0.1586946994,
0.056099005,
0.0859511867,
0.1941422373,
-0.0365470499,
-0.1116024405,
0.2125928104,
0.21647273,
-0.1000881419,
-0.1457444429,
0.3563318253,
-0.1601369828,
-0.5005024076,
-0.4730615914,
0.7459151149,
0.1994931847,
0.0762658268,
0.0661454275,
0.0687228069,
-0.0354877599,
-0.0129175195,
-0.138771221,
0.8892344832,
0.1197144687,
-0.0264694355,
0.2214461565,
-0.287438333,
0.2108962834,
-0.2335762978,
-0.0301622003,
-0.16753757,
-0.1886754781,
-0.1513213813,
0.0019485344,
0.3122941852,
0.0267543476,
-0.1512973607,
0.0295938868,
0.092311278,
-0.1038068905,
0.0974693671,
0.1633691937,
-0.2187451571,
-0.0662256405,
-0.3391054869,
0.1834497154,
-0.1813479066,
0.2126831114,
-0.0727730989,
-0.1009542719,
-0.2217285931,
0.0876307413,
-0.4429873526,
0.1619924754,
0.1331002265,
0.2509573996,
-0.2198993862,
-0.5399461389,
0.1493538618,
0.1943842024,
-0.0136401495,
0.0902476087,
-0.2952408791,
0.2219251841,
-0.1696277112,
-0.1946758479,
-0.1625355929,
-0.0787357464,
0.29753986,
-0.1396590024,
-0.3892439604,
0.3875062168,
0.1411938667,
-0.0431435779,
0.0791379288,
-0.0864695758,
0.0443789549,
-0.2001004815,
-0.3607813716,
-0.0690728948,
-0.1487849355,
-0.1544014364,
0.1051436141,
0.0870814621,
-0.3411919177,
-0.2202512473,
0.1400281042,
-0.0379711501,
-0.1428447813,
0.7056681514,
0.0595559962,
0.0869910419,
0.4904759228,
0.3333444893,
-0.1787359864,
-0.0775491893,
-0.0513482653,
0.0498179384,
-0.4822867215,
-0.271332413,
-0.0698005781,
0.4400416911,
-0.0883148611,
-0.0388597026,
0.0623299815,
-0.2550335526,
-0.029488856,
-0.4575131834,
-0.219141826,
0.0498595573,
-0.0883570537,
0.2604643404,
-0.0786318779,
0.0295789838,
0.3363894522,
0.2489472628,
-0.2594336569,
-0.1226111427,
-0.1895540804,
0.1012903824,
0.0991778001,
0.0707327798,
0.0351393744,
-0.1600396782,
0.004694575,
0.1495195329,
-0.333327949,
-0.207199648,
0.002384997,
0.1800904423,
0.2003910542,
-0.0895689428,
-0.0466783978,
-0.1384356767,
0.0423724577,
0.1160274073,
-0.0695926249,
0.1081568673,
0.1259209067,
0.1462443769,
0.3174915016,
-0.1460373998,
-0.0959373638,
0.168399334,
0.0768456608,
0.3887251914,
0.0119478144,
0.0797942579,
0.0683717206,
0.0407080613,
-0.2020659298,
-0.2571185231,
-0.1096651852,
0.0123263896,
0.3643968105,
-0.5675036311,
0.4386002719,
0.3499169052,
0.1890685111,
0.1197567955,
-0.2355906516,
-0.0554707795,
0.345993042,
0.1008357555,
-0.5098031759,
-0.1697946042,
0.4381875694,
0.1187274009,
-0.0613148175,
0.017645983,
0.1672242433,
-0.0134842778,
0.1838244349,
0.183382988,
0.3738630712,
-0.2123480737,
0.2902961075,
0.3447015285,
0.0052644485,
0.1013691351,
0.1125195473,
0.3093737364,
-0.0947453529,
0.4523064792,
-0.080751732,
0.1724286973,
0.0913660601,
0.339877218,
-0.0939339697,
-0.253366977,
-0.0804306045,
-0.0741503388,
-0.1495147347,
0.2096604556,
-0.0367777161,
0.255117178,
0.1893181652,
0.3363844156,
-0.3144731522,
0.2508845031,
0.0026630543,
0.0799332559,
-0.2091480047,
-0.0900106952,
-0.246936664,
-0.0057833763,
-0.0159031525,
-0.2040849477,
-0.0663079247,
0.1455251127,
-0.3640385866,
-0.188098222,
0.0282056089,
0.3198611438,
0.08738406,
-0.2854597867,
0.202459529,
0.2979590595,
0.0207443014,
0.0354455374,
0.2992785573,
0.3583687246,
-0.0401483364,
-0.0896527991,
0.0999783725,
0.1719647944,
-0.2692627311,
0.0602320172,
0.3017128408,
0.3616012335,
-0.0693857819,
0.174250558,
0.0961458609,
-0.1493699253,
0.4373698831,
0.2077495605,
0.3869385719,
-0.235285297,
0.1379615515,
-0.4106284678,
-0.201041624,
-0.1743828952,
-0.1282633841,
-0.5305162072,
0.3635144234,
0.1598042697,
-0.0375679731,
0.1029070616,
-0.324703753,
0.0440877602,
-0.2024554461,
0.4809063077,
0.4734500349,
-0.0433599502,
-0.1094529331,
-0.2864562571,
-0.6149175167,
-0.009455096,
-0.2816466391,
0.0311800297,
0.2019243538,
0.0174049493,
-0.066415526,
0.3564204872,
0.0474018976,
-0.0017103449,
0.0251375381,
0.5438548923,
-0.2185970396,
-0.2257490158,
0.0760839954,
0.4242985249,
-0.2082582414,
-0.1218174323,
0.0554563366,
-0.0210211128,
-0.0128677534,
-0.1353152096,
-0.1803101748,
-0.0992377102,
-0.0927964598,
0.3081393242,
0.2015085518,
0.4533554912,
0.0473507792,
0.1119548157,
-0.3511612713,
-0.073250249,
0.0463782102,
0.2871810794,
0.255156368,
0.4397136867,
-0.2109468579,
-0.286647141,
-0.021829538,
-0.1008018926,
-0.0891854614,
0.0622142255,
-0.290004462,
-0.0647842661,
-0.2131200284,
0.0948568135,
0.2200326025,
0.34169361,
-0.0404877961,
0.0923786312,
-0.1147852316,
-0.2301491499,
0.3132929206,
-0.5833635926,
-0.207066074,
0.102160722,
0.0327406488,
0.1178567037,
-0.036672309,
-0.3416643441,
0.2622632384,
0.4222702384,
-0.1620432138,
0.3744624257,
0.3310523629,
-0.0163182542,
0.1882607043,
0.010053739,
0.5650959611,
-0.0282601137,
0.0279992819,
0.0998950824,
-0.4115599096
] |
https://github.com/huggingface/datasets/issues/3968 | Cannot preview 'indonesian-nlp/eli5_id' dataset | Thanks @albertvillanova for checking it. Btw, I have another dataset indonesian-nlp/lfqa_id which has the same issue. However, this dataset is still private, is it the reason why the preview doesn't work? | ## Dataset viewer issue for '*indonesian-nlp/eli5_id*'
**Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id
I can not see the dataset preview.
```
Server Error
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist.
```
Am I the one who added this dataset ? Yes
| 31 | Cannot preview 'indonesian-nlp/eli5_id' dataset
## Dataset viewer issue for '*indonesian-nlp/eli5_id*'
**Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id
I can not see the dataset preview.
```
Server Error
Status code: 400
Exception: Status400Error
Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist.
```
Am I the one who added this dataset ? Yes
Thanks @albertvillanova for checking it. Btw, I have another dataset indonesian-nlp/lfqa_id which has the same issue. However, this dataset is still private, is it the reason why the preview doesn't work? | [
-0.335232228,
-0.1239321679,
-0.027136052,
0.2779892683,
-0.1499147117,
0.2525175214,
0.1689610779,
0.4171839058,
0.0262222327,
0.1278894395,
-0.209331423,
0.0273422934,
0.0728633255,
-0.0633361638,
0.2337566465,
-0.2524942458,
0.137003839,
0.2076781541,
0.041900117,
0.1397501379,
-0.3411981761,
0.138701573,
-0.0847396031,
0.0956585556,
-0.1752810329,
0.1472758502,
-0.2631250024,
-0.162565738,
-0.1750167161,
-0.2988178432,
0.3090737462,
0.0094314171,
0.3150721788,
0.2825846076,
-0.000120714,
0.1024616584,
0.5217805505,
0.0814411044,
-0.3983308971,
-0.1704627275,
-0.2927373946,
-0.1974096596,
0.1072620675,
-0.2427866012,
-0.3409104049,
-0.0719875693,
0.2031472921,
-0.2895103991,
0.3366419375,
0.1013350785,
0.1765974015,
0.2822761536,
0.0096484702,
-0.418073386,
0.0997695774,
0.113939479,
-0.3644113243,
-0.0360721722,
-0.0325783081,
0.1766184419,
0.1380995661,
0.171203196,
0.1845665872,
-0.0496159792,
-0.0524267964,
-0.1137561798,
-0.0809142143,
-0.3823923171,
0.3947344422,
0.1050453484,
0.9738980532,
0.0537460819,
-0.421857357,
0.2185230106,
0.165057376,
-0.270213306,
0.2160298377,
0.077715151,
0.2029744983,
0.29381603,
-0.284012109,
-0.224087894,
-0.0425119065,
0.2671948373,
0.048401244,
0.3617527485,
-0.1486109048,
0.1761086583,
-0.1185659394,
-0.0315711126,
0.2541719973,
-0.2068041712,
-0.1960059702,
0.3550165296,
-0.078970477,
0.001830217,
-0.0349565931,
0.1232685447,
0.0478699468,
0.1794871092,
-0.1306176633,
0.1282430738,
0.0576456115,
0.1062515005,
-0.0910091549,
0.2693838477,
0.2268246412,
0.1627312303,
0.2376191467,
0.0461575687,
0.3526900411,
-0.1490909755,
-0.2292901576,
0.1273763776,
-0.1262230873,
-0.2348267138,
0.1206289679,
-0.1650118679,
-0.2759542763,
0.1054638028,
-0.0866019577,
-0.103412725,
-0.1140597686,
0.2603635788,
-0.1627198309,
-0.2183691412,
0.0150112649,
0.2727593482,
-0.1524412632,
-0.4064309895,
-0.2044021785,
-0.1434212923,
-0.2629235089,
0.2153827548,
0.1966864169,
0.0834170803,
0.3332151473,
-0.1632979512,
0.0638503209,
-0.0473395512,
0.0570900366,
0.0791114867,
-0.2406433821,
0.2372680157,
0.1935512871,
0.2929938436,
0.1542376131,
-0.1600528657,
0.119665429,
0.1881630272,
-0.0789425373,
-0.3005827367,
-0.3701655865,
0.0783779025,
-0.5145670176,
0.0544663668,
-0.3898007572,
0.1647766083,
0.1224503815,
-0.1828579307,
0.0200936049,
0.283948034,
-0.3336379826,
-0.0686913133,
0.0581614561,
0.5976068974,
-0.4043647051,
-0.2873674631,
-0.5321161747,
-0.3303726614,
0.1480833292,
0.3575612307,
-0.167408362,
-0.0633020923,
-0.4827782214,
0.1629850864,
0.576540947,
-0.0882451385,
-0.7730315924,
0.2138252407,
-0.2996724248,
0.0039665354,
0.1571530849,
0.1583943516,
0.2135118246,
-0.2919867337,
-0.1313530058,
-0.0370311774,
0.2716798186,
-0.2453710735,
-0.1660526395,
-0.2120825052,
0.3313558996,
0.1505402774,
0.2093393207,
0.0863539129,
0.1533831507,
-0.0644473732,
0.1847374737,
0.2670715451,
0.2059558481,
0.0518549345,
0.1193992943,
0.1918428242,
-0.0156813301,
-0.0267113894,
-0.1420505345,
0.1247741058,
-0.1552666575,
-0.0272433534,
0.0034464574,
-0.176190123,
-0.4698728323,
0.091563344,
-0.3309877813,
-0.2598211467,
0.0590097457,
0.2252207398,
0.2295531631,
0.2239294648,
-0.0285141524,
0.1453657448,
-0.0788472965,
-0.1175728962,
-0.3168615401,
0.1957642585,
-0.038568601,
0.1330084801,
0.1202666312,
0.1876130998,
0.3888683915,
-0.0624560863,
-0.1487782151,
0.2090479881,
-0.3042759895,
0.0499681532,
0.4700348973,
-0.002441087,
0.1386856735,
-0.6537967324,
0.1642120183,
-0.0789460838,
0.0673483163,
-0.0275915433,
-0.194615379,
0.0880391449,
0.1664420515,
-0.0703108311,
-0.2632863522,
0.150084585,
0.3535473645,
0.0582925528,
-0.026063852,
-0.2253334969,
0.3618337214,
-0.1910691559,
0.4871994555,
-0.2137669027,
-0.253341347,
0.1172369942,
-0.0745110437,
-0.1371079385,
0.1531006992,
0.1593272239,
-0.0686936602,
-0.1284013391,
-0.0279647894,
-0.0493271723,
0.4077875018,
0.1767100394,
0.1648610532,
-0.026566904,
0.1069119275,
-0.1371831596,
0.0149037531,
-0.0200791489,
0.1377498209,
-0.0249668956,
0.1892005056,
-0.0655183792,
-0.2761457264,
0.147875458,
0.439067781,
0.2086622715,
-0.1248715594,
0.0482875928,
-0.1794449836,
-0.5138228536,
0.0877680406,
-0.2043248862,
-0.1417869925,
-0.3560830653,
0.1761588752,
-0.0244356152,
0.1562805772,
0.301361829,
-0.3635276556,
0.3201647103,
0.0134757999,
0.2143827677,
-0.229764387,
0.1407666504,
-0.0902791396,
0.045907747,
0.2752158344,
-0.0245861281,
0.3592140675,
-0.2050981671,
0.2490682006,
-0.6150686145,
-0.3445731401,
0.0469790474,
0.0729132742,
0.4568885863,
-0.137546882,
0.2275836915,
0.1145644039,
-0.0123424986,
0.1849180013,
-0.0382079147,
-0.2666500807,
0.0514329597,
-0.0535290763,
-0.1655919999,
0.0778845027,
-0.1234854013,
-0.3930378258,
-0.2759178877,
0.1000738814,
-0.2051892579,
-0.0067535318,
-0.0844909996,
-0.0700424388,
-0.022473868,
-0.0688115507,
-0.2468435913,
-0.4568462074,
-0.5459211469,
0.5053563118,
-0.4959360063,
-0.4490435421,
0.2937420011,
0.0267346688,
0.3320818841,
-0.2924139202,
-0.5488402843,
0.1215963885,
-0.0819525719,
0.2348625064,
0.2194417268,
-0.2633041143,
0.3224680126,
-0.2924363017,
0.0128778787,
-0.1233025119,
-0.1479100138,
-0.1501100957,
-0.4924745858,
0.6167436838,
-0.1961087435,
0.483294189,
-0.0904608965,
0.8399674296,
0.423422873,
0.2643404305,
0.31518507,
-0.0189050362,
0.3202704191,
-0.2186616361,
-0.3000473678,
-0.0788540095,
-0.0497423522,
0.0674756467,
0.3744091392,
0.0202592369,
-0.7472128868,
-0.240522638,
-0.3760592341,
-0.2979604304,
0.0228147395,
-0.1505655646,
-0.026588859,
0.2446668148,
0.1615008861,
-0.0369062386,
-0.2656734884,
-0.3486569822,
-0.0887760371,
0.3910947144,
0.3220135272,
0.1946192682,
-0.2061441541,
-0.0384672135,
-0.3674558997,
0.3681218922,
-0.1824026853,
0.667720437,
-0.3354757726,
0.1652270257,
0.2646196187,
0.1008785591,
0.6739162207,
-0.278442204,
0.1078040078,
0.0168496016,
-0.0623016655,
-0.121450074,
-0.0452902839,
0.2411315292,
0.48318097,
0.1190365106,
0.309006393,
0.0114484783,
-0.0279319566,
0.370734632,
-0.1522452384,
-0.4130626619,
-0.4959719181,
-0.3119444251,
-0.0580264702,
0.0017379624,
-0.0231691413,
-0.1810638756,
0.0910385028,
0.0340820774,
0.0976182371,
-0.1324007511,
-0.122661382,
-0.1574328989,
0.1128616855,
-0.0088566924,
0.2142549157,
0.2703537047,
0.595944047,
-0.1132212654,
0.1287606955,
0.464032203,
0.1371850371,
-0.2585142553,
0.2785639167,
-0.0947622508,
0.0931346714,
0.3057394028,
-0.0287103895,
-0.0138130048,
0.2692593634,
0.1149497628,
-0.1032637581,
-0.1740861088,
0.2771361172,
-0.1457224637,
-0.5776079893,
-0.3795060217,
0.70085603,
0.1564048976,
0.0520029254,
0.1480095685,
0.237295419,
0.0105295768,
-0.0943328962,
-0.1386366487,
1.0113329887,
0.0520382859,
-0.1037928686,
0.0871595889,
-0.1812114567,
0.2235642076,
-0.2307283878,
-0.0235552508,
-0.0960621834,
-0.2620488405,
-0.16066508,
-0.0390588827,
0.3552185595,
-0.1223159432,
0.0143364342,
-0.0187302474,
-0.0576994605,
-0.0507475771,
0.1314931065,
0.0421629362,
-0.161424771,
-0.0095938891,
-0.1167411879,
0.1733914167,
-0.0556049459,
0.3339975178,
-0.1532008052,
-0.1220795959,
-0.2537504137,
0.042949684,
-0.4701383114,
0.1640579104,
0.1708625108,
0.1750004739,
-0.0904052556,
-0.4082517028,
0.3106305301,
0.0993585661,
0.1454126984,
0.1535442024,
-0.3586653173,
0.2522358,
-0.2379300445,
-0.2044052035,
-0.3137503862,
-0.0559515096,
0.1366328299,
-0.1100255847,
-0.3310976624,
0.3761491477,
0.0456290431,
-0.1004646719,
-0.0809519514,
-0.0241149794,
-0.0463090539,
-0.1450533867,
-0.1649251878,
-0.0618425682,
-0.0817856863,
-0.1797823161,
0.0783707127,
0.1923121363,
-0.2830053866,
-0.3162431717,
0.1903947741,
-0.0229745824,
-0.2007878125,
0.6034667492,
-0.0134393657,
-0.00721882,
0.4326696992,
0.1778027713,
-0.2177866399,
-0.0925167948,
0.0653158054,
0.1408796161,
-0.5903138518,
-0.2935661077,
-0.1076309681,
0.3710589111,
-0.0878207609,
0.0556746833,
0.0892995596,
-0.3599933088,
-0.0150507353,
-0.4450071752,
-0.2125075758,
0.0776090994,
-0.2005681843,
0.273167789,
-0.1141212881,
0.0790934786,
0.3658860028,
0.3155322075,
-0.2202850729,
-0.1274372637,
-0.2333178669,
0.0618256666,
0.2727693021,
0.1625707597,
0.1434543878,
-0.2078996897,
-0.0528550483,
0.2155429125,
-0.263295114,
-0.1238140762,
0.0478631184,
0.2025241852,
0.0881291628,
-0.0752390996,
0.0149424365,
-0.1221346855,
0.131519556,
0.2157427222,
-0.0489756279,
-0.0180847608,
0.155008927,
-0.0950981528,
0.2673536837,
-0.1491041481,
-0.1010992378,
0.2239988446,
0.189868018,
0.469548583,
-0.1019039005,
0.060629651,
0.0486281142,
0.0037941209,
0.0110837761,
-0.2153182626,
-0.1139825508,
0.0166373253,
0.2953807116,
-0.5593096614,
0.4593740106,
0.4185220301,
0.0658593178,
0.0338669606,
-0.1913117319,
0.0817655325,
0.3391275704,
0.0662210807,
-0.4609879553,
-0.1295901537,
0.451621443,
0.2643750608,
-0.2071408778,
0.0768797323,
0.1874489486,
0.093737483,
0.1796860993,
0.2059778869,
0.3449185491,
-0.1913628578,
0.3365703821,
0.2531098723,
-0.0894601196,
0.220748961,
0.3303397596,
0.3120502532,
-0.1715109348,
0.5860206485,
-0.0828823447,
0.251295954,
0.0606585778,
0.3964874148,
-0.026474569,
-0.3360000253,
0.0092123421,
-0.1620103866,
-0.0148348212,
0.1546779126,
-0.0467473567,
0.2804744542,
0.0269144792,
0.3673230112,
-0.4465811253,
0.2884128392,
-0.074701868,
0.1052130833,
-0.1423326433,
-0.1825437844,
-0.1287410557,
0.0201078784,
0.0762131587,
-0.1576608419,
0.015326052,
0.0235584471,
-0.3378556073,
-0.1258665174,
0.0580701828,
0.3748054206,
0.0344929025,
-0.2779206932,
0.2430822104,
0.2139627188,
-0.0836327597,
0.1782229096,
0.3870232701,
0.271406889,
-0.0514419675,
0.0267620012,
0.0970690995,
0.0585132055,
-0.2838377953,
0.0420857407,
0.3980160356,
0.4304364026,
-0.1465028673,
0.1134058237,
0.0537463054,
-0.0862546936,
0.5028346181,
0.1695601493,
0.4853598177,
-0.2164716572,
0.093277052,
-0.6445351839,
-0.1197529435,
-0.2096036077,
-0.11414285,
-0.3539429009,
0.4982137978,
0.2179800719,
0.0321417153,
-0.0370682664,
-0.2895392478,
0.0078819375,
-0.1045645252,
0.4067364037,
0.4573466182,
-0.0000757826,
-0.1219460815,
-0.297906667,
-0.5945022702,
0.1152173206,
-0.2309028506,
0.229644686,
0.0885779336,
0.0156189539,
0.0441885851,
0.2564214766,
0.3363049924,
0.0765783489,
0.1798237413,
0.4292666614,
-0.071817033,
-0.1806189567,
0.0987935886,
0.2010398507,
-0.2326032072,
-0.0762742907,
0.1828100532,
-0.021839302,
-0.066566512,
-0.171788469,
-0.151577577,
-0.1535934955,
-0.1204238459,
0.3688365817,
0.2274585962,
0.4650771618,
0.1526225209,
0.0059999935,
-0.306481272,
-0.2236139774,
0.0799724981,
0.2037748843,
0.2527174354,
0.265001148,
-0.2483145744,
-0.2452795655,
-0.1072069183,
-0.055449225,
-0.1728665233,
0.3280543089,
-0.3576889634,
-0.0995247364,
-0.3826437891,
-0.0605968162,
0.3981666267,
0.1726891249,
0.0413063057,
-0.0547026582,
-0.1214599609,
-0.0809222162,
0.2616746426,
-0.6758466363,
-0.164769277,
0.0396088995,
0.0838744342,
0.0976227894,
-0.3416193128,
-0.2835712433,
0.1940414757,
0.3804619014,
-0.0890124589,
0.4223927557,
0.2608199418,
0.0168487318,
0.079324536,
-0.0578441545,
0.7129944563,
0.0037543697,
0.0838920772,
0.1482189298,
-0.3717834651
] |
https://github.com/huggingface/datasets/issues/3965 | TypeError: Couldn't cast array of type for JSONLines dataset | Hi @lewtun, thanks for reporting.
It seems that our library fails at inferring the dtype of the columns:
- `milestone`
- `performed_via_github_app`
(and assigns them `null` dtype). | ## Describe the bug
One of the [course participants](https://discuss.huggingface.co/t/chapter-5-questions/11744/20?u=lewtun) is having trouble loading a JSONLines dataset that's composed of the GitHub issues from `spacy` (see stack trace below).
This reminds me a bit of #2799 where one can load the dataset in `pandas` but not in `datasets` and perhaps increasing the `block_size` is needed again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from huggingface_hub import hf_hub_url
import pandas as pd
# returns 'https://huggingface.co/datasets/Evan/spaCy-github-issues/resolve/main/spacy-issues.jsonl'
data_files = hf_hub_url(repo_id="Evan/spaCy-github-issues", filename="spacy-issues.jsonl", repo_type="dataset")
# throws TypeError: Couldn't cast array of type
dset = load_dataset("json", data_files=data_files, split="test")
# no problem with pandas - note this take a while as the file is >2GB
df = pd.read_json(data_files, orient="records", lines=True)
df.head()
```
## Expected results
I can load any line-separated JSON file, similar to pandas.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset
builder_instance.download_and_prepare(
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare
self._download_and_prepare(
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 683, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 1136, in _prepare_split
writer.write_table(table)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/arrow_writer.py", line 511, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1121, in table_cast
return cast_table_to_features(table, Features.from_arrow_schema(schema))
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in cast_table_to_features
arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in <listcomp>
arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper
return func(array, *args, **kwargs)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in <listcomp>
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1086, in cast_array_to_feature
return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper
return func(array, *args, **kwargs)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 920, in wrapper
return func(array, *args, **kwargs)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1019, in array_cast
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}")
TypeError: Couldn't cast array of type
struct<url: string, html_url: string, labels_url: string, id: int64, node_id: string, number: int64, title: string, description: string, creator: struct<login: string, id: int64, node_id: string, avatar_url: string, gravatar_id: string, url: string, html_url: string, followers_url: string, following_url: string, gists_url: string, starred_url: string, subscriptions_url: string, organizations_url: string, repos_url: string, events_url: string, received_events_url: string, type: string, site_admin: bool>, open_issues: int64, closed_issues: int64, state: string, created_at: timestamp[s], updated_at: timestamp[s], due_on: null, closed_at: timestamp[s]>
to
null
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-10.16-x86_64-i386-64bit
- Python version: 3.9.7
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 27 | TypeError: Couldn't cast array of type for JSONLines dataset
## Describe the bug
One of the [course participants](https://discuss.huggingface.co/t/chapter-5-questions/11744/20?u=lewtun) is having trouble loading a JSONLines dataset that's composed of the GitHub issues from `spacy` (see stack trace below).
This reminds me a bit of #2799 where one can load the dataset in `pandas` but not in `datasets` and perhaps increasing the `block_size` is needed again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from huggingface_hub import hf_hub_url
import pandas as pd
# returns 'https://huggingface.co/datasets/Evan/spaCy-github-issues/resolve/main/spacy-issues.jsonl'
data_files = hf_hub_url(repo_id="Evan/spaCy-github-issues", filename="spacy-issues.jsonl", repo_type="dataset")
# throws TypeError: Couldn't cast array of type
dset = load_dataset("json", data_files=data_files, split="test")
# no problem with pandas - note this take a while as the file is >2GB
df = pd.read_json(data_files, orient="records", lines=True)
df.head()
```
## Expected results
I can load any line-separated JSON file, similar to pandas.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset
builder_instance.download_and_prepare(
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare
self._download_and_prepare(
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 683, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 1136, in _prepare_split
writer.write_table(table)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/arrow_writer.py", line 511, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1121, in table_cast
return cast_table_to_features(table, Features.from_arrow_schema(schema))
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in cast_table_to_features
arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in <listcomp>
arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper
return func(array, *args, **kwargs)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in <listcomp>
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1086, in cast_array_to_feature
return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper
return func(array, *args, **kwargs)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 920, in wrapper
return func(array, *args, **kwargs)
File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1019, in array_cast
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}")
TypeError: Couldn't cast array of type
struct<url: string, html_url: string, labels_url: string, id: int64, node_id: string, number: int64, title: string, description: string, creator: struct<login: string, id: int64, node_id: string, avatar_url: string, gravatar_id: string, url: string, html_url: string, followers_url: string, following_url: string, gists_url: string, starred_url: string, subscriptions_url: string, organizations_url: string, repos_url: string, events_url: string, received_events_url: string, type: string, site_admin: bool>, open_issues: int64, closed_issues: int64, state: string, created_at: timestamp[s], updated_at: timestamp[s], due_on: null, closed_at: timestamp[s]>
to
null
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: macOS-10.16-x86_64-i386-64bit
- Python version: 3.9.7
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi @lewtun, thanks for reporting.
It seems that our library fails at inferring the dtype of the columns:
- `milestone`
- `performed_via_github_app`
(and assigns them `null` dtype). | [
0.0036059762,
-0.0479997993,
-0.0535864346,
0.434281677,
0.4592538476,
0.1503392756,
0.4873134792,
0.3241958618,
0.4770776629,
-0.057500869,
-0.061184179,
0.1311786771,
-0.1100012437,
0.2816880941,
-0.0008711191,
-0.3941471875,
-0.0146889417,
-0.0445327871,
0.1062430516,
0.1749326438,
-0.0933482721,
0.1730911285,
-0.1196654588,
-0.1031807289,
-0.1494211704,
-0.085256055,
0.1366049945,
0.2853343785,
-0.0558419898,
-0.4664634764,
0.5960640907,
0.0274271145,
0.2970753312,
0.4774362147,
-0.0001162325,
0.2658969462,
0.3623135686,
0.0439485498,
-0.2050976008,
-0.3944782019,
-0.2175051868,
-0.2268907875,
0.292797029,
-0.2615489066,
0.0292122662,
0.0209290981,
-0.2876492441,
-0.280804038,
0.631501019,
0.3120798171,
0.1566186994,
0.5220170021,
0.1360073388,
-0.1679840684,
-0.0224389546,
0.2846999764,
-0.2199214995,
0.2597155571,
-0.0267581884,
0.3974964321,
0.1206839457,
-0.0854220763,
-0.1513491422,
-0.0770175233,
0.4257461131,
-0.1706186384,
-0.0252256468,
0.0552036688,
-0.0201817993,
0.2161801457,
0.3892121911,
-0.1799870282,
-0.2810038626,
-0.445832938,
0.0304254517,
0.2269043028,
0.104608722,
0.1048275903,
-0.1074718237,
0.1574066579,
-0.3536053002,
0.1600893289,
-0.1817758977,
0.0738727674,
-0.0526402406,
-0.3760051727,
-0.1472248137,
0.0713381842,
0.0066733519,
-0.1403694451,
-0.1099321768,
-0.0787994117,
0.0000563304,
0.2029625326,
-0.0324040726,
0.0440953523,
0.2454863191,
-0.4204905033,
0.3482052684,
0.0516690128,
0.1613377184,
0.1043186784,
-0.2260720283,
0.0543429218,
0.5339517593,
0.1073643565,
-0.06462311,
0.0745336041,
0.0793801993,
0.5198202729,
-0.0296130534,
-0.0402055867,
-0.2337756604,
-0.048777055,
-0.1448587775,
-0.112909779,
0.4528776705,
-0.3941109478,
-0.3187656999,
0.2627511919,
-0.4356749356,
-0.0382250696,
0.1603553146,
0.4267037809,
-0.0415272787,
0.4907935858,
0.2890572548,
0.3620336056,
0.0117228385,
0.1405922621,
-0.1951085031,
0.0639987215,
-0.0529607162,
-0.0929268524,
0.1831150651,
0.163158372,
0.1911187619,
-0.0758846626,
-0.0173960738,
-0.1847352982,
-0.2162362784,
0.081706427,
-0.1178417355,
0.2371089607,
0.1023427844,
0.1257822663,
0.2100936919,
-0.1883967966,
-0.2573604286,
-0.0501624979,
-0.2659563422,
-0.1070380211,
-0.0492235683,
0.0865136161,
-0.2419669479,
0.0422001407,
-0.6630195379,
-0.1053634062,
0.0012046808,
0.002678795,
0.0476041362,
-0.1705113649,
0.2703705728,
-0.2308913469,
0.1184273511,
0.3342460692,
-0.1978952587,
-0.1069839001,
-0.1328890473,
-0.0868328959,
0.2841023207,
0.3354702592,
-0.3149739504,
0.3115195036,
-0.151019454,
0.2302300185,
0.1985109448,
-0.1078666449,
-0.316827327,
0.3766020834,
0.1159518808,
0.4211955667,
0.1875958592,
-0.1109476015,
0.2210971713,
0.0574078672,
0.0656334162,
0.4336674511,
0.0251350217,
0.1517325491,
-0.2819079459,
-0.2880394757,
0.0161611997,
0.1849741042,
0.1061124355,
0.208267346,
0.0661371425,
0.4525848031,
0.3530704081,
-0.1095715538,
-0.0313438997,
0.2982585728,
0.0087237153,
0.1096552387,
-0.0160198472,
-0.2828069925,
-0.3617673516,
0.0373042151,
0.0792266279,
0.0482545346,
-0.300780654,
-0.2145833373,
-0.4669224322,
0.1430499554,
-0.017001126,
0.0824257433,
0.080849275,
-0.0262319613,
0.0357583687,
-0.0136144152,
-0.2273827493,
0.3854263127,
-0.0392467529,
0.0527988449,
-0.3350836337,
0.5943090916,
0.0339025222,
-0.1328176707,
0.1310599893,
0.2340805531,
-0.0081726639,
-0.1459142119,
-0.2191980183,
0.0569655821,
0.0718324631,
-0.1213673726,
0.0456142388,
0.2117891312,
0.0988473222,
-0.0642332807,
-0.1028446779,
0.1945102066,
0.1439253986,
0.0080830893,
-0.0056003928,
0.4861294031,
-0.3273336887,
0.412422508,
0.0553850494,
-0.0361753292,
0.3704107404,
0.0886540115,
-0.1819515824,
-0.1625491381,
0.1414504051,
0.1647379994,
0.316264689,
0.0625007451,
-0.350074321,
0.1661984771,
0.4788588285,
-0.1133032218,
-0.0089869462,
0.184374705,
0.0940417945,
0.0037376904,
0.0713818297,
0.054080721,
0.2124791443,
0.1124174744,
-0.0267868415,
0.0345435776,
-0.1336924136,
-0.1356707066,
0.1111843213,
0.212005645,
0.1027932689,
-0.1108708754,
0.0721662417,
0.0769232661,
-0.3014950454,
-0.1932430565,
-0.2302246839,
0.230689168,
-0.5577501655,
0.2543386221,
-0.4477497041,
-0.1062559038,
-0.111947462,
-0.1162648201,
-0.1584255695,
-0.369602412,
-0.3457583785,
0.1036254317,
-0.2485160977,
0.0584164634,
-0.1589831114,
0.3131408989,
0.1099692211,
-0.0202589501,
-0.1929339319,
0.0442026071,
-0.0121294511,
0.0135154622,
0.4791285396,
0.1433262378,
0.2285078764,
-0.1178401485,
0.0981688723,
-0.0482417457,
-0.0546510071,
-0.0053597251,
0.0041049817,
0.1908529103,
0.3854108453,
0.5826591849,
-0.0693763196,
-0.3032044172,
0.2546191812,
-0.125119701,
-0.1720172316,
0.1961242855,
-0.043159347,
-0.0881246179,
-0.1345495731,
-0.0127539076,
-0.0794924721,
-0.550662756,
0.4509368539,
-0.0443824418,
0.0257021915,
-0.1100879461,
0.17030707,
0.3367567956,
0.0135358712,
0.2070684284,
-0.1416762024,
-0.2518293262,
0.0570570715,
-0.0386795849,
-0.3429827988,
-0.1030455977,
-0.0532400496,
0.2181973606,
-0.1152981967,
-0.5638254881,
0.0494283251,
-0.1129122376,
0.2226748765,
0.0309357531,
-0.1644446403,
0.1530500054,
-0.1596442759,
0.0608240031,
-0.1119984612,
-0.0226334669,
-0.0062943045,
-0.1480904073,
0.062577486,
0.0717454553,
0.6046342254,
-0.0198420919,
-0.0758411065,
0.341966778,
0.061121963,
0.5457173586,
0.0157763567,
0.1968661398,
-0.3442948759,
-0.3486701548,
-0.1388024241,
-0.0335641913,
-0.1513291746,
0.1241150573,
0.0793552026,
-0.2362058908,
-0.0191758107,
-0.2980381548,
-0.2507124543,
-0.2978022695,
0.144705832,
-0.0089853108,
-0.1719449013,
-0.0582075976,
0.0680006146,
-0.3034323454,
0.0124711329,
-0.0895484984,
0.2791936398,
0.2686019838,
0.0070627178,
-0.2365032285,
-0.2455932647,
-0.277613461,
0.1775865704,
0.1067936644,
0.3316355646,
-0.0196054745,
0.0865602046,
0.1982306689,
-0.2066595554,
0.7147006989,
0.1388629228,
0.1000188738,
0.2515508235,
-0.011786839,
-0.5998992324,
0.0467019267,
0.0206321664,
0.1352594346,
0.2989677191,
0.33077389,
-0.5607883334,
-0.1561575681,
0.3962580562,
0.2233474404,
0.001671796,
-0.0194500256,
-0.1584548503,
-0.5940133333,
-0.3501382172,
-0.06842608,
0.1985141039,
0.5351089239,
0.1134684607,
0.022779787,
-0.0063772267,
-0.2124572098,
0.0244220179,
0.1050580144,
0.3043438494,
-0.0629063174,
0.2069972605,
-0.017439289,
0.1364242733,
0.2359995842,
0.8077704906,
0.192636922,
-0.3842866421,
0.1828569025,
0.101821959,
0.1959568262,
0.4134202003,
-0.088898927,
-0.0286528356,
0.2057139426,
0.2799427807,
-0.039995715,
0.041669447,
0.2730500102,
-0.0232333038,
-0.4346359074,
-0.6030514836,
0.411570102,
0.0518996902,
0.1314615756,
0.0294523332,
0.3525812626,
-0.300144583,
0.5416628122,
-0.0919432193,
1.0248305798,
-0.0939276144,
0.1859485805,
0.6502364278,
-0.237146467,
0.4745682478,
-0.2558225691,
-0.2248120606,
-0.1200040281,
0.3329184055,
-0.0462845303,
-0.1377174556,
0.2935524583,
-0.0050295815,
-0.0792943165,
-0.1206857711,
-0.2991282046,
0.122298114,
-0.1317785084,
0.1624768525,
-0.2173338234,
-0.2276617587,
-0.8174951673,
0.0686442479,
-0.084074825,
-0.1356597245,
0.0423728004,
-0.294808358,
-0.2473860532,
-0.2835049927,
-0.4664037824,
-0.0385987721,
0.0689550117,
0.1632575691,
0.2133698761,
0.1084022298,
0.0712451935,
0.0048326468,
0.2708229721,
0.0460483432,
-0.2502578795,
0.1047303751,
-0.3947632909,
-0.1143790111,
0.0303996038,
0.1067243591,
0.5527320504,
-0.1170947626,
-0.2832680345,
-0.0595810264,
-0.1651166826,
-0.4310735464,
-0.2719029486,
0.1082003415,
-0.4537886977,
-0.5515286326,
-0.431430757,
-0.0239530616,
0.1837868094,
-0.1530717611,
0.1081172675,
0.2257218957,
-0.0515225157,
-0.0339501202,
0.1939133257,
-0.1551586539,
-0.175678283,
0.2677136362,
0.0777663216,
0.2060586363,
0.4291047454,
0.3901555836,
-0.3126749098,
-0.1196498796,
0.0609270856,
0.7278577089,
-0.497939527,
0.3132472038,
-0.2753392458,
-0.3109045327,
-0.183673054,
0.2458116114,
0.05065744,
-0.1123363227,
-0.0367372856,
-0.5353928804,
-0.2427264452,
0.5239758492,
0.042773325,
0.1936248392,
0.0091313301,
0.4382415414,
-0.2171900272,
-0.3140535355,
-0.2359314263,
0.0283274967,
-0.3747354746,
-0.0454938039,
-0.2202463448,
-0.1553146094,
0.3532831669,
-0.1162407473,
0.1077599376,
0.0727703199,
-0.2326549441,
-0.1586009115,
-0.1815259904,
0.1542712301,
0.0292611085,
-0.1614269614,
-0.0053429622,
-0.0659313947,
-0.3190838993,
-0.1936540902,
0.2097887099,
0.2019110769,
0.0409396477,
-0.0673812181,
0.1250699908,
-0.099122487,
-0.030631572,
0.2561261952,
0.0470515452,
0.4385827482,
-0.0577227771,
0.1355411559,
-0.2216347903,
0.1280828714,
-0.1450936794,
0.2374388576,
0.0786866546,
0.210367009,
0.4507400692,
-0.3477006257,
0.035683766,
0.3337412477,
0.3269034624,
0.1621336788,
-0.1170436069,
0.2221975625,
-0.2336481363,
0.0706760958,
-0.089284502,
-0.0635045096,
0.3714568317,
-0.0663980618,
-0.0631453544,
0.2462809086,
-0.0877719149,
0.0486792177,
-0.1118176579,
0.1165610477,
0.9509938359,
0.1026751772,
0.114795059,
0.2353591472,
-0.1869143099,
-0.0144487824,
-0.3138883412,
0.1958553493,
0.2902899384,
-0.0274242647,
-0.2020166665,
0.0292112324,
-0.0190414824,
0.1809361428,
0.0940609947,
-0.3085105717,
0.0320653692,
0.318829,
-0.117411606,
0.1728666276,
-0.1265418082,
0.167700395,
-0.2865894139,
-0.2343307883,
-0.2466816753,
0.1770099849,
-0.2655584514,
-0.0239681117,
-0.1773564667,
-0.2016570121,
-0.2947574854,
-0.1497244388,
-0.1027827337,
-0.1052347645,
-0.1192078739,
-0.0155367302,
0.058088664,
-0.3445177674,
0.1267953366,
-0.1958100051,
0.1852990389,
-0.160614714,
0.2815127671,
0.115615949,
-0.0963625908,
0.244166702,
0.2372916639,
0.4612083435,
0.2264384627,
0.1551489234,
-0.2279922664,
-0.1547731161,
-0.1213708147,
-0.1433192641,
0.1120641232,
0.1936484426,
0.2507254779,
0.070300132,
0.1361893266,
-0.1506579816,
0.1957842559,
-0.0475637242,
0.325294584,
-0.3453633189,
0.4531561136,
-0.7168778181,
-0.1382810622,
-0.0813169554,
-0.2885456383,
-0.4052875638,
-0.2720571458,
0.0531252101,
-0.1993275434,
0.2173138261,
-0.0405164734,
0.0517409258,
-0.1668081433,
0.4617667496,
0.2921940684,
0.1614530832,
0.0208121054,
0.1778667271,
-0.4220236838,
-0.006793722,
-0.0096450066,
-0.1057263762,
0.4566341043,
0.1029756144,
0.013474877,
0.0429323278,
0.1080679074,
0.0766721889,
-0.1595609635,
-0.0419355333,
-0.2161107063,
-0.2473635077,
0.2026022673,
-0.0965277329,
-0.1292320639,
-0.2528899014,
0.27555722,
-0.1390898377,
-0.0019163456,
0.1183000505,
0.0822764635,
0.0152602969,
-0.1037884057,
-0.0846042857,
0.063576676,
0.2716117501,
-0.0327658951,
-0.3097325265,
-0.344676733,
-0.5347605348,
0.0138707859,
0.4439700246,
-0.2269461155,
0.6151973605,
-0.2317781448,
-0.0395190045,
-0.1431588382,
-0.0113797719,
-0.1589505821,
-0.1372874379,
-0.3897292018,
0.1925292909,
-0.4617516994,
0.1016604155,
-0.0682425275,
0.2290524691,
0.0254060123,
0.2628054619,
0.0880153626,
-0.2854237258,
0.6634764671,
-0.1973742396,
-0.3396538198,
0.2424009591,
-0.0042978888,
0.0096907811,
-0.19972229,
-0.7850676179,
0.0094481139,
0.1464903653,
0.0888321996,
-0.1394737512,
0.1560807675,
0.0291483253,
-0.0773796365,
-0.1252907366,
0.2539977431,
-0.05075242,
-0.1525148004,
0.3644717932,
-0.0641719699
] |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset:
```python
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']}
>>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification')
```
Let us know if that resolves the issue. | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification')
[] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset
**config_kwargs,
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder
**config_kwargs,
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__
super().__init__(*args, **kwargs)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__
sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main
```
I need some help to solve the problem, thanks! | 40 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification')
[] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset
**config_kwargs,
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder
**config_kwargs,
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__
super().__init__(*args, **kwargs)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__
sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main
```
I need some help to solve the problem, thanks!
Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset:
```python
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']}
>>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification')
```
Let us know if that resolves the issue. | [
-0.3380225599,
-0.114140451,
-0.0211975258,
0.2390871197,
0.4253334999,
-0.0225406867,
0.1771003604,
0.3576570451,
0.0669671223,
0.1895555854,
-0.1314774305,
0.1565939039,
-0.0968019739,
0.1201880723,
-0.0979674831,
-0.296218574,
-0.0579133108,
0.1971371919,
-0.1178741753,
-0.1511341929,
-0.2569162548,
0.1787683368,
-0.1400129199,
0.1847218424,
-0.2956010401,
0.0831508189,
-0.1054894999,
0.2142816186,
-0.0965183303,
-0.4482676089,
0.4221608639,
-0.0895105526,
0.4329846501,
0.4966243804,
-0.0001023158,
0.17225115,
0.4993554652,
-0.026760269,
-0.1251298636,
-0.4663240314,
-0.1383082718,
-0.1904052943,
0.3075006902,
-0.118566893,
-0.2022633404,
-0.4111450315,
0.0497763902,
-0.1912936866,
0.4004446268,
0.3993334472,
0.3264052272,
0.248587966,
0.0299534686,
-0.3245801926,
-0.1635426283,
0.1704921424,
-0.1472791731,
0.3505590856,
0.256641537,
-0.153898567,
0.1403165758,
0.3131349683,
-0.055146616,
0.1936384588,
0.3182661235,
-0.1083028242,
-0.06152438,
-0.1487922221,
0.3644403219,
0.0928643644,
0.5512080193,
-0.1445952952,
-0.3069010079,
0.0421254039,
0.1144741029,
-0.4257186055,
0.2398095876,
0.1540400982,
-0.1403723359,
0.2098692954,
-0.2887387872,
-0.0676197112,
-0.2394699156,
0.3054097295,
-0.1165480837,
0.1363257021,
-0.1642613411,
0.1148757786,
0.2302117199,
-0.0888859704,
0.1679836065,
0.1112330854,
0.1810367256,
0.2592576742,
-0.3870074749,
0.2529420853,
-0.005841333,
-0.074595429,
-0.0328734703,
-0.1497269273,
-0.0505561009,
-0.1193772107,
-0.1094887704,
0.2907733321,
0.1241557002,
0.2429410815,
0.2186167091,
0.3857802749,
0.0354060158,
0.0724390149,
-0.1684983373,
-0.0520526767,
-0.3046111166,
-0.3428444564,
0.1724547297,
0.0338618457,
0.2183429152,
-0.2477737665,
-0.187506035,
0.052968055,
-0.0264608376,
0.1310577989,
0.0048450562,
0.3974287212,
-0.0720018819,
0.1078411043,
0.11357072,
0.2105728835,
-0.2100157589,
0.0804998055,
-0.3218249977,
0.0064725401,
-0.1483469158,
-0.0503722616,
0.1498716623,
-0.3902206123,
0.3461689949,
-0.1646035314,
-0.1027217954,
0.0681311488,
0.1059607565,
-0.1619602293,
-0.0051335753,
0.5106235147,
-0.1675314009,
0.102222085,
0.2465296388,
0.0278735049,
-0.0904969126,
0.1305611879,
-0.2611622214,
-0.5131596923,
-0.3502134681,
0.2658132911,
0.0356026106,
-0.0744618401,
-0.2554311156,
0.0156026175,
0.0914213285,
0.2082774639,
-0.2133510113,
-0.2529437542,
-0.3055506349,
-0.0327625312,
0.2802274525,
0.3274256885,
-0.3259852231,
0.0016581784,
-0.1004468948,
-0.2188027948,
0.0414027795,
0.2085922211,
-0.3016658127,
0.2088793367,
-0.104451701,
0.1096088141,
0.1563944966,
-0.4672547579,
-0.2618286908,
0.2249240875,
0.0080278758,
-0.2027759999,
-0.1378243417,
-0.012152208,
-0.058922112,
0.1817512661,
0.0981102139,
0.3021401167,
-0.0610940158,
0.0481856167,
-0.2115162909,
-0.197669059,
-0.1029630899,
0.3457719386,
0.0422711484,
0.1390031278,
0.2000285685,
-0.2314841598,
0.0671962127,
-0.1334645003,
-0.0854794532,
0.2596311867,
0.170796454,
0.0681166425,
0.0315433294,
-0.046076566,
-0.5464987159,
0.2385165244,
0.1520850807,
0.2741982937,
-0.2650343478,
-0.0512846895,
-0.4634175599,
0.0776333138,
-0.3745078444,
-0.0832192674,
0.1788612157,
0.0678446814,
0.066940628,
0.1444493085,
-0.19192186,
0.2888279557,
-0.3069467843,
0.0401100479,
-0.1483062506,
0.185594067,
-0.1667275578,
-0.1352546215,
0.1729490608,
-0.103879638,
0.0582589023,
-0.2966474295,
-0.2748553455,
0.4825038314,
0.0012197669,
0.2237780094,
0.002674374,
0.05394933,
0.1286351532,
-0.2424883693,
-0.0404466353,
-0.0502867252,
0.0433804132,
0.0840272009,
-0.0127479434,
0.1394747198,
0.0792034268,
0.1023014262,
0.0895428732,
0.0503306985,
0.3731085062,
-0.0630995482,
0.0525553897,
-0.2071747482,
0.1640108079,
0.0410339087,
0.2085024714,
0.0219007451,
-0.2507736087,
-0.2435825318,
0.2033375949,
0.0275660157,
-0.0100003937,
0.2371495068,
-0.0452149399,
0.2026247531,
0.2026037127,
0.3036540747,
0.3462533057,
0.1128005683,
-0.2387435287,
0.2949957848,
-0.1616530567,
-0.0559896752,
0.0445131473,
-0.0829130337,
0.3669479191,
0.2743315697,
0.0693969429,
0.0740834028,
-0.4737313986,
-0.0784993023,
-0.0236855894,
0.4904199839,
-0.1245588735,
0.1172459498,
-0.2654000521,
-0.2774946094,
-0.2419726402,
-0.0375763476,
-0.1377545148,
-0.1387421489,
-0.1552968025,
0.066696398,
-0.0139740342,
0.2876707613,
-0.2312740833,
0.0697480962,
0.1242867634,
-0.2204566598,
-0.1328823715,
-0.2112715691,
-0.3053153753,
0.0875388831,
0.3674649,
0.0579072386,
0.3674761951,
-0.3410927951,
0.0082324529,
-0.0165083203,
-0.3201085329,
0.0844090581,
-0.1093897298,
0.1559102535,
0.070500873,
0.223752439,
-0.1700755656,
-0.2264109999,
0.6276735067,
-0.3136832416,
-0.1328911334,
0.0429497957,
-0.0383523256,
-0.2057213038,
-0.1820735335,
-0.5400707722,
-0.3777373433,
-0.2573294342,
0.0813766196,
0.2109511197,
0.2434428781,
0.4190809429,
0.344676733,
0.1439471543,
-0.1057146415,
-0.1207183972,
-0.1763256937,
-0.3949628174,
0.1005408987,
-0.2491053194,
-0.4323080182,
-0.0686041936,
0.0622896366,
0.5364884138,
0.0186182894,
-0.3495426774,
-0.2764158249,
-0.1668328047,
0.1295659095,
-0.121655412,
0.0708092377,
0.3206848502,
-0.0917444155,
-0.1171273738,
-0.0888179541,
-0.1010697708,
0.1604620814,
-0.0386743173,
-0.0627672672,
0.0926694497,
0.3357470632,
-0.0903460011,
0.5322237015,
-0.0121135712,
-0.3363138735,
0.4557913244,
-0.1320487112,
0.2421814948,
-0.3542275727,
-0.5656894445,
0.0709300116,
0.1588248312,
0.0466175228,
-0.0892005488,
0.0433329605,
-0.1022952646,
-0.3485795557,
-0.0869211778,
-0.3494550288,
0.0353455953,
0.0770683214,
0.09826985,
0.3366644382,
-0.0608086772,
-0.0907909721,
-0.1499727517,
0.0000456988,
0.1556257159,
0.3872845173,
0.0513737723,
0.1347046793,
-0.2912987769,
0.1288105547,
-0.3537061512,
0.292050451,
0.0504255369,
0.4000320137,
-0.0664479733,
-0.0068772384,
0.1397615224,
-0.0126542337,
0.3901390731,
-0.1633496135,
-0.0790513083,
0.1319676191,
-0.183836922,
-0.3492079377,
-0.069814682,
0.0587399341,
0.0006447062,
-0.077424027,
0.6436384916,
0.0331003629,
-0.373901099,
0.1939786971,
0.1273453534,
-0.1982407272,
-0.3113646507,
-0.2847267687,
-0.3292041719,
-0.3079225123,
-0.167328164,
-0.033028625,
0.3518636525,
0.2191112489,
0.0196075514,
-0.1298906803,
-0.0052580116,
-0.1280584335,
0.1828175634,
0.0681165829,
-0.007876575,
0.1463283449,
0.2076087445,
0.1599250883,
0.336904496,
0.5942884088,
-0.2568459213,
-0.5002080202,
-0.069515042,
0.0515007712,
0.2141078711,
-0.0290653054,
-0.1419428289,
-0.2385213077,
0.0311555974,
0.0931193754,
-0.2454928756,
0.2862402499,
0.3770499825,
-0.0355011337,
0.0286730882,
-0.3413774371,
0.4341708422,
0.0984894261,
0.0444133915,
0.4365955889,
-0.039364066,
-0.1395760328,
0.1474699378,
0.1455250978,
0.574657321,
-0.389690578,
-0.0765495524,
0.2728120685,
0.0444199257,
0.2513247728,
0.2226639241,
0.1271218359,
-0.3463572562,
-0.2068239152,
0.0074644722,
-0.0592943467,
0.3179737926,
0.0313772261,
0.0469740853,
0.173358202,
-0.0565875769,
0.3133540452,
0.0275612101,
0.3283925056,
-0.1047910675,
-0.235547632,
-0.4276834726,
0.2531487346,
-0.1058822125,
0.3252013922,
-0.0521181561,
-0.0042737871,
-0.0242892709,
-0.1516681463,
-0.0210352223,
0.119407557,
-0.3966789544,
0.1917483956,
0.2279840112,
-0.1549522281,
-0.0864304826,
0.3514222205,
0.2543947697,
-0.0126121603,
-0.1975794584,
0.1596453339,
-0.187848404,
-0.1674505323,
-0.1328978688,
-0.0586269684,
0.3143929243,
-0.181569308,
-0.1954335272,
0.0201100595,
0.0074792122,
-0.2071650475,
0.1628320515,
-0.1547801942,
0.2652647793,
-0.0332610495,
-0.2878686488,
-0.1409375817,
0.079295665,
0.0478118174,
0.2261353284,
-0.0548363924,
0.0920921639,
-0.0670451894,
-0.0501904227,
-0.2933436334,
0.0186876133,
0.4964334071,
0.074905403,
-0.1944496781,
0.4649342597,
0.1185266003,
0.0903023556,
-0.25607723,
0.041344896,
0.3066205382,
-0.4442827106,
0.0396263339,
0.1673026383,
0.1089711413,
0.1367329806,
0.3644804955,
0.142859742,
-0.3083028793,
0.0590526983,
-0.3313954771,
-0.4534528852,
0.0311845858,
-0.2731126249,
0.1910057068,
-0.0076504066,
0.3160249889,
0.1021534353,
-0.0591336712,
-0.386518985,
0.0673090294,
-0.1160155088,
0.0489228256,
0.3310281634,
0.0735163093,
0.2032902241,
-0.0891226679,
0.1981627941,
0.0538370125,
-0.2468807548,
-0.3302772045,
-0.0684817359,
0.0612501726,
0.1746396273,
-0.2562599778,
-0.0762535632,
-0.2349614054,
-0.2529825866,
0.0114954775,
0.1098112762,
0.1728823334,
-0.2346853614,
0.3075318336,
0.0471805818,
0.085889481,
0.27906847,
0.0373313315,
-0.1641241014,
0.1747580618,
0.0125610288,
-0.0096494574,
0.099606365,
-0.0931540504,
-0.0869722217,
-0.0447310954,
-0.2208999693,
0.0441733077,
0.1923547238,
-0.2863119543,
0.0854948908,
0.0788561627,
0.4498381317,
0.1056030691,
-0.294908762,
-0.0408126563,
0.3862757087,
0.3174156845,
-0.3185018301,
-0.1613309532,
0.1336794496,
0.1227292567,
-0.1282103062,
0.0181632396,
0.2363964766,
-0.0675224438,
-0.0451814719,
0.1025682613,
0.4315913916,
-0.2455129772,
0.2176318616,
0.4695021212,
0.0235086456,
0.0516937785,
0.1395698041,
0.1381318867,
0.1342352331,
0.4555005431,
-0.3275702894,
0.2404291928,
-0.15707995,
0.2462373376,
0.0463296846,
-0.5383800268,
0.0199326482,
0.0108307954,
-0.2100809216,
-0.0080192117,
-0.2629569173,
0.4218577743,
-0.0279818028,
-0.2109265774,
-0.1749638617,
0.2452013344,
-0.1166815236,
-0.0991652533,
-0.3662568033,
-0.0919809714,
-0.0586568974,
0.0180790499,
0.0055132592,
-0.0437005945,
0.3798266649,
0.0126415053,
-0.2145306468,
-0.2277995199,
-0.1313639283,
0.2539502978,
0.0252387784,
-0.0812410191,
0.4247591496,
0.2110419422,
-0.0581701621,
-0.025912771,
0.4645787179,
0.4278824925,
0.5090795755,
0.133122474,
0.0994664282,
-0.143477872,
-0.0065317657,
-0.0212687273,
0.2234344035,
-0.1036675796,
0.0454364195,
0.2647252083,
0.2319951653,
-0.1170491874,
0.2423410267,
-0.1334372312,
0.3304156959,
-0.13188003,
0.0945731178,
-0.0495402403,
-0.0016094772,
-0.1866309345,
0.3291617036,
-0.3130422831,
0.1827824563,
0.459287405,
-0.0043392917,
0.1730353087,
-0.1894546449,
0.1190744564,
-0.1630672663,
0.6306009889,
0.380558759,
0.0664858967,
-0.4218457937,
-0.2910124063,
-0.7276151776,
0.1564404964,
-0.0825872868,
0.0610881187,
0.0619007573,
-0.1140152887,
-0.0383040942,
0.1475934237,
-0.0285251793,
0.0744951442,
0.0371430181,
-0.0721936822,
-0.2592314482,
-0.0801675767,
-0.196553424,
-0.0701804161,
0.0204682071,
-0.4052911997,
0.2177488208,
-0.5241703391,
0.1381391883,
-0.1299020797,
0.0569439121,
0.0506626442,
0.1010558903,
0.339544028,
0.0200699233,
0.2591456175,
0.0223066956,
-0.07052885,
-0.2663030326,
-0.330578506,
-0.2319779843,
0.2840987742,
0.1264582425,
0.391876936,
-0.2800571024,
-0.092115432,
-0.4638871849,
0.1544593424,
-0.0375984274,
0.008761947,
-0.0498860031,
0.0706940442,
0.0008183373,
-0.0333773717,
0.227996394,
0.1686286628,
0.0579314865,
0.0951402336,
-0.4258278608,
-0.4247078001,
0.5030211806,
-0.2724656761,
-0.1122212932,
-0.014201358,
-0.1198403165,
0.1248239949,
-0.0938102454,
-0.6387230158,
0.3685269356,
0.3740671873,
-0.031184705,
-0.2184459418,
0.2790354192,
0.0766237974,
0.0881788582,
0.0055372408,
0.1160706207,
0.0205673855,
-0.1049907282,
-0.0778699517,
-0.1569487453
] |
https://github.com/huggingface/datasets/issues/3960 | Load local dataset error | > Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset:
>
> ```python
> >>> from datasets import load_dataset
> >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']}
> >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification')
> ```
>
> Let us know if that resolves the issue.
Sorry, replied late.
Thanks a lot! It's worked for me. But it seems much slower than before, and now gets stuck.....
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']}
>>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification')
Resolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1281167/1281167 [00:02<00:00, 437283.97it/s]
Resolving data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50001/50001 [00:00<00:00, 89094.29it/s]
Using custom data configuration default-baebca6347576b33
Downloading and preparing dataset image_folder/default to ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091...
Downloading data files #0: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82289.56obj/s]
Downloading data files #1: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 73559.11obj/s]
Downloading data files #2: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 81600.46obj/s]
Downloading data files #3: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 79691.56obj/s]
Downloading data files #4: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82341.37obj/s]
Downloading data files #5: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 75784.46obj/s]
Downloading data files #6: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 81466.18obj/s]
Downloading data files #7: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82320.27obj/s]
Downloading data files #8: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 78094.00obj/s]
Downloading data files #9: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84057.59obj/s]
Downloading data files #10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 83082.31obj/s]
Downloading data files #11: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 79944.21obj/s]
Downloading data files #12: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84569.77obj/s]
Downloading data files #13: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84949.63obj/s]
Downloading data files #14: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 80666.53obj/s]
Downloading data files #15: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80072/80072 [00:01<00:00, 76723.20obj/s]
^[[Bloading data files #8: 94%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 75061/80073 [00:00<00:00, 82609.89obj/s]
Downloading data files #9: 85%|████████████████████████████████████████████████████████████████████████████████████████████████████▍ | 68120/80073 [00:00<00:00, 83868.54obj/s]
Downloading data files #9: 96%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 76784/80073 [00:00<00:00, 84722.34obj/s]
Downloading data files #10: 75%|███████████████████████████████████████████████████████████████████████████████████████▋ | 59995/80073 [00:00<00:00, 84148.19obj/s]
Downloading data files #10: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 77412/80073 [00:00<00:00, 85724.53obj/s]
Downloading data files #11: 71%|███████████████████████████████████████████████████████████████████████████████████▎ | 57032/80073 [00:00<00:00, 79930.58obj/s]
Downloading data files #11: 92%|███████████████████████████████████████████████████████████████████████████████████████████████████████████ | 73277/80073 [00:00<00:00, 78091.27obj/s]
Downloading data files #12: 86%|█████████████████████████████████████████████████████████████████████████████████████████████████████ | 69125/80073 [00:00<00:00, 84723.02obj/s]
Downloading data files #12: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋ | 77803/80073 [00:00<00:00, 85351.59obj/s]
Downloading data files #13: 75%|████████████████████████████████████████████████████████████████████████████████████████▏ | 60356/80073 [00:00<00:00, 84833.35obj/s]
Downloading data files #13: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 77368/80073 [00:00<00:00, 84475.10obj/s]
Downloading data files #14: 72%|████████████████████████████████████████████████████████████████████████████████████▍ | 57751/80073 [00:00<00:00, 80727.33obj/s]
Downloading data files #14: 92%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 74022/80073 [00:00<00:00, 78703.16obj/s]
Downloading data files #15: 78%|███████████████████████████████████████████████████████████████████████████████████████████▋ | 62724/80072 [00:00<00:00, 78387.33obj/s]
Downloading data files #15: 99%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎ | 78933/80072 [00:01<00:00, 79353.63obj/s]
``` | When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification')
[] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset
**config_kwargs,
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder
**config_kwargs,
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__
super().__init__(*args, **kwargs)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__
sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main
```
I need some help to solve the problem, thanks! | 378 | Load local dataset error
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this:
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']}
>>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification')
[] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset
**config_kwargs,
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder
**config_kwargs,
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__
super().__init__(*args, **kwargs)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__
sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote
if not isinstance(patterns_for_key, DataFilesList)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote
data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls
for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions):
File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally
raise FileNotFoundError(error_msg)
FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main
```
I need some help to solve the problem, thanks!
> Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset:
>
> ```python
> >>> from datasets import load_dataset
> >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']}
> >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification')
> ```
>
> Let us know if that resolves the issue.
Sorry, replied late.
Thanks a lot! It's worked for me. But it seems much slower than before, and now gets stuck.....
```
>>> from datasets import load_dataset
>>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']}
>>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification')
Resolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1281167/1281167 [00:02<00:00, 437283.97it/s]
Resolving data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50001/50001 [00:00<00:00, 89094.29it/s]
Using custom data configuration default-baebca6347576b33
Downloading and preparing dataset image_folder/default to ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091...
Downloading data files #0: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82289.56obj/s]
Downloading data files #1: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 73559.11obj/s]
Downloading data files #2: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 81600.46obj/s]
Downloading data files #3: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 79691.56obj/s]
Downloading data files #4: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82341.37obj/s]
Downloading data files #5: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 75784.46obj/s]
Downloading data files #6: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 81466.18obj/s]
Downloading data files #7: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82320.27obj/s]
Downloading data files #8: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 78094.00obj/s]
Downloading data files #9: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84057.59obj/s]
Downloading data files #10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 83082.31obj/s]
Downloading data files #11: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 79944.21obj/s]
Downloading data files #12: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84569.77obj/s]
Downloading data files #13: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84949.63obj/s]
Downloading data files #14: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 80666.53obj/s]
Downloading data files #15: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80072/80072 [00:01<00:00, 76723.20obj/s]
^[[Bloading data files #8: 94%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 75061/80073 [00:00<00:00, 82609.89obj/s]
Downloading data files #9: 85%|████████████████████████████████████████████████████████████████████████████████████████████████████▍ | 68120/80073 [00:00<00:00, 83868.54obj/s]
Downloading data files #9: 96%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 76784/80073 [00:00<00:00, 84722.34obj/s]
Downloading data files #10: 75%|███████████████████████████████████████████████████████████████████████████████████████▋ | 59995/80073 [00:00<00:00, 84148.19obj/s]
Downloading data files #10: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 77412/80073 [00:00<00:00, 85724.53obj/s]
Downloading data files #11: 71%|███████████████████████████████████████████████████████████████████████████████████▎ | 57032/80073 [00:00<00:00, 79930.58obj/s]
Downloading data files #11: 92%|███████████████████████████████████████████████████████████████████████████████████████████████████████████ | 73277/80073 [00:00<00:00, 78091.27obj/s]
Downloading data files #12: 86%|█████████████████████████████████████████████████████████████████████████████████████████████████████ | 69125/80073 [00:00<00:00, 84723.02obj/s]
Downloading data files #12: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋ | 77803/80073 [00:00<00:00, 85351.59obj/s]
Downloading data files #13: 75%|████████████████████████████████████████████████████████████████████████████████████████▏ | 60356/80073 [00:00<00:00, 84833.35obj/s]
Downloading data files #13: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 77368/80073 [00:00<00:00, 84475.10obj/s]
Downloading data files #14: 72%|████████████████████████████████████████████████████████████████████████████████████▍ | 57751/80073 [00:00<00:00, 80727.33obj/s]
Downloading data files #14: 92%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 74022/80073 [00:00<00:00, 78703.16obj/s]
Downloading data files #15: 78%|███████████████████████████████████████████████████████████████████████████████████████████▋ | 62724/80072 [00:00<00:00, 78387.33obj/s]
Downloading data files #15: 99%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎ | 78933/80072 [00:01<00:00, 79353.63obj/s]
``` | [
-0.3380225599,
-0.114140451,
-0.0211975258,
0.2390871197,
0.4253334999,
-0.0225406867,
0.1771003604,
0.3576570451,
0.0669671223,
0.1895555854,
-0.1314774305,
0.1565939039,
-0.0968019739,
0.1201880723,
-0.0979674831,
-0.296218574,
-0.0579133108,
0.1971371919,
-0.1178741753,
-0.1511341929,
-0.2569162548,
0.1787683368,
-0.1400129199,
0.1847218424,
-0.2956010401,
0.0831508189,
-0.1054894999,
0.2142816186,
-0.0965183303,
-0.4482676089,
0.4221608639,
-0.0895105526,
0.4329846501,
0.4966243804,
-0.0001023158,
0.17225115,
0.4993554652,
-0.026760269,
-0.1251298636,
-0.4663240314,
-0.1383082718,
-0.1904052943,
0.3075006902,
-0.118566893,
-0.2022633404,
-0.4111450315,
0.0497763902,
-0.1912936866,
0.4004446268,
0.3993334472,
0.3264052272,
0.248587966,
0.0299534686,
-0.3245801926,
-0.1635426283,
0.1704921424,
-0.1472791731,
0.3505590856,
0.256641537,
-0.153898567,
0.1403165758,
0.3131349683,
-0.055146616,
0.1936384588,
0.3182661235,
-0.1083028242,
-0.06152438,
-0.1487922221,
0.3644403219,
0.0928643644,
0.5512080193,
-0.1445952952,
-0.3069010079,
0.0421254039,
0.1144741029,
-0.4257186055,
0.2398095876,
0.1540400982,
-0.1403723359,
0.2098692954,
-0.2887387872,
-0.0676197112,
-0.2394699156,
0.3054097295,
-0.1165480837,
0.1363257021,
-0.1642613411,
0.1148757786,
0.2302117199,
-0.0888859704,
0.1679836065,
0.1112330854,
0.1810367256,
0.2592576742,
-0.3870074749,
0.2529420853,
-0.005841333,
-0.074595429,
-0.0328734703,
-0.1497269273,
-0.0505561009,
-0.1193772107,
-0.1094887704,
0.2907733321,
0.1241557002,
0.2429410815,
0.2186167091,
0.3857802749,
0.0354060158,
0.0724390149,
-0.1684983373,
-0.0520526767,
-0.3046111166,
-0.3428444564,
0.1724547297,
0.0338618457,
0.2183429152,
-0.2477737665,
-0.187506035,
0.052968055,
-0.0264608376,
0.1310577989,
0.0048450562,
0.3974287212,
-0.0720018819,
0.1078411043,
0.11357072,
0.2105728835,
-0.2100157589,
0.0804998055,
-0.3218249977,
0.0064725401,
-0.1483469158,
-0.0503722616,
0.1498716623,
-0.3902206123,
0.3461689949,
-0.1646035314,
-0.1027217954,
0.0681311488,
0.1059607565,
-0.1619602293,
-0.0051335753,
0.5106235147,
-0.1675314009,
0.102222085,
0.2465296388,
0.0278735049,
-0.0904969126,
0.1305611879,
-0.2611622214,
-0.5131596923,
-0.3502134681,
0.2658132911,
0.0356026106,
-0.0744618401,
-0.2554311156,
0.0156026175,
0.0914213285,
0.2082774639,
-0.2133510113,
-0.2529437542,
-0.3055506349,
-0.0327625312,
0.2802274525,
0.3274256885,
-0.3259852231,
0.0016581784,
-0.1004468948,
-0.2188027948,
0.0414027795,
0.2085922211,
-0.3016658127,
0.2088793367,
-0.104451701,
0.1096088141,
0.1563944966,
-0.4672547579,
-0.2618286908,
0.2249240875,
0.0080278758,
-0.2027759999,
-0.1378243417,
-0.012152208,
-0.058922112,
0.1817512661,
0.0981102139,
0.3021401167,
-0.0610940158,
0.0481856167,
-0.2115162909,
-0.197669059,
-0.1029630899,
0.3457719386,
0.0422711484,
0.1390031278,
0.2000285685,
-0.2314841598,
0.0671962127,
-0.1334645003,
-0.0854794532,
0.2596311867,
0.170796454,
0.0681166425,
0.0315433294,
-0.046076566,
-0.5464987159,
0.2385165244,
0.1520850807,
0.2741982937,
-0.2650343478,
-0.0512846895,
-0.4634175599,
0.0776333138,
-0.3745078444,
-0.0832192674,
0.1788612157,
0.0678446814,
0.066940628,
0.1444493085,
-0.19192186,
0.2888279557,
-0.3069467843,
0.0401100479,
-0.1483062506,
0.185594067,
-0.1667275578,
-0.1352546215,
0.1729490608,
-0.103879638,
0.0582589023,
-0.2966474295,
-0.2748553455,
0.4825038314,
0.0012197669,
0.2237780094,
0.002674374,
0.05394933,
0.1286351532,
-0.2424883693,
-0.0404466353,
-0.0502867252,
0.0433804132,
0.0840272009,
-0.0127479434,
0.1394747198,
0.0792034268,
0.1023014262,
0.0895428732,
0.0503306985,
0.3731085062,
-0.0630995482,
0.0525553897,
-0.2071747482,
0.1640108079,
0.0410339087,
0.2085024714,
0.0219007451,
-0.2507736087,
-0.2435825318,
0.2033375949,
0.0275660157,
-0.0100003937,
0.2371495068,
-0.0452149399,
0.2026247531,
0.2026037127,
0.3036540747,
0.3462533057,
0.1128005683,
-0.2387435287,
0.2949957848,
-0.1616530567,
-0.0559896752,
0.0445131473,
-0.0829130337,
0.3669479191,
0.2743315697,
0.0693969429,
0.0740834028,
-0.4737313986,
-0.0784993023,
-0.0236855894,
0.4904199839,
-0.1245588735,
0.1172459498,
-0.2654000521,
-0.2774946094,
-0.2419726402,
-0.0375763476,
-0.1377545148,
-0.1387421489,
-0.1552968025,
0.066696398,
-0.0139740342,
0.2876707613,
-0.2312740833,
0.0697480962,
0.1242867634,
-0.2204566598,
-0.1328823715,
-0.2112715691,
-0.3053153753,
0.0875388831,
0.3674649,
0.0579072386,
0.3674761951,
-0.3410927951,
0.0082324529,
-0.0165083203,
-0.3201085329,
0.0844090581,
-0.1093897298,
0.1559102535,
0.070500873,
0.223752439,
-0.1700755656,
-0.2264109999,
0.6276735067,
-0.3136832416,
-0.1328911334,
0.0429497957,
-0.0383523256,
-0.2057213038,
-0.1820735335,
-0.5400707722,
-0.3777373433,
-0.2573294342,
0.0813766196,
0.2109511197,
0.2434428781,
0.4190809429,
0.344676733,
0.1439471543,
-0.1057146415,
-0.1207183972,
-0.1763256937,
-0.3949628174,
0.1005408987,
-0.2491053194,
-0.4323080182,
-0.0686041936,
0.0622896366,
0.5364884138,
0.0186182894,
-0.3495426774,
-0.2764158249,
-0.1668328047,
0.1295659095,
-0.121655412,
0.0708092377,
0.3206848502,
-0.0917444155,
-0.1171273738,
-0.0888179541,
-0.1010697708,
0.1604620814,
-0.0386743173,
-0.0627672672,
0.0926694497,
0.3357470632,
-0.0903460011,
0.5322237015,
-0.0121135712,
-0.3363138735,
0.4557913244,
-0.1320487112,
0.2421814948,
-0.3542275727,
-0.5656894445,
0.0709300116,
0.1588248312,
0.0466175228,
-0.0892005488,
0.0433329605,
-0.1022952646,
-0.3485795557,
-0.0869211778,
-0.3494550288,
0.0353455953,
0.0770683214,
0.09826985,
0.3366644382,
-0.0608086772,
-0.0907909721,
-0.1499727517,
0.0000456988,
0.1556257159,
0.3872845173,
0.0513737723,
0.1347046793,
-0.2912987769,
0.1288105547,
-0.3537061512,
0.292050451,
0.0504255369,
0.4000320137,
-0.0664479733,
-0.0068772384,
0.1397615224,
-0.0126542337,
0.3901390731,
-0.1633496135,
-0.0790513083,
0.1319676191,
-0.183836922,
-0.3492079377,
-0.069814682,
0.0587399341,
0.0006447062,
-0.077424027,
0.6436384916,
0.0331003629,
-0.373901099,
0.1939786971,
0.1273453534,
-0.1982407272,
-0.3113646507,
-0.2847267687,
-0.3292041719,
-0.3079225123,
-0.167328164,
-0.033028625,
0.3518636525,
0.2191112489,
0.0196075514,
-0.1298906803,
-0.0052580116,
-0.1280584335,
0.1828175634,
0.0681165829,
-0.007876575,
0.1463283449,
0.2076087445,
0.1599250883,
0.336904496,
0.5942884088,
-0.2568459213,
-0.5002080202,
-0.069515042,
0.0515007712,
0.2141078711,
-0.0290653054,
-0.1419428289,
-0.2385213077,
0.0311555974,
0.0931193754,
-0.2454928756,
0.2862402499,
0.3770499825,
-0.0355011337,
0.0286730882,
-0.3413774371,
0.4341708422,
0.0984894261,
0.0444133915,
0.4365955889,
-0.039364066,
-0.1395760328,
0.1474699378,
0.1455250978,
0.574657321,
-0.389690578,
-0.0765495524,
0.2728120685,
0.0444199257,
0.2513247728,
0.2226639241,
0.1271218359,
-0.3463572562,
-0.2068239152,
0.0074644722,
-0.0592943467,
0.3179737926,
0.0313772261,
0.0469740853,
0.173358202,
-0.0565875769,
0.3133540452,
0.0275612101,
0.3283925056,
-0.1047910675,
-0.235547632,
-0.4276834726,
0.2531487346,
-0.1058822125,
0.3252013922,
-0.0521181561,
-0.0042737871,
-0.0242892709,
-0.1516681463,
-0.0210352223,
0.119407557,
-0.3966789544,
0.1917483956,
0.2279840112,
-0.1549522281,
-0.0864304826,
0.3514222205,
0.2543947697,
-0.0126121603,
-0.1975794584,
0.1596453339,
-0.187848404,
-0.1674505323,
-0.1328978688,
-0.0586269684,
0.3143929243,
-0.181569308,
-0.1954335272,
0.0201100595,
0.0074792122,
-0.2071650475,
0.1628320515,
-0.1547801942,
0.2652647793,
-0.0332610495,
-0.2878686488,
-0.1409375817,
0.079295665,
0.0478118174,
0.2261353284,
-0.0548363924,
0.0920921639,
-0.0670451894,
-0.0501904227,
-0.2933436334,
0.0186876133,
0.4964334071,
0.074905403,
-0.1944496781,
0.4649342597,
0.1185266003,
0.0903023556,
-0.25607723,
0.041344896,
0.3066205382,
-0.4442827106,
0.0396263339,
0.1673026383,
0.1089711413,
0.1367329806,
0.3644804955,
0.142859742,
-0.3083028793,
0.0590526983,
-0.3313954771,
-0.4534528852,
0.0311845858,
-0.2731126249,
0.1910057068,
-0.0076504066,
0.3160249889,
0.1021534353,
-0.0591336712,
-0.386518985,
0.0673090294,
-0.1160155088,
0.0489228256,
0.3310281634,
0.0735163093,
0.2032902241,
-0.0891226679,
0.1981627941,
0.0538370125,
-0.2468807548,
-0.3302772045,
-0.0684817359,
0.0612501726,
0.1746396273,
-0.2562599778,
-0.0762535632,
-0.2349614054,
-0.2529825866,
0.0114954775,
0.1098112762,
0.1728823334,
-0.2346853614,
0.3075318336,
0.0471805818,
0.085889481,
0.27906847,
0.0373313315,
-0.1641241014,
0.1747580618,
0.0125610288,
-0.0096494574,
0.099606365,
-0.0931540504,
-0.0869722217,
-0.0447310954,
-0.2208999693,
0.0441733077,
0.1923547238,
-0.2863119543,
0.0854948908,
0.0788561627,
0.4498381317,
0.1056030691,
-0.294908762,
-0.0408126563,
0.3862757087,
0.3174156845,
-0.3185018301,
-0.1613309532,
0.1336794496,
0.1227292567,
-0.1282103062,
0.0181632396,
0.2363964766,
-0.0675224438,
-0.0451814719,
0.1025682613,
0.4315913916,
-0.2455129772,
0.2176318616,
0.4695021212,
0.0235086456,
0.0516937785,
0.1395698041,
0.1381318867,
0.1342352331,
0.4555005431,
-0.3275702894,
0.2404291928,
-0.15707995,
0.2462373376,
0.0463296846,
-0.5383800268,
0.0199326482,
0.0108307954,
-0.2100809216,
-0.0080192117,
-0.2629569173,
0.4218577743,
-0.0279818028,
-0.2109265774,
-0.1749638617,
0.2452013344,
-0.1166815236,
-0.0991652533,
-0.3662568033,
-0.0919809714,
-0.0586568974,
0.0180790499,
0.0055132592,
-0.0437005945,
0.3798266649,
0.0126415053,
-0.2145306468,
-0.2277995199,
-0.1313639283,
0.2539502978,
0.0252387784,
-0.0812410191,
0.4247591496,
0.2110419422,
-0.0581701621,
-0.025912771,
0.4645787179,
0.4278824925,
0.5090795755,
0.133122474,
0.0994664282,
-0.143477872,
-0.0065317657,
-0.0212687273,
0.2234344035,
-0.1036675796,
0.0454364195,
0.2647252083,
0.2319951653,
-0.1170491874,
0.2423410267,
-0.1334372312,
0.3304156959,
-0.13188003,
0.0945731178,
-0.0495402403,
-0.0016094772,
-0.1866309345,
0.3291617036,
-0.3130422831,
0.1827824563,
0.459287405,
-0.0043392917,
0.1730353087,
-0.1894546449,
0.1190744564,
-0.1630672663,
0.6306009889,
0.380558759,
0.0664858967,
-0.4218457937,
-0.2910124063,
-0.7276151776,
0.1564404964,
-0.0825872868,
0.0610881187,
0.0619007573,
-0.1140152887,
-0.0383040942,
0.1475934237,
-0.0285251793,
0.0744951442,
0.0371430181,
-0.0721936822,
-0.2592314482,
-0.0801675767,
-0.196553424,
-0.0701804161,
0.0204682071,
-0.4052911997,
0.2177488208,
-0.5241703391,
0.1381391883,
-0.1299020797,
0.0569439121,
0.0506626442,
0.1010558903,
0.339544028,
0.0200699233,
0.2591456175,
0.0223066956,
-0.07052885,
-0.2663030326,
-0.330578506,
-0.2319779843,
0.2840987742,
0.1264582425,
0.391876936,
-0.2800571024,
-0.092115432,
-0.4638871849,
0.1544593424,
-0.0375984274,
0.008761947,
-0.0498860031,
0.0706940442,
0.0008183373,
-0.0333773717,
0.227996394,
0.1686286628,
0.0579314865,
0.0951402336,
-0.4258278608,
-0.4247078001,
0.5030211806,
-0.2724656761,
-0.1122212932,
-0.014201358,
-0.1198403165,
0.1248239949,
-0.0938102454,
-0.6387230158,
0.3685269356,
0.3740671873,
-0.031184705,
-0.2184459418,
0.2790354192,
0.0766237974,
0.0881788582,
0.0055372408,
0.1160706207,
0.0205673855,
-0.1049907282,
-0.0778699517,
-0.1569487453
] |
https://github.com/huggingface/datasets/issues/3956 | TypeError: __init__() missing 1 required positional argument: 'scheme' | Hi @amirj, thanks for reporting.
At first sight, your issue seems a version incompatibility between your Elasticsearch client and your Elasticsearch server.
Feel free to have a look at Elasticsearch client docs: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/overview.html#_compatibility
> Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made. | ## Describe the bug
Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
squad = load_dataset('squad', split='validation')
squad.add_elasticsearch_index("context", host="localhost", port="9200")
```
## Expected results
[Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch)
## Actual results
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-8fb51aa33961> in <module>
1 from datasets import load_dataset
2 squad = load_dataset('squad', split='validation')
----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200")
~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config)
3777 """
3778 with self.formatted_as(type=None, columns=[column]):
-> 3779 super().add_elasticsearch_index(
3780 column=column,
3781 index_name=index_name,
~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config)
587 """
588 index_name = index_name if index_name is not None else column
--> 589 es_index = ElasticSearchIndex(
590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config
591 )
~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config)
123 from elasticsearch import Elasticsearch # noqa: F811
124
--> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}])
126 self.es_index_name = (
127 es_index_name
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport)
310
311 if _transport is None:
--> 312 node_configs = client_node_configs(
313 hosts,
314 cloud_id=cloud_id,
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs)
99 else:
100 assert hosts is not None
--> 101 node_configs = hosts_to_node_configs(hosts)
102
103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults.
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts)
142
143 elif isinstance(host, Mapping):
--> 144 node_configs.append(host_mapping_to_node_config(host))
145 else:
146 raise ValueError(
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host)
209 options["path_prefix"] = options.pop("url_prefix")
210
--> 211 return NodeConfig(**options) # type: ignore
212
213
TypeError: __init__() missing 1 required positional argument: 'scheme'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Mac
- Python version: 3.8.0
- PyArrow version: 7.0.0
- ElaticSearch Info:
{
"name" : "byname",
"cluster_name" : "elasticsearch_brew",
"cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA",
"version" : {
"number" : "7.10.2-SNAPSHOT",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "unknown",
"build_date" : "2021-01-16T01:41:27.115673Z",
"build_snapshot" : true,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
| 66 | TypeError: __init__() missing 1 required positional argument: 'scheme'
## Describe the bug
Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
squad = load_dataset('squad', split='validation')
squad.add_elasticsearch_index("context", host="localhost", port="9200")
```
## Expected results
[Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch)
## Actual results
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-8fb51aa33961> in <module>
1 from datasets import load_dataset
2 squad = load_dataset('squad', split='validation')
----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200")
~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config)
3777 """
3778 with self.formatted_as(type=None, columns=[column]):
-> 3779 super().add_elasticsearch_index(
3780 column=column,
3781 index_name=index_name,
~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config)
587 """
588 index_name = index_name if index_name is not None else column
--> 589 es_index = ElasticSearchIndex(
590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config
591 )
~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config)
123 from elasticsearch import Elasticsearch # noqa: F811
124
--> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}])
126 self.es_index_name = (
127 es_index_name
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport)
310
311 if _transport is None:
--> 312 node_configs = client_node_configs(
313 hosts,
314 cloud_id=cloud_id,
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs)
99 else:
100 assert hosts is not None
--> 101 node_configs = hosts_to_node_configs(hosts)
102
103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults.
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts)
142
143 elif isinstance(host, Mapping):
--> 144 node_configs.append(host_mapping_to_node_config(host))
145 else:
146 raise ValueError(
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host)
209 options["path_prefix"] = options.pop("url_prefix")
210
--> 211 return NodeConfig(**options) # type: ignore
212
213
TypeError: __init__() missing 1 required positional argument: 'scheme'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Mac
- Python version: 3.8.0
- PyArrow version: 7.0.0
- ElaticSearch Info:
{
"name" : "byname",
"cluster_name" : "elasticsearch_brew",
"cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA",
"version" : {
"number" : "7.10.2-SNAPSHOT",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "unknown",
"build_date" : "2021-01-16T01:41:27.115673Z",
"build_snapshot" : true,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
Hi @amirj, thanks for reporting.
At first sight, your issue seems a version incompatibility between your Elasticsearch client and your Elasticsearch server.
Feel free to have a look at Elasticsearch client docs: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/overview.html#_compatibility
> Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made. | [
-0.2016850263,
-0.3632028699,
-0.0670639575,
-0.1154993474,
-0.0156479795,
0.2479981333,
0.2341077775,
0.2877420485,
0.0638611168,
0.0936895311,
-0.0358448662,
0.3917693198,
-0.0215827525,
-0.152334705,
0.1281492412,
-0.2309139818,
0.121085614,
0.087432608,
0.1187869459,
-0.0516799912,
-0.2244480103,
0.2019564062,
-0.2399699688,
-0.1863757074,
0.0260687228,
0.0416941904,
-0.281126678,
0.0370436236,
-0.2842970788,
-0.5741453171,
0.5656750798,
-0.3205862045,
-0.0054031173,
0.3283087611,
-0.0001174942,
0.2588958144,
0.6181120276,
-0.070870921,
-0.1365975589,
-0.3066091239,
-0.2747555971,
-0.1212207898,
0.3674224615,
-0.3745529652,
-0.0447417274,
0.0033120096,
0.052850984,
-0.3770344555,
0.5422481894,
0.474177748,
0.1803839803,
0.1715567857,
0.4112608731,
-0.5131973028,
0.1866672337,
0.0686088055,
-0.1862741709,
0.0758131891,
-0.0755469725,
0.3040466607,
0.2885068357,
0.1322864741,
0.0819440186,
-0.0990729779,
0.0131786326,
0.1307261139,
0.1366858631,
-0.1495376378,
-0.2264224887,
-0.194740817,
0.2292087972,
-0.1556185931,
-0.4308762252,
0.1329660714,
0.1585823596,
-0.2405288368,
0.14714472,
-0.0151985036,
-0.0127603607,
0.1177387908,
0.3022183478,
-0.1775995642,
-0.3475022614,
0.5092264414,
0.0847174227,
0.1819162667,
-0.0808770731,
0.0391932651,
0.1065986156,
-0.1730144322,
0.0020133331,
0.3552635908,
0.0788009167,
0.252709955,
-0.2984156311,
-0.0282034855,
0.1122636944,
-0.246192798,
0.0884466097,
-0.1922887713,
-0.1135168672,
-0.1603745669,
0.5498575568,
0.1669120193,
-0.0451067202,
0.1012818217,
0.1200140268,
0.1737442166,
-0.049007941,
-0.0631368831,
0.2725943625,
-0.0562142171,
0.0272712186,
-0.3945193589,
0.1915056854,
-0.0452345572,
0.4555641115,
-0.1275632977,
-0.2430796176,
-0.058577273,
-0.31708166,
-0.0847008899,
0.0372951142,
0.1921493709,
0.232196629,
-0.4963364899,
0.4507412612,
0.3782169223,
-0.145913884,
0.1989922971,
-0.259350121,
0.1355430633,
-0.0163129698,
-0.0615728125,
0.1132288799,
-0.58444947,
0.4247122407,
0.2325557917,
-0.0374883786,
0.0610244833,
0.2157832682,
0.0300101079,
-0.2533140779,
0.1263980567,
-0.0347205289,
-0.2597734928,
0.1583043635,
0.0415071212,
-0.1471166164,
-0.0897269845,
-0.2763342261,
-0.5810432434,
-0.6209134459,
0.1893595457,
0.044520393,
-0.0496433303,
-0.1614013016,
0.0976208001,
0.2085873634,
-0.0586843453,
-0.1142825037,
-0.1084868237,
-0.1068545207,
0.0529944897,
0.2593818605,
0.2752767503,
-0.1447116137,
-0.2105154395,
-0.2179664671,
0.3615582883,
-0.1270294487,
0.0429474637,
-0.3336133957,
0.330368042,
-0.0799245983,
0.0909015909,
0.6981776357,
-0.5474752784,
-0.0536419302,
-0.2091817707,
-0.0626361072,
-0.2886890769,
0.0518553518,
-0.0723175406,
0.1295573115,
0.2020718008,
0.0836893022,
0.0188737437,
0.156858772,
-0.1904112399,
-0.301077038,
-0.0207562335,
-0.2133549154,
0.2194907367,
0.0688673705,
0.0743892342,
0.1130572036,
-0.0949399248,
-0.0289155561,
0.0968277603,
-0.0160929449,
0.3530196846,
0.447727114,
0.0474989042,
0.1451194733,
-0.2445705682,
-0.186145246,
0.0887330323,
0.1305076778,
0.4066120088,
-0.2754704654,
-0.0054867994,
-0.4557587206,
-0.0125355404,
-0.1999202669,
-0.0404614061,
0.047690399,
-0.1804461032,
0.0655059591,
0.0815154389,
-0.3663472235,
0.0903836116,
-0.2240103036,
0.087416254,
-0.4838053882,
0.3780785501,
-0.3399507403,
-0.2848972082,
-0.1005496234,
-0.127281487,
0.162595734,
-0.2289761454,
-0.252905786,
0.3170164526,
0.1585814059,
-0.1993494779,
-0.0094233891,
-0.2196142226,
0.0687942579,
-0.3717128038,
-0.1601184607,
0.1146563739,
0.0060175043,
0.0075713098,
-0.1409527957,
0.0491281226,
-0.0276780799,
0.1236103997,
-0.1865464598,
0.0244979896,
0.1674749106,
0.0128466589,
-0.2148431093,
-0.1568399817,
0.0762598366,
0.0110410759,
0.0965336114,
-0.2560921013,
-0.0806219056,
-0.2556485534,
0.1009649262,
0.1908090562,
0.0109869624,
0.3315634727,
0.0306276679,
-0.0241756272,
0.0200197026,
-0.2649319768,
0.5081581473,
0.1863701046,
-0.2549333572,
0.1788088381,
-0.1951348782,
0.0434972234,
0.3546721935,
0.077606909,
0.2782560587,
-0.0410640687,
0.2114385813,
0.2027515471,
-0.3051767051,
-0.4304826856,
-0.063165769,
0.2208944857,
-0.3955515921,
0.1845768094,
0.0268659834,
0.0299323853,
-0.0677968264,
0.0289350152,
0.140772447,
-0.2932099402,
-0.0042727776,
0.2873460054,
-0.0005063467,
0.2911942005,
-0.2152974308,
0.1278512627,
0.4924534261,
-0.2807107568,
-0.1180763692,
0.0015201593,
-0.1466072798,
0.0087545374,
0.0437357835,
0.2254190445,
0.2538788915,
-0.2099373043,
0.0073483945,
-0.1291221082,
-0.5952881575,
0.075783588,
-0.0007682078,
0.4424199462,
0.4109157324,
0.1672627479,
-0.5368112326,
-0.416403681,
0.3792355359,
-0.047238417,
-0.2670032084,
0.0130983731,
-0.2432999164,
-0.1095611677,
-0.0610098802,
-0.6315124035,
-0.1218555793,
-0.4427924454,
0.0928208604,
0.0293398183,
0.0403706655,
0.4282228649,
0.2001364976,
0.1551534981,
-0.0561065227,
0.0692987591,
-0.1925010979,
-0.0702749565,
0.3183072209,
-0.365151912,
-0.24668625,
-0.1141716465,
-0.1642150879,
0.2686992586,
0.260550648,
-0.0881302282,
-0.2447285503,
-0.012627136,
0.1801123023,
-0.3956003189,
0.1502328813,
0.5313319564,
0.0224416535,
0.0291626509,
-0.0647805333,
-0.2079590112,
0.4208350778,
0.3675064445,
0.1470497251,
0.02519417,
0.5940636396,
-0.0903488398,
0.6092325449,
0.1436546445,
-0.2190537751,
0.4205082953,
-0.2054324895,
0.1942408234,
-0.3542343676,
-0.4843166769,
-0.2542829216,
0.2180972546,
-0.0551194623,
-0.2035240233,
-0.0939923525,
-0.2704292834,
-0.1703050286,
-0.1012976617,
-0.121201247,
-0.0208712369,
0.0046925726,
0.1887580603,
0.343367964,
-0.0443460792,
0.0575896204,
-0.3259447217,
0.0016671884,
-0.0683998093,
0.2338466495,
0.1319118291,
0.1150978729,
-0.2470534742,
-0.0795559809,
-0.1544696838,
0.3256661594,
0.1169556454,
0.2916452587,
0.1058449894,
0.0895662606,
0.1443971694,
0.2772262096,
0.3966245353,
-0.2045557648,
-0.4413914382,
0.0668898597,
0.1947992295,
-0.7750583291,
-0.0795961171,
-0.0787116215,
0.4182648957,
0.3315994143,
0.4458388984,
-0.2620030642,
0.0044223866,
0.3199791312,
-0.0602931604,
0.1058488637,
-0.1303465068,
-0.3335364759,
-0.5129060745,
-0.1341396868,
0.3700286448,
0.2365700305,
0.1251822263,
0.5070937276,
0.0274126735,
-0.3214967847,
0.0636708811,
-0.2171641886,
0.192318812,
0.3074097931,
-0.0098900534,
0.124394469,
0.2359704673,
0.1119831949,
0.3207924366,
0.2626964748,
-0.0883225277,
-0.0588472076,
0.0378894508,
-0.1546806246,
0.2247171998,
0.2169940025,
0.0971577317,
0.0400168262,
-0.3238067627,
0.0872084647,
0.095722042,
-0.1948005259,
0.5735223889,
-0.0429391861,
-0.0428071395,
-0.3231016994,
0.4523458183,
-0.1763373464,
-0.0094866706,
0.4108854234,
0.5747950077,
-0.3028594255,
0.6433286071,
0.0456543006,
0.7333823442,
0.342000097,
-0.0309455264,
0.5441731215,
0.2750751078,
0.4632305801,
0.2398342341,
0.3763032854,
-0.1720003635,
-0.0170597862,
0.0250943862,
-0.3377430737,
0.1853722483,
-0.1375247985,
-0.4986566305,
0.1609332114,
-0.3430399597,
0.3382046223,
-0.046348393,
0.2973491251,
0.0624632016,
-0.102416575,
-0.4516431093,
0.1494488418,
0.1401235908,
0.2338626087,
-0.0219750069,
-0.1225459725,
-0.1575868428,
-0.2577480376,
-0.2149155736,
0.0575774051,
-0.0520627759,
0.7435450554,
-0.0738394856,
0.0425952487,
0.2508417964,
0.1905159652,
0.1567670405,
0.0009726366,
-0.1411323696,
0.1702786982,
0.1179479808,
-0.2572277188,
0.1557988673,
-0.1950736791,
0.1639709175,
-0.1295971125,
-0.3142544031,
0.0328382701,
-0.0778961852,
-0.5886424184,
-0.1574215591,
0.0573744141,
-0.3288891017,
-0.3205673695,
-0.3472570181,
0.0106522404,
-0.1085046381,
-0.1940376312,
0.124510996,
0.0390042961,
-0.0308049973,
0.1210401356,
0.1650289595,
-0.2093931884,
0.0741488412,
0.4086768925,
-0.028067572,
0.0270402748,
0.5184394121,
-0.1926462352,
-0.2022655606,
-0.0208795406,
-0.0876592547,
0.126249209,
-0.3552737534,
-0.089745231,
-0.1950103492,
0.1011487097,
0.1576728225,
0.0477469377,
0.2795789242,
0.215169251,
0.0041170008,
-0.0937475562,
0.0672170594,
0.1836233586,
0.1175286099,
0.1098424867,
-0.2728894651,
0.1238467097,
-0.0096153961,
-0.2254444808,
-0.2934088707,
0.1597344428,
0.0452329479,
0.1199346706,
-0.0889206231,
-0.0278149899,
0.3200847507,
-0.2754369676,
0.1265540272,
0.0370214731,
-0.2274043262,
-0.1628853083,
-0.2106007189,
0.1217702627,
-0.0909651369,
-0.0027850461,
0.0258362014,
-0.3257216513,
-0.2259400338,
-0.121236816,
-0.2047737539,
0.2418260127,
0.1094352305,
-0.1233031973,
0.0161567777,
-0.2745510936,
0.1940895468,
-0.0159845687,
0.0197214428,
-0.0510536954,
-0.1457766294,
0.362944901,
0.0059733894,
0.0136802187,
0.0033066743,
0.2253976017,
0.0292958468,
0.260613054,
0.1041989699,
-0.3508842587,
-0.1931650341,
0.0578512214,
0.1273363829,
0.3986720145,
-0.2369805276,
0.0844110623,
-0.2320035249,
0.2227539122,
-0.2696216106,
0.1304516941,
0.3413182795,
0.0784646794,
0.1504232287,
0.1456755549,
0.2320811599,
-0.0270160958,
-0.0238605421,
0.138624683,
0.3045579791,
-0.1886593997,
0.2423169464,
0.0842220411,
-0.0891971663,
0.0379270464,
0.2449096888,
0.1588852108,
0.3785715401,
0.2312901765,
-0.102415286,
0.2956628501,
0.0735333115,
-0.0640373677,
0.148750782,
0.1546942741,
0.1372421384,
0.2593190372,
0.0812720433,
-0.0683139339,
0.1351341158,
0.6648648977,
-0.089703761,
-0.2023631483,
-0.3087385297,
-0.0687496066,
-0.1276202798,
0.0604704544,
-0.0668836758,
-0.0928231031,
-0.2992689908,
-0.375615716,
0.047904443,
0.0159341283,
0.0976266488,
0.1030440554,
0.0444531515,
-0.1930871904,
-0.032337036,
0.3514101803,
0.2818714082,
-0.177168712,
0.2298278958,
0.2399116904,
-0.3965556324,
-0.1253994256,
0.5719944239,
0.4920843244,
0.2387233973,
0.0214508027,
0.2234820276,
0.145583868,
-0.2435920835,
0.1587711573,
0.0200721174,
0.0140650747,
-0.1239027828,
0.0497762524,
0.1379075497,
-0.0613912493,
0.0984879732,
-0.0411081016,
0.3550564349,
-0.2144333124,
-0.0778075904,
-0.369630605,
0.0789559856,
0.2608810663,
0.0933277309,
-0.3634060919,
0.0572085604,
0.3693162501,
0.0985735208,
-0.0165477507,
0.1355311275,
0.0779093206,
-0.0598513149,
0.0760091245,
0.337035954,
0.0100275651,
-0.1337283701,
-0.1390441805,
-0.382065624,
0.2383607924,
-0.2254505903,
-0.0263433624,
0.3816805482,
0.3424425721,
0.1084228605,
0.1420035064,
0.1700904965,
-0.4230798781,
-0.186435312,
0.0039453111,
-0.4493270218,
-0.0621820986,
0.1194182411,
0.0107768765,
0.0882923752,
-0.1244891584,
-0.1562018991,
-0.1389515251,
0.0730085522,
-0.375787586,
-0.036557205,
0.1598640233,
-0.3747065365,
0.198720172,
0.0218825657,
0.3247469366,
-0.1163717434,
-0.1917254031,
-0.1699686646,
-0.5526602864,
-0.1476731598,
0.4530313909,
0.1776515245,
0.4545646906,
-0.1042470858,
-0.5818837881,
-0.2607057393,
0.4505539834,
-0.0936076418,
-0.4287994504,
-0.4480636418,
0.2468056083,
-0.2083476037,
0.1132246926,
-0.1332438588,
0.1204760596,
-0.0437503345,
0.3304932117,
-0.1141430959,
-0.4131429493,
0.5429114699,
-0.3857056797,
-0.1052617356,
-0.064851068,
0.0815550983,
0.7078868151,
0.2600469589,
-0.3298375309,
-0.0870916247,
0.2487342805,
-0.1293997169,
-0.1544714272,
0.2363635451,
0.3838104606,
0.1634607315,
-0.1271196604,
0.1128419787,
0.008305572,
-0.0023451261,
-0.1084635407,
-0.2304186374
] |
https://github.com/huggingface/datasets/issues/3956 | TypeError: __init__() missing 1 required positional argument: 'scheme' | @albertvillanova It doesn't seem a version incompatibility between the client and server, since the following code is working:
```
from elasticsearch import Elasticsearch
es_client = Elasticsearch("http://localhost:9200")
dataset.add_elasticsearch_index(column="e1", es_client=es_client, es_index_name="e1_index")
``` | ## Describe the bug
Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
squad = load_dataset('squad', split='validation')
squad.add_elasticsearch_index("context", host="localhost", port="9200")
```
## Expected results
[Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch)
## Actual results
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-8fb51aa33961> in <module>
1 from datasets import load_dataset
2 squad = load_dataset('squad', split='validation')
----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200")
~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config)
3777 """
3778 with self.formatted_as(type=None, columns=[column]):
-> 3779 super().add_elasticsearch_index(
3780 column=column,
3781 index_name=index_name,
~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config)
587 """
588 index_name = index_name if index_name is not None else column
--> 589 es_index = ElasticSearchIndex(
590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config
591 )
~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config)
123 from elasticsearch import Elasticsearch # noqa: F811
124
--> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}])
126 self.es_index_name = (
127 es_index_name
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport)
310
311 if _transport is None:
--> 312 node_configs = client_node_configs(
313 hosts,
314 cloud_id=cloud_id,
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs)
99 else:
100 assert hosts is not None
--> 101 node_configs = hosts_to_node_configs(hosts)
102
103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults.
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts)
142
143 elif isinstance(host, Mapping):
--> 144 node_configs.append(host_mapping_to_node_config(host))
145 else:
146 raise ValueError(
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host)
209 options["path_prefix"] = options.pop("url_prefix")
210
--> 211 return NodeConfig(**options) # type: ignore
212
213
TypeError: __init__() missing 1 required positional argument: 'scheme'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Mac
- Python version: 3.8.0
- PyArrow version: 7.0.0
- ElaticSearch Info:
{
"name" : "byname",
"cluster_name" : "elasticsearch_brew",
"cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA",
"version" : {
"number" : "7.10.2-SNAPSHOT",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "unknown",
"build_date" : "2021-01-16T01:41:27.115673Z",
"build_snapshot" : true,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
| 30 | TypeError: __init__() missing 1 required positional argument: 'scheme'
## Describe the bug
Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
squad = load_dataset('squad', split='validation')
squad.add_elasticsearch_index("context", host="localhost", port="9200")
```
## Expected results
[Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch)
## Actual results
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-8fb51aa33961> in <module>
1 from datasets import load_dataset
2 squad = load_dataset('squad', split='validation')
----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200")
~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config)
3777 """
3778 with self.formatted_as(type=None, columns=[column]):
-> 3779 super().add_elasticsearch_index(
3780 column=column,
3781 index_name=index_name,
~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config)
587 """
588 index_name = index_name if index_name is not None else column
--> 589 es_index = ElasticSearchIndex(
590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config
591 )
~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config)
123 from elasticsearch import Elasticsearch # noqa: F811
124
--> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}])
126 self.es_index_name = (
127 es_index_name
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport)
310
311 if _transport is None:
--> 312 node_configs = client_node_configs(
313 hosts,
314 cloud_id=cloud_id,
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs)
99 else:
100 assert hosts is not None
--> 101 node_configs = hosts_to_node_configs(hosts)
102
103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults.
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts)
142
143 elif isinstance(host, Mapping):
--> 144 node_configs.append(host_mapping_to_node_config(host))
145 else:
146 raise ValueError(
~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host)
209 options["path_prefix"] = options.pop("url_prefix")
210
--> 211 return NodeConfig(**options) # type: ignore
212
213
TypeError: __init__() missing 1 required positional argument: 'scheme'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Mac
- Python version: 3.8.0
- PyArrow version: 7.0.0
- ElaticSearch Info:
{
"name" : "byname",
"cluster_name" : "elasticsearch_brew",
"cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA",
"version" : {
"number" : "7.10.2-SNAPSHOT",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "unknown",
"build_date" : "2021-01-16T01:41:27.115673Z",
"build_snapshot" : true,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
@albertvillanova It doesn't seem a version incompatibility between the client and server, since the following code is working:
```
from elasticsearch import Elasticsearch
es_client = Elasticsearch("http://localhost:9200")
dataset.add_elasticsearch_index(column="e1", es_client=es_client, es_index_name="e1_index")
``` | [
-0.2016850263,
-0.3632028699,
-0.0670639575,
-0.1154993474,
-0.0156479795,
0.2479981333,
0.2341077775,
0.2877420485,
0.0638611168,
0.0936895311,
-0.0358448662,
0.3917693198,
-0.0215827525,
-0.152334705,
0.1281492412,
-0.2309139818,
0.121085614,
0.087432608,
0.1187869459,
-0.0516799912,
-0.2244480103,
0.2019564062,
-0.2399699688,
-0.1863757074,
0.0260687228,
0.0416941904,
-0.281126678,
0.0370436236,
-0.2842970788,
-0.5741453171,
0.5656750798,
-0.3205862045,
-0.0054031173,
0.3283087611,
-0.0001174942,
0.2588958144,
0.6181120276,
-0.070870921,
-0.1365975589,
-0.3066091239,
-0.2747555971,
-0.1212207898,
0.3674224615,
-0.3745529652,
-0.0447417274,
0.0033120096,
0.052850984,
-0.3770344555,
0.5422481894,
0.474177748,
0.1803839803,
0.1715567857,
0.4112608731,
-0.5131973028,
0.1866672337,
0.0686088055,
-0.1862741709,
0.0758131891,
-0.0755469725,
0.3040466607,
0.2885068357,
0.1322864741,
0.0819440186,
-0.0990729779,
0.0131786326,
0.1307261139,
0.1366858631,
-0.1495376378,
-0.2264224887,
-0.194740817,
0.2292087972,
-0.1556185931,
-0.4308762252,
0.1329660714,
0.1585823596,
-0.2405288368,
0.14714472,
-0.0151985036,
-0.0127603607,
0.1177387908,
0.3022183478,
-0.1775995642,
-0.3475022614,
0.5092264414,
0.0847174227,
0.1819162667,
-0.0808770731,
0.0391932651,
0.1065986156,
-0.1730144322,
0.0020133331,
0.3552635908,
0.0788009167,
0.252709955,
-0.2984156311,
-0.0282034855,
0.1122636944,
-0.246192798,
0.0884466097,
-0.1922887713,
-0.1135168672,
-0.1603745669,
0.5498575568,
0.1669120193,
-0.0451067202,
0.1012818217,
0.1200140268,
0.1737442166,
-0.049007941,
-0.0631368831,
0.2725943625,
-0.0562142171,
0.0272712186,
-0.3945193589,
0.1915056854,
-0.0452345572,
0.4555641115,
-0.1275632977,
-0.2430796176,
-0.058577273,
-0.31708166,
-0.0847008899,
0.0372951142,
0.1921493709,
0.232196629,
-0.4963364899,
0.4507412612,
0.3782169223,
-0.145913884,
0.1989922971,
-0.259350121,
0.1355430633,
-0.0163129698,
-0.0615728125,
0.1132288799,
-0.58444947,
0.4247122407,
0.2325557917,
-0.0374883786,
0.0610244833,
0.2157832682,
0.0300101079,
-0.2533140779,
0.1263980567,
-0.0347205289,
-0.2597734928,
0.1583043635,
0.0415071212,
-0.1471166164,
-0.0897269845,
-0.2763342261,
-0.5810432434,
-0.6209134459,
0.1893595457,
0.044520393,
-0.0496433303,
-0.1614013016,
0.0976208001,
0.2085873634,
-0.0586843453,
-0.1142825037,
-0.1084868237,
-0.1068545207,
0.0529944897,
0.2593818605,
0.2752767503,
-0.1447116137,
-0.2105154395,
-0.2179664671,
0.3615582883,
-0.1270294487,
0.0429474637,
-0.3336133957,
0.330368042,
-0.0799245983,
0.0909015909,
0.6981776357,
-0.5474752784,
-0.0536419302,
-0.2091817707,
-0.0626361072,
-0.2886890769,
0.0518553518,
-0.0723175406,
0.1295573115,
0.2020718008,
0.0836893022,
0.0188737437,
0.156858772,
-0.1904112399,
-0.301077038,
-0.0207562335,
-0.2133549154,
0.2194907367,
0.0688673705,
0.0743892342,
0.1130572036,
-0.0949399248,
-0.0289155561,
0.0968277603,
-0.0160929449,
0.3530196846,
0.447727114,
0.0474989042,
0.1451194733,
-0.2445705682,
-0.186145246,
0.0887330323,
0.1305076778,
0.4066120088,
-0.2754704654,
-0.0054867994,
-0.4557587206,
-0.0125355404,
-0.1999202669,
-0.0404614061,
0.047690399,
-0.1804461032,
0.0655059591,
0.0815154389,
-0.3663472235,
0.0903836116,
-0.2240103036,
0.087416254,
-0.4838053882,
0.3780785501,
-0.3399507403,
-0.2848972082,
-0.1005496234,
-0.127281487,
0.162595734,
-0.2289761454,
-0.252905786,
0.3170164526,
0.1585814059,
-0.1993494779,
-0.0094233891,
-0.2196142226,
0.0687942579,
-0.3717128038,
-0.1601184607,
0.1146563739,
0.0060175043,
0.0075713098,
-0.1409527957,
0.0491281226,
-0.0276780799,
0.1236103997,
-0.1865464598,
0.0244979896,
0.1674749106,
0.0128466589,
-0.2148431093,
-0.1568399817,
0.0762598366,
0.0110410759,
0.0965336114,
-0.2560921013,
-0.0806219056,
-0.2556485534,
0.1009649262,
0.1908090562,
0.0109869624,
0.3315634727,
0.0306276679,
-0.0241756272,
0.0200197026,
-0.2649319768,
0.5081581473,
0.1863701046,
-0.2549333572,
0.1788088381,
-0.1951348782,
0.0434972234,
0.3546721935,
0.077606909,
0.2782560587,
-0.0410640687,
0.2114385813,
0.2027515471,
-0.3051767051,
-0.4304826856,
-0.063165769,
0.2208944857,
-0.3955515921,
0.1845768094,
0.0268659834,
0.0299323853,
-0.0677968264,
0.0289350152,
0.140772447,
-0.2932099402,
-0.0042727776,
0.2873460054,
-0.0005063467,
0.2911942005,
-0.2152974308,
0.1278512627,
0.4924534261,
-0.2807107568,
-0.1180763692,
0.0015201593,
-0.1466072798,
0.0087545374,
0.0437357835,
0.2254190445,
0.2538788915,
-0.2099373043,
0.0073483945,
-0.1291221082,
-0.5952881575,
0.075783588,
-0.0007682078,
0.4424199462,
0.4109157324,
0.1672627479,
-0.5368112326,
-0.416403681,
0.3792355359,
-0.047238417,
-0.2670032084,
0.0130983731,
-0.2432999164,
-0.1095611677,
-0.0610098802,
-0.6315124035,
-0.1218555793,
-0.4427924454,
0.0928208604,
0.0293398183,
0.0403706655,
0.4282228649,
0.2001364976,
0.1551534981,
-0.0561065227,
0.0692987591,
-0.1925010979,
-0.0702749565,
0.3183072209,
-0.365151912,
-0.24668625,
-0.1141716465,
-0.1642150879,
0.2686992586,
0.260550648,
-0.0881302282,
-0.2447285503,
-0.012627136,
0.1801123023,
-0.3956003189,
0.1502328813,
0.5313319564,
0.0224416535,
0.0291626509,
-0.0647805333,
-0.2079590112,
0.4208350778,
0.3675064445,
0.1470497251,
0.02519417,
0.5940636396,
-0.0903488398,
0.6092325449,
0.1436546445,
-0.2190537751,
0.4205082953,
-0.2054324895,
0.1942408234,
-0.3542343676,
-0.4843166769,
-0.2542829216,
0.2180972546,
-0.0551194623,
-0.2035240233,
-0.0939923525,
-0.2704292834,
-0.1703050286,
-0.1012976617,
-0.121201247,
-0.0208712369,
0.0046925726,
0.1887580603,
0.343367964,
-0.0443460792,
0.0575896204,
-0.3259447217,
0.0016671884,
-0.0683998093,
0.2338466495,
0.1319118291,
0.1150978729,
-0.2470534742,
-0.0795559809,
-0.1544696838,
0.3256661594,
0.1169556454,
0.2916452587,
0.1058449894,
0.0895662606,
0.1443971694,
0.2772262096,
0.3966245353,
-0.2045557648,
-0.4413914382,
0.0668898597,
0.1947992295,
-0.7750583291,
-0.0795961171,
-0.0787116215,
0.4182648957,
0.3315994143,
0.4458388984,
-0.2620030642,
0.0044223866,
0.3199791312,
-0.0602931604,
0.1058488637,
-0.1303465068,
-0.3335364759,
-0.5129060745,
-0.1341396868,
0.3700286448,
0.2365700305,
0.1251822263,
0.5070937276,
0.0274126735,
-0.3214967847,
0.0636708811,
-0.2171641886,
0.192318812,
0.3074097931,
-0.0098900534,
0.124394469,
0.2359704673,
0.1119831949,
0.3207924366,
0.2626964748,
-0.0883225277,
-0.0588472076,
0.0378894508,
-0.1546806246,
0.2247171998,
0.2169940025,
0.0971577317,
0.0400168262,
-0.3238067627,
0.0872084647,
0.095722042,
-0.1948005259,
0.5735223889,
-0.0429391861,
-0.0428071395,
-0.3231016994,
0.4523458183,
-0.1763373464,
-0.0094866706,
0.4108854234,
0.5747950077,
-0.3028594255,
0.6433286071,
0.0456543006,
0.7333823442,
0.342000097,
-0.0309455264,
0.5441731215,
0.2750751078,
0.4632305801,
0.2398342341,
0.3763032854,
-0.1720003635,
-0.0170597862,
0.0250943862,
-0.3377430737,
0.1853722483,
-0.1375247985,
-0.4986566305,
0.1609332114,
-0.3430399597,
0.3382046223,
-0.046348393,
0.2973491251,
0.0624632016,
-0.102416575,
-0.4516431093,
0.1494488418,
0.1401235908,
0.2338626087,
-0.0219750069,
-0.1225459725,
-0.1575868428,
-0.2577480376,
-0.2149155736,
0.0575774051,
-0.0520627759,
0.7435450554,
-0.0738394856,
0.0425952487,
0.2508417964,
0.1905159652,
0.1567670405,
0.0009726366,
-0.1411323696,
0.1702786982,
0.1179479808,
-0.2572277188,
0.1557988673,
-0.1950736791,
0.1639709175,
-0.1295971125,
-0.3142544031,
0.0328382701,
-0.0778961852,
-0.5886424184,
-0.1574215591,
0.0573744141,
-0.3288891017,
-0.3205673695,
-0.3472570181,
0.0106522404,
-0.1085046381,
-0.1940376312,
0.124510996,
0.0390042961,
-0.0308049973,
0.1210401356,
0.1650289595,
-0.2093931884,
0.0741488412,
0.4086768925,
-0.028067572,
0.0270402748,
0.5184394121,
-0.1926462352,
-0.2022655606,
-0.0208795406,
-0.0876592547,
0.126249209,
-0.3552737534,
-0.089745231,
-0.1950103492,
0.1011487097,
0.1576728225,
0.0477469377,
0.2795789242,
0.215169251,
0.0041170008,
-0.0937475562,
0.0672170594,
0.1836233586,
0.1175286099,
0.1098424867,
-0.2728894651,
0.1238467097,
-0.0096153961,
-0.2254444808,
-0.2934088707,
0.1597344428,
0.0452329479,
0.1199346706,
-0.0889206231,
-0.0278149899,
0.3200847507,
-0.2754369676,
0.1265540272,
0.0370214731,
-0.2274043262,
-0.1628853083,
-0.2106007189,
0.1217702627,
-0.0909651369,
-0.0027850461,
0.0258362014,
-0.3257216513,
-0.2259400338,
-0.121236816,
-0.2047737539,
0.2418260127,
0.1094352305,
-0.1233031973,
0.0161567777,
-0.2745510936,
0.1940895468,
-0.0159845687,
0.0197214428,
-0.0510536954,
-0.1457766294,
0.362944901,
0.0059733894,
0.0136802187,
0.0033066743,
0.2253976017,
0.0292958468,
0.260613054,
0.1041989699,
-0.3508842587,
-0.1931650341,
0.0578512214,
0.1273363829,
0.3986720145,
-0.2369805276,
0.0844110623,
-0.2320035249,
0.2227539122,
-0.2696216106,
0.1304516941,
0.3413182795,
0.0784646794,
0.1504232287,
0.1456755549,
0.2320811599,
-0.0270160958,
-0.0238605421,
0.138624683,
0.3045579791,
-0.1886593997,
0.2423169464,
0.0842220411,
-0.0891971663,
0.0379270464,
0.2449096888,
0.1588852108,
0.3785715401,
0.2312901765,
-0.102415286,
0.2956628501,
0.0735333115,
-0.0640373677,
0.148750782,
0.1546942741,
0.1372421384,
0.2593190372,
0.0812720433,
-0.0683139339,
0.1351341158,
0.6648648977,
-0.089703761,
-0.2023631483,
-0.3087385297,
-0.0687496066,
-0.1276202798,
0.0604704544,
-0.0668836758,
-0.0928231031,
-0.2992689908,
-0.375615716,
0.047904443,
0.0159341283,
0.0976266488,
0.1030440554,
0.0444531515,
-0.1930871904,
-0.032337036,
0.3514101803,
0.2818714082,
-0.177168712,
0.2298278958,
0.2399116904,
-0.3965556324,
-0.1253994256,
0.5719944239,
0.4920843244,
0.2387233973,
0.0214508027,
0.2234820276,
0.145583868,
-0.2435920835,
0.1587711573,
0.0200721174,
0.0140650747,
-0.1239027828,
0.0497762524,
0.1379075497,
-0.0613912493,
0.0984879732,
-0.0411081016,
0.3550564349,
-0.2144333124,
-0.0778075904,
-0.369630605,
0.0789559856,
0.2608810663,
0.0933277309,
-0.3634060919,
0.0572085604,
0.3693162501,
0.0985735208,
-0.0165477507,
0.1355311275,
0.0779093206,
-0.0598513149,
0.0760091245,
0.337035954,
0.0100275651,
-0.1337283701,
-0.1390441805,
-0.382065624,
0.2383607924,
-0.2254505903,
-0.0263433624,
0.3816805482,
0.3424425721,
0.1084228605,
0.1420035064,
0.1700904965,
-0.4230798781,
-0.186435312,
0.0039453111,
-0.4493270218,
-0.0621820986,
0.1194182411,
0.0107768765,
0.0882923752,
-0.1244891584,
-0.1562018991,
-0.1389515251,
0.0730085522,
-0.375787586,
-0.036557205,
0.1598640233,
-0.3747065365,
0.198720172,
0.0218825657,
0.3247469366,
-0.1163717434,
-0.1917254031,
-0.1699686646,
-0.5526602864,
-0.1476731598,
0.4530313909,
0.1776515245,
0.4545646906,
-0.1042470858,
-0.5818837881,
-0.2607057393,
0.4505539834,
-0.0936076418,
-0.4287994504,
-0.4480636418,
0.2468056083,
-0.2083476037,
0.1132246926,
-0.1332438588,
0.1204760596,
-0.0437503345,
0.3304932117,
-0.1141430959,
-0.4131429493,
0.5429114699,
-0.3857056797,
-0.1052617356,
-0.064851068,
0.0815550983,
0.7078868151,
0.2600469589,
-0.3298375309,
-0.0870916247,
0.2487342805,
-0.1293997169,
-0.1544714272,
0.2363635451,
0.3838104606,
0.1634607315,
-0.1271196604,
0.1128419787,
0.008305572,
-0.0023451261,
-0.1084635407,
-0.2304186374
] |
https://github.com/huggingface/datasets/issues/3956 | TypeError: __init__() missing 1 required positional argument: 'scheme' | "Hi @amirj, \r\n\r\nI really think it is a version incompatibility issue between your Elasticsearch (...TRUNCATED) | "## Describe the bug\r\nBased on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elast(...TRUNCATED) | 125 | "TypeError: __init__() missing 1 required positional argument: 'scheme' \n ## Describe the bug\r\nBa(...TRUNCATED) | [-0.2016850263,-0.3632028699,-0.0670639575,-0.1154993474,-0.0156479795,0.2479981333,0.2341077775,0.2(...TRUNCATED) |
End of preview.
No dataset card yet
New: Create and edit this dataset card directly on the website!
Contribute a Dataset Card- Downloads last month
- 16