mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix Token.set_extension
This commit is contained in:
parent
535833a38d
commit
a8bc947fd4
|
@ -35,11 +35,11 @@ cdef class Token:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_extension(cls, name):
|
def get_extension(cls, name):
|
||||||
return Underscore.span_extensions.get(name)
|
return Underscore.token_extensions.get(name)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def has_extension(cls, name):
|
def has_extension(cls, name):
|
||||||
return name in Underscore.span_extensions
|
return name in Underscore.token_extensions
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def remove_extension(cls, name):
|
def remove_extension(cls, name):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user