mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 13:17:06 +03:00
1.0 KiB
1.0 KiB
title | tag | source | new |
---|---|---|---|
SentenceRecognizer | class | spacy/pipeline/senter.pyx | 3 |
A trainable pipeline component for sentence segmentation. For a simpler,
ruse-based strategy, see the Sentencizer
. This class is a
subclass of Pipe
and follows the same API. The component is also available via
the string name "senter"
.
Implementation and defaults
See the model architectures documentation for details on the architectures and their arguments and hyperparameters. To learn more about how to customize the config and train custom models, check out the training config docs.
https://github.com/explosion/spaCy/blob/develop/spacy/pipeline/senter.pyx
SentenceRecognizer.__init__
Initialize the sentence recognizer.
Example
# Construction via add_pipe senter = nlp.add_pipe("senter")