def res(self, s1: Synset, s2: Synset) -> float:
     return s1.res_similarity(s2, self.brown_ic)
 def res(self, s1: Synset, s2: Synset) -> float:
     try:
         return s1.res_similarity(s2, self.brown_ic)
     except WordNetError:
         return NAN