mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix assignment of iterator on Doc object
This commit is contained in:
parent
02c23cc1d0
commit
276fbe9996
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user