Add GreekLemmatizer.lookup (resolves
@@ -46,6 +46,11 @@ class GreekLemmatizer(object):
)
return lemmas
+ def lookup(self, string):
+ if string in self.lookup_table:
+ return self.lookup_table[string]
+ return string
+
def lemmatize(string, index, exceptions, rules):
string = string.lower()
