mirror of https://github.com/explosion/spaCy.git
Add missing Span.vocab property. Closes #1633
This commit is contained in:
parent
0cb090e526
commit
465a6f6452
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue