Class ArcStandardBeam.Node

java.lang.Object
opennlp.tools.depparse.ArcStandardBeam.Node
Enclosing class:
ArcStandardBeam

static final class ArcStandardBeam.Node extends Object
One path of the beam. The parent link forms the history; the start node has no parent and no features.
  • Field Details

  • 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)
      Extends parent by one transition.
      Parameters:
      parent - The node this one extends.
      features - The embedding rows the transition was scored on.
      transition - The transition index taken from parent.
      score - The summed log-probability of the path.
      gold - Whether the path is the gold derivation so far.