|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectir.webutils.LinkHeuristic
public class LinkHeuristic
Evaluates a web link (ScoredAnchoredLink) based on satisfying a set of "want strings" and "help strings".
The existing search heuristic considers four factors in order of importance:
| Field Summary | |
|---|---|
java.lang.String[] |
helpStrings
The array of help strings to help find the want strings |
java.lang.String[] |
wantStrings
The array of want strings that are desired |
| Constructor Summary | |
|---|---|
LinkHeuristic()
Construct an empty heuristic |
|
LinkHeuristic(java.lang.String[] wantStrings,
java.lang.String[] helpStrings)
Construct a heuristic with the given wantStrings and helpStrings |
|
| 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 |
| Field Detail |
|---|
public java.lang.String[] wantStrings
public java.lang.String[] helpStrings
| Constructor Detail |
|---|
public LinkHeuristic()
public LinkHeuristic(java.lang.String[] wantStrings,
java.lang.String[] helpStrings)
| Method Detail |
|---|
public double scoreLink(ScoredAnchoredLink link,
HTMLPage page)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||