Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude parser when running Spacy model
Doesn't load unnecessary components when loading the Spacy sentence segmentation model. This should improve performance. > The SentenceRecognizer is a simple statistical component that only provides sentence boundaries. Along with being faster and smaller than the parser, its primary advantage is that it’s easier to train because it only requires annotated sentence boundaries rather than full dependency parses. spaCy’s trained pipelines include both a parser and a trained sentence segmenter, which is disabled by default. If you only need sentence boundaries and no parser, you can use the exclude or disable argument on spacy.load https://spacy.io/usage/linguistic-features/#sbd-senter
- Loading branch information