Get true positives (TP), given a knowledge matrix and a gold-standard lexicon
Source:R/evaluation.R
get_tp.RdThis function iterates over words in a given gold lexicon and accumulates the associative strength (can be integral e.g. 1, or real-valued) in the knowledge matrix for the intended referents (present in the gold lexicon). Returns the number of expected true positives (TP) for this gold lexicon and knowledge matrix.