mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +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