diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index cb9b325e5..0fe5dc4ff 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -116,8 +116,9 @@ cdef class Doc: self.is_tagged = False self.is_parsed = False self.sentiment = 0.0 - self.getters_for_tokens = {} - self.getters_for_spans = {} + self.user_hooks = {} + self.user_token_hooks = {} + self.user_span_hooks = {} self.tensor = numpy.zeros((0,), dtype='float32') self.user_data = {} self._py_tokens = []