Download packages/simplecc-wasm/OpenCC/data/scripts/reverse.py from echodict/readest: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/datasets/echodict/readest/resolve/main/packages/simplecc-wasm/OpenCC/data/scripts/reverse.py
- Command line
-
hf download hf://datasets/echodict/readest/packages/simplecc-wasm/OpenCC/data/scripts/reverse.py
-
curl -L -o reverse.py https://huggingface.co/datasets/echodict/readest/resolve/main/packages/simplecc-wasm/OpenCC/data/scripts/reverse.py
274 Bytes
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| from common import reverse_items | |
| if len(sys.argv) != 3: | |
| print("Reverse key and value of all pairs") | |
| print(("Usage: ", sys.argv[0], "[input] [output]")) | |
| exit(1) | |
| reverse_items(sys.argv[1], sys.argv[2]) | |