From bf0ed35e0007f8a88774440cd68036f30896b358 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Mon, 10 Jun 2019 10:54:01 +0200 Subject: [PATCH] removing old unused commented out code --- wani.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/wani.py b/wani.py index 4b3d540..993efff 100644 --- a/wani.py +++ b/wani.py @@ -1358,14 +1358,6 @@ class StructureMatch: 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) @@ -1398,18 +1390,6 @@ class ColocationIds: yield sm - # all_words = [] - # more_data = [] - - # for words in sm.matches: - # more_data.append((sm.match_id, words, len(sm), sm.representations)) - # all_words.append(words) - - # if group: - # more_data = more_data[:1] - - # yield all_words, more_data - def set_representations(self, word_renderer): for _1, sm in tqdm(self.data.items()): ComponentRendition.set_representations(sm, word_renderer) @@ -1444,12 +1424,6 @@ def main(structures_file, args): colocation_ids = ColocationIds() word_renderer = WordMsdRenderer(lemma_msds) - # if True: - # with open("match_word.p", "rb") as fp: - # words, matches = pickle.load(fp) - # colocation_ids.add_matches(matches) - # word_renderer.add_words(words) - if args.parallel: num_parallel = int(args.parallel)