how to load dataset.arrow .

#24
by victor888666888 - opened

how to load dataset.arrow .

ctheodoris changed discussion status to closed

Thank you

i am using the following code ,
from datasets import load_from_disk
data = load_from_disk("Genecorpus-30M/example_input_files/cell_classification/disease_classification/human_dcm_hcm_nf.dataset")

with the following three files - dataset.arrow - dataset_info.json - state.json
dataset_info.json

SHA256: 75735922c17d166a6afcefe21a10a2010dfaa4bd30268b305bc744bb60f26ff1
Pointer size: 129 Bytes
Size of remote file: 1.18 kB

state.json

version https://git-lfs.github.com/spec/v1
oid sha256:582518214102617ce376fb423736e0dd26ea1c9ca3e94ad061c688b1594e8f72
size 383

but read json error ,i think the state.json need to be like this

{
"_data_files": [
{
"filename": "data-00000-of-00003.arrow"
},
{
"filename": "data-00001-of-00003.arrow"
},
{
"filename": "data-00002-of-00003.arrow"
}
],
"_fingerprint": "118d243c219b9f69",
"_format_columns": null,
"_format_kwargs": {},
"_format_type": null,
"_output_all_columns": false,
"_split": null
}

Am i right ?

It looks like from the size of the pointer vs remote file in your message that you don’t have the actual file downloaded but only a pointer. You should use git lfs to download the full file or you can use wget with the url of the file that you can get from the down arrow next to the file in the repository web view. Please also see closed discussion 3.

Sign up or log in to comment