public class LengthPathWeight extends Object implements DependencyPathWeight
DependencyPathWeight that scores paths inversely proportional to
their length. The scoring function is 1 / number of relations.| Constructor and Description |
|---|
LengthPathWeight() |
public double scorePath(DependencyPath path)
DependencyPath. The score may
be a function of the length of the path, arbitrary, e.g., 1 for all
paths, or may be a function of the relations and terms in the path.scorePath in interface DependencyPathWeightpath - A list of the term,relation links in the DependencyPath being scoredCopyright © 2012. All Rights Reserved.