Spaces:
Paused
Paused
Download scripts/inspect_dataset.py from Abdalkaderdev/ORA: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/Abdalkaderdev/ORA/resolve/main/scripts/inspect_dataset.py
- Command line
-
hf download hf://spaces/Abdalkaderdev/ORA/scripts/inspect_dataset.py
-
curl -L -o inspect_dataset.py https://huggingface.co/spaces/Abdalkaderdev/ORA/resolve/main/scripts/inspect_dataset.py
470 Bytes
| from datasets import load_dataset | |
| def inspect(): | |
| print("Loading dataset (streaming)...") | |
| # Streaming to avoid downloading everything if it's huge | |
| ds = load_dataset("bible-nlp/biblenlp-corpus", split="train", streaming=True, trust_remote_code=True) | |
| print("Fetching first 5 examples...") | |
| count = 0 | |
| for example in ds: | |
| print(example) | |
| count += 1 | |
| if count >= 5: | |
| break | |
| if __name__ == "__main__": | |
| inspect() | |