From 77d0700caf2c90194200e17acab93ab0910541cc Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 16 Apr 2015 01:35:46 +0200 Subject: [PATCH] * Add on X way regexes --- spacy/en/regexes.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spacy/en/regexes.py b/spacy/en/regexes.py index 4eb45d87d..89f16d7f5 100644 --- a/spacy/en/regexes.py +++ b/spacy/en/regexes.py @@ -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)