public class FlatPathWeight extends Object implements DependencyPathWeight
DependencyPathWeight
that returns 1
for every path.Constructor and Description |
---|
FlatPathWeight() |
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 DependencyPathWeight
path
- A list of the term,relation links in the DependencyPath
being scoredCopyright © 2012. All Rights Reserved.