Skip to main content
. Author manuscript; available in PMC: 2013 Dec 1.
Published in final edited form as: J Biomed Inform. 2012 Jul 26;45(6):1049–1065. doi: 10.1016/j.jbi.2012.07.003
RRI step one: generate document vectors
For each document:
    For each concept in document:
   S(document)+ = E(concept) × lw × gw
where:
lw = log(1 + frequency of concept in document)
gw = entropy(concept)
entropy=1+Σpijlog2(pij)log2(n)
pij=cfijgfi
cfij = frequency of concept i in document j
gfi = frequency of concept i in corpus
For each semantic document vector:
    Normalize (majority rule)
RRI step two: generate semantic concept vectors
For each concept:
    For each document concept occurs:
   S(concept)+ = S(document)
For each semantic concept vector:
    Normalize (majority rule)