def sim_res(self, other):
if not isinstance(other, Synset):<EOL><INDENT>return <NUM_LIT:0.><EOL><DEDENT>common_hypers = self.nearest_common_hypernyms(other)<EOL>if not common_hypers:<EOL><INDENT>return <NUM_LIT:0.><EOL><DEDENT>infoconts = [synset.infocont for synset in common_hypers]<EOL>infoconts = [x for x in infoconts if x != <NUM_LIT:0>]<EOL>if not infoconts:<EOL><INDENT>return <NUM_LIT:0.><EOL><DEDENT>least_prob = min(infoconts)<EOL>return -math.log(least_prob)<EOL>
Computes the Resnik similarity score between this synset and the
synset ``other``.

Arguments:
- `other`: