edu.stanford.nlp.parser.oldparser
Class Edge
java.lang.Object
|
+--edu.stanford.nlp.parser.oldparser.Edge
- All Implemented Interfaces:
- Internable, Scored
- public final class Edge
- extends Object
- implements Scored, Internable
Edge
Class for representing the edges in a chart parser. The edges
know how to add traversals and relax their scores.
ACTIVE
public static final boolean ACTIVE
- See Also:
- Constant Field Values
PASSIVE
public static final boolean PASSIVE
- See Also:
- Constant Field Values
cmp
public static Comparator cmp
score
public double score()
- Description copied from interface:
Scored
- Return the score of this thing
- Specified by:
score
in interface Scored
set
public void set(Label label,
DFSAState state,
int start,
int end,
boolean active,
double score)
getLabel
public Label getLabel()
getState
public DFSAState getState()
getTraversals
public List getTraversals()
addTraversal
public boolean addTraversal(Traversal traversal)
getBestTraversal
public Traversal getBestTraversal()
isActive
public boolean isActive()
isPassive
public boolean isPassive()
getContinuations
public Set getContinuations()
weakHashCode
public int weakHashCode()
- Specified by:
weakHashCode
in interface Internable
weakEqualsHelper
public boolean weakEqualsHelper(Edge e)
weakEquals
public boolean weakEquals(Object o)
- Specified by:
weakEquals
in interface Internable
toString
public String toString()
- Overrides:
toString
in class Object
Stanford NLP Group