|
|
@ -1112,6 +1112,13 @@ class StructureMatch:
|
|
|
|
self.matches = []
|
|
|
|
self.matches = []
|
|
|
|
self.representations = {}
|
|
|
|
self.representations = {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def distinct_matches(self):
|
|
|
|
|
|
|
|
dm = set()
|
|
|
|
|
|
|
|
keys = list(self.matches[0].keys())
|
|
|
|
|
|
|
|
for words in self.matches:
|
|
|
|
|
|
|
|
dm.add(" ".join(words[k].text for k in keys))
|
|
|
|
|
|
|
|
return len(dm)
|
|
|
|
|
|
|
|
|
|
|
|
def append(self, match):
|
|
|
|
def append(self, match):
|
|
|
|
self.matches.append(match)
|
|
|
|
self.matches.append(match)
|
|
|
|
|
|
|
|
|
|
|
|