Tsunnami commited on
Commit
de0a638
·
verified ·
1 Parent(s): bd64d89

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -0
README.md CHANGED
@@ -89,5 +89,18 @@ from datasets import load_dataset
89
  dataset = load_dataset("hf_datasets/en-th-bible")
90
  ```
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  ## License
93
  This dataset is released as unlicensed.
 
89
  dataset = load_dataset("hf_datasets/en-th-bible")
90
  ```
91
 
92
+ ## Streaming the Dataset
93
+ For efficient memory usage, especially when working with large datasets, you can stream the dataset:
94
+ ```python
95
+ from datasets import load_dataset
96
+
97
+ streamed_dataset = load_dataset("hf_datasets/en-th-bible", streaming=True)
98
+
99
+ for example in streamed_dataset["train"]:
100
+ print(example["en"])
101
+ ```
102
+
103
+ Streaming is particularly useful when you want to process the dataset sequentially without loading it entirely into memory.
104
+
105
  ## License
106
  This dataset is released as unlicensed.