load_dataset does not read jsonl metadata file properly
MEMBER
Can you try to remove "drop_labels=false" ? It may force the loader to infer the labels instead of reading the metadata
2022-11-22T13:38:14Z
https://github.com/huggingface/datasets/issues/5278#issuecomment-1323693021
https://api.github.com/repos/huggingface/datasets/issues/5278
IC_kwDODunzps5O5fPd
https://api.github.com/repos/huggingface/datasets/issues/comments/1323693021/reactions
2022-11-22T13:38:14Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1323693021
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Hi, thanks for responding. I tried that, but it does not change anything.
2022-11-22T13:42:44Z
https://github.com/huggingface/datasets/issues/5278#issuecomment-1323698673
https://api.github.com/repos/huggingface/datasets/issues/5278
IC_kwDODunzps5O5gnx
https://api.github.com/repos/huggingface/datasets/issues/comments/1323698673/reactions
2022-11-22T13:42:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1323698673
https://avatars.githubusercontent.com/u/81414263?v=4
https://api.github.com/users/065294847/events{/privacy}
https://api.github.com/users/065294847/followers
https://api.github.com/users/065294847/following{/other_user}
https://api.github.com/users/065294847/gists{/gist_id}
https://github.com/065294847
065294847
MDQ6VXNlcjgxNDE0MjYz
https://api.github.com/users/065294847/orgs
https://api.github.com/users/065294847/received_events
https://api.github.com/users/065294847/repos
https://api.github.com/users/065294847/starred{/owner}{/repo}
https://api.github.com/users/065294847/subscriptions
User
https://api.github.com/users/065294847
public
MEMBER
Can you try updating `datasets` ? Metadata support was added in `datasets` 2.4
2022-11-22T13:45:12Z
https://github.com/huggingface/datasets/issues/5278#issuecomment-1323701859
https://api.github.com/repos/huggingface/datasets/issues/5278
IC_kwDODunzps5O5hZj
https://api.github.com/repos/huggingface/datasets/issues/comments/1323701859/reactions
2022-11-22T13:45:12Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1323701859
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Probably the issue, will report back asap!
2022-11-22T13:57:37Z
https://github.com/huggingface/datasets/issues/5278#issuecomment-1323719231
https://api.github.com/repos/huggingface/datasets/issues/5278
IC_kwDODunzps5O5lo_
https://api.github.com/repos/huggingface/datasets/issues/comments/1323719231/reactions
2022-11-22T13:57:37Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1323719231
https://avatars.githubusercontent.com/u/81414263?v=4
https://api.github.com/users/065294847/events{/privacy}
https://api.github.com/users/065294847/followers
https://api.github.com/users/065294847/following{/other_user}
https://api.github.com/users/065294847/gists{/gist_id}
https://github.com/065294847
065294847
MDQ6VXNlcjgxNDE0MjYz
https://api.github.com/users/065294847/orgs
https://api.github.com/users/065294847/received_events
https://api.github.com/users/065294847/repos
https://api.github.com/users/065294847/starred{/owner}{/repo}
https://api.github.com/users/065294847/subscriptions
User
https://api.github.com/users/065294847
public
NONE
Okay, now it seems to actually load the metadata and create the train_split, but it still says only returns "image" and "label", which is always 0 since all images are from same folder
2022-11-22T14:27:03Z
https://github.com/huggingface/datasets/issues/5278#issuecomment-1323761772
https://api.github.com/repos/huggingface/datasets/issues/5278
IC_kwDODunzps5O5wBs
https://api.github.com/repos/huggingface/datasets/issues/comments/1323761772/reactions
2022-11-22T14:27:03Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1323761772
https://avatars.githubusercontent.com/u/81414263?v=4
https://api.github.com/users/065294847/events{/privacy}
https://api.github.com/users/065294847/followers
https://api.github.com/users/065294847/following{/other_user}
https://api.github.com/users/065294847/gists{/gist_id}
https://github.com/065294847
065294847
MDQ6VXNlcjgxNDE0MjYz
https://api.github.com/users/065294847/orgs
https://api.github.com/users/065294847/received_events
https://api.github.com/users/065294847/repos
https://api.github.com/users/065294847/starred{/owner}{/repo}
https://api.github.com/users/065294847/subscriptions
User
https://api.github.com/users/065294847
public
NONE
> Can you try updating `datasets` ? Metadata support was added in `datasets` 2.4

Update: This was the issue.
2022-11-23T11:38:35Z
https://github.com/huggingface/datasets/issues/5278#issuecomment-1324922793
https://api.github.com/repos/huggingface/datasets/issues/5278
IC_kwDODunzps5O-Lep
https://api.github.com/repos/huggingface/datasets/issues/comments/1324922793/reactions
2022-11-23T11:38:35Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1324922793
https://avatars.githubusercontent.com/u/81414263?v=4
https://api.github.com/users/065294847/events{/privacy}
https://api.github.com/users/065294847/followers
https://api.github.com/users/065294847/following{/other_user}
https://api.github.com/users/065294847/gists{/gist_id}
https://github.com/065294847
065294847
MDQ6VXNlcjgxNDE0MjYz
https://api.github.com/users/065294847/orgs
https://api.github.com/users/065294847/received_events
https://api.github.com/users/065294847/repos
https://api.github.com/users/065294847/starred{/owner}{/repo}
https://api.github.com/users/065294847/subscriptions
User
https://api.github.com/users/065294847
public
### Describe the bug

Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features. 

Below is code to reproduce my exact example/problem.

### Steps to reproduce the bug

```ruby 
dataset_link="19Unu89Ih_kP6zsE7f9Mkw8dy3NwHopRF"
id = dataset_link
output = 'Godardv01.zip'
gdown.download(id=id, output=output, quiet=False)

ds = load_dataset("imagefolder", data_dir="/kaggle/working/Volumes/TOSHIBA/Godard_imgs/Volumes/TOSHIBA/Godard_imgs/Full/train", split="train", drop_labels=False)
print(ds)
```

### Expected behavior

I would expect that it returned "image" and "text" columns from the code above.

### Environment info

- `datasets` version: 2.1.0
- Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid
- Python version: 3.7.12
- PyArrow version: 5.0.0
- Pandas version: 1.3.5