mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Use generic flags for the new attributes until they're added
This commit is contained in:
parent
c4017a06d9
commit
419edfab50
|
@ -137,10 +137,10 @@ class Language(object):
|
||||||
attrs.IS_SPACE: cls.is_space,
|
attrs.IS_SPACE: cls.is_space,
|
||||||
attrs.IS_TITLE: cls.is_title,
|
attrs.IS_TITLE: cls.is_title,
|
||||||
attrs.IS_UPPER: cls.is_upper,
|
attrs.IS_UPPER: cls.is_upper,
|
||||||
attrs.IS_BRACKET: cls.is_bracket,
|
attrs.FLAG14: cls.is_bracket,
|
||||||
attrs.IS_QUOTE: cls.is_quote,
|
attrs.FLAG15: cls.is_quote,
|
||||||
attrs.IS_LEFT_PUNCT: cls.is_left_punct,
|
attrs.FLAG16: cls.is_left_punct,
|
||||||
attrs.IS_RIGHT_PUNCT: cls.is_right_punct,
|
attrs.FLAG17: cls.is_right_punct,
|
||||||
attrs.LIKE_URL: cls.like_url,
|
attrs.LIKE_URL: cls.like_url,
|
||||||
attrs.LIKE_NUM: cls.like_num,
|
attrs.LIKE_NUM: cls.like_num,
|
||||||
attrs.LIKE_EMAIL: cls.like_email,
|
attrs.LIKE_EMAIL: cls.like_email,
|
||||||
|
|
|
@ -18,7 +18,10 @@ import numpy
|
||||||
|
|
||||||
from .attrs cimport IS_ALPHA, IS_ASCII, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_SPACE
|
from .attrs cimport IS_ALPHA, IS_ASCII, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_SPACE
|
||||||
from .attrs cimport IS_TITLE, IS_UPPER, LIKE_URL, LIKE_NUM, LIKE_EMAIL, IS_STOP
|
from .attrs cimport IS_TITLE, IS_UPPER, LIKE_URL, LIKE_NUM, LIKE_EMAIL, IS_STOP
|
||||||
from .attrs cimport IS_BRACKET, IS_QUOTE, IS_LEFT_PUNCT, IS_RIGHT_PUNCT
|
from .attrs cimport FLAG14 as IS_BRACKET
|
||||||
|
from .attrs cimport FLAG15 as IS_QUOTE
|
||||||
|
from .attrs cimport FLAG16 as IS_LEFT_PUNCT
|
||||||
|
from .attrs cimport FLAG17 as IS_RIGHT_PUNCT
|
||||||
from .attrs cimport IS_OOV
|
from .attrs cimport IS_OOV
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,10 @@ from ..attrs cimport POS, LEMMA, TAG, DEP
|
||||||
from ..parts_of_speech cimport CONJ, PUNCT
|
from ..parts_of_speech cimport CONJ, PUNCT
|
||||||
|
|
||||||
from ..attrs cimport IS_ALPHA, IS_ASCII, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_SPACE
|
from ..attrs cimport IS_ALPHA, IS_ASCII, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_SPACE
|
||||||
from ..attrs cimport IS_BRACKET, IS_QUOTE, IS_LEFT_PUNCT, IS_RIGHT_PUNCT
|
from ..attrs cimport FLAG14 as IS_BRACKET
|
||||||
|
from ..attrs cimport FLAG15 as IS_QUOTE
|
||||||
|
from ..attrs cimport FLAG16 as IS_LEFT_PUNCT
|
||||||
|
from ..attrs cimport FLAG17 as IS_RIGHT_PUNCT
|
||||||
from ..attrs cimport IS_TITLE, IS_UPPER, LIKE_URL, LIKE_NUM, LIKE_EMAIL, IS_STOP
|
from ..attrs cimport IS_TITLE, IS_UPPER, LIKE_URL, LIKE_NUM, LIKE_EMAIL, IS_STOP
|
||||||
from ..attrs cimport IS_OOV
|
from ..attrs cimport IS_OOV
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user