node_IC_zhou {eHDPrep} | R Documentation |
Computes the information content for each node in a directed graph according to the equation developed by Zhou et al. (2008).
node_IC_zhou(graph, mode = "in", root, k = 0.5)
graph |
|
mode |
Character constant specifying the directionality of the edges. One of "in" or "out". |
root |
name of root node identifier in column 1 to calculate node depth from. |
k |
numeric value to adjust the weight of the two items of information content equation (relative number of hyponyms/descendants and relative node depth). Default = 0.5 |
tidygraph with additional node attribute "information_content"
For use in semantic enrichment, this should be applied before joining
an ontology with nodes representing data variables (i.e. before applying
join_vars_to_ontol
.
Zhou, Z., Wang, Y. & Gu, J. A New Model of Information Content for Semantic Similarity in WordNet. in 2008 Second International Conference on Future Generation Communication and Networking Symposia vol. 3 85–89 (2008).
data(example_ontology)
node_IC_zhou(example_ontology, mode = "in", root = "root")