public class RelationSumPathWeight extends Object implements DependencyPathWeight
DependencyPathWeight that scores paths based on the sum of the
relations in the path. Links in the path are weighted as follows:
| Constructor and Description |
|---|
RelationSumPathWeight() |
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.