From 280c03f67b06836251edff32a2a0a5d320f34e52 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 17 Dec 2016 11:54:59 +0100 Subject: [PATCH] Add exception for "gonna" --- spacy/en/language_data.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spacy/en/language_data.py b/spacy/en/language_data.py index 851a12c29..aec221de8 100644 --- a/spacy/en/language_data.py +++ b/spacy/en/language_data.py @@ -1493,6 +1493,16 @@ TOKENIZER_EXCEPTIONS = { {ORTH: "ma"} ], + "gonna": [ + {ORTH: "gon", LEMMA: "go"}, + {ORTH: "na", LEMMA: "to"} + ], + + "Gonna": [ + {ORTH: "Gon", LEMMA: "go"}, + {ORTH: "na", LEMMA: "to"} + ], + "whats": [ {ORTH: "what"}, {ORTH: "s"}