Mirror 1ca9e60 from github.com/open-reaction-database/ord-data
Browse files
README.md
CHANGED
|
@@ -257,10 +257,13 @@ place.
|
|
| 257 |
### Option 2: Download only the data (a subset, or without Git history)
|
| 258 |
|
| 259 |
```bash
|
| 260 |
-
pip install
|
| 261 |
python scripts/download_from_huggingface.py
|
| 262 |
```
|
| 263 |
|
|
|
|
|
|
|
|
|
|
| 264 |
The script mirrors the `data/` directory from the Hugging Face dataset into your
|
| 265 |
local checkout. Pass `--allow-pattern 'data/4d/*.pb.gz'` (repeatable) to download
|
| 266 |
only a subset, or `--output-dir <path>` to write somewhere other than the
|
|
@@ -331,7 +334,9 @@ rxn_json = json.loads(
|
|
| 331 |
)
|
| 332 |
)
|
| 333 |
|
| 334 |
-
print(
|
|
|
|
|
|
|
| 335 |
```
|
| 336 |
|
| 337 |
## Git LFS and the Hugging Face mirror
|
|
|
|
| 257 |
### Option 2: Download only the data (a subset, or without Git history)
|
| 258 |
|
| 259 |
```bash
|
| 260 |
+
pip install huggingface_hub
|
| 261 |
python scripts/download_from_huggingface.py
|
| 262 |
```
|
| 263 |
|
| 264 |
+
(If you use [uv](https://docs.astral.sh/uv/), `uv run scripts/download_from_huggingface.py`
|
| 265 |
+
installs the dependencies for you.)
|
| 266 |
+
|
| 267 |
The script mirrors the `data/` directory from the Hugging Face dataset into your
|
| 268 |
local checkout. Pass `--allow-pattern 'data/4d/*.pb.gz'` (repeatable) to download
|
| 269 |
only a subset, or `--output-dir <path>` to write somewhere other than the
|
|
|
|
| 334 |
)
|
| 335 |
)
|
| 336 |
|
| 337 |
+
print(
|
| 338 |
+
f"We have converted the {input_fname} to JSON format shown as below, \n{rxn_json}"
|
| 339 |
+
)
|
| 340 |
```
|
| 341 |
|
| 342 |
## Git LFS and the Hugging Face mirror
|