Open ibrahimsharaf opened 7 years ago
I believe the formula used here to compute relatedness,
rel(a, b) =(math.log(max([a, b])) - math.log(ab)) / (math.log(self.entity_N) - math.log(min([a, b])))
is actually sort of a distance measure.
It should be rel(a, b) = 1. - ((math.log(max([a, b])) - math.log(ab)) / (math.log(self.entity_N) - math.log(min([a, b]))))
Is there a reference for this formula in the literature?
I encountered the same results. Is there a reason that this does not give the same results as in the readme?
Hi all, I am using Python (2.7), numpy (1.13.3), scipy (0.19.1), sematch (1.0.4). I've been trying to reproduce the semantic similarity of DBpedia entities results in the readme, I got the same results using similarity, but lower ones using relatedness:
Also I tried tinkering with some other entities, the results were not very logical, some of it were > 1.0 (is that even possible?) e.g: