* Fix assignment of iterator on Doc object

This commit is contained in:
Matthew Honnibal 2016-05-02 15:26:24 +02:00
parent 02c23cc1d0
commit 276fbe9996

View File

@ -7,8 +7,6 @@ from ..structs cimport TokenC, LexemeC
from ..typedefs cimport attr_t
from ..attrs cimport attr_id_t
from spacy.syntax.iterators cimport DocIterator
cdef attr_t get_token_attr(const TokenC* token, attr_id_t feat_name) nogil
@ -44,7 +42,7 @@ cdef class Doc:
cdef int length
cdef int max_length
cdef DocIterator noun_chunks_iterator
cdef public object noun_chunks_iterator
cdef int push_back(self, LexemeOrToken lex_or_tok, bint trailing_space) except -1