public class DocumentUtility extends Object
Constructor and Description |
---|
DocumentUtility() |
Modifier and Type | Method and Description |
---|---|
static int[] |
reverseLookupSpamSortedDocids(int[] spamSortedDocidsMap)
Retrieves old docid for spam sorted docids generated by
spamSortDocids(ivory.core.data.stat.SpamPercentileScore) ,
thereby providing a reverse-look up table. |
static int[] |
spamSortDocids(SpamPercentileScore spamScores)
Generates new document ids based on spam/quality scores.
|
public static int[] reverseLookupSpamSortedDocids(int[] spamSortedDocidsMap)
spamSortDocids(ivory.core.data.stat.SpamPercentileScore)
,
thereby providing a reverse-look up table.spamSortedDocidsMap
- Array of integers generated
by spamSortDocids(ivory.core.data.stat.SpamPercentileScore)
public static int[] spamSortDocids(SpamPercentileScore spamScores)
spamScores
- Spam percentile scores