File size: 208 Bytes
a4f8c46
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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")