
aima.core.nlp.ranking.RunHITS Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy