Update README.md
Browse files
README.md
CHANGED
|
@@ -55,22 +55,8 @@ This phase covers **110 languages** plus code, with inverse temperature sampling
|
|
| 55 |
For mid-training, see the ModernBERT repo: https://github.com/AnswerDotAI/ModernBERT
|
| 56 |
|
| 57 |
### Direct Access
|
|
|
|
| 58 |
|
| 59 |
-
```python
|
| 60 |
-
from streaming import StreamingDataset
|
| 61 |
-
|
| 62 |
-
# Load the streaming dataset
|
| 63 |
-
dataset = StreamingDataset(
|
| 64 |
-
remote='https://huggingface.co/datasets/jhu-clsp/mmbert-midtraining',
|
| 65 |
-
local='/tmp/mmbert-midtraining-data',
|
| 66 |
-
shuffle=True
|
| 67 |
-
)
|
| 68 |
-
|
| 69 |
-
# Access samples
|
| 70 |
-
for sample in dataset:
|
| 71 |
-
text = sample['text']
|
| 72 |
-
# Process your data...
|
| 73 |
-
```
|
| 74 |
|
| 75 |
## 🔗 Related Resources
|
| 76 |
|
|
|
|
| 55 |
For mid-training, see the ModernBERT repo: https://github.com/AnswerDotAI/ModernBERT
|
| 56 |
|
| 57 |
### Direct Access
|
| 58 |
+
Use the script at [this link](https://github.com/JHU-CLSP/mmBERT/blob/main/data/online_streaming.py) to load any section of the dataset on the fly. This will fail if you try to access too many samples though, due to HF rate-limiting. To download the full dataset, use HF Hub's [Snapshot Download](https://huggingface.co/docs/huggingface_hub/v1.0.0.rc6/en/package_reference/file_download#huggingface_hub.snapshot_download).
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
## 🔗 Related Resources
|
| 62 |
|