From b34bc9d2e9f779986e2be9e3ce8ec3f92e8a43c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amandine=20P=C3=A9rinet?= Date: Thu, 31 Jan 2019 23:44:10 +0100 Subject: [PATCH] add small fix for French lemmatizer (#3206) --- .github/contributors/amperinet.md | 2 +- spacy/lang/fr/lemmatizer/lemmatizer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/contributors/amperinet.md b/.github/contributors/amperinet.md index 7fe3c19d8..7ef458fb4 100644 --- a/.github/contributors/amperinet.md +++ b/.github/contributors/amperinet.md @@ -101,6 +101,6 @@ mark both statements: | Name | Amandine PĂ©rinet | | Company name (if applicable) | 365Talents | | Title or role (if applicable) | Data Science Researcher | -| Date | 09/01/2019 | +| Date | 28/01/2019 | | GitHub username | amperinet | | Website (optional) | | diff --git a/spacy/lang/fr/lemmatizer/lemmatizer.py b/spacy/lang/fr/lemmatizer/lemmatizer.py index e572f84a0..a7bc43b60 100644 --- a/spacy/lang/fr/lemmatizer/lemmatizer.py +++ b/spacy/lang/fr/lemmatizer/lemmatizer.py @@ -106,7 +106,7 @@ class FrenchLemmatizer(object): def lookup(self, string): if string in self.lookup_table: - return self.lookup_table[string] + return self.lookup_table[string][0] return string