mirror of https://github.com/explosion/spaCy.git
* Add on X way regexes
This commit is contained in:
parent
adcad4f353
commit
77d0700caf
|
@ -5,16 +5,21 @@ _mw_prepositions = [
|
|||
'close to',
|
||||
'down by',
|
||||
'on the way to',
|
||||
'on my way to',
|
||||
'on my way',
|
||||
'on his way to',
|
||||
'on his way',
|
||||
'on her way to',
|
||||
'on her way',
|
||||
'on your way to',
|
||||
'on your way',
|
||||
'on our way to',
|
||||
'on our way',
|
||||
'on their way to',
|
||||
'on their way',
|
||||
]
|
||||
|
||||
|
||||
|
||||
MW_PREPOSITIONS_RE = re.compile('|'.join(_mw_prepositions), flags=re.IGNORECASE)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue