mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 17:54:39 +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 |
|
| Name | Amandine Périnet |
|
||||||
| Company name (if applicable) | 365Talents |
|
| Company name (if applicable) | 365Talents |
|
||||||
| Title or role (if applicable) | Data Science Researcher |
|
| Title or role (if applicable) | Data Science Researcher |
|
||||||
| Date | 09/01/2019 |
|
| Date | 28/01/2019 |
|
||||||
| GitHub username | amperinet |
|
| GitHub username | amperinet |
|
||||||
| Website (optional) | |
|
| Website (optional) | |
|
||||||
|
|
|
@ -106,7 +106,7 @@ class FrenchLemmatizer(object):
|
||||||
|
|
||||||
def lookup(self, string):
|
def lookup(self, string):
|
||||||
if string in self.lookup_table:
|
if string in self.lookup_table:
|
||||||
return self.lookup_table[string]
|
return self.lookup_table[string][0]
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user