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):
|
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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user