Spaces:
Sleeping
Sleeping
Download build_spacy.py from NeuroCheckAI/neurocheck: direct link, hf CLI and curl.
- Browser
- Download file 208 Bytes
-
https://huggingface.co/spaces/NeuroCheckAI/neurocheck/resolve/main/build_spacy.py
- Command line
-
hf download hf://spaces/NeuroCheckAI/neurocheck/build_spacy.py
-
curl -L -o build_spacy.py https://huggingface.co/spaces/NeuroCheckAI/neurocheck/resolve/main/build_spacy.py
208 Bytes
| from pathlib import Path | |
| import spacy | |
| from spacy.lang.en import English | |
| nlp = English() | |
| nlp.add_pipe("sentencizer") | |
| Path("en_model").mkdir(exist_ok=True) | |
| nlp.to_disk("en_model") | |
| print("spaCy model built OK") | |