Sim_Resnik_edge_2005
Sim_Resnik_edge_2005(
dag,
terms,
distance = "longest_distances_via_LCA",
verbose = simona_opt$verbose
)It is also based on the distance between term a and b:
sim = 1 - d(a, b)/2/max_depthwhere max_depth is the maximal depth (maximal distance from root) in the DAG. Similarly, d(a, b) can be the shortest
distance or the longest distance via LCA.
Paper link: doi:10.1145/1097047.1097051 .
There is a parameter distance which takes value of "longest_distances_via_LCA" (the default) or "shortest_distances_via_NCA":
term_sim(dag, terms, method = "Sim_Resnik_edge_2005",
control = list(distance = "shortest_distances_via_NCA"))