From 13b6957c8eda5c7ace2e7c6ec8d5e846e5732454 Mon Sep 17 00:00:00 2001 From: Gregory Howard Date: Thu, 27 Apr 2017 11:53:44 +0200 Subject: [PATCH] Adding unitest for tokenization in french (with title) --- spacy/lemmatizerlookup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spacy/lemmatizerlookup.py b/spacy/lemmatizerlookup.py index 014c9d781..0c0c693c1 100644 --- a/spacy/lemmatizerlookup.py +++ b/spacy/lemmatizerlookup.py @@ -10,12 +10,10 @@ class Lemmatizer(Lemmatizer): return cls(lookup or {}) def __init__(self, lookup): - print("Mon lemmatizer") self.lookup = lookup def __call__(self, string, univ_pos, morphology=None): - print("call") try: - return self.lookup[string] + return set([self.lookup[string]]) except: - return string \ No newline at end of file + return set([string]) \ No newline at end of file