From d2df81d907caad92e3c393c68e696b02cf76d4d8 Mon Sep 17 00:00:00 2001 From: ines Date: Fri, 27 Oct 2017 18:09:28 +0200 Subject: [PATCH] Fix not implemented Span getters --- spacy/tokens/span.pyx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spacy/tokens/span.pyx b/spacy/tokens/span.pyx index 6f760bfbc..2ef1d1b82 100644 --- a/spacy/tokens/span.pyx +++ b/spacy/tokens/span.pyx @@ -475,14 +475,16 @@ cdef class Span: span, in the syntactic dependency parse. """ # TODO: implement - raise NotImplementedError() + def __get__(self): + raise NotImplementedError() property n_rights: """RETURNS (int): The number of rightward immediate children of the span, in the syntactic dependency parse. """ # TODO: implement - raise NotImplementedError() + def __get__(self): + raise NotImplementedError() property subtree: """Tokens that descend from tokens in the span, but fall outside it.