|
|
@ -1310,14 +1310,13 @@ class StructureMatch:
|
|
|
|
dm.add(" ".join(words[k].text for k in keys))
|
|
|
|
dm.add(" ".join(words[k].text for k in keys))
|
|
|
|
return len(dm)
|
|
|
|
return len(dm)
|
|
|
|
|
|
|
|
|
|
|
|
def distinct_2w_forms(self):
|
|
|
|
# def distinct_2w_forms(self, jppb):
|
|
|
|
dm = set()
|
|
|
|
# dm = set()
|
|
|
|
# TODO
|
|
|
|
# for words in self.matches:
|
|
|
|
# keys = [key for key in self.matches[0] if self.comp
|
|
|
|
# cw1 = words[jppb[0]]
|
|
|
|
|
|
|
|
# cw2 = words[jppb[1]]
|
|
|
|
for words in self.matches:
|
|
|
|
# dm.add((cw1.text, cw2.text))
|
|
|
|
dm.add(" ".join(words[k].text for k in keys))
|
|
|
|
# return len(dm)
|
|
|
|
return len(dm)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def append(self, match):
|
|
|
|
def append(self, match):
|
|
|
|
self.matches.append(match)
|
|
|
|
self.matches.append(match)
|
|
|
|