rank
public static <T extends Similar<T>> LexRankResults<T> rank(List<T> data,
double similarityThreshold,
boolean continuous)
Runs the LexRank algorithm over a set of data. The data must have a
similarity function, and it is assumed that the similarity function
is symmetric. (If this is not the case, the similarity matrix will
not be computed correctly.)
- Parameters:
data
- the data to rank.
similarityThreshold
- how similar two items must be to be considered
"connected". The LexRank paper suggests a value of 0.1.
continuous
- whether or not to use a continuous version of the
LexRank algorithm, If set to false, all similarity links above the
similarity threshold will be considered equal; otherwise, the similarity
scores are used. The paper authors note that non-continuous LexRank
seems to perform better.