diff --git a/spacy/tokens/span.pyx b/spacy/tokens/span.pyx index f09dfd134..10b8a7820 100644 --- a/spacy/tokens/span.pyx +++ b/spacy/tokens/span.pyx @@ -261,6 +261,11 @@ cdef class Span: self.start = start self.end = end + 1 + property vocab: + """RETURNS (Vocab): The Span's Doc's vocab.""" + def __get__(self): + return self.doc.vocab + property sent: """RETURNS (Span): The sentence span that the span is a part of.""" def __get__(self):