wordform all only lowercase
This commit is contained in:
parent
ad7ba8c0b2
commit
7d1bfbf73e
7
wani.py
7
wani.py
|
@ -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…
Reference in New Issue
Block a user