mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-29 09:23:12 +03:00
Add missing return statement in SentenceSegmenter
This commit is contained in:
parent
aab299c8ae
commit
ed8da9b11f
|
@ -69,6 +69,7 @@ class SentenceSegmenter(object):
|
||||||
|
|
||||||
def __call__(self, doc):
|
def __call__(self, doc):
|
||||||
doc.user_hooks['sents'] = self.strategy
|
doc.user_hooks['sents'] = self.strategy
|
||||||
|
return doc
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def split_on_punct(doc):
|
def split_on_punct(doc):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user