mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
add small fix for French lemmatizer (#3206)
This commit is contained in:
parent
8fc6aaf134
commit
b34bc9d2e9
2
.github/contributors/amperinet.md
vendored
2
.github/contributors/amperinet.md
vendored
|
@ -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) | |
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user