From a8bc947fd48b13cfda0af9fcef4ef9a20772ab48 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 29 Apr 2018 15:48:19 +0200 Subject: [PATCH] Fix Token.set_extension --- 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 6c1e1b06f..be972f222 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -35,11 +35,11 @@ cdef class Token: @classmethod def get_extension(cls, name): - return Underscore.span_extensions.get(name) + return Underscore.token_extensions.get(name) @classmethod def has_extension(cls, name): - return name in Underscore.span_extensions + return name in Underscore.token_extensions @classmethod def remove_extension(cls, name):