mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Remove redundant function and fix formatting
This commit is contained in:
parent
b5ca50607e
commit
02d0ac5cab
|
@ -30,10 +30,6 @@ def is_punct(text):
|
|||
return True
|
||||
|
||||
|
||||
def is_space(text):
|
||||
return text.isspace()
|
||||
|
||||
|
||||
def is_ascii(text):
|
||||
for char in text:
|
||||
if ord(char) >= 128:
|
||||
|
@ -53,8 +49,6 @@ def like_num(text):
|
|||
return False
|
||||
|
||||
|
||||
|
||||
|
||||
def is_bracket(text):
|
||||
brackets = ('(',')','[',']','{','}','<','>')
|
||||
return text in brackets
|
||||
|
|
Loading…
Reference in New Issue
Block a user