public HtmlPageCategorizationProcessor(Initializer initializer, Queue <Url> frontier)
 {
     extractor    = new Extractor();
     categorizer  = new Categorizer(initializer.getCategoryList());
     ranker       = new Ranker(categorizer);
     filter       = new Filter("http://", initializer.getContraints());
     queueFronier = frontier;
     taskId       = initializer.getTaskId();
 }
 public HtmlPageCategorizationProcessor(Initializer initializer,Queue<Url> frontier)
 {
     extractor = new Extractor();
     categorizer = new Categorizer(initializer.getCategoryList());
     ranker = new Ranker(categorizer);
     filter = new Filter("http://",initializer.getContraints());
     queueFronier = frontier;
     taskId = initializer.getTaskId();
 }
Exemplo n.º 3
0
 /*
  * private const double MinAndMaxRATIO = 0.75;
  * private const int ConfidenceLevelOfAnchor = 75;
  * private const double ALPHA = 0.5;
  * private const double BETTA = 0.4;
  * private const double GAMMA = 0.2;
  */
 public Ranker(Categorizer categorizer)
 {
     this.categorizer = categorizer;
     //this.RankParams = RankerParameters;
 }
Exemplo n.º 4
0
 /*
 private const double MinAndMaxRATIO = 0.75;
 private const int ConfidenceLevelOfAnchor = 75;
 private const double ALPHA = 0.5;
 private const double BETTA = 0.4;
 private const double GAMMA = 0.2;
 */
 public Ranker(Categorizer categorizer)
 {
     this.categorizer = categorizer;
     //this.RankParams = RankerParameters;
 }