Package opennlp.tools.depparse
Class ArcStandardBeam.Node
java.lang.Object
opennlp.tools.depparse.ArcStandardBeam.Node
- Enclosing class:
ArcStandardBeam
One path of the beam. The parent link forms the history; the start node has no
parent and no features.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanWhether the trainer has already collected this node for an update.(package private) final int[](package private) final boolean(package private) final ArcStandardBeam.Node(package private) final double(package private) ArcStandardStateThe configuration aftertransition; set byArcStandardBeam.advance(java.util.List<opennlp.tools.depparse.ArcStandardBeam.Node>, int, opennlp.tools.depparse.Transition[]).(package private) final int(package private) doubleThe candidate weight summed over the paths through this node by the trainer. -
Constructor Summary
ConstructorsConstructorDescriptionNode(ArcStandardBeam.Node parent, int[] features, int transition, double score, boolean gold) Extendsparentby one transition.Node(ArcStandardState state) Creates the start node of a sentence. -
Method Summary
-
Field Details
-
parent
-
features
final int[] features -
transition
final int transition -
score
final double score -
gold
final boolean gold -
state
ArcStandardState stateThe configuration aftertransition; set byArcStandardBeam.advance(java.util.List<opennlp.tools.depparse.ArcStandardBeam.Node>, int, opennlp.tools.depparse.Transition[]). -
weight
double weightThe candidate weight summed over the paths through this node by the trainer. -
collected
boolean collectedWhether the trainer has already collected this node for an update.
-
-
Constructor Details
-
Node
Node(ArcStandardState state) Creates the start node of a sentence.- Parameters:
state- The initial configuration.
-
Node
Node(ArcStandardBeam.Node parent, int[] features, int transition, double score, boolean gold) Extendsparentby one transition.- Parameters:
parent- The node this one extends.features- The embedding rows the transition was scored on.transition- The transition index taken fromparent.score- The summed log-probability of the path.gold- Whether the path is the gold derivation so far.
-