Port over fix from #1070

This commit is contained in:
ines 2017-06-03 11:31:11 +02:00
parent 71954d5fe7
commit 5109bba910
1 changed files with 2 additions and 1 deletions

View File

@ -437,7 +437,8 @@ cdef class Doc:
""" """
def __get__(self): def __get__(self):
if 'sents' in self.user_hooks: if 'sents' in self.user_hooks:
return self.user_hooks['sents'](self) yield from self.user_hooks['sents'](self)
return
if not self.is_parsed: if not self.is_parsed:
raise ValueError( raise ValueError(