From d7f97ba9b386cd53dca3bbdda88e1ad8d2389497 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Mon, 10 Jun 2019 00:25:14 +0200 Subject: [PATCH] implementing but commenting out distinct_2w_forms --- wani.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/wani.py b/wani.py index 5700e90..13ffe2f 100644 --- a/wani.py +++ b/wani.py @@ -1310,14 +1310,13 @@ class StructureMatch: dm.add(" ".join(words[k].text for k in keys)) return len(dm) - def distinct_2w_forms(self): - dm = set() - # TODO - # keys = [key for key in self.matches[0] if self.comp - - for words in self.matches: - dm.add(" ".join(words[k].text for k in keys)) - return len(dm) + # def distinct_2w_forms(self, jppb): + # dm = set() + # for words in self.matches: + # cw1 = words[jppb[0]] + # cw2 = words[jppb[1]] + # dm.add((cw1.text, cw2.text)) + # return len(dm) def append(self, match): self.matches.append(match)