Add missing Span.vocab property. Closes #1633

This commit is contained in:
Matthew Honnibal 2018-01-14 15:06:30 +01:00
parent 0cb090e526
commit 465a6f6452
1 changed files with 5 additions and 0 deletions

View File

@ -261,6 +261,11 @@ cdef class Span:
self.start = start self.start = start
self.end = end + 1 self.end = end + 1
property vocab:
"""RETURNS (Vocab): The Span's Doc's vocab."""
def __get__(self):
return self.doc.vocab
property sent: property sent:
"""RETURNS (Span): The sentence span that the span is a part of.""" """RETURNS (Span): The sentence span that the span is a part of."""
def __get__(self): def __get__(self):