Пример #1
0
 def _process_num_cots_by_cand(self):
     num_cots_by_cand = self.poot.num_cots_by_cand(
         self.apriori_ranking.raw_grammar
     )
     return {pair_to_string(k): v for k, v in num_cots_by_cand.iteritems()}
Пример #2
0
 def _final_pair_str(self):
     if self.list_grammar:
         return '(' + pair_to_string(self.list_grammar[-1]) + ')}'
     else:
         return ' }'
Пример #3
0
 def _frozenset_to_string(self, fset):
     return pair_to_string(tuple(fset)[0])
Пример #4
0
 def _inner_pair_str(self, rel):
     return '(' + pair_to_string(rel) + '), '