Spaces:
Sleeping
Sleeping
Download check_vocab.py from ArushBuilds/Pragya: direct link, hf CLI and curl.
- Browser
- Download file 105 Bytes
-
https://huggingface.co/spaces/ArushBuilds/Pragya/resolve/067c53c6c29fd4381fdca510a91dbbbe39bc9aa0/check_vocab.py
- Command line
-
hf download hf://spaces/ArushBuilds/Pragya@067c53c6c29fd4381fdca510a91dbbbe39bc9aa0/check_vocab.py
-
curl -L -o check_vocab.py https://huggingface.co/spaces/ArushBuilds/Pragya/resolve/067c53c6c29fd4381fdca510a91dbbbe39bc9aa0/check_vocab.py
105 Bytes
| import json | |
| v = json.load(open('vocab.json')) | |
| print(f'Current vocab size: {len(v["char_to_idx"])}') | |