Class LatticeTokenizer.Node

java.lang.Object
opennlp.tools.tokenize.lattice.LatticeTokenizer.Node
Enclosing class:
LatticeTokenizer

private static final class LatticeTokenizer.Node extends Object
One lattice node: a candidate morpheme with its best path cost so far. Nodes ending at one position chain through nextEndingHere.
  • Field Details

  • Constructor Details

    • Node

      private Node(int start, int end, MecabDictionary.WordEntry entry, boolean unknown)
      Creates one lattice candidate.
      Parameters:
      start - The candidate start in original text coordinates.
      end - The exclusive candidate end.
      entry - The dictionary entry.
      unknown - Whether unknown-word handling generated the candidate.