Fix hook names in doc

This commit is contained in:
Matthew Honnibal 2016-10-19 21:15:16 +02:00
parent 5d5742b773
commit 3588a18fb8
1 changed files with 3 additions and 2 deletions

View File

@ -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 = []