ir.webutils
Class ProximityLinkHeuristic

java.lang.Object
  extended by ir.webutils.LinkHeuristic
      extended by ir.webutils.ProximityLinkHeuristic

public class ProximityLinkHeuristic
extends LinkHeuristic

Specialization of LinkHeuristic that includes bonus points for being close to a preceeding "want string" or "help string" that is not inside another link.


Field Summary
 
Fields inherited from class ir.webutils.LinkHeuristic
helpStrings, wantStrings
 
Constructor Summary
ProximityLinkHeuristic()
           
 
Method Summary
 double scoreLink(ScoredAnchoredLink link, HTMLPage page)
          Heuristically score the given link appearing on the given page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProximityLinkHeuristic

public ProximityLinkHeuristic()
Method Detail

scoreLink

public double scoreLink(ScoredAnchoredLink link,
                        HTMLPage page)
Heuristically score the given link appearing on the given page

Overrides:
scoreLink in class LinkHeuristic