In node-based measures of semantic similarity, information content ($IC$) of a given term ($c$) can be computed as: $$IC(c) = -log~p(c)$$
Where $p(c)$ is the probability of occurrence of term $c$ in a corpus.
This method, described by Resnik, has been applied to biomedical ontologies. In this context, investigators can calculate $p(c)$ as the the probability of occurrence of a term $c$ being annotated. Although $c$ may exist in the corpus, it's possible that $c$ has $0$ annotations (ex. a gene with unknown function -- gene is in corpus, but unannotated).
Assuming $p(c)$ is the probability a term is annotated in a corpus:
$p(c_1) = 0.50$
$p(c_2) = 0.10$
$p(c_3) = 0.00$
Yields the following $IC$:
$ICc_1 = 0.693$
$ICc_2 = 2.303$
$ICc_3 = undefined$
The specific problem of $ICc_3 = undefined$ has been approached by maximizing $IC$ for unannotated terms and documented here. Excerpt:
Alternatively, I've seen authors set $IC=0$ for unannotated terms, one example, Excerpt:
Can anyone explain the motivation of the authors setting $IC = 0$ for terms that are unannotated in the second link? I'm struggling with this sharp contrast against the intuition that infrequently annotated terms should have higher $IC$. Or perhaps just shed some light on the fundamental differences and how to best avoid $-log(0)$?
Edit:
Batet, et al. propose an alternative approach to calculating information content where "1 is added to the numerator and denominator to avoid log(0)".
Link to .pdf