From 3588a18fb8a2cd64ccb8a64be5df9baba0a5122b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 19 Oct 2016 21:15:16 +0200 Subject: [PATCH] Fix hook names in doc --- spacy/tokens/doc.pyx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 = []