mirror of https://github.com/explosion/spaCy.git
Fix vector linkage for token
This commit is contained in:
parent
c4614c02a2
commit
f4662e9218
|
@ -234,7 +234,7 @@ cdef class Token:
|
|||
def __get__(self):
|
||||
if 'has_vector' in self.doc.user_token_hooks:
|
||||
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:
|
||||
"""A real-valued meaning representation.
|
||||
|
|
Loading…
Reference in New Issue