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()}
def _final_pair_str(self): if self.list_grammar: return '(' + pair_to_string(self.list_grammar[-1]) + ')}' else: return ' }'
def _frozenset_to_string(self, fset): return pair_to_string(tuple(fset)[0])
def _inner_pair_str(self, rel): return '(' + pair_to_string(rel) + '), '