sematch icon indicating copy to clipboard operation
sematch copied to clipboard

DBpedia entities relatedness don't produce the same results

Open ibrahimsharaf opened this issue 6 years ago • 3 comments

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:

>>> sim.relatedness('http://dbpedia.org/resource/Madrid','http://dbpedia.org/resource/Barcelona')#0.457984139871
0.2668161233777911
>>> sim.relatedness('http://dbpedia.org/resource/Apple_Inc.','http://dbpedia.org/resource/Steve_Jobs')#0.465991132787
0.19299297377223823

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:

>>> sim.relatedness('http://dbpedia.org/resource/Secure_Shell', 'http://dbpedia.org/resource/Spain')
1.1417165889528
>>> sim.relatedness('http://dbpedia.org/resource/Freeware', 'http://dbpedia.org/resource/Philippines')
1.2145251551211556

ibrahimsharaf avatar Oct 03 '17 21:10 ibrahimsharaf