wordform all only lowercase

This commit is contained in:
Ozbolt Menegatti 2019-06-01 10:33:02 +02:00
parent ad7ba8c0b2
commit 7d1bfbf73e

View File

@ -194,8 +194,11 @@ class LexisCR(ComponentRepresentation):
class WordFormAllCR(ComponentRepresentation): class WordFormAllCR(ComponentRepresentation):
def _render(self): def _render(self):
txt = "/".join(set([w.text for w in set(self.words)])) if len(self.words) > 0 else None if len(self.words) == 0:
return txt return None
else:
forms = [w.text.lower() for w in self.words]
return "/".join(set(forms))
class WordFormAnyCR(ComponentRepresentation): class WordFormAnyCR(ComponentRepresentation):
def _render(self): def _render(self):