Fix vector linkage for token

This commit is contained in:
Matthew Honnibal 2017-06-04 14:19:58 -05:00
parent c4614c02a2
commit f4662e9218

View File

@ -234,7 +234,7 @@ cdef class Token:
def __get__(self): def __get__(self):
if 'has_vector' in self.doc.user_token_hooks: if 'has_vector' in self.doc.user_token_hooks:
return self.doc.user_token_hooks['has_vector'](self) return self.doc.user_token_hooks['has_vector'](self)
return self.vocab.has_vector(self.lex.c.orth) return self.vocab.has_vector(self.c.lex.orth)
property vector: property vector:
"""A real-valued meaning representation. """A real-valued meaning representation.