wordform all only lowercase

pull/1/head
Ozbolt Menegatti 5 years ago
parent ad7ba8c0b2
commit 7d1bfbf73e

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

Loading…
Cancel
Save