From 3fc4fe61d2b4a11f681081023e9a26d587a61195 Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 10 Oct 2017 04:15:14 +0200 Subject: [PATCH] Fix typo --- spacy/tokens/token.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index c617b382e..f56e7682f 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -28,7 +28,7 @@ cdef class Token: @classmethod def set_extension(cls, name, default=None, method=None, getter=None, setter=None): - Underscore.span_extensions[name] = (default, method, getter, setter) + Underscore.token_extensions[name] = (default, method, getter, setter) @classmethod def get_extension(cls, name): @@ -285,7 +285,7 @@ cdef class Token: def __get__(self): if 'vector_norm' in self.doc.user_token_hooks: return self.doc.user_token_hooks['vector_norm'](self) - vector = self.vector + vector = self.vector return numpy.sqrt((vector ** 2).sum()) property n_lefts: