All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aima.core.nlp.ranking.RunHITS Maven / Gradle / Ivy

Go to download

AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.

The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy