aima.core.nlp.ranking.RunHITS Maven / Gradle / Ivy
package aima.core.nlp.ranking;
import java.util.List;
import java.util.Map;
/**
*
* @author Jonathon Belotti (thundergolfer)
*
*/
public class RunHITS {
public static void main(String[] args) {
List result;
// build page table
Map pageTable = PagesDataset.loadDefaultPages();
// Create HITS Ranker
HITS hits = new HITS(pageTable);
// run hits
System.out.println("Ranking...");
result = hits.hits("man is");
// report results
System.out.println("Ranking Finished.");
hits.report(result);
}
}