Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -21,9 +21,14 @@ Each document exists as a collection of a pdf, a tiff image with the same conten
|
|
21 |
|
22 |
### Usage
|
23 |
|
24 |
-
This instance of IDL is in [webdataset](https://github.com/webdataset/webdataset/commits/main) .tar format. It can be used with webdataset library or
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
### Data Splits
|
29 |
|
|
|
21 |
|
22 |
### Usage
|
23 |
|
24 |
+
This instance of IDL is in [webdataset](https://github.com/webdataset/webdataset/commits/main) .tar format. It can be used with webdataset library or current releases of Hugging Face `datasets`.
|
25 |
+
Here is an example using the "streaming" parameter. We do recommend downloading the dataset to save bandwidth.
|
26 |
+
|
27 |
+
```python
|
28 |
+
dataset = load_dataset('pixparse/IDL-wds', streaming=True)
|
29 |
+
print(next(iter(dataset['train'])).keys())
|
30 |
+
>> dict_keys(['__key__', '__url__', 'json', 'ocr', 'pdf', 'tif'])
|
31 |
+
```
|
32 |
|
33 |
### Data Splits
|
34 |
|