mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 05:07:03 +03:00
Tidy up
This commit is contained in:
parent
63f5651f8d
commit
c001d46153
|
@ -412,6 +412,7 @@ cdef class Tokenizer:
|
||||||
self.add_special_case(string, substrings)
|
self.add_special_case(string, substrings)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
||||||
def _get_regex_pattern(regex):
|
def _get_regex_pattern(regex):
|
||||||
'''Get a pattern string for a regex, or None if the pattern is None.'''
|
"""Get a pattern string for a regex, or None if the pattern is None."""
|
||||||
return None if regex is None else regex.__self__.pattern
|
return None if regex is None else regex.__self__.pattern
|
||||||
|
|
Loading…
Reference in New Issue
Block a user