mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
updated regexp
This commit is contained in:
parent
7d96d477ea
commit
4d04898dea
|
@ -44,10 +44,11 @@ ke-annya di-kan di-kannya de-isasi ber-an berke-an""".split()
|
|||
|
||||
_hyphen_suffix = """el"""
|
||||
|
||||
_regular_exp = ['^{p}-*$'.format(p=prefix) for prefix in _hyphen_prefix]
|
||||
_regular_exp = ['^{p}-*$'.format(p=prefix.title()) for prefix in _hyphen_prefix]
|
||||
_regular_exp += ['^{0}-*-{1}$'.format(*infix.title().split('-')) for infix in _hyphen_infix]
|
||||
_regular_exp = ['^*-{s}$'.format(s=suffix) for suffix in _hyphen_suffix]
|
||||
_regular_exp = ['^{p}-.*$'.format(p=prefix) for prefix in _hyphen_prefix]
|
||||
_regular_exp += ['^{p}-.*$'.format(p=prefix.title()) for prefix in _hyphen_prefix]
|
||||
_regular_exp += ['^{p}-.*$'.format(p=prefix.upper()) for prefix in _hyphen_prefix]
|
||||
_regular_exp += ['^{0}-.*-{1}$'.format(*infix.title().split('-')) for infix in _hyphen_infix]
|
||||
_regular_exp += ['^.*-{s}$'.format(s=suffix) for suffix in _hyphen_suffix]
|
||||
_regular_exp.append(URL_PATTERN)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user