def _common_hypernyms(self, other):
if not isinstance(other, Synset):<EOL><INDENT>return dict()<EOL><DEDENT>self_dists  = dict(self.hypernym_distances)<EOL>other_dists = dict(other.hypernym_distances)<EOL>common      = dict((synset, <NUM_LIT:0>) for synset in (set(self_dists) &<EOL>set(other_dists)))<EOL>for synset in common:<EOL><INDENT>common[synset] = self_dists[synset] + other_dists[synset]<EOL><DEDENT>return common<EOL>
Helper method for common_hypernyms.